Function at 0x412980
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 0x52bb03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1cc
push esi
push edi
mov byte [ebp - 0xe], cl
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0
movups xmmword [ebp - 0x78], xmm0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
mov byte [ebp - 4], 4
xor ecx, ecx
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x48], 0x989f9af3
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov word [ebp - 0x30], 0
mov byte [ebp - 0x2e], 0
nop dword [eax + eax]
lea eax, [ecx - 0x51]
xor byte [ebp + ecx - 0x48], al
inc ecx
cmp ecx, 4
jb 0x412a20
mov dword [0x5655d8], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x44], 0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x4c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412a52
sub ecx, edx
lea eax, [ebp - 0x48]
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.00402c40
mov byte [ebp - 4], 5
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0x10
cmovae edx, dword [ebp - 0x60]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412a80
sub ecx, esi
mov eax, closesocket
mov esi, dword [ebp + 0x18]
sub eax, esi
cmp eax, ecx
jb 0x41300d
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 - 0x48]
call fcn.004946d0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x412aed
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412ae3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [ebp - 0x90], xmm0
movq xmm0, qword [ebp - 0x38]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
movq qword [ebp - 0x80], xmm0
cmp ecx, 0x10
jb 0x412b3a
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412b30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
cmp dword [ebp - 0x7c], 0x10
lea ecx, [ebp - 0x1d8]
lea eax, [ebp - 0x90]
cmovae eax, dword [ebp - 0x90]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x412e98
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax]
cmp byte [ebp - 0x1ac], 0x2e
je 0x412e71
cmp dword [ebp - 0x64], 0x10
lea eax, [ebp - 0x78]
mov dword [ebp - 0x68], 0
cmovae eax, dword [ebp - 0x78]
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 0x41300d
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 1
cmovae eax, dword [ebp + 8]
push 0x54c814
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.004946d0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x48]
call fcn.0048c9d0
lea ecx, [ebp - 0x78]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.0048cb40
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x412c4f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412c45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x412c87
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412c7d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp + 0x30]
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x41300d
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
push 1
cmovae eax, dword [ebp + 0x20]
push 0x54c814
push ecx
push eax
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x48]
call fcn.004946d0
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x48]
call fcn.0048c9d0
lea ecx, [ebp - 0x2c]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x60], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x60]
push eax
movq qword [ebp - 0x50], xmm0
call fcn.0048cb40
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0x10
jb 0x412d2f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412d25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x412d67
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412d5d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
test byte [ebp - 0x1d8], 0x10
je 0x412e49
cmp dword [ebp - 0x18], 0x10
lea esi, [ebp - 0x2c]
push 0x5651d0
cmovae esi, dword [ebp - 0x2c]
call fcn.00504232
add esp, 4
test eax, eax
jne 0x413012
test esi, esi
je 0x412ddc
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412da0
sub ecx, edx
je 0x412ddc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x412dcd
call edi
cmp eax, 0x44
je 0x412dcd
cmp eax, 0x20
je 0x412dcd
cmp eax, 0x45
je 0x412dcd
cmp eax, 0x24
jne 0x412ddc
push 0x5651d0
call fcn.00504243
add esp, 4
jmp 0x412e05
push 0x5651d0
call fcn.00504243
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 0x412ea9
sub esp, 0x18
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x94], esp
mov ecx, esp
push eax
call fcn.0048ccc0
sub esp, 0x18
mov byte [ebp - 4], 8
lea eax, [ebp - 0x78]
mov ecx, esp
push eax
call fcn.0048ccc0
mov cl, byte [ebp - 0xd]
mov byte [ebp - 4], 4
call fcn.00412980
mov esi, eax
add esp, 0x30
test esi, esi
jne 0x412eb1
mov esi, dword [ebp - 0x14]
jmp 0x412e6d
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
push 0
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
push ecx
cmovae eax, dword [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x412ea9
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0x1d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x412b70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x412eb1
cmp byte [ebp - 0xe], 0
jne 0x412eaf
cmp byte [ebp - 0xd], 0
jne 0x412eaf
or esi, 0xffffffff
jmp 0x412eb1
call edi
mov esi, eax
jmp 0x412eb1
xor esi, esi
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0x10
jb 0x412ee8
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412ede
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
cmp ecx, 0x10
jb 0x412f31
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412f27
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0x10
jb 0x412f77
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412f6d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0x10
jb 0x412fb9
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412faf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
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 0x412ffb
mov edx, dword [ebp + 0x20]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x412ff1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413018
push ecx
push edx
call fcn.00504f31
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.004024b0
push eax
call fcn.00503edb
call fcn.0050a1d0
int3