Function at 0x1017f413
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
xor eax, eax
mov ecx, 0x20
mov dword [ebp - 0x114], eax
mov eax, ecx
call fcn.1017eb60
mov eax, esp
mov ecx, dword [0x10188610]
add ecx, 0xffffe38f
mov dword [0x1018860c], ecx
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], edx
jmp 0x1017f530
lea eax, [0x10181045]
mov ecx, 0xe
sub esp, 0xc
mov edx, dword [ebp - 0x118]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x124], ecx
call fcn.1018004a
add esp, 0xc
mov dword [0x1018860c], 0x846
call fcn.10180445
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x118]
mov dword [esp + 4], eax
call fcn.1017efc9
add esp, 8
mov dword [0x1018862c], eax
mov ecx, dword [0x1018860c]
add ecx, 0xfffff5c8
mov dword [0x10188610], ecx
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x128]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
xor ecx, ecx
mov edx, dword [0x10188610]
add edx, 0xffffe65e
mov dword [0x1018860c], edx
mov edx, ecx
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], ecx
jmp 0x1017f58f
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
lea edx, section..code
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 0x18
mov esi, dword [edi]
imul edi, eax, 0x68
add edx, edi
add edx, 4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0xfb
mov ecx, edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
je 0x1017f473
jmp 0x1017f530
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
lea edx, section..code
imul esi, eax, 0x68
mov edi, edx
add edi, esi
add edi, 0x18
mov esi, dword [edi]
imul edi, eax, 0x68
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x68
add edx, ebx
add edx, 4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x12c]
add esi, ecx
sub esp, 0xc
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x140], edx
call fcn.1017fa8b
add esp, 0xc
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
add eax, ecx
mov edx, dword [ebp - 0x138]
add edx, 1
cmp edx, 0xfb
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
jne 0x1017f58f
lea eax, [0x10181053]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1018860c], 0xede
mov dword [0x10188610], 0x956
sub esp, 0xc
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], ecx
call fcn.1017f2a6
add esp, 0xc
mov dword [0x1018860c], 0x1f08
sub esp, 0x10
mov eax, dword [ebp - 0x144]
mov dword [esp], eax
mov ecx, dword [ebp - 0x12c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x128]
mov dword [esp + 0xc], edx
call fcn.1017fd33
add esp, 0x10
mov eax, dword [ebp - 0x12c]
add eax, 0x2b84f
mov ecx, dword [ebp - 0x110]
mov dword [ecx], eax
mov dword [0x10188610], 0xe1f
mov dword [ecx + 4], 0x12dc00
mov eax, dword [ebp - 0x12c]
add eax, 0x484e
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x1ff0
mov eax, dword [0x10188610]
add eax, 0xfffff859
mov dword [0x1018860c], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret