Function at 0x40c110
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 0x40c233
push 0xffffffffffffffff
push 0x46a9b8
lea ecx, [ebp - 0xb4]
call fcn.00402bb0
mov ebx, 1
jmp 0x40c24a
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 0x40c293
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x40c293
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 0x40c2d3
lea ecx, [ebp - 0x1b0]
cmp eax, ecx
je 0x40c2d3
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40c2ed
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x40c2ed
push eax
call fcn.0043817b
add esp, 4
test bl, 2
je 0x40c312
mov eax, dword [ebp - 0x164]
and ebx, 0xfffffffd
test eax, eax
je 0x40c312
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x40c312
push eax
call fcn.0043817b
add esp, 4
test bl, 1
je 0x40c334
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40c334
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x40c334
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 0x40c372
lea edx, [ebp - 0x24]
cmp ecx, edx
je 0x40c372
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x40c395
lea edx, [ebp - 0x100]
cmp ecx, edx
je 0x40c395
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x40c3b8
lea edx, [ebp - 0x12c]
cmp ecx, edx
je 0x40c3b8
push ecx
call fcn.0043817b
mov eax, dword [ebp - 0x1ec]
add esp, 4
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x40c3d5
lea edx, [ebp - 0x50]
cmp ecx, edx
je 0x40c3d5
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 0x40c3ee
test eax, eax
je 0x40c3ee
mov cl, 1
jmp 0x40c3f0
xor cl, cl
test cl, cl
je 0x40cb9f
cmp word [ebp - 0x410], 0x2e
jne 0x40c41c
mov cx, word [ebp - 0x40e]
cmp cx, 0x2e
je 0x40cb52
test cx, cx
je 0x40cb52
cmp eax, 0xffffffff
je 0x40c4c8
test eax, eax
je 0x40c4c8
lea esi, [ebp - 0x410]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c436
sub esi, ecx
sar esi, 1
cmp esi, 0x10
jb 0x40c45e
lea eax, [esi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40c461
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 0x40c480
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 0x40c4af
lea esi, [eax - 1]
test eax, eax
jne 0x40c4ba
xor esi, esi
mov dword [ebp - 0x2c], esi
jmp 0x40c4e2
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [ebp - 0x2c], esi
jmp 0x40c4e2
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 0x40c526
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x40c526
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 0x40c569
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x40c569
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40c586
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x40c586
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40c59d
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40c59d
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x40c64a
test eax, eax
je 0x40c64a
lea esi, [ebp - 0x410]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c5c0
sub esi, ecx
sar esi, 1
cmp esi, 0x10
jb 0x40c5e8
lea eax, [esi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40c5eb
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 0x40c602
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 0x40c631
lea esi, [eax - 1]
test eax, eax
jne 0x40c63c
xor esi, esi
mov dword [ebp - 0x2c], esi
jmp 0x40c664
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [ebp - 0x2c], esi
jmp 0x40c664
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 0x40c6a8
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x40c6a8
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 0x40c6ee
lea ecx, [ebp - 0x158]
cmp eax, ecx
je 0x40c6ee
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x40c70b
lea ecx, [ebp - 0xd4]
cmp eax, ecx
je 0x40c70b
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40c722
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x40c722
push eax
call fcn.0043817b
add esp, 4
cmp dword [edi], 0xffffffff
je 0x40c815
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 0x40c77f
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40c770
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 0x40c7be
call ebx
mov eax, dword [ebp - 0x440]
cmp eax, 0xffffffff
je 0x40c7f8
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 0x40c7f8
call ebx
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x40c815
lea ecx, [ebp - 0xa8]
cmp eax, ecx
je 0x40c815
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x40ca09
test eax, eax
je 0x40ca09
mov eax, dword [ebp - 0x43c]
shr eax, 4
and al, 1
je 0x40ca09
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 0x40c86b
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40c86e
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 0x40c8c5
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 0x40c8ba
xor edx, edx
jmp 0x40c8c2
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 0x40c8e6
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40c8e9
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 0x40c934
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 0x40c929
xor edx, edx
jmp 0x40c931
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.0040c110
mov eax, dword [ebp - 0x44c]
add esp, 0x68
test eax, eax
jns 0x40cb0f
mov ebx, dword [ebp - 0x454]
mov dword [ebx], eax
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40c973
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x40c973
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40c98a
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40c98a
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x1ec]
cmp eax, 0xffffffff
je 0x40c99c
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x40c9b9
lea ecx, [ebp - 0x1dc]
cmp eax, ecx
je 0x40c9b9
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x190]
test eax, eax
je 0x40c9d6
lea ecx, [ebp - 0x184]
cmp eax, ecx
je 0x40c9d6
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40c9ed
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x40c9ed
push eax
call fcn.0043817b
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x40cc1b
lea eax, [ebp + 0x44]
cmp ecx, eax
je 0x40cc1b
push ecx
jmp 0x40cc13
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 0x40ca37
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40ca3a
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 0x40ca91
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 0x40ca86
xor edx, edx
jmp 0x40ca8e
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 0x40cab2
lea eax, [edi*2 + 2]
push eax
call fcn.00438180
add esp, 4
mov ecx, eax
jmp 0x40cab5
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 0x40cb00
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 0x40caf5
xor edx, edx
jmp 0x40cafd
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.0040ccd0
add esp, 0x68
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x40cb29
lea ecx, [ebp - 0x7c]
cmp eax, ecx
je 0x40cb29
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40cb40
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40cb40
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 0x40c3ee
test eax, eax
je 0x40c3e1
lea ecx, [ebp - 0x43c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40cb80
mov eax, dword [ebp - 0x1ec]
jmp 0x40c3e1
push dword [ebp - 0x1ec]
call esi
mov dword [ebp - 0x1ec], 0xffffffff
call ebx
mov eax, dword [ebp - 0x1ec]
jmp 0x40c3e1
cmp eax, 0xffffffff
je 0x40cba7
push eax
call esi
mov eax, dword [ebp - 0x1e8]
test eax, eax
je 0x40cbc4
lea ecx, [ebp - 0x1dc]
cmp eax, ecx
je 0x40cbc4
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 0x40cbed
lea ecx, [ebp - 0x184]
cmp eax, ecx
je 0x40cbed
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cc04
lea ecx, [ebp + 0x18]
cmp eax, ecx
je 0x40cc04
push eax
call fcn.0043817b
add esp, 4
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x40cc1b
lea ecx, [ebp + 0x44]
cmp eax, ecx
je 0x40cc1b
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