Function at 0x1000f098
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]
mov dword [ebp - 0x130], eax
xor eax, eax
mov dword [0x10031444], 0x483
mov dword [0x10031448], 0xa86
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x108
mov edi, edx
add edi, esi
add edi, 0x104
mov esi, dword [edi]
imul edi, eax, 0x108
add edx, edi
add edx, 0xe4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1c6
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1000f0d1
lea eax, str.JHa_r_n
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x10031448], 0x18c2
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.1000fa7a
mov dword [0x10031444], 0x2e3
mov dword [0x10031448], 0x2085
call fcn.1000f615
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1000f86e
mov ecx, eax
mov dword [0x10031464], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
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, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
mov esi, eax
add esi, 1
mov edi, dword [ebp - 0x148]
add edi, ecx
imul ebx, eax, 0x108
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, ebx
add eax, 0x104
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x108
mov dword [ebp - 0x158], eax
mov eax, edx
add eax, ebx
add eax, 0x20
mov ebx, dword [ebp - 0x154]
imul ebx, ebx, 0x108
add edx, ebx
add edx, 0xe4
mov ebx, dword [ebp - 0x158]
mov ebx, dword [ebx]
mov eax, dword [eax]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.1001031b
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
cmp edx, 0x1c6
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
jne 0x1000f1d1
lea eax, [0x100125c3]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x10031444], 0x1ad9
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call fcn.1000fe1b
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1000fbde
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x138a6
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov ecx, dword [0x10031448]
add ecx, 0xfffff632
mov dword [0x10031444], ecx
mov dword [edx + 4], 0x139c00
mov ecx, dword [ebp - 0x148]
add ecx, 0xe985
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f40
mov ecx, dword [0x10031444]
add ecx, 0xffffe960
mov dword [0x10031448], ecx
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret