joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x70
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x4027e0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov word [ebp - 0x42], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x30]
jae 0x40219f
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esp], eax
call fcn.00402840
sub esp, 4
cmp dword [ebp + 8], 0
jbe 0x402164
cmp dword [ebp + 0xc], 3
jbe 0x402164
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x10], 0
mov eax, esp
lea ecx, [ebp - 0x68]
mov dword [eax], ecx
mov dword [eax + 4], 0x14d
call fcn.00401e70
mov dword [ebp - 0x74], eax
jmp 0x402103
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x40215f
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp + 0xc]
jne 0x40215a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0x48]
shl ecx, 1
add eax, ecx
mov ax, word [eax]
mov word [ebp - 0x42], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + 0x1c]
movzx ecx, word [ebp - 0x42]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x70], 2
jmp 0x402174
jmp 0x40215f
jmp 0x402164
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x68]
call fcn.00402900
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x402191
jmp 0x40218c
jmp 0x40219f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402098
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
add eax, ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x70
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4021e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x448200], eax
pop esi
pop edi
pop ebp
ret
Function at 0x410b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x410bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x410bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x7d80b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007d8200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d80d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d80c2
add dl, dl
jne 0x7d80e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d8134
xor eax, eax
add dl, dl
jne 0x7d80ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d81d5
add dl, dl
jne 0x7d80fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d8108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d8113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d811e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d812a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d80cd
mov eax, 1
add dl, dl
jne 0x7d8142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d814d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d8139
sub eax, ebx
mov ebx, 1
jne 0x7d8180
mov ecx, 1
add dl, dl
jne 0x7d8166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d8171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d815d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d80cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d8197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d81a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d818e
cmp eax, 0x7d00
jae 0x7d81c5
cmp eax, 0x500
jb 0x7d81c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d80cd
cmp eax, 0x7f
ja 0x7d81c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d80cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d81f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d80cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x405710
Capabilities:
Check mutex on windows

Disassembly:
cmp dword [0x4738f8], 8
mov eax, 0x4738e4
push esi
cmovae eax, dword [0x4738e4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x405748
call fcn.004057e0
call fcn.004058a0
test esi, esi
je 0x405753
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
ret 0x10

Function at 0x4057e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450608
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x470070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp byte [edx], 0
jne 0x405829
xor ecx, ecx
jmp 0x405839
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405830
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405180
lea edx, [ebp - 0x10]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004082c0
mov esi, eax
push ecx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00408440
push dword [esi]
call fcn.0043510a
push esi
call fcn.0043510a
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, 0x10
jb 0x405887
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004053b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4069a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45077a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00417a2f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x406a60
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004319cd
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x46eeec
push eax
call fcn.00431bbb
push edi
push esi
call fcn.00417d77
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004195c1
mov esp, ebp
pop ebp
ret 4
Function at 0x407c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4509f8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x470070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
push 0x1c
call fcn.004195d2
mov ecx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0x1c]
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x4c], 0xf
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x20]
mov dword [edi + 4], esi
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], str....._srcPdfStats_stdafx.cpp
mov dword [edi + 0x18], eax
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp byte [esi], 0
jne 0x407cee
xor ecx, ecx
jmp 0x407cfc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407cf3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.00405180
mov dword [ebp - 0x48], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push dword [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0040c5a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x407d3f
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.004053b0
cmp byte [ebp - 0x10], 0
jne 0x407dfd
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp byte [esi], 0
jne 0x407d64
xor ecx, ecx
jmp 0x407d79
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407d70
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00405180
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2c]
push 0x2e
push str.more_than_one_flags_defined_with_the_same_name
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00405180
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00407ae0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x407dcf
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004053b0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp eax, 0x10
jb 0x407df6
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004053b0
push 0
call fcn.00439802
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40a540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450b88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40a66e
cmp byte [ebx + 0x3d], 0
je 0x40a66e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40a599
xor al, al
jmp 0x40a670
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0040a020
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40a5ff
sub eax, 1
je 0x40a603
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x40a656
xor bl, bl
jmp 0x40a658
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x40a638
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0043a184
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x40a5fb
cmp byte [ebx + 0x3d], 0
je 0x40a656
test esi, esi
jne 0x40a5c1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0040a0f0
jmp 0x40a5be
mov bl, 1
cmp ecx, 0x10
jb 0x40a66a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004053b0
mov al, bl
jmp 0x40a670
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004195c1
mov esp, ebp
pop ebp
ret
Function at 0x40ade0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4508a6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x470070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004195d2
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00417c74
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4160c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00432580
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x416133
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x46752c
jmp 0x41618c
push 0x467f50
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00447fe7
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0xc
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x41616c
xor ecx, ecx
jmp 0x416184
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416175
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00405cd0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004195c1
mov esp, ebp
pop ebp
ret
Function at 0x416630
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
push 0x178
mov dword [ebp - 0x2c], 0x178
call fcn.00439818
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4166c5
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x46752c
mov word [edi], ax
call fcn.00405cd0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x416841
inc ecx
push ecx
jmp 0x416836
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push 0
push 0
call esi
cmp eax, 0x6f
jne 0x41670d
push ebx
call fcn.0043510a
push dword [ebp - 0x2c]
call fcn.00439818
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x41670d
push 0x46752c
mov ecx, edi
call fcn.00405b70
lea ecx, [ebp - 0x28]
call fcn.00405b30
jmp 0x416841
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push 0
push 0
call esi
test eax, eax
jne 0x416805
mov esi, ebx
test ebx, ebx
je 0x416805
nop dword [eax]
cmp dword [esi + 0x34], 6
jne 0x416743
mov eax, dword [esi + 0x40]
cmp eax, 6
je 0x41674f
cmp eax, 0x47
je 0x41674f
mov esi, dword [esi + 8]
test esi, esi
jne 0x416730
jmp 0x416805
push str._02X__02X__02X__02X__02X__02X
lea ecx, [ebp - 0x60]
call fcn.00405b70
mov byte [ebp - 4], 1
lea edx, [ebp - 0x60]
movzx eax, byte [esi + 0x31]
lea ecx, [ebp - 0x44]
push eax
movzx eax, byte [esi + 0x30]
push eax
movzx eax, byte [esi + 0x2f]
push eax
movzx eax, byte [esi + 0x2e]
push eax
movzx eax, byte [esi + 0x2d]
push eax
movzx eax, byte [esi + 0x2c]
push eax
call fcn.00416aa0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4167c7
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4167aa
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004065d0
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x4167dc
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x416805
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00405ec0
push ebx
call fcn.0043510a
xor eax, eax
mov dword [edi + 0x14], 7
add esp, 4
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.004065d0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416841
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00405ec0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004195c1
mov esp, ebp
pop ebp
ret
Function at 0x416860
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
push 0x288
mov dword [ebp - 0x2c], 0x288
call fcn.00439818
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4168f5
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x46752c
mov word [edi], ax
call fcn.00405cd0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x416a78
inc ecx
push ecx
jmp 0x416a6d
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x2c]
push eax
push ebx
call esi
cmp eax, 0x6f
jne 0x416937
push ebx
call fcn.0043510a
push dword [ebp - 0x2c]
call fcn.00439818
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x416937
push 0x46752c
mov ecx, edi
call fcn.00405b70
lea ecx, [ebp - 0x28]
call fcn.00405b30
jmp 0x416a78
lea eax, [ebp - 0x2c]
push eax
push ebx
call esi
test eax, eax
jne 0x416a3c
mov esi, ebx
test ebx, ebx
je 0x416a3c
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x416960
cmp eax, 0x47
jne 0x416969
cmp dword [esi + 0x190], 6
je 0x416974
mov esi, dword [esi]
test esi, esi
jne 0x416950
jmp 0x416a3c
push str._02X__02X__02X__02X__02X__02X
lea ecx, [ebp - 0x60]
call fcn.00405b70
mov byte [ebp - 4], 1
lea edx, [ebp - 0x60]
movzx eax, byte [esi + 0x199]
lea ecx, [ebp - 0x44]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
call fcn.00416aa0
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4169fe
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4169e1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004065d0
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x416a13
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0
cmp eax, 8
jb 0x416a3c
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00405ec0
push ebx
call fcn.0043510a
xor eax, eax
mov dword [edi + 0x14], 7
add esp, 4
mov dword [edi + 0x10], 0
mov word [edi], ax
mov ecx, edi
lea eax, [ebp - 0x28]
push eax
call fcn.004065d0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416a78
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00405ec0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004195c1
mov esp, ebp
pop ebp
ret
Function at 0x416bb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x451f30
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x470070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], 0
call fcn.004160c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
jne 0x416c2a
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x46752c
mov word [esi], ax
call fcn.00405cd0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x416cb3
inc ecx
push ecx
jmp 0x416ca8
push ecx
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00416cd0
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push 0
cmovae eax, dword [ebp - 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, esi
test eax, eax
js 0x416c6b
push 0x467f50
lea edx, [ebp - 0x28]
call fcn.004063e0
add esp, 4
jmp 0x416c75
push 0x46752c
call fcn.00405b70
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416c8a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00405ec0
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 8
jb 0x416cb3
inc eax
push eax
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00405ec0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004195c1
mov esp, ebp
pop ebp
ret