Function at 0x10031ee5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x10089584], 0xf31
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10031fed
lea eax, [ebp - 0x12c]
mov dword [0x10089584], 0xecad
mov dword [0x10089580], 0xe0fb
mov dword [ebp - 0x13c], eax
call fcn.100327cc
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1003234c
mov ecx, eax
mov dword [0x100895a0], 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 dword [0x10089580], 0x820
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x1003204a
mov eax, dword [ebp - 0x150]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1003441a]
mov dh, byte [eax + 0x100343eb]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x150], ecx
je 0x10031f19
jmp 0x10031fa0
xor eax, eax
mov dword [0x10089580], 0x132c
mov dword [ebp - 0x150], eax
jmp 0x10031fa0
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, [0x1007f830]
imul esi, ecx, 0x74
mov edi, edx
add edi, esi
add edi, 0x70
imul esi, ecx, 0x74
add edx, esi
add edx, 0x6c
add ecx, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, eax
cmp ecx, 0x15b
mov eax, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
je 0x10031fd9
jmp 0x10031fed
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, [0x1007f830]
mov esi, dword [ebp - 0x144]
add esi, ecx
mov edi, eax
add edi, 1
imul ebx, eax, 0x74
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, ebx
add eax, 0x68
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x74
mov dword [ebp - 0x158], eax
mov eax, edx
add eax, ebx
add eax, 0x70
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x74
add edx, ebx
add edx, 0x6c
mov eax, dword [eax]
mov ebx, dword [ebp - 0x158]
mov ebx, dword [ebx]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.100325a3
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x15b
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], eax
jne 0x1003204a
lea eax, [0x100343f9]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x144]
add esi, 0x3721b
mov edi, dword [ebp - 0x144]
add edi, 0x4b459
mov dword [0x10089580], 0x418b
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], esi
call fcn.10033227
mov eax, dword [ebp - 0x170]
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.10032c06
xor eax, eax
mov dword [0x10089580], 0x24ce
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x168]
mov dword [ecx], edx
mov dword [ecx + 4], 0x113e00
mov edx, dword [ebp - 0x174]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f60
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret