Function at 0x5c2f4d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x65f9e8]
add edx, 0xffffe2e6
mov dword [0x65f9ec], edx
mov dword [0x65f9e8], 0x301
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x5c301f
lea eax, [ebp - 0x2c]
mov dword [0x65f9ec], 0x1281
mov dword [0x65f9e8], 0x529
mov dword [ebp - 0x13c], eax
call fcn.005c34f3
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.005c2686
mov ecx, eax
mov dword [0x65fa08], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x65f9ec]
add edx, 0xfffff7b1
mov dword [0x65f9e8], edx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x5c30c4
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..code
mov esi, eax
add esi, 1
imul edi, eax, 0x9c
mov ebx, edx
add ebx, edi
add ebx, 4
imul eax, eax, 0x9c
add edx, eax
add edx, 0x3c
mov eax, dword [edx]
movzx edx, word [ebx]
xor edx, eax
add edx, ecx
cmp esi, 0x203
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], esi
jne 0x5c301f
xor eax, eax
mov dword [0x65f9e8], 0x21db
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x648d6e]
mov dh, byte [eax + 0x648d3f]
sub dh, dl
mov byte [ebp + eax - 0x2c], dh
cmp ecx, 0xe
mov dword [ebp - 0x150], ecx
je 0x5c2f93
jmp 0x5c308e
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..code
mov esi, dword [ebp - 0x144]
add esi, eax
imul edi, ecx, 0x9c
mov ebx, edx
add ebx, edi
add ebx, 4
imul edi, ecx, 0x9c
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, edi
add eax, 0x3c
mov edi, ecx
add edi, 1
imul ecx, ecx, 0x9c
add edx, ecx
mov eax, dword [eax]
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x15c], edi
call fcn.005c384c
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x203
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], eax
jne 0x5c30c4
lea eax, [0x648d4d]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov esi, dword [ebp - 0x144]
add esi, 0xfa5c4
mov edi, dword [ebp - 0x144]
add edi, 0xc34b9
mov dword [0x65f9e8], 0x190b
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], esi
call fcn.005c2c36
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.005c3b32
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x16c]
mov dword [ecx], edx
mov dword [ecx + 4], 0x132a00
mov dword [0x65f9e8], 0x1b7b
mov edx, dword [ebp - 0x160]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x2090
mov dword [0x65f9ec], 0x1b66
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret