joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov edx, 0x40906e
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
mov dword [ebp - 0x26c], eax
call dbg.path_combine
test eax, eax
je 0x4020bf
lea edi, [ebp - 0x268]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [sym.imp.ucrtbase.dll_free]
sub esp, 8
mov dword [esp], esi
mov dword [ebp - 0x270], eax
call eax
cmp ebx, 0xffffffff
je 0x4020ad
lea esi, [ebp - 0x23c]
mov dword [esp + 4], 0x409072
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40208d
mov dword [esp + 4], 0x409076
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x40208d
mov eax, dword [ebp - 0x26c]
mov edx, esi
call dbg.path_combine
test eax, eax
je 0x40208d
test byte [ebp - 0x268], 0x10
je 0x4020d0
mov dword [ebp - 0x274], eax
call sym._delete_directory.isra.0
mov edx, dword [ebp - 0x274]
mov dword [esp], edx
mov eax, dword [ebp - 0x270]
call eax
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x40202d
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov eax, dword [ebp - 0x26c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov dword [ebp - 0x274], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov edx, dword [ebp - 0x274]
sub esp, 4
jmp 0x402082
Function at 0x402590
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
call sym._expand_expression.isra.0
mov ecx, dword [esi + 0x10]
mov ebx, eax
test ecx, ecx
je 0x4025f8
test eax, eax
je 0x402640
cmp word [ebx], 0
je 0x402650
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4025c8
sub eax, ebx
add eax, 2
mov edx, dword [ebp + 8]
test edx, edx
je 0x402605
mov esi, 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
test ebx, ebx
jne 0x4025b9
mov edx, dword [ebp + 8]
test edx, edx
jne 0x4025dd
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov eax, dword [esi + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._RegSetValueExW_24
sub esp, 0x18
test eax, eax
je 0x4025dd
test byte [section..data], 2
jne 0x40265a
xor esi, esi
jmp 0x4025e2
lea esp, [ebp - 0xc]
xor esi, esi
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x4025d6
mov esi, dword [esi + 8]
test esi, esi
je 0x4026d4
mov eax, esi
shr eax, 0x10
je 0x4026c2
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x409015
test edx, edx
jne 0x402693
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0xc], str.Failed_to_set_registry_key__s_n
mov dword [esp + 8], str.install_registry_string
mov dword [esp + 4], 0x408000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x4025e2
mov dword [esp + 4], esi
mov dword [esp], 0x409008
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402693
mov eax, 0x40900e
jmp 0x402693
Function at 0x407230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40728b
cmp byte [esi + ebx - 1], 0xa
je 0x40725f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40b0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4077e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x40b0b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x4079a0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x40b0b4]
movzx eax, al
bt eax, esi
jae 0x407a00
mov ecx, dword [0x40b0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x4078a6
test byte [0x408028], 8
jne 0x407940
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x408038], 8
jne 0x4078f0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x407875
cmp esi, 3
jbe 0x4078b0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x40ae90]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x407875
mov ecx, dword [0x40b0b4]
test ecx, ecx
je 0x4079e0
mov dword [esp], 0x408038
call dword [0x40b0b4]
test al, 8
je 0x40784c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40784c
mov ebx, dword [0x40b0b4]
test ebx, ebx
je 0x4079c0
mov dword [esp], 0x408028
call dword [0x40b0b4]
test al, 8
je 0x407839
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x40783f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b0b4
call sym._load_func.part.0
jmp 0x407800
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b0b4
call sym._load_func.part.0
jmp 0x40794a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x40b0b4
call sym._load_func.part.0
jmp 0x4078fe
mov eax, 0xffffffff
jmp 0x4078a6
Function at 0x407b70
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x533e359d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x7f8469be
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401a30
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41b0ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov esi, ecx
mov dword [esp + 0x10], 0
mov eax, dword [0x4234f0]
mov dword [esp + 0x20], 1
mov dword [esp + 8], eax
lea ecx, [esp + 4]
push 1
push ecx
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.00401ed0
push 0
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
mov byte [esp + 0x2c], 3
call fcn.00411cb3
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x30], 4
call fcn.00411cb3
mov ecx, esi
mov byte [esp + 0x2c], 3
call fcn.00401770
test eax, eax
je 0x401aef
push ecx
lea edx, [esp + 8]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00411cb3
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00401d30
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 5
call fcn.0041202b
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.00411f3e
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x28]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00411cb3
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 2
call fcn.00411f3e
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.00411f3e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x18]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 8
Function at 0x401b50
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x41b140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x810
mov al, byte [0x426b80]
push ebx
push esi
mov esi, ecx
push edi
mov byte [esp + 0x1c], al
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x1d]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x4234f0]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0x830]
mov ebx, 1
cmp eax, 6
mov dword [esp + 0x824], ebx
ja case.0x401bb7.5
jmp dword [eax*4 + 0x401d10]
push 0
lea edx, [esp + 0x20]
push 0x26
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp case.0x401bb7.5
push 0
lea eax, [esp + 0x20]
push 6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp case.0x401bb7.5
lea ecx, [esp + 0x1c]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.0x401bb7.5
lea edx, [esp + 0x1c]
push 0x800
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.0x401bb7.5
lea eax, [esp + 0x1c]
push 0x800
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp case.0x401bb7.5
lea ecx, [esp + 0x1c]
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x1c]
lea ecx, [esp + 0xc]
push edx
call fcn.0041207b
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jae 0x401c6a
mov esi, dword [esp + 0x82c]
push 0x426b80
mov ecx, esi
call fcn.00411fac
mov dword [esp + 0x10], ebx
jmp 0x401ce0
mov byte [esp + 0x1f], 0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0xc]
push eax
call fcn.0041207b
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4230d0
call fcn.00411fac
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x834], 2
call fcn.00411cb3
mov ecx, esi
mov byte [esp + 0x830], bl
call fcn.004031d0
test eax, eax
jne 0x401cc9
push 0x4230d0
lea ecx, [esp + 0x10]
call fcn.004122ce
mov esi, dword [esp + 0x82c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00411cb3
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x824], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x81c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x81c
ret 8
Function at 0x401ed0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov al, byte [0x426b80]
mov edx, ecx
push edi
mov byte [esp + 8], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
mov ecx, edx
stosb byte es:[edi], al
call fcn.00401b50
mov eax, dword [eax]
lea edx, [esp + 8]
push edx
push 0
push 0x426b80
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [esp + 4]
call fcn.00411f3e
mov eax, dword [esp + 0x114]
pop edi
test eax, eax
jne 0x401f3d
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [esp + 0x110]
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.00411fac
mov eax, esi
pop esi
add esp, 0x108
ret 8

Function at 0x401f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b1e2
push eax
mov eax, 0x4e30
mov dword fs:[0], esp
call fcn.00406130
push ebx
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x4e54]
mov dword [esp + 8], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov edx, dword [eax - 8]
mov dword [esp + 0x4e40], 3
cmp edx, esi
jne 0x401fc3
add ecx, 4
push ecx
lea ecx, [esp + 0x4e58]
call fcn.0041202b
mov eax, dword [esp + 0x4e54]
cmp dword [eax - 8], esi
jne 0x401fe9
mov esi, dword [esp + 0x4e48]
push 0x426b80
mov ecx, esi
call fcn.00411fac
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x4020c3
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push edx
push esi
push 0x20019
push esi
push esi
push esi
push eax
mov eax, dword [esp + 0x4e78]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402024
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x426b80
jmp 0x4020ac
mov ecx, dword [esp + 0x4e4c]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push esi
push esi
push ecx
push edx
mov dword [esp + 0x28], 0x4e20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402072
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x4e48]
lea ecx, [esp + 0x4e50]
push ecx
mov ecx, esi
call fcn.00411cb3
jmp 0x4020ba
mov edx, dword [esp + 8]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4020a7
mov esi, dword [esp + 0x4e48]
lea eax, [esp + 0x4e50]
push eax
mov ecx, esi
call fcn.00411cb3
jmp 0x4020ba
lea ecx, [esp + 0x18]
push ecx
mov esi, dword [esp + 0x4e4c]
mov ecx, esi
call fcn.00411fac
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x4e4c]
mov byte [esp + 0x4e40], 2
call fcn.00411f3e
lea ecx, [esp + 0x4e50]
mov byte [esp + 0x4e40], bl
call fcn.00411f3e
lea ecx, [esp + 0x4e54]
mov byte [esp + 0x4e40], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x4e38]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e3c
ret 0x14
Function at 0x402240
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41b228
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], 2
mov edx, dword [eax - 8]
test edx, edx
jne 0x40227c
add ecx, 4
push ecx
lea ecx, [esp + 0x24]
call fcn.0041202b
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4022d7
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4022cc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 8]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402317
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411f3e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.00411f3e
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411f3e
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x10], 1
call fcn.00411f3e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.00411f3e
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
call fcn.00411f3e
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x402860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41b347
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], 0
push 0xffffffffffffffff
push ecx
mov ebx, 1
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x426b80
mov dword [esp + 0x30], ebx
call fcn.00411fac
push ecx
mov byte [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4230d0
call fcn.00411fac
push ecx
lea eax, [esp + 0x40]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 3
call fcn.00411cb3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
push ecx
mov ecx, esi
call fcn.004030a0
lea ecx, [esp + 0xc]
call fcn.00411f3e
push 0x5c
lea ecx, [esp + 0x34]
call fcn.004110b9
cmp eax, 0xffffffff
jne 0x40290b
mov esi, dword [esp + 0x2c]
push 0x426b80
mov ecx, esi
call fcn.00411fac
mov dword [esp + 8], ebx
jmp 0x402940
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0x38]
call fcn.00411041
mov esi, dword [esp + 0x2c]
push 0x4230d0
push eax
push esi
mov byte [esp + 0x30], 4
call fcn.00412187
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebx
mov byte [esp + 0x24], bl
call fcn.00411f3e
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 8
Function at 0x402df0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b41f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x18]
push edi
xor eax, eax
push ecx
push eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
call sub.iphlpapi.dll_GetAdaptersInfo
mov edx, dword [esp + 0x1c]
push edx
call fcn.00411c7f
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
mov eax, dword [0x4234f0]
mov dword [esp + 0x18], eax
mov ebx, 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
lea ecx, [esi + 8]
lea edx, [esp + 0x14]
push ecx
push 0x423124
push edx
mov byte [esp + 0x38], 3
call fcn.00411461
add esp, 0xc
lea eax, [esi + 0x10c]
lea ecx, [esp + 0x10]
push eax
push 0x423124
push ecx
call fcn.00411461
xor edx, edx
add esp, 0xc
mov dl, byte [esi + 0x199]
xor eax, eax
mov al, byte [esi + 0x198]
xor ecx, ecx
mov cl, byte [esi + 0x197]
push edx
push eax
xor edx, edx
mov dl, byte [esi + 0x196]
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esi + 0x195]
mov cl, byte [esi + 0x194]
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str._02X_02X_02X_02X_02X_02X
push edx
call fcn.00411461
mov eax, dword [esp + 0x58]
mov edi, dword [esi]
add esp, 0x20
test eax, eax
je 0x402f5c
test edi, edi
je 0x402f5c
lea eax, [edi + 8]
lea ecx, [esp + 0x14]
push eax
push 0x423124
push ecx
call fcn.00411461
add esp, 0xc
lea edx, [edi + 0x10c]
lea eax, [esp + 0x10]
push edx
push 0x423124
push eax
call fcn.00411461
xor ecx, ecx
add esp, 0xc
mov cl, byte [edi + 0x199]
xor edx, edx
mov dl, byte [edi + 0x198]
xor eax, eax
mov al, byte [edi + 0x197]
push ecx
push edx
xor ecx, ecx
mov cl, byte [edi + 0x196]
push eax
xor edx, edx
xor eax, eax
mov dl, byte [edi + 0x195]
mov al, byte [edi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._02X_02X_02X_02X_02X_02X
push ecx
call fcn.00411461
mov edi, dword [edi]
add esp, 0x20
jmp 0x402edd
push esi
call fcn.00411ca8
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, ebx
jne 0x402f90
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call fcn.00411cb3
mov esi, dword [esp + 0x38]
mov ecx, ebp
push esi
call fcn.004036d0
mov dword [esp + 0x20], ebx
jmp 0x402fc8
cmp eax, 2
jne 0x402fb4
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.00411cb3
mov esi, dword [esp + 0x38]
mov ecx, ebp
push esi
call fcn.004036d0
jmp 0x402fc4
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00411cb3
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.00411f3e
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.00411f3e
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4039d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x41b636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], 0
mov edi, 1
mov dword [esp + 0x168], edi
mov eax, dword [0x4234f0]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x174]
push 0x4230d0
lea edx, [esp + 0x1c]
push ecx
push edx
mov byte [esp + 0x174], 3
call fcn.00412187
lea ecx, [esp + 0x178]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x174], 4
call fcn.00412121
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00411f3e
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 3
call fcn.00411f3e
cmp esi, 0xffffffff
jne 0x403a93
mov esi, dword [esp + 0x170]
push 0x426b80
mov ecx, esi
call fcn.00411fac
mov dword [esp + 0x1c], edi
jmp 0x403bf0
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov eax, dword [esp + 0x17c]
test eax, eax
jne 0x403abf
mov edx, dword [esp + 0x20]
and edx, 0x10
cmp dl, 0x10
jne 0x403b25
lea eax, [esp + 0x20]
push eax
push esi
call ebp
mov edi, eax
jmp 0x403b73
mov ecx, dword [esp + 0x20]
and ecx, 0x10
cmp cl, 0x10
je 0x403ada
lea edx, [esp + 0x20]
push edx
push esi
call ebp
mov edi, eax
jmp 0x403b73
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x10]
push eax
call fcn.00411fac
mov ecx, dword [esp + 0x10]
push 0x423144
push ecx
call fcn.0040623a
add esp, 8
test eax, eax
je 0x403b58
mov edx, dword [esp + 0x10]
push 0x423140
push edx
call fcn.0040623a
add esp, 8
test eax, eax
je 0x403b58
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 3
call fcn.00411f3e
mov eax, dword [esp + 0x180]
push 1
push eax
push ecx
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00411fac
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.004038d0
lea ecx, [esp + 0x20]
push ecx
push esi
call ebp
mov edi, eax
jmp 0x403b73
lea edx, [esp + 0x20]
push edx
push esi
call ebp
lea ecx, [esp + 0x10]
mov edi, eax
mov byte [esp + 0x168], 3
call fcn.00411f3e
test edi, edi
jne 0x403a99
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x184]
test eax, eax
je 0x403bd5
mov eax, dword [esp + 0x180]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00411cb3
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00403520
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 6
call fcn.0041202b
lea ecx, [esp + 0x18]
mov byte [esp + 0x168], 3
call fcn.00411f3e
mov esi, dword [esp + 0x170]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00411cb3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call fcn.00411f3e
lea ecx, [esp + 0x174]
mov byte [esp + 0x168], 1
call fcn.00411f3e
lea ecx, [esp + 0x178]
mov byte [esp + 0x168], 0
call fcn.00411f3e
mov ecx, dword [esp + 0x160]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret 0x18