Function at 0x412090
Capabilities:
Check if file exists
Copy file
Create directory
Encode data using xor
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521cc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c8
push esi
push edi
mov byte [ebp - 0xe], cl
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x3a], 0xa0a7a2db
movq qword [ebp - 0x36], xmm0
mov word [ebp - 0x2e], 0
lea eax, [ecx - 0x79]
xor byte [ebp + ecx - 0x3a], al
inc ecx
cmp ecx, 4
jb 0x412121
mov dword [0x55d5d8], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x3a]
mov byte [ebp - 0x36], 0
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x48], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412153
sub ecx, edx
lea eax, [ebp - 0x3a]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00402b80
mov byte [ebp - 4], 5
lea edx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 0x10
cmovae edx, dword [ebp - 0x5c]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412180
sub ecx, esi
mov eax, closesocket
mov esi, dword [ebp + 0x18]
sub eax, esi
cmp eax, ecx
jb 0x41270d
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push edx
push esi
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.0048aa20
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x4121ed
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4121e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [ebp - 0x34]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
movq qword [ebp - 0x7c], xmm0
cmp ecx, 0x10
jb 0x41223a
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412230
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
cmp dword [ebp - 0x78], 0x10
lea ecx, [ebp - 0x1d4]
lea eax, [ebp - 0x8c]
cmovae eax, dword [ebp - 0x8c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x412598
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
cmp byte [ebp - 0x1a8], 0x2e
je 0x412571
cmp dword [ebp - 0x60], 0x10
lea eax, [ebp - 0x74]
mov dword [ebp - 0x64], 0
cmovae eax, dword [ebp - 0x74]
mov byte [eax], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov eax, closesocket
mov ecx, dword [ebp + 0x18]
sub eax, ecx
cmp eax, 1
jb 0x41270d
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 1
cmovae eax, dword [ebp + 8]
push 0x54281c
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.0048aa20
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x44]
call fcn.00482d20
lea ecx, [ebp - 0x74]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x5c]
push eax
movq qword [ebp - 0x4c], xmm0
call fcn.00482e90
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x41234f
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412345
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x412387
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41237d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp + 0x30]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x41270d
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0x54281c
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.0048aa20
lea eax, [ebp - 0x1a8]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x44]
call fcn.00482d20
lea ecx, [ebp - 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x5c]
push eax
movq qword [ebp - 0x4c], xmm0
call fcn.00482e90
mov ecx, dword [ebp - 0x48]
cmp ecx, 0x10
jb 0x41242f
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412425
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
jb 0x412467
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41245d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
test byte [ebp - 0x1d4], 0x10
je 0x412549
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push 0x55d1d0
cmovae esi, dword [ebp - 0x2c]
call fcn.004fa3f2
add esp, 4
test eax, eax
jne 0x412712
test esi, esi
je 0x4124dc
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4124a0
sub ecx, edx
je 0x4124dc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4124cd
call edi
cmp eax, 0x44
je 0x4124cd
cmp eax, 0x20
je 0x4124cd
cmp eax, 0x45
je 0x4124cd
cmp eax, 0x24
jne 0x4124dc
push 0x55d1d0
call fcn.004fa403
add esp, 4
jmp 0x412505
push 0x55d1d0
call fcn.004fa403
add esp, 4
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4125a9
sub esp, 0x18
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x90], esp
mov ecx, esp
push eax
call fcn.00483010
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x74]
mov ecx, esp
push eax
call fcn.00483010
mov cl, byte [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.00412090
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x4125b1
mov esi, dword [ebp - 0x14]
jmp 0x41256d
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push 0
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 0x10
push ecx
cmovae eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4125a9
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1d4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x412270
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x4125b1
cmp byte [ebp - 0xe], 0
jne 0x4125af
cmp byte [ebp - 0xd], 0
jne 0x4125af
or esi, 0xffffffff
jmp 0x4125b1
call edi
mov esi, eax
jmp 0x4125b1
xor esi, esi
mov ecx, dword [ebp - 0x78]
cmp ecx, 0x10
jb 0x4125e8
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4125de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0xf
mov byte [ebp - 0x8c], 0
cmp ecx, 0x10
jb 0x412631
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412627
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x412677
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41266d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0xf
mov byte [ebp - 0x74], 0
cmp ecx, 0x10
jb 0x4126b9
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4126af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x4126fb
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4126f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412718
push ecx
push edx
call fcn.004fb0f1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004023f0
push eax
call fcn.004fa09b
call fcn.00500390
int3