Function at 0x5cd138
Capabilities:
Copy file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f70
mov eax, dword [ebp - 8]
call fcn.00404f70
mov eax, dword [ebp - 0xc]
call fcn.00404f70
mov eax, dword [ebp + 0x18]
call fcn.00404f70
xor eax, eax
push ebp
push 0x5cd3c3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 8]
call fcn.0040a608
test al, al
je 0x5cd388
mov eax, dword [ebp - 0xc]
call fcn.0040a608
test al, al
je 0x5cd1c0
mov eax, dword [ebp - 0xc]
call fcn.0040a794
test al, al
je 0x5cd388
lea eax, [ebp - 0x420]
call fcn.0040aa8c
mov edx, dword [ebp - 0x420]
lea eax, [ebp - 0x14]
mov ecx, 0x5cd3e0
call fcn.00404dcc
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404f80
push eax
mov eax, dword [ebp - 8]
call fcn.00404f80
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x5cd388
mov edx, 2
mov eax, dword [ebp - 0x14]
call fcn.0040a3e8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x5cd388
mov eax, dword [ebp - 0xc]
call fcn.0040a458
mov edi, eax
test edi, edi
jge 0x5cd23a
mov eax, dword [ebp - 0x10]
call fcn.0040a584
jmp 0x5cd388
mov dl, 1
mov eax, dword [0x5cb92c]
call fcn.005cd808
mov esi, eax
lea edx, [ebp - 0x424]
mov eax, dword [ebp + 0x18]
call fcn.00409988
mov eax, dword [ebp - 0x424]
call fcn.00404d80
test eax, eax
jle 0x5cd28d
mov byte [esi + 0x41c], 1
lea edx, [ebp - 0x428]
mov eax, dword [ebp + 0x18]
call fcn.00409988
mov edx, dword [ebp - 0x428]
lea eax, [esi + 0x420]
call fcn.00404b14
jmp 0x5cd29f
mov byte [esi + 0x41c], 0
lea eax, [esi + 0x420]
call fcn.00404ac0
call fcn.0040c66c
fstp qword [esi + 0x428]
wait
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x414], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x418], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x410], eax
lea eax, [esi + 0x408]
mov edx, dword [ebp - 4]
call fcn.00404b14
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x40c], eax
mov eax, esi
call fcn.005cd968
lea eax, [esi + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov ecx, 0x400
mov eax, edi
call fcn.0040a4e4
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040a51c
xor ecx, ecx
mov edx, 0x400
mov eax, edi
call fcn.0040a51c
mov ebx, 0x400
lea edx, [ebp - 0x419]
mov ecx, 0x400
mov eax, dword [ebp - 0x10]
call fcn.0040a4ac
mov ebx, eax
lea eax, [ebp - 0x419]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [eax], 0x6b42e982
lea eax, [ebp - 0x219]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [eax], 0x5f2c8b4e
lea edx, [ebp - 0x419]
mov ecx, ebx
mov eax, edi
call fcn.0040a4e4
cmp ebx, 0x400
je 0x5cd318
mov eax, dword [ebp - 0x10]
call fcn.0040a584
mov eax, edi
call fcn.0040a584
mov eax, dword [ebp - 0x14]
call fcn.0040a794
mov eax, esi
call fcn.00403b90
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5cd3ca
lea eax, [ebp - 0x428]
mov edx, 3
call fcn.00404ae4
lea eax, [ebp - 0x14]
call fcn.00404ac0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ae4
lea eax, [ebp + 0x18]
call fcn.00404ac0
ret