Function at 0x119e380
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x119e3a0
sar eax, 1
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x119e3c0
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x119e3de
mov eax, 0xffffffff
jmp 0x119e3e7
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.0118c9f0
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xe9a6eb58
mov dword [esp + 0xc], 0xed4bef79
mov dword [esp + 0x10], 0xd17ed34b
mov dword [esp + 0x14], 0xd59dd7b0
mov dword [esp + 0x18], 0xd94edb4c
mov dword [esp + 0x1c], 0xdd4cdf73
mov dword [esp + 0x20], 0xc16dc349
mov dword [esp + 0x24], 0xc554c751
mov dword [esp + 0x28], 0xc97fcba4
mov dword [esp + 0x2c], 0xcd5acf63
mov dword [esp + 0x30], 0x319d3358
mov dword [esp + 0x34], 0x359f37a2
mov dword [esp + 0x38], 0x39863ba1
mov word [esp + 0x3c], 0x3f38
mov dword [esp + 0x3e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x39
ja 0x119e4d7
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4b251757
add edx, eax
xor eax, 0xcb251757
lea ebp, [eax + edx*2]
lea eax, [eax + edx*2]
add eax, 2
lea edx, [ecx + ebp]
add edx, 2
and eax, ecx
mov ecx, edx
xor ecx, eax
add ecx, eax
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x4d
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x3a
jb 0x119e480
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x119e501
add ecx, 2
mov eax, esi
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x119e4f0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x119e531
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x119e520
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x119e561
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x119e550
mov word [eax], 0
mov eax, dword [esp + 0x5c]
mov ebp, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax + 2], 0
lea eax, [eax + 2]
jne 0x119e580
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x119e5a0
mov ebx, dword [edi]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x119e5c0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x119e5e4
mov eax, 0xffffffff
jmp 0x119e5ed
add ecx, edx
lea eax, [ecx*2 + 0x1c]
push eax
call fcn.0118c9f0
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x119e622
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x119e610
mov word [eax], 0x2f
mov dword [esp + 8], 0x338f31e7
mov dword [esp + 0xc], 0x2fa22da4
mov dword [esp + 0x10], 0x2bbc29b5
mov dword [esp + 0x14], 0x27bf25b7
mov dword [esp + 0x18], 0x23b421b7
mov dword [esp + 0x1c], 0x1fc91d8f
mov dword [esp + 0x20], 0x1918
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x119e6b1
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0x435c204c
and ecx, 0xc35c204c
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x84
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x119e670
add eax, 2
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x119e6e1
add ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x119e6d0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x119e711
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x119e700
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x119e741
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x119e730
mov word [eax], 0
mov dword [esp + 8], 0xe1e6e7de
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x119e7a9
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
xor edx, 0x47a946a9
and eax, 0xc7a946a9
lea eax, [edx + eax*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xb3
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x119e770
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.011a1310
add esp, 0x20
mov ebx, eax
jmp dword [0x11c8474]