joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4673d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00444a20
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00444aa0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00444aa0
lea ecx, [esi + 0xc]
call fcn.0045969e
lea ecx, [esi + 0x10]
call fcn.0045969e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00447620
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00447620
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00447620
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00459713
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00459713
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x445e68
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4675f8
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x445e78
call fcn.00446390
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x445f5b
cmp byte [edi], 0
je 0x445f5b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x445e9d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.00444840
test eax, eax
jne 0x445ebd
push 0x483418
lea ecx, [esi + 0x38]
call fcn.00459850
jmp 0x445f5b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.00444890
test eax, eax
jne 0x445eec
mov ecx, esi
call fcn.00444990
push edi
add esi, 0x38
push 0x4833f4
push esi
call fcn.004576e7
add esp, 0xc
jmp 0x445f5b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.00446c10
test eax, eax
je 0x445f54
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00446030
test eax, eax
jne 0x445f70
push edi
lea eax, [esi + 0x38]
push 0x4833d0
push eax
call fcn.004576e7
add esp, 0xc
mov ecx, esi
call fcn.00446390
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x446018
mov ecx, dword [0x483688]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.004576e7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.00444940
test eax, eax
jne 0x445fda
push 0x4833b4
lea ecx, [esi + 0x38]
call fcn.00459850
jmp 0x445fea
push 0xfa
mov ecx, esi
call fcn.00446c10
test eax, eax
jne 0x446007
mov ecx, esi
call fcn.00446390
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00459713
jmp 0x445f5b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00459713
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x45baa0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45bad8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00459b6e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00459b46
jmp 0x45bae4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45d192
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45d1d4
call fcn.00462c7d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d1d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d1cb
xor eax, eax
jmp 0x45d1dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d1e2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4631ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4631db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4631f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463113
jmp 0x4631f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4631f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463113
test edi, edi
mov eax, edi
jne 0x4631e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x414ca0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x4237a0
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.004027e9
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.004023d5
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.004027a0
add esp, 0x14
test eax, eax
je 0x414d2b
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x414e2e
mov eax, 0x426660
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414d60
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x414d80
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x414d94
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.00401fd3
push edi
mov esi, eax
push 0
push esi
call fcn.00405a30
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x426660
push edi
push esi
call fcn.004027cd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x414de5
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x422e80
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x414e2c
push esi
call fcn.00401dd8
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.0040113c
add esp, 0x314
ret

Function at 0x414ea0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x206
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call fcn.00405a30
add esp, 0xc
cmp dword [0x4260b0], 3
jne 0x414f01
push 0x104
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x422fa0
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040117b
add esp, 0xc
jmp 0x414f10
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [esp + 4]
push ecx
push 0x422fa4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.0040113c
add esp, 0x20c
ret
Function at 0x414f40
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414f74
or eax, eax
or edx, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x414f8d
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x414fa0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00405a30
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x415079
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x415045
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41501e
cmp word [esp + 0x118], 4
jb 0x415079
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 2
jae 0x415028
cmp eax, 1
jne 0x415079
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 6
jne 0x415079
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x41506f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret
cmp eax, 1
jne 0x415079
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040113c
add esp, 0x120
ret

Function at 0x415220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4236ac
mov edi, eax
push 0x83
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x415293
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00401fd3
push esi
mov edi, eax
push 0
push edi
call fcn.00405a30
push esi
push ebp
push edi
call fcn.00406be0
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x417800
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x425044]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x4276b0
push 0x67
push edi
call esi
push 0x64
push 0x4275e8
push 0x6d
push edi
call esi
mov eax, edi
call fcn.00415f20
mov eax, dword [ebp + 0x10]
mov edx, 0x4281b8
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x417850
call fcn.00414fa0
mov dword [0x4260b0], eax
mov ecx, 0x422fd4
mov eax, 0x4281b8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x417899
test dx, dx
je 0x417895
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x417899
add eax, 4
add ecx, 4
test dx, dx
jne 0x417873
xor eax, eax
jmp 0x41789e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4178b8
call fcn.00416380
test eax, eax
je 0x4178b8
call fcn.00414ca0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.00417070
add esp, 4
test eax, eax
jne 0x4178db
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0040113c
mov esp, ebp
pop ebp
ret 0x10
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00405a30
mov eax, dword [0x427e00]
add esp, 0xc
test eax, eax
jbe 0x41792e
cmp word [0x427e04], 0
jbe 0x41792e
push eax
mov esi, 0x42664c
call fcn.004150a0
mov cx, word [0x427e04]
add esp, 4
mov word [0x42665c], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x422fdc
mov edx, 0x4283c8
call fcn.00401000
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 8
push 0x3e8
call edi
call fcn.00416280
lea esi, [esp + 8]
call fcn.004154d0
push 0x422ff4
mov edx, esi
push 0x104
push edx
call fcn.0040117b
add esp, 0xc
push 0x4283c8
mov eax, esi
push 0x104
push eax
call fcn.0040117b
add esp, 0xc
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4179ce
push 0x1f4
call edi
push 1
push 0
push 0x422ff8
mov edx, esi
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00417520
call fcn.00414ca0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4096de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80e6b0]
jne 0x4096e8
repz ret
jmp fcn.0040f64e

Function at 0x411514
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00408033
and dword [ebp - 4], 0
cmp dword [0x810aec], 0
mov ebx, eax
jne 0x4115c5
push 0x4057b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411676
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4057a8
push edi
call esi
test eax, eax
je 0x411676
push eax
call fcn.00407fc1
mov dword [esp], 0x405798
push edi
mov dword [0x810aec], eax
call esi
push eax
call fcn.00407fc1
mov dword [esp], 0x405784
push edi
mov dword [0x810af0], eax
call esi
push eax
call fcn.00407fc1
mov dword [esp], 0x405768
push edi
mov dword [0x810af4], eax
call esi
push eax
call fcn.00407fc1
pop ecx
mov dword [0x810afc], eax
test eax, eax
je 0x4115c5
push 0x405750
push edi
call esi
push eax
call fcn.00407fc1
pop ecx
mov dword [0x810af8], eax
mov eax, dword [0x810af8]
cmp eax, ebx
je 0x41161d
cmp dword [0x810afc], ebx
je 0x41161d
push eax
call fcn.0040803c
push dword [0x810afc]
mov esi, eax
call fcn.0040803c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41161d
test edi, edi
je 0x41161d
call esi
test eax, eax
je 0x411614
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411614
test byte [ebp - 0xc], 1
jne 0x41161d
or dword [ebp + 0x10], 0x200000
jmp 0x411656
mov eax, dword [0x810af0]
cmp eax, ebx
je 0x411656
push eax
call fcn.0040803c
pop ecx
test eax, eax
je 0x411656
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411656
mov eax, dword [0x810af4]
cmp eax, ebx
je 0x411656
push eax
call fcn.0040803c
pop ecx
test eax, eax
je 0x411656
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x810aec]
call fcn.0040803c
pop ecx
test eax, eax
je 0x411676
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411678
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x417f85
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x417f94
pop dword [ebp - 0x40]
mov eax, 0x591e261d
add eax, 0xa7235977
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xd1c5edf3
add dword [ebp - 0x50], 0x7c8c5758
mov dword [ebp - 0x4c], 0xc2c3949c
sub dword [ebp - 0x4c], 0x90904857
mov dword [ebp - 0x48], 0x6f7f2980
sub dword [ebp - 0x48], 0x2332e552
mov dword [ebp - 0x44], 0xe9297ea9
sub dword [ebp - 0x44], 0xe9297ea9
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x494b53c2
sub dword [ebp - 0x50], 0xd4d8ea6c
mov dword [ebp - 0x4c], 0x17633728
sub dword [ebp - 0x4c], 0xd5f6d5b3
mov dword [ebp - 0x48], 0xd4789603
add dword [ebp - 0x48], 0x8ef6d669
mov dword [ebp - 0x44], 0xab4c4b0b
add dword [ebp - 0x44], 0x54b3b4f5
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xa3897e21
add eax, 0x5cb8b303
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3fb82
push 0
call eax
mov ecx, 0xe617b25b
add ecx, 0x19e89d4c
xor edi, edi
add edi, eax
mov ebx, 0x28320fc3
add ebx, 0xd811343d
add ebx, dword [ebp - 0x40]
mov esi, 0x7f772091
add esi, 0x5399451c
sub dword [ebp - 0x10], 0xfb084298
mov edx, dword [ebx]
xor dword [ebp - 0x20], 0x3177c82
sub edx, esi
xor dword [ebp - 0x14], 0x5115258
mov dword [edi], edx
xor dword [ebp - 0x10], 0x736da885
add edi, 4
add ebx, 4
loop 0x4180b3
add eax, 0x906d9ba4
sub eax, 0x906c6a35
xor ebx, ebx
add ebx, eax
add eax, 0xc6edc231
sub eax, 0xc6edc22c
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x40a270
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46557b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045a076
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a2f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00457f8d
mov eax, dword [eax]
push 0x5e01c0
push eax
call fcn.0044adf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045a301
test bl, bl
je 0x40a2f2
push 0x5e01c0
lea ecx, [esp + 0xc]
call fcn.0045a691
push 0x5e3d3c
lea ecx, [esp + 0xc]
call fcn.0045a691
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a32e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045a301
jmp 0x40a3f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a3b2
lea edx, [esp + 0x7c]
push 0x5e3d38
push edx
call fcn.0044adf4
add esp, 8
test eax, eax
je 0x40a3b2
lea eax, [esp + 0x7c]
push 0x5e3d34
push eax
call fcn.0044adf4
add esp, 8
test eax, eax
je 0x40a3b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a342
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045a301
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40abf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ac52
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ac60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4655fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ea1e0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ad98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40acc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a301
xor eax, eax
jmp 0x40ae0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045a43e
push esi
lea ecx, [esp + 0xc]
call fcn.0045a6cd
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40aded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040abf0
test eax, eax
jne 0x40aded
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040abf0
test eax, eax
jne 0x40aded
lea eax, [esp + 0x14]
push 0x5e3d50
push eax
call fcn.0044be30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40adcc
lea ecx, [esp + 0x14]
push 0x5e3d4c
push ecx
call fcn.0044bdb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40adcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40adcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045a3ee
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40acde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045a301
xor eax, eax
jmp 0x40ae0f
mov byte [esi], 0
push 0x5e3d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045a301
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4