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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560f93
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CSpyModule.0
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CPRNBaseLogSaver.0
mov dword [ecx + 4], 0
mov byte [ebp - 4], 1
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
lea eax, [ecx + 0x14]
mov dword [ecx + 0xc], 0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 4
lea eax, [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 6
lea eax, [ecx + 0x1c]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 8
lea eax, [ecx + 0x20]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 0xa
lea eax, [ecx + 0x24]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 0xc
lea eax, [ecx + 0x28]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 0xe
lea eax, [ecx + 0x2c]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 0x10
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x452df0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561149
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x120]
mov dword [ebp - 0x124], 0x114
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
je 0x452e5a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [0x5ba198]
test ecx, ecx
jne 0x452f1d
or esi, 0xffffffff
mov dword [ebp - method.CLockMgr_class_CCSWrapper_.virtual_0], vtable.CLockMgr_class_CCSWrapper_.0
mov dword [ebp - 0x12c], 0x5ba89c
mov dword [ebp - 0x128], 1
cmp dword [0x5ba89c], ecx
je 0x452eb4
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
mov ecx, 0x2710
cmovne esi, ecx
push esi
push dword [0x5ba89c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x5ba198]
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x452ef6
mov eax, dword [0x5c40c0]
test al, 1
jne 0x452eeb
or eax, 1
mov dword [0x5c40c0], eax
mov byte [ebp - 4], 1
push ecx
call fcn.00452c00
push 0x56c1c0
call fcn.00529798
add esp, 4
mov byte [ebp - 4], 0
mov ecx, 0x5c40c4
mov dword [0x5ba198], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x5ba89c]
mov dword [ebp - method.CLockMgr_class_CCSWrapper_.virtual_0], vtable.CLockMgr_class_CCSWrapper_.0
test eax, eax
je 0x452f1d
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x5ba198]
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x4534e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.004535d0
cmp dword [ebp + 8], eax
je 0x453572
mov ecx, esi
push edi
test eax, eax
jne 0x453577
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x453571
lea edx, [esi + 0x10]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453510
sub ecx, edi
sar ecx, 1
je 0x453534
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x210], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x453710
push 0
push 0
call fcn.0052cf98
add esp, 0x18
cmp eax, 0xffffffff
je 0x453571
mov ecx, esi
call fcn.004535d0
test eax, eax
jne 0x453571
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov ecx, esi
call fcn.004535d0
test eax, eax
je 0x453562
pop edi
pop esi
pop ebp
ret 4
call fcn.004535d0
test eax, eax
je 0x4535b8
mov eax, dword [esi + 0x210]
test eax, eax
je 0x453591
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, esi
call fcn.004535d0
test eax, eax
je 0x4535b1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call edi
mov ecx, esi
call fcn.004535d0
test eax, eax
jne 0x4535a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov eax, dword [esi + 0x210]
test eax, eax
je 0x453571
pop edi
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x4543b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
test edi, edi
je 0x454417
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push esi
mov esi, dword [ebp + 8]
push esi
push edi
call ebx
test eax, eax
je 0x454410
mov ecx, dword [ebp - 4]
cmp dword [esi + 4], ecx
je 0x454410
mov eax, 0xcccccccd
mul dword [esi + 0x18]
shr edx, 3
cmp edx, 0x3e8
jae 0x4543f3
mov edx, 0x3e8
jmp 0x454401
cmp edx, 0x2710
mov eax, 0x2710
cmova edx, eax
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
call ebx
test eax, eax
jne 0x4543d1
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x454690
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56141c
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x5b3680]
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
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
mov edx, str.ProcObsrv.inf
push eax
lea ecx, [ebp - 0x218]
call fcn.00454230
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 4
cmp eax, 1
je 0x45471c
call esi
test eax, eax
je 0x45471c
xor al, al
jmp 0x4547cf
cmp dword [0x5ba1a4], 0
je 0x454715
push 0x58b8f0
lea ecx, [ebp - 0x424]
call fcn.004031c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x428]
call fcn.004031c0
mov byte [ebp - 4], 1
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call dword [0x5ba1a4]
test eax, eax
jne 0x454781
push 0xf01ff
push str.ProcObsrv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4547eb
call esi
xor bl, bl
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x428]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4547a9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x424]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4547cd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.005295e2
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x4547fa
mov bl, 1
jmp 0x4547fe
call esi
xor bl, bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call dword [0x5ba1a0]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
jmp 0x454783
Function at 0x454830
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf01ff
mov edi, ecx
push str.ProcObsrv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x454873
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4548b4
lea eax, [ebp - 0x20]
mov edx, 1
push eax
mov ecx, edi
call fcn.004543b0
add esp, 4
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x454898
call edi
xor bl, bl
jmp 0x45489a

Function at 0x454a60
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
test edi, edi
je 0x454b61
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x454a90
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
xor al, al
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
movzx eax, ax
dec eax
push ebx
cmp eax, 3
ja case.default.0x454a9d
jmp dword [eax*4 + 0x454b68]
push 0xf01ff
push str.ProcObsrv
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x454ad1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x454b01
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x420
je 0x454b08
call edi
push esi
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
call fcn.00454830
push esi
mov bl, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
mov ecx, esi
call fcn.00454420
add esp, 4
mov bl, al
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
call fcn.00454690
push esi
mov bl, al
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
xor al, al
pop edi
pop ebp
ret
Function at 0x454b80
Capabilities:
Get common file path

Disassembly:
push esi
push 0x20a
call fcn.0052d28b
mov esi, eax
add esp, 4
test esi, esi
jne 0x454b96
pop esi
ret
push ebx
push edi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
test ebx, ebx
je 0x454bf0
mov edi, 0x104
sub edi, ebx
cmp edi, 0x26
jb 0x454bf0
push str.System32Drivers_
mov edx, edi
mov ecx, esi
call fcn.004542b0
test eax, eax
js 0x454bf0
sub edi, 0x26
add ebx, 0x33
cmp edi, ebx
jb 0x454bf0
push str.ProcObsrv.sys
mov edx, edi
mov ecx, esi
call fcn.004542b0
test eax, eax
js 0x454bf0
xor eax, eax
mov word [esi + ebx*2], ax
mov eax, esi
pop edi
pop ebx
pop esi
ret
push esi
call fcn.0052adae
add esp, 4
xor eax, eax
pop edi
pop ebx
pop esi
ret

Function at 0x454c00
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.IsWow64Process
mov ebx, ecx
mov dword [ebp - 0x210], 0
push str.kernel32
mov dword [ebp - 0x218], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x454c54
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00531bd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [ebp - 0x210], 0
lea ecx, [ebp - 0x20c]
push ebx
mov edx, str.ProcObsrv64.sys
jne 0x454c98
mov edx, str.ProcObsrv.sys
call fcn.00454230
add esp, 4
cmp eax, 1
je 0x454cba
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x21c], edi
cmp edi, 0xffffffff
je 0x454d3e
cmp dword [ebp - 0x210], 0
jne 0x454d7d
call fcn.00454b80
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x454d3e
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x454d63
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov esi, eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
jne 0x454d51
push dword [ebp - 0x214]
call fcn.0052adae
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x214]
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x21c]
push esi
mov edx, 0x104
mov ecx, ebx
call fcn.00402b80
push esi
test eax, eax
js 0x454d36
call fcn.0052adae
add esp, 4
test edi, edi
je 0x454d88
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005295e2
mov esp, ebp
pop ebp
ret
Function at 0x454f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5614d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5b3680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x10], 0
jne 0x455060
lea ecx, [ebp - 0x18]
call fcn.00482490
mov dword [ebp - 4], 0
mov edx, eax
push str.processes.log
lea ecx, [ebp - 0x14]
call fcn.00415f60
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [esi + 0x38]
push eax
call fcn.00416320
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x454f84
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x454fa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], 0
push 0x581a44
call fcn.00402600
push 0
lea ecx, [esi + 0x20]
push 0x581a44
call fcn.00402600
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push 0x4550f0
push 0
push 0
movsd qword [esi + 0x28], xmm0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [ebp - 0x1c], 0
mov byte [esi + 0x11], 0
call fcn.0052cf98
add esp, 0x18
mov dword [esi + 0x14], eax
test eax, eax
jne 0x45503e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x455022
movzx eax, ax
or eax, 0x80070000
push 0x58bb80
push eax
lea ecx, [ebp - 0x2c]
call fcn.00455be0
push 0x5afc58
lea eax, [ebp - 0x2c]
push eax
call fcn.00532408
cmp eax, 0xffffffff
jne 0x45505c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x455055
movzx eax, ax
or eax, 0x80070000
push str.m_hThread____HANDLE__1
jmp 0x455027
mov byte [esi + 0x10], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x456580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5618d1
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x5b3680]
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
mov dword [ebp - 0x490], ebx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x484], edi
movlpd qword [ebp - 0x480], xmm0
call fcn.00402a00
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4565e9
push 0x80004005
call fcn.004027b0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x478], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x478]
push esi
push edi
push 0x58bcbc
push eax
call fcn.00415d20
add esp, 0x10
cmp byte [ebx + 0x40], 0
jne 0x456751
lea eax, [ebp - 0x470]
push eax
push dword [ebp - 0x478]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x48c], esi
cmp esi, 0xffffffff
je 0x456751
mov edx, dword [ebp - 0x47c]
lea ebx, [ebp - 0x220]
mov eax, dword [ebp - 0x480]
sub ebx, edi
mov dword [ebp - 0x474], edx
mov dword [ebp - 0x47c], eax
xor eax, eax
push 0x20a
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00531bd0
add esp, 0xc
mov eax, edi
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [ebx + eax - 2], cx
test cx, cx
jne 0x456682
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
jmp 0x4566a0
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4566a0
mov eax, dword [0x58af04]
lea edx, [ebp - 0x444]
mov dword [edi], eax
mov esi, edx
jmp 0x4566c0
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4566c0
lea edi, [ebp - 0x220]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4566d6
mov ecx, edx
lea eax, [ebp - 0x470]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x47c]
add esi, dword [ebp - 0x450]
mov dword [ebp - 0x47c], esi
mov esi, dword [ebp - 0x474]
adc esi, dword [ebp - 0x454]
push eax
mov dword [ebp - 0x474], esi
mov esi, dword [ebp - 0x48c]
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x456742
mov eax, dword [ebp - 0x490]
mov edi, dword [ebp - 0x484]
cmp byte [eax + 0x40], 0
je 0x456662
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x47c]
jmp 0x45676e
xorps xmm0, xmm0
movlpd qword [ebp - 0x488], xmm0
mov eax, dword [ebp - 0x484]
mov ebx, dword [ebp - 0x488]
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp - 0x478]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x456795
mov ecx, dword [edi]
push edi
mov esi, dword [ecx]
call dword [esi + 4]
mov eax, ebx
mov edx, dword [ebp - 0x474]
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.005295e2
mov esp, ebp
pop ebp
ret 8
Function at 0x458ed0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x561ed1
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x5b3680]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x264]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push eax
mov dword [ebp - 0x270], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x4590e8
lea esp, [esp]
test byte [ebp - 0x264], 0x10
je 0x4590ba
push dword [ebp - 0x270]
lea ecx, [ebp - 0x268]
call fcn.004031c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x268]
mov eax, dword [ebp - 0x268]
push 1
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.0045a820
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x268]
push 0x58b3a0
push eax
call fcn.00443ea0
add esp, 0xc
lea eax, [ebp - 0x238]
mov ecx, 0x58bce8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458fb9
test dx, dx
je 0x458fb5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458fb9
add eax, 4
add ecx, 4
test dx, dx
jne 0x458f93
xor eax, eax
jmp 0x458fbe
sbb eax, eax
or eax, 1
test eax, eax
je 0x45908d
mov ecx, 0x58bce0
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x458ff7
test dx, dx
je 0x458ff3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x458ff7
add eax, 4
add ecx, 4
test dx, dx
jne 0x458fd1
xor eax, eax
jmp 0x458ffc
sbb eax, eax
or eax, 1
test eax, eax
je 0x45908d
mov eax, ebx
lea ecx, [ebp - 0x238]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x459036
test dx, dx
je 0x459032
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x459036
add ecx, 4
add eax, 4
test dx, dx
jne 0x459010
xor eax, eax
jmp 0x45903b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45904f
lea eax, [ebp - 0x268]
mov ecx, edi
push eax
call fcn.00459110
jmp 0x45908b
push 2
push 0x58bcec
lea ecx, [ebp - 0x268]
call fcn.00443ec0
mov eax, dword [ebp - 0x268]
cmp dword [eax - 4], 1
jle 0x459081
push dword [eax - 0xc]
lea ecx, [ebp - 0x268]
call fcn.004024c0
mov eax, dword [ebp - 0x268]
push edi
push ebx
push eax
mov ecx, esi
call fcn.00458ed0
jmp 0x45908d
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4590b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4590dc
cmp byte [esi + 0x40], 0
mov eax, dword [ebp - 0x26c]
je 0x458f30
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005295e2
mov esp, ebp
pop ebp
ret 0xc