Function at 0x404b90
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x47e064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x190]
push ebx
mov dword [ebp - 0x454], eax
mov eax, dword [ebp + 0x68]
push esi
push edi
mov edi, dword [ebp + 0x64]
mov dword [ebp - 0x450], eax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x44c], 0
call fcn.00401a50
push 1
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x44c]
push eax
call fcn.004056b0
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x138]
xor eax, eax
mov dword [ebp - 0x134], 0
mov word [ebp - 0x50], ax
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x138], eax
xor eax, eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x100]
mov dword [ebp - 0x10c], eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x100], ax
lea eax, [ebp - 0x190]
push eax
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 1
call fcn.0040b2d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0040b2d0
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1e8]
call fcn.00401a50
cmp dword [ebp - 0x108], 0
jne 0x404cb3
push 0xffffffffffffffff
push 0x46a9b8
lea ecx, [ebp - 0xb4]
call fcn.00402bb0
mov ebx, 1
jmp 0x404cca
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x164]
call fcn.00401a50
mov ebx, 2
mov esi, eax
lea ecx, [ebp - 0xe0]
push 0x46a8a4
lea eax, [ebp - 0x138]
push eax
call fcn.00403550
mov ecx, eax
call fcn.00403ce0
push eax
lea ecx, [ebp - 0x88]
call fcn.00401a50
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x404d13
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x404d13
push eax
call fcn.0043817b
add esp, 4
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x1bc]
call fcn.00403550
push esi
mov ecx, eax
call fcn.0040b260
push eax
lea ecx, [ebp - 0x30]
call fcn.00401a50
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x404d53
lea ecx, [ebp - 0x1b0]
cmp eax, ecx
je 0x404d53
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x404d6d
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x404d6d
push eax
call fcn.0043817b
add esp, 4
test bl, 2
je 0x404d92
mov eax, dword [ebp - 0x164]
and ebx, 0xfffffffd
test eax, eax
je 0x404d92
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x404d92
push eax
call fcn.0043817b
add esp, 4
test bl, 1
je 0x404db4
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x404db4
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x404db4
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, 0x4777b4
test eax, eax
cmovne ecx, eax
lea eax, [ebp - 0x43c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1ec], eax
test ecx, ecx
je 0x404df2
lea edx, [ebp - 0x24]
cmp ecx, edx
je 0x404df2
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x404e15
lea edx, [ebp - 0x100]
cmp ecx, edx
je 0x404e15
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x404e38
lea edx, [ebp - 0x12c]
cmp ecx, edx
je 0x404e38
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x404e55
lea edx, [ebp - 0x50]
cmp ecx, edx
je 0x404e55
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x404e6e
test eax, eax
je 0x404e6e
mov cl, 1
jmp 0x404e70
xor cl, cl
test cl, cl
je 0x40561f
cmp word [ebp - 0x410], 0x2e
jne 0x404e9c
mov cx, word [ebp - 0x40e]
cmp cx, 0x2e
je 0x4055d2
test cx, cx
je 0x4055d2
cmp eax, 0xffffffff
je 0x404f48
test eax, eax
je 0x404f48
lea esi, [ebp - 0x410]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404eb6
sub esi, ecx
sar esi, 1
cmp esi, 0x10
jb 0x404ede
lea eax, [esi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x404ee1
lea ecx, [ebp - 0x24]
lea eax, [esi + 1]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
lea esi, [ebp - 0x410]
xor eax, eax
mov word [ecx], ax
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x404f00
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x30]
call fcn.0042ec90
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp esi, eax
jb 0x404f2f
lea esi, [eax - 1]
test eax, eax
jne 0x404f3a
xor esi, esi
mov dword [ebp - 0x2c], esi
jmp 0x404f62
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [ebp - 0x2c], esi
jmp 0x404f62
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
push 0x46a8a4
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00403550
mov ecx, eax
call fcn.00403ce0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00401a50
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x404fa6
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x404fa6
push eax
call fcn.0043817b
add esp, 4
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x164]
call fcn.00403550
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040b260
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401a50
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x404fe9
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x404fe9
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x405006
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x405006
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40501d
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40501d
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x4050ca
test eax, eax
je 0x4050ca
lea esi, [ebp - 0x410]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405040
sub esi, ecx
sar esi, 1
cmp esi, 0x10
jb 0x405068
lea eax, [esi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40506b
lea ecx, [ebp - 0x24]
lea eax, [esi + 1]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
lea esi, [ebp - 0x410]
xor eax, eax
mov word [ecx], ax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405082
sub esi, ecx
sar esi, 1
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x30]
call fcn.0042ec90
mov eax, dword [ebp - 0x28]
add esp, 0xc
cmp esi, eax
jb 0x4050b1
lea esi, [eax - 1]
test eax, eax
jne 0x4050bc
xor esi, esi
mov dword [ebp - 0x2c], esi
jmp 0x4050e4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [ebp - 0x2c], esi
jmp 0x4050e4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
push 0x46a8a4
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xb4]
call fcn.00403550
mov ecx, eax
call fcn.00403ce0
push eax
lea ecx, [ebp - 0xe0]
call fcn.00401a50
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x405128
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x405128
push eax
call fcn.0043817b
add esp, 4
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x164]
call fcn.00403550
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.0040b260
push eax
lea ecx, [ebp - 0x88]
call fcn.00401a50
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x40516e
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x40516e
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40518b
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x40518b
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4051a2
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x4051a2
push eax
call fcn.0043817b
add esp, 4
cmp dword [edi], 0xffffffff
je 0x405295
mov eax, dword [ebp - 0x88]
mov edx, 0x4777b4
test eax, eax
mov ecx, 0x4777b4
cmovne edx, eax
mov eax, dword [ebp - 0x5c]
test eax, eax
push edx
cmovne ecx, eax
lea eax, [ebp - 0xb4]
push ecx
push str.Copying__s_to__s
push eax
call fcn.0040b5a0
add esp, 0x10
mov esi, dword [eax + 4]
mov edi, dword [eax]
cmp esi, 0xffffffff
jne 0x4051ff
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4051f0
sub esi, ecx
sar esi, 1
push 0
add esi, esi
mov dword [ebp - 0x440], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x440]
push eax
push esi
push edi
mov edi, dword [ebp - 0x448]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x440]
cmp eax, esi
je 0x40523e
call ebx
mov eax, dword [ebp - 0x440]
cmp eax, 0xffffffff
je 0x405278
push 0
mov dword [ebp - 0x440], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
lea eax, [ebp - 0x440]
push eax
push 4
push 0x4777f8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x440], 4
je 0x405278
call ebx
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x405295
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x405295
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x405489
test eax, eax
je 0x405489
mov eax, dword [ebp - 0x43c]
shr eax, 4
and al, 1
je 0x405489
push dword [ebp + 0x6c]
push dword [ebp - 0x450]
push edi
mov edi, dword [ebp - 0x84]
sub esp, 0x2c
mov esi, esp
cmp edi, 0x10
jb 0x4052eb
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x4052ee
lea ecx, [esi + 0xc]
lea eax, [edi + 1]
mov dword [esi], ecx
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [ecx], ax
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x405345
add eax, eax
push eax
push dword [ebp - 0x88]
push dword [esi]
call fcn.0042ec90
mov ecx, dword [esi + 8]
add esp, 0xc
cmp dword [ebp - 0x84], ecx
lea edx, [ecx - 1]
cmovb edx, dword [ebp - 0x84]
test ecx, ecx
jne 0x40533a
xor edx, edx
jmp 0x405342
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [esi + 4], edx
mov edi, dword [ebp - 0x58]
sub esp, 0x2c
mov esi, esp
cmp edi, 0x10
jb 0x405366
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x405369
lea ecx, [esi + 0xc]
lea eax, [edi + 1]
mov dword [esi], ecx
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [ecx], ax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x4053b4
add eax, eax
push eax
push dword [ebp - 0x5c]
push dword [esi]
call fcn.0042ec90
mov ecx, dword [esi + 8]
add esp, 0xc
cmp dword [ebp - 0x58], ecx
lea edx, [ecx - 1]
cmovb edx, dword [ebp - 0x58]
test ecx, ecx
jne 0x4053a9
xor edx, edx
jmp 0x4053b1
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [esi + 4], edx
lea eax, [ebp - 0x44c]
push eax
call fcn.00404b90
mov eax, dword [ebp - 0x44c]
add esp, 0x68
test eax, eax
jns 0x40558f
mov ebx, dword [ebp - 0x454]
mov dword [ebx], eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4053f3
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x4053f3
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40540a
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40540a
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x40541c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x405439
lea ecx, [ebp - 0x1dc]
cmp eax, ecx
je 0x405439
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x190]
test eax, eax
je 0x405456
lea ecx, [ebp - 0x184]
cmp eax, ecx
je 0x405456
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40546d
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x40546d
push eax
call fcn.0043817b
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x40569b
lea eax, [ebp + 0x44]
cmp ecx, eax
je 0x40569b
push ecx
jmp 0x405693
push dword [ebp - 0x450]
push edi
push dword [ebp + 0x6c]
mov edi, dword [ebp - 0x84]
sub esp, 0x2c
mov esi, esp
cmp edi, 0x10
jb 0x4054b7
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x4054ba
lea ecx, [esi + 0xc]
lea eax, [edi + 1]
mov dword [esi], ecx
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [ecx], ax
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x405511
add eax, eax
push eax
push dword [ebp - 0x88]
push dword [esi]
call fcn.0042ec90
mov ecx, dword [esi + 8]
add esp, 0xc
cmp dword [ebp - 0x84], ecx
lea edx, [ecx - 1]
cmovb edx, dword [ebp - 0x84]
test ecx, ecx
jne 0x405506
xor edx, edx
jmp 0x40550e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [esi + 4], edx
mov edi, dword [ebp - 0x58]
sub esp, 0x2c
mov esi, esp
cmp edi, 0x10
jb 0x405532
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x405535
lea ecx, [esi + 0xc]
lea eax, [edi + 1]
mov dword [esi], ecx
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0
mov word [ecx], ax
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x405580
add eax, eax
push eax
push dword [ebp - 0x5c]
push dword [esi]
call fcn.0042ec90
mov ecx, dword [esi + 8]
add esp, 0xc
cmp dword [ebp - 0x58], ecx
lea edx, [ecx - 1]
cmovb edx, dword [ebp - 0x58]
test ecx, ecx
jne 0x405575
xor edx, edx
jmp 0x40557d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edx*2], cx
mov dword [esi + 4], edx
lea eax, [ebp - 0x458]
push eax
call fcn.00406f10
add esp, 0x68
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4055a9
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x4055a9
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x4055c0
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x4055c0
push eax
call fcn.0043817b
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [ebp - 0x448]
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x404e6e
test eax, eax
je 0x404e61
lea ecx, [ebp - 0x43c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x405600
mov eax, dword [ebp - 0x1ec]
jmp 0x404e61
push dword [ebp - 0x1ec]
call esi
mov dword [ebp - 0x1ec], 0xffffffff
call ebx
mov eax, dword [ebp - 0x1ec]
jmp 0x404e61
cmp eax, 0xffffffff
je 0x405627
push eax
call esi
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x405644
lea ecx, [ebp - 0x1dc]
cmp eax, ecx
je 0x405644
push eax
call fcn.0043817b
add esp, 4
mov ebx, dword [ebp - 0x454]
mov eax, dword [ebp - 0x190]
mov dword [ebx], 0
test eax, eax
je 0x40566d
lea ecx, [ebp - 0x184]
cmp eax, ecx
je 0x40566d
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405684
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x405684
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40569b
lea ecx, [ebp + 0x44]
cmp eax, ecx
je 0x40569b
push eax
call fcn.0043817b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d480
mov esp, ebp
pop ebp
ret