Function at 0x11a7300
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x504f4e4d
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x11a7369
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, eax
xor edx, 0xd11f246d
and eax, 0xd11f246d
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xdf
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x11a7330
mov eax, dword [esp + 0x18]
mov ecx, dword [0x11cd3c4]
test ecx, ecx
je 0x11a73b4
xor edx, edx
mov esi, dword [0x11cd3c8]
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x11a7390
inc edx
cmp ecx, edx
jne 0x11a7380
jmp 0x11a73b4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x11a73b4
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 5
push 4
push dword [0x11cd3cc]
push ecx
call fcn.011be4e0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x11a7460
push dword [esp + 0x14]
call fcn.011bba10
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x504f4e4d
mov word [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x11a7439
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x18]
mov esi, eax
xor esi, 0xd11f246d
and eax, 0xd11f246d
lea eax, [esi + eax*2]
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xdf
mov edx, dword [esp]
mov byte [esp + edx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x11a7400
mov eax, dword [esp + 0x18]
mov edx, dword [0x11cd3c4]
test edx, edx
je 0x11a7489
xor esi, esi
mov edi, dword [0x11cd3c8]
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x11a7467
inc esi
cmp edx, esi
jne 0x11a7450
jmp 0x11a7489
xor ebx, ebx
jmp 0x11a7739
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x11a7489
push 0
push ecx
push dword [esp + 0x14]
push 5
push 4
push dword [0x11cd3cc]
push edx
call fcn.011be4e0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x11a772d
mov edx, dword [esp + 0xc]
mov ebp, dword [edx]
xor eax, eax
mov ecx, ebp
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x11a74a0
test ebx, ebx
jns 0x11a74c0
mov eax, 0xffffffff
push eax
call fcn.0118c9f0
add esp, 4
mov edi, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
jmp 0x11a74f2
mov esi, edi
add eax, ebp
lea edi, [esi + 2]
mov word [esi], 0xa
mov ebp, dword [eax]
test ebp, ebp
je 0x11a7523
mov ecx, dword [eax + ebp + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x11a74e0
add ecx, 2
mov esi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x11a7510
jmp 0x11a74e2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp edi, eax
je 0x11a7724
mov word [edi], 0
movzx ecx, word [eax]
test cx, cx
je 0x11a7584
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x11a755e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x11a7584
cmp eax, edi
jae 0x11a7584
movzx ebp, cx
cmp ebp, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp ebp, 0x80
jb 0x11a7550
mov edx, ecx
jmp 0x11a7550
lea eax, [ebx + 1]
mov dword [esp + 0x2c], eax
push eax
call fcn.0118c9f0
add esp, 4
mov edx, eax
mov dword [esp + 0x10], eax
test ebx, ebx
jle 0x11a7685
mov edx, dword [esp + 0x10]
cmp dword [esp + 4], edi
jae 0x11a7685
mov edx, dword [esp + 0x10]
lea eax, [edx + ebx]
mov dword [esp + 0x34], eax
add dword [esp + 0x2c], edx
mov edi, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [edi]
test cx, cx
je 0x11a7685
cmp cx, 0x7f
ja 0x11a75f0
mov byte [edx], cl
mov ebp, 1
jmp 0x11a7670
mov eax, edx
not eax
add eax, dword [esp + 0x2c]
movzx ebp, cx
cmp eax, 2
jb 0x11a7630
cmp ebp, 0x7ff
ja 0x11a7630
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov ebp, 2
jmp 0x11a7670
mov dword [esp + 0x30], ebp
xor ebp, ebp
cmp eax, 3
jb 0x11a7670
mov ebp, dword [esp + 0x30]
mov eax, ebp
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, ebp
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
mov eax, ecx
not eax
or eax, 0x3f
add eax, ecx
add al, 0x81
mov byte [edx + 2], al
mov ebp, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, ebp
cmp edx, dword [esp + 0x34]
jae 0x11a7685
lea eax, [edi + 2]
cmp edi, esi
mov edi, eax
jb 0x11a75d0
mov byte [edx], 0
mov dword [esp + 0x18], 0x10e5e300
mov dword [esp + 0x1c], 0xf2fdfef1
mov dword [esp + 0x20], 0xe3e63ffb
mov word [esp + 0x24], 0x65e8
mov dword [esp + 0x26], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x11a7701
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x18]
mov edx, eax
xor edx, 0x26612a6c
add eax, eax
and eax, 0x4cc254d8
mov esi, eax
and esi, edx
xor eax, edx
lea eax, [eax + esi*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xe4
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x11a76c0
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x4c]
push ebx
mov esi, dword [esp + 0x14]
push esi
push eax
call fcn.0118d680
mov ebx, eax
push esi
call fcn.0118ca00
add esp, 4
mov eax, dword [esp + 4]
push eax
call fcn.0118ca00
add esp, 4
push dword [esp + 0xc]
call fcn.011bbab0
add esp, 4
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret