Function at 0x10005cb0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x38]
lea eax, [edx + 0x372]
mov dword [esp + 0x3c], eax
lea ebx, [ecx - 0x23c]
lea eax, [ecx - 0x124]
add ebp, 0xffffd104
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
add eax, 0x38
mov dword [esp + 0xc], ebp
push esi
push edi
mov edi, dword [esp + 0x48]
lea esi, [ecx - 0x3233]
mov dword [esp + 0x48], eax
mov ecx, esi
mov eax, dword [esp + 0x4c]
add edi, 0xffffd253
add eax, 0xfffffd49
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], eax
add esi, 0xfffffe07
mov eax, dword [esp + 0x3c]
add eax, 0x415
mov dword [esp + 0x54], esi
mov dword [esp + 0x24], eax
lea eax, [edx + 0x15f]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
lea eax, [esi + 0x5e9]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x18], ecx
cmp edx, eax
je 0x10005e65
lea eax, [edx + 0x348]
cmp ebx, eax
jge 0x10005e01
mov eax, dword [esi + 0x100]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x1a4]
add eax, 0x2f82
sub dword [esp + 0x48], 0x292
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x8c]
xor eax, dword [esi + 0xac]
xor eax, 0x2d9d
push 0x10037dd8
mov dword [esi + 0xac], eax
mov eax, dword [esi + 0x108]
push 0xb8
push 0xce
push 6
mov eax, dword [eax + 0x1c4]
xor eax, 0x3331
push eax
push esi
push 0x31b0
push 0x31b0
push 0x32ca
push 0x3451
call fcn.10007570
mov ecx, dword [esp + 0x4c]
add esp, 0x28
add dword [esp + 0x10], 0x3451
sub ecx, 0x25a
mov edx, dword [esp + 0x40]
mov dword [esi + 0x100], eax
mov dword [esp + 0x24], ecx
jmp 0x10005e69
mov eax, dword [esi + 0x124]
xor eax, dword [esp + 0x54]
mov ebx, dword [esi + 0x174]
and eax, 0x34dd
mov dword [esp + 0x3c], eax
cmp ebx, eax
jbe 0x10005e61
mov ebp, dword [esp + 0x24]
xor ebp, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
jge 0x10005e52
mov edx, dword [esi + 0xa4]
mov eax, ebp
sub eax, ecx
dec eax
shr eax, 1
inc eax
nop word [eax + eax]
lea ecx, [edx + edi]
xor edi, ecx
sub eax, 1
jne 0x10005e40
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add ebx, 3
cmp ebx, eax
ja 0x10005e28
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0x242]
cmp dword [esp + 0x4c], eax
jg 0x10005fa2
cmp ecx, dword [esp + 0x4c]
je 0x10005ebc
mov eax, dword [esi + 0x100]
mov ebp, dword [esp + 0x40]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x60]
xor eax, 0x2ff7
add dword [esi + 0x98], eax
mov eax, dword [esi + 0x1a4]
add eax, 0x3239
pop edi
mov dword [esi + 0x174], eax
lea eax, [ebp + 0x22e]
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, ebp
or eax, 0x31ce
cmp ebp, eax
jl 0x10005f75
mov edx, dword [esi + 0x7c]
mov eax, edx
mov ecx, dword [esi + 0x108]
xor ecx, dword [esi + 0xd8]
xor ecx, dword [esp + 0x18]
imul eax, ebp
mov ebp, dword [esp + 0x40]
mov dword [esi + 0xd8], ecx
imul eax, eax, 0x2dad
xor ebp, eax
mov eax, dword [esi + 0x58]
imul eax, ebp
imul eax, dword [esp + 0x1c]
cmp dword [esi + 0x128], eax
ja 0x10005fa6
mov eax, dword [esi + 0xe0]
or eax, dword [esi + 0x4c]
or eax, dword [esp + 0x24]
or edx, dword [esp + 0x10]
sub dword [esp + 0x44], edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x58]
add eax, ebx
sub ebx, dword [esp + 0x4c]
imul ebx, dword [esi + 8]
or edx, eax
mov eax, dword [esp + 0x1c]
xor eax, dword [esp + 0x14]
and eax, dword [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [esi + 0x84]
xor eax, 0x3451
and eax, edi
push eax
mov eax, dword [esi + 0x134]
sub eax, ecx
add eax, 0x2d89
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
lea eax, [ebp + 0x22e]
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0xe0]
xor ecx, 0x2dad
or ecx, dword [esi + 0x14c]
cmp eax, ecx
jbe 0x10005fa2
mov edi, dword [esi + 0x7c]
xor edi, edx
mov edx, dword [esi + 0x68]
add eax, 2
add edx, edi
cmp eax, ecx
ja 0x10005f96
mov dword [esi + 0x68], edx
mov ebp, dword [esp + 0x40]
pop edi
pop esi
lea eax, [ebp + 0x22e]
pop ebp
pop ebx
add esp, 0x10
ret