Function at 0x1001d16c
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, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1001d260
xor eax, eax
mov dword [0x1003e1f8], 0x2000
mov dword [ebp - 0x13c], eax
jmp 0x1001d227
lea eax, [ebp - 0x12c]
mov dword [0x1003e1f8], 0x14aa
mov dword [ebp - 0x140], eax
call fcn.1001de5d
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.1001e001
mov ecx, eax
mov dword [0x1003e214], eax
mov eax, esp
mov edx, dword [ebp - 0x144]
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 [0x1003e1f8], 0xa
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
jmp 0x1001d2bf
mov eax, dword [ebp - 0x13c]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1001f4cc]
mov dh, byte [eax + 0x1001f49d]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x13c], ecx
je 0x1001d1aa
jmp 0x1001d227
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x9c
mov edi, edx
add edi, esi
add edi, 0x98
mov esi, dword [edi]
imul edi, eax, 0x9c
add edx, edi
add edx, 0x74
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x2c8
mov ecx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
je 0x1001d196
jmp 0x1001d260
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, ecx, 0x9c
mov edi, edx
add edi, esi
add edi, 0x74
imul esi, ecx, 0x9c
mov ebx, edx
add ebx, esi
add ebx, 0x98
mov esi, ecx
add esi, 1
imul ecx, ecx, 0x9c
add edx, ecx
add edx, 0x40
mov ecx, dword [ebp - 0x148]
add ecx, eax
mov ebx, dword [ebx]
mov edx, dword [edx]
movzx edi, word [edi]
xor edi, ebx
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x15c], edi
call fcn.1001d6eb
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x154]
add eax, ecx
mov edx, dword [ebp - 0x158]
cmp edx, 0x2c8
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], eax
jne 0x1001d2bf
lea eax, [0x1001f4ab]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [0x1003e1f4]
mov edi, dword [ebp - 0x148]
add edi, 0xc6100
mov ebx, dword [ebp - 0x148]
add ebx, 0x866c9
add esi, 0xffffd95d
mov dword [0x1003e1f8], esi
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], ebx
call fcn.1001db15
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 - 0x144]
mov dword [esp + 0xc], edx
call fcn.1001dcfe
xor eax, eax
mov dword [0x1003e1f8], 0xe94
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x160]
mov dword [ecx], edx
mov dword [ecx + 4], 0x117200
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [0x1003e1f4], 0xf18
mov dword [ecx + 0xc], 0x1f70
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret