Function at 0x1beed0
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 0x1beef0
mov ebx, dword [edi + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x1bef10
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x1bef30
mov eax, 0xffffffff
jmp 0x1bef39
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.001ac630
add esp, 4
mov esi, eax
mov dword [esp + 8], 0xc1b2c7a0
mov dword [esp + 0xc], 0xcdafc351
mov dword [esp + 0x10], 0xc95acfaf
mov dword [esp + 0x14], 0xf585cbe8
mov dword [esp + 0x18], 0xf16af76c
mov dword [esp + 0x1c], 0xfd64f39f
mov dword [esp + 0x20], 0xf995ff61
mov dword [esp + 0x24], 0xe56cfb69
mov dword [esp + 0x28], 0xe19be7c4
mov dword [esp + 0x2c], 0xed7ee38f
mov dword [esp + 0x30], 0xe985ef70
mov dword [esp + 0x34], 0x1583eb7e
mov dword [esp + 0x38], 0x11721789
mov dword [esp + 0x3c], 0x1310
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x1bf01c
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
mov edx, ecx
xor edx, 0x20a06ad1
add ecx, ecx
and ecx, 0x4140d5a2
mov ebp, ecx
and ebp, edx
xor ecx, edx
lea ecx, [ecx + ebp*2]
lea edx, [ecx + eax]
not eax
or ecx, eax
sub eax, ecx
lea eax, [edx + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xeb
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x1befd0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x1bf051
add ecx, 2
mov eax, esi
nop
nop
nop
nop
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 0x1bf040
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x1bf081
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 0x1bf070
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x1bf0b1
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 0x1bf0a0
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 0x1bf0d0
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 0x1bf0f0
sar eax, 1
sar ecx, 1
inc eax
mov edx, ecx
and edx, eax
mov ebx, dword [edi]
mov edi, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [ebx + edi + 2], 0
lea edi, [edi + 2]
jne 0x1bf110
xor ecx, eax
sar edi, 1
lea eax, [ecx + edx*2]
lea ecx, [edi + eax]
add ecx, 0xd
test ecx, ecx
jns 0x1bf133
mov eax, 0xffffffff
jmp 0x1bf13c
add eax, edi
lea eax, [eax*2 + 0x1a]
push eax
call fcn.001ac630
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
je 0x1bf172
add ebp, 2
mov eax, edi
nop
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 0x1bf160
mov word [eax], 0x2f
mov dword [esp + 8], 0x71b97f8d
mov dword [esp + 0xc], 0x75c673f8
mov dword [esp + 0x10], 0x49c877d3
mov dword [esp + 0x14], 0x4df14bfd
mov dword [esp + 0x18], 0x41f04ffd
mov dword [esp + 0x1c], 0x45b343f5
mov dword [esp + 0x20], 0x4744
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x1bf20d
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
mov ebp, ecx
xor ebp, 0xba70395
and ecx, 0xba70395
lea ecx, [ecx*2]
add ecx, ebp
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov edx, ecx
xor edx, 0xe9
and ecx, 0x16
add ecx, ecx
sub ecx, edx
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x1bf1c0
add eax, 2
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x1bf241
add ecx, 2
nop
nop
nop
nop
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 0x1bf230
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x1bf271
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 0x1bf260
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x1bf2a1
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 0x1bf290
mov word [eax], 0
mov dword [esp + 8], 0x797a7b2a
mov word [esp + 0xc], 0
mov byte [esp + 0xe], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x1bf310
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, 0x215aeb
and eax, 0x215aeb
lea eax, [edx + eax*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x69
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x1bf2d0
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x74]
call fcn.001c1c60
add esp, 0x20
mov ebx, eax
jmp dword [0x1ec2e0]