Function at 0x401000
Capabilities:
Enumerate files on windows
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40831b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
lea eax, [esp + 0x24]
xor ebx, ebx
push 0x104
push eax
mov dword [esp + 0x10], 0xffffffff
mov byte [esp + 0x2c], bl
call fcn.00401c0c
mov cl, byte [esp + 0xf]
add esp, 8
mov byte [esp + 0x10], cl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x138]
mov dword [esp + 0x130], ebx
cmp eax, 2
jge 0x40107b
mov edx, dword [esp + 0x13c]
mov eax, dword [edx]
push eax
call fcn.00401630
add esp, 4
push ebx
call fcn.00401b19
cmp eax, 1
jle 0x4011b1
mov ecx, dword [esp + 0x13c]
push ebp
dec eax
push esi
push edi
lea ebp, [ecx + 4]
mov dword [esp + 0x18], eax
mov edx, dword [ebp]
push 0x40a04c
push edx
call fcn.00401a60
add esp, 8
test eax, eax
jne 0x4010b8
mov dword [esp + 0x14], 1
jmp 0x401186
mov eax, dword [ebp]
push 0x40a048
push eax
call fcn.00401a60
add esp, 8
test eax, eax
jne 0x4010d6
mov dword [esp + 0x14], ebx
jmp 0x401186
mov ecx, dword [ebp]
push 0x40a044
push ecx
call fcn.00401a60
add esp, 8
test eax, eax
je 0x401186
mov edx, dword [ebp]
push 0x40a040
push edx
call fcn.00401a60
add esp, 8
test eax, eax
jne 0x40111c
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
call 0x4011f0
add esp, 0xc
jmp 0x401186
push 4
call fcn.00401a50
add esp, 4
cmp eax, ebx
je 0x401130
mov dword [eax], ebx
mov esi, eax
jmp 0x401132
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x2c], esi
je 0x401186
mov edi, dword [ebp]
cmp edi, ebx
je 0x401171
mov eax, dword [esi]
cmp eax, ebx
je 0x401152
push eax
call fcn.004019e7
add esp, 4
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00401935
add esp, 4
cmp eax, ebx
mov dword [esi], eax
je 0x401171
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push 1
push ecx
lea ecx, [esp + 0x28]
call fcn.00401690
mov eax, dword [esp + 0x18]
add ebp, 4
dec eax
mov dword [esp + 0x18], eax
jne 0x401096
mov eax, dword [esp + 0x20]
pop edi
pop esi
cmp eax, ebx
pop ebp
je 0x4011b1
mov edx, dword [esp + 0x18]
sub edx, eax
test edx, 0xfffffffc
jne 0x4011c9
mov eax, dword [esp + 0x13c]
mov ecx, dword [eax]
push ecx
call fcn.00401630
add esp, 4
push ebx
call fcn.00401b19
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call fcn.00401460
add esp, 0xc
push ebx
call fcn.00401b19
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub esp, 0x250
mov eax, dword [esp + 0x258]
mov ecx, dword [esp + 0x254]
push ebx
push ebp
push esi
push edi
push eax
push ecx
lea edx, [esp + 0x164]
push str._s_s
push edx
mov edi, 1
call fcn.0040211a
add esp, 0x10
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x15c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40144b
mov esi, dword [esp + 0x26c]
test edi, edi
je 0x40144b
test byte [esp + 0x1c], 0x10
jne 0x401438
mov ebx, 4
push ebx
call fcn.00401a50
add esp, 4
test eax, eax
je 0x40127c
mov dword [eax], 0
mov edi, eax
jmp 0x40127e
xor edi, edi
test edi, edi
mov dword [esp + 0x10], edi
je 0x401438
lea edx, [esp + 0x48]
test edx, edx
je 0x4012ce
mov eax, dword [edi]
test eax, eax
je 0x4012a7
push eax
call fcn.004019e7
add esp, 4
mov dword [edi], 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00401935
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x4012ce
lea ecx, [esp + 0x48]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x4013ae
mov edx, dword [esi + 4]
test edx, edx
je 0x4012f7
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x4012fc
mov ecx, 1
test edx, edx
jne 0x401304
xor eax, eax
jmp 0x401309
sub eax, edx
sar eax, 2
add eax, ecx
test eax, eax
mov dword [esp + 0x14], eax
jge 0x401315
xor eax, eax
shl eax, 2
push eax
call fcn.00401a50
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push edi
push ecx
mov ecx, esi
call fcn.004018a0
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push 1
push ebx
mov ecx, esi
call fcn.004018d0
mov eax, dword [esi + 8]
add ebx, 4
push ebx
push eax
push edi
mov ecx, esi
call fcn.004018a0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00401680
mov eax, dword [esi + 4]
push eax
call fcn.0040192a
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 4]
add esp, 4
lea edx, [ebp + ecx*4]
test eax, eax
mov dword [esi + 0xc], edx
jne 0x401393
xor ecx, ecx
mov dword [esi + 4], ebp
lea eax, [ebp + ecx*4 + 4]
mov ebp, dword [esp + 0x18]
mov dword [esi + 8], eax
jmp 0x401438
mov ecx, dword [esi + 8]
mov dword [esi + 4], ebp
sub ecx, eax
sar ecx, 2
lea eax, [ebp + ecx*4 + 4]
mov ebp, dword [esp + 0x18]
mov dword [esi + 8], eax
jmp 0x401438
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x4013fb
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004018a0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.004018d0
mov eax, dword [esi + 8]
cmp edi, eax
je 0x401435
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebx
cmp edi, eax
jne 0x4013ed
jmp 0x401435
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.004018a0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x401422
sub eax, ebx
sub ecx, ebx
cmp eax, edi
mov edx, dword [eax]
mov dword [ecx], edx
jne 0x401416
lea eax, [edi + 4]
cmp edi, eax
je 0x401435
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
add edi, ebx
cmp edi, eax
jne 0x401429
add dword [esi + 8], ebx
lea edx, [esp + 0x1c]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x40124d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret