Function at 0x402470
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43194f
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x43e040]
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, edx
mov dword [ebp - 0x274], ebx
mov edi, ecx
mov dword [ebp - 0x27c], edi
movzx eax, word [ebp + 0x14]
mov dword [ebp - 0x288], edi
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x280], 1
mov dword [ebp - 4], 2
call fcn.00401550
mov ecx, eax
test ecx, ecx
je 0x402946
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x280], 1
mov esi, dword [eax - 0xc]
test esi, esi
je 0x4028c7
test ebx, ebx
je 0x4028c7
lea ecx, [esi - 1]
test ecx, ecx
js 0x402950
cmp ecx, esi
jg 0x402950
cmp word [eax + ecx*2], 0x5c
je 0x402567
mov ecx, dword [eax - 8]
lea ebx, [esi + 1]
mov edx, 1
sub ecx, ebx
sub edx, dword [eax - 4]
or ecx, edx
jge 0x402546
push ebx
lea ecx, [ebp + 0x10]
call fcn.0040a0e0
mov eax, dword [ebp + 0x10]
mov ecx, 0x5c
mov word [eax + esi*2], cx
mov eax, dword [ebp + 0x10]
cmp ebx, dword [eax - 8]
jg 0x402950
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov word [eax + ebx*2], cx
push 0x439fd8
lea edx, [ebp + 0x10]
lea ecx, [ebp - 0x27c]
call fcn.00408d90
add esp, 4
lea ecx, [ebp - 0x270]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x27c]
mov esi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x278], esi
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4025b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x402620
mov dword [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4025f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402928
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402928
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x402950
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40264b
push esi
lea ecx, [ebp + 8]
call fcn.0040a580
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0041cd79
push eax
call fcn.004012b0
mov eax, dword [ebp + 8]
add esp, 0xc
cmp esi, dword [eax - 8]
jg 0x402950
mov dword [eax - 0xc], esi
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov byte [esi + eax], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1e]
movlpd qword [ebp - 0x20], xmm0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1a]
push eax
push str._hd._hd._hd._hd
push dword [ebp - 0x274]
call fcn.004010f0
mov ebx, dword [ebp - 0x278]
add esp, 0x18
nop word [eax + eax]
test byte [ebp - 0x270], 0x10
jne 0x402847
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x16]
movlpd qword [ebp - 0x18], xmm0
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x12]
push eax
lea eax, [ebp - 0x244]
push str._hd._hd._hd._hd
push eax
call fcn.004010f0
mov eax, dword [ebp - 0x14]
add esp, 0x18
cmp eax, dword [ebp - 0x1c]
jb 0x402847
ja 0x402703
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x20]
jbe 0x402847
movzx esi, word [ebp - 0x284]
lea eax, [ebp - 0x244]
push ecx
mov ecx, esp
lea edx, [ebp + 0x10]
push eax
call fcn.00408d90
add esp, 4
mov ecx, esi
call fcn.00401e20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x402841
push ecx
mov ecx, dword [ebp + 8]
mov esi, esp
mov dword [ebp - 0x274], esi
lea ecx, [ecx - 0x10]
call fcn.0040a260
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00401ca0
mov ebx, eax
test ebx, ebx
je 0x402841
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, esp
mov dword [ebp - 0x274], esi
lea ecx, [ecx - 0x10]
call fcn.0040a260
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00401b70
test al, al
je 0x402841
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x402813
lea esi, [ebx + 1]
test esi, esi
js 0x402950
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4027b6
push esi
mov ecx, edi
call fcn.0040a580
mov eax, dword [edi]
mov byte [eax + ebx], 0x2c
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x402950
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
mov eax, dword [edi]
mov ebx, dword [eax - 0xc]
lea esi, [ebx + 1]
test esi, esi
js 0x402950
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x4027f9
push esi
mov ecx, edi
call fcn.0040a580
mov eax, dword [edi]
mov byte [eax + ebx], 0x20
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x402950
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
lea eax, [ebp - 0x244]
mov ecx, edi
push eax
call fcn.00409720
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, 4
js 0x402950
cmp ecx, dword [eax - 8]
jg 0x402950
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
mov byte [ecx + eax], 0
mov ebx, dword [ebp - 0x278]
lea eax, [ebp - 0x270]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4026b0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402888
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x402928
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402928
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4028eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402909
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x402928
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.0040d660
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401290
push 0x80070057
call fcn.00401290
int3