Function at 0x401940
Capabilities:
Encode data using xor
Enumerate files on windows
Enumerate files recursively
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf68
mov eax, dword [0x42f008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x50c]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push ebx
push 0x42a010
push eax
mov dword [ebp - 0xf64], ebx
call esi
add esp, 0xc
lea eax, [ebp - 0xb5c]
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xf68], eax
cmp eax, 0xffffffff
je 0x401bc4
nop word [eax + eax]
test byte [ebp - 0xb5c], 0x10
lea eax, [ebp - 0xb30]
jne 0x401b05
push eax
push ebx
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0xf5c]
call fcn.00401700
push 0x429fd0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xf60], 0
push eax
lea eax, [ebp - 0xf60]
or ebx, 0xffffffff
push eax
call fcn.0040e4bd
add esp, 0xc
test eax, eax
je 0x401a02
or ebx, 0xffffffff
jmp 0x401a62
push dword [ebp - 0xf60]
lea eax, [ebp - 0x90c]
push 0x400
push 1
push eax
call fcn.0040e837
mov edi, eax
lea esi, [ebp - 0x90c]
add esp, 0x10
mov edx, edi
test edi, edi
je 0x401a52
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ebp + ecx*4 - 0xf5c]
sub edx, 1
jne 0x401a30
cmp edi, 0x400
je 0x401a02
push dword [ebp - 0xf60]
call fcn.0040e5cd
add esp, 4
not ebx
lea eax, [ebp - 0x20c]
push str.Checksum_
push eax
call fcn.0040c3c4
mov esi, eax
add esp, 8
test esi, esi
je 0x401ac5
nop dword [eax]
lea edx, [esi + 0x12]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push esi
call fcn.0040dd90
add esp, 0xc
push str.Checksum_
push esi
call fcn.0040c3c4
mov esi, eax
add esp, 8
test esi, esi
jne 0x401a80
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x30c]
push str.__S__t_t_t_0x_X__n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [0x42f8b4]
lea eax, [ebp - 0x30c]
push eax
call fcn.0040ea33
mov ebx, dword [ebp - 0xf64]
add esp, 0x18
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x401ba9
mov ecx, 0x42a024
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b36
test dx, dx
je 0x401b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x401b10
xor eax, eax
jmp 0x401b3b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401ba9
mov ecx, 0x42a028
lea eax, [ebp - 0xb30]
nop word [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b76
test dx, dx
je 0x401b72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b76
add eax, 4
add ecx, 4
test dx, dx
jne 0x401b50
xor eax, eax
jmp 0x401b7b
sbb eax, eax
or eax, 1
test eax, eax
je 0x401ba9
lea eax, [ebp - 0xb30]
push eax
push ebx
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, 0x42f8b0
push eax
call fcn.00401940
lea eax, [ebp - 0xb5c]
push eax
push dword [ebp - 0xf68]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4019a0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b19c
mov esp, ebp
pop ebp
ret 4