joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4288fa
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550583
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
and dword [eax], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 4], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 8], 0
mov eax, dword [ebp - 0x20]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x15]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
and dword [ebp - 4], 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
call fcn.00405420
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
and dword [eax + 0x2c], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 0x30], 0
mov eax, dword [ebp - 0x20]
and dword [eax + 0x34], 0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret

Function at 0x428e0c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x334
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x334], ecx
mov eax, dword [ebp - 0x334]
cmp dword [eax + 0x30], 0
je 0x428eec
or dword [ebp - 8], 0xffffffff
and dword [ebp - 0x328], 0
and dword [ebp - 0x118], 0
and dword [ebp - 0x220], 0
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x330], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x32c], edx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x334]
push dword [eax + 0x30]
call fcn.00473fb0
add esp, 0x14
cmp dword [ebp - 8], 0xffffffff
jne 0x428eb4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x428eee
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 8]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x428ee8
xor al, al
jmp 0x428eee
mov al, 1
jmp 0x428eee
xor al, al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b303a
leave
ret 4
Function at 0x43206e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x552b84
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5b4a28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2d]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], eax
and dword [ebp - 4], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
push eax
call fcn.00431be8
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4320d4
push 0x56e06c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
test eax, eax
jbe 0x432151
xor eax, eax
shl eax, 2
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax]
mov dword [ecx], eax
and dword [ebp - 0x24], 0
jmp 0x4320fe
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
sar eax, 2
cmp dword [ebp - 0x24], eax
jae 0x432151
cmp dword [ebp - 0x24], 0
jne 0x432130
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*4]
push 0x56dfac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b81fa
add esp, 0x10
jmp 0x43214f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*4]
push dword [ebp + 0xc]
push str._s__lu
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004b81fa
add esp, 0x14
jmp 0x4320f7
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004336de
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret
Function at 0x442772
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], ecx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x9c0], 1
jmp 0x4427ad
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c0]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x9c0], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x9c0], 0x270
jae 0x442802
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c0]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x9c0]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 4]
shr ecx, 0x1e
mov edx, dword [ebp - 8]
xor ecx, dword [edx + eax*4 - 4]
imul ecx, ecx, 0x6c078965
mov eax, dword [ebp - 8]
add ecx, dword [eax + 0x9c0]
and ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x9c0]
mov edx, dword [ebp - 8]
mov dword [edx + eax*4], ecx
jmp 0x44279a
leave
ret 4
Function at 0x443109
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, dword [ebp - 4]
and dword [eax + 0x54], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x58], 0
mov eax, dword [ebp - 4]
and dword [eax + 0x5c], 0
leave
ret
Function at 0x44ab4e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0xc], 1
jl 0x44ab65
cmp dword [ebp + 0xc], 8
jg 0x44ab65
mov byte [ebp - 8], 1
jmp 0x44ab69
mov byte [ebp - 8], 0
push str.bad_pack_level
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0044895d
add esp, 0xc
mov eax, dword [ebp + 8]
and dword [eax + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x44abac
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
and dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.004b7e80
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x570272]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x570270]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x570274]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x570276]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x44ac35
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x44ac4a
cmp dword [ebp + 0xc], 8
jl 0x44ac4a
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov eax, dword [ebp + 8]
and dword [eax + 0x6af84], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov eax, dword [ebp - 4]
shl eax, 1
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x44aca6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x44acbf
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 1
mov eax, dword [ebp + 8]
and dword [eax + 0x6af90], 0
jmp 0x44ad29
mov eax, dword [ebp + 8]
and dword [eax + 0x6af8c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x44ace1
push dword [ebp + 8]
call fcn.0044b06d
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x6af7c], 0
and dword [ebp - 4], 0
jmp 0x44acf8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x44ad29
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 0x1af70]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x44acf1
leave
ret
Function at 0x44c8e1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x44c8f1
xor eax, eax
jmp 0x44ca74
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x44ca3a
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x44c8fa
cmp dword [ebp + 0x10], 0
je 0x44ca6e
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x5705b8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x44ca40
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x44d20c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x18], 0
je 0x44d345
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x20]
jb 0x44d314
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
shl eax, 1
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x1c]
add ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x44d259
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x20]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x44d265
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44d291
mov eax, 0x300
jmp 0x44d379
and dword [ebp - 0xc], 0
push dword [ebp - 4]
push 0
push 0
push 0xf001f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44d2ca
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 8], 0
mov eax, 0x300
jmp 0x44d379
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
push dword [ebp - 0xc]
call fcn.004b3250
add esp, 0xc
mov eax, dword [ebp - 0x14]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0x1c]
push eax
call fcn.004b3250
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp + 0xc]
jmp 0x44d379
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x44d36d
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
jmp 0x44d379
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], 0x1000000
xor eax, eax
leave
ret 8
Function at 0x44d8e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x58], 0
je 0x44d989
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
cmp eax, dword [ecx + 0x5c]
jb 0x44d912
xor eax, eax
jmp 0x44d9f3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
sub eax, dword [ecx + 0x60]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jbe 0x44d92f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x60]
push eax
push dword [ebp + 8]
call fcn.004b3250
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x60]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x48]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
push dword [ebp - 4]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x4c]
call fcn.0044c8e1
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 4]
jmp 0x44d9f3
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x50], 0
je 0x44d9e7
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x44d9b7
xor eax, eax
jmp 0x44d9f3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x48]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x4c]
call fcn.0044c8e1
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x4c], eax
mov eax, dword [ebp - 0xc]
jmp 0x44d9f3
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc], 0x1000000
xor eax, eax
leave
ret 8
Function at 0x44eada
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x258], 0
push 0x103
push 0
lea eax, [ebp - 0x257]
push eax
call fcn.004b7e80
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x44eb26
push 4
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0044e8df
add esp, 0x14
jmp 0x44eb2d
xor eax, eax
jmp 0x44ed38
push dword [ebp + 0xc]
lea eax, [ebp - 0x258]
push eax
call fcn.004b9c20
pop ecx
pop ecx
push 0x570d18
lea eax, [ebp - 0x258]
push eax
call fcn.004b9c30
pop ecx
pop ecx
push dword [ebp + 0x10]
lea eax, [ebp - 0x258]
push eax
call fcn.004b9c30
pop ecx
pop ecx
push 0x570d1c
lea eax, [ebp - 0x258]
push eax
call fcn.004b9c30
pop ecx
pop ecx
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x44eb9f
xor eax, eax
jmp 0x44ed38
mov byte [ebp - 0x149], 1
movzx eax, byte [ebp - 0x149]
test eax, eax
je 0x44ed29
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x44ed00
push 0x570d20
lea eax, [ebp - 0x11c]
push eax
call fcn.004b9f43
pop ecx
pop ecx
test eax, eax
je 0x44ebfe
push 0x570d24
lea eax, [ebp - 0x11c]
push eax
call fcn.004b9f43
pop ecx
pop ecx
test eax, eax
jne 0x44ec00
jmp 0x44eba6
mov eax, dword [ebp - 0x148]
and eax, 0x10
je 0x44ec83
mov byte [ebp - 0x368], 0
push 0x103
push 0
lea eax, [ebp - 0x367]
push eax
call fcn.004b7e80
add esp, 0xc
push dword [ebp + 0x10]
lea eax, [ebp - 0x368]
push eax
call fcn.004b9c30
pop ecx
pop ecx
push 0x570d28
lea eax, [ebp - 0x368]
push eax
call fcn.004b9c30
pop ecx
pop ecx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x368]
push eax
call fcn.004b9c30
pop ecx
pop ecx
lea eax, [ebp - 0x368]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044eada
add esp, 0xc
test eax, eax
jne 0x44ec81
xor eax, eax
jmp 0x44ed38
jmp 0x44ecfe
mov byte [ebp - 0x470], 0
push 0x103
push 0
lea eax, [ebp - 0x46f]
push eax
call fcn.004b7e80
add esp, 0xc
push dword [ebp + 0x10]
lea eax, [ebp - 0x470]
push eax
call fcn.004b9c20
pop ecx
pop ecx
push 0x570d2c
lea eax, [ebp - 0x470]
push eax
call fcn.004b9c30
pop ecx
pop ecx
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x470]
push eax
call fcn.004b9c30
pop ecx
pop ecx
push 2
push 0
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x470]
push eax
push dword [ebp + 8]
call fcn.0044e8df
add esp, 0x14
test eax, eax
je 0x44ecfe
xor eax, eax
jmp 0x44ed38
jmp 0x44ed24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x44ed14
mov byte [ebp - 0x149], 0
jmp 0x44ed24
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44ed38
jmp 0x44eba6
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b303a
leave
ret
Function at 0x45210f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557312
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5b4a28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x70], ecx
lea eax, [ebp - 0x5d]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.0041bda0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x70]
call fcn.0043c1ae
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x452195
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 2
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041bda0
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x51]
jmp 0x4522ad
mov dword [ebp - 0x38], 0x34
mov byte [ebp - 0x39], 0
cmp dword [ebp - 0x18], 8
jb 0x4521ae
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
jmp 0x4521b4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x78], eax
push 0
push dword [ebp - 0x78]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x45228d
push dword [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.004525b9
mov byte [ebp - 4], 3
push dword [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.00452626
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x18], 8
jb 0x4521f9
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
jmp 0x4521ff
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x7c], eax
push dword [ebp - 0x40]
push dword [ebp - 0x34]
push 0
push dword [ebp - 0x7c]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45227d
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x570f10
push dword [ebp - 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x45227d
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov word [ecx], ax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 8]
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov word [ecx + 2], ax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov word [ecx + 4], ax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc]
and eax, 0xffff
mov ecx, dword [ebp + 8]
mov word [ecx + 6], ax
mov byte [ebp - 0x39], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x50]
call fcn.0043dc0b
mov byte [ebp - 4], 1
mov al, byte [ebp - 0x39]
mov byte [ebp - 0x52], al
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041bda0
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b303a
leave
ret 4
Function at 0x453811
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x570f48
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x453848
jmp 0x45388c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x570f78
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0
je 0x453876
jmp 0x45388c
mov eax, dword [ebp - 8]
imul eax, eax, 0xf4240
xor ecx, ecx
mov dword [0x5b3f58], eax
mov dword [0x5b3f5c], ecx
leave
ret