Function at 0x4182e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa8
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x63ae619c
mov dword [esp + 0x14], 0x6785658b
mov dword [esp + 0x18], 0x6b866989
mov dword [esp + 0x1c], 0x6fab6d4c
mov dword [esp + 0x20], 0x13861188
mov dword [esp + 0x24], 0x17f815f1
mov dword [esp + 0x28], 0x1bf3198b
mov dword [esp + 0x2c], 0x1ff01df3
mov dword [esp + 0x30], 0x3f10120
mov dword [esp + 0x34], 0x79205e1
mov dword [esp + 0x38], 0xbe3099c
mov dword [esp + 0x3c], 0xfe90de2
mov dword [esp + 0x40], 0x33ce31a3
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x3534
mov dword [esp + 0x46], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
cmp ecx, 0x39
ja 0x4183bf
nop
nop
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx - 0x77ae4f50]
add ecx, 0xb0
and ecx, edx
or esi, edx
sub esi, ecx
mov dword [esp + 0x6c], esi
mov ecx, dword [esp + 0x6c]
add cl, 0x30
mov edx, dword [esp + 0x50]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
cmp ecx, 0x3a
jb 0x418380
lea edi, [esp + 0x6c]
lea edx, [esp + 0x10]
mov ecx, 0xd
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0xa0]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov esi, dword [ebx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4183f0
sar eax, 1
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418410
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41842e
mov eax, 0xffffffff
jmp 0x418435
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00408cd0
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x418471
add esi, 2
mov eax, dword [esp + 8]
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 [esi]
add esi, 2
test cx, cx
jne 0x418460
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x4184a1
lea edx, [esp + 0x6e]
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 0x418490
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x4184d1
add edi, 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 [edi]
add edi, 2
test cx, cx
jne 0x4184c0
mov word [eax], 0
mov dword [esp + 0x10], 0x1bc7192f
mov dword [esp + 0x14], 0x179a159c
mov dword [esp + 0x18], 0x13e411ed
mov dword [esp + 0x1c], 0x2fd72ddf
mov dword [esp + 0x20], 0x2bdc29df
mov dword [esp + 0x24], 0x271125d7
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x2120
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov byte [esp + 0x32], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x22
ja 0x41857c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx + 0x6efadbd4]
and esi, edx
add ecx, edx
add ecx, 0x6efadbd4
add esi, esi
sub ecx, esi
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x50]
add cl, 0x34
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x23
jb 0x418540
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
mov ecx, 6
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
lea edi, [esp + 0x68]
mov ecx, 1
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov edi, dword [ebx]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4185b0
sar eax, 1
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4185d0
sar ecx, 1
lea ebx, [eax + ecx]
lea edx, [eax + ecx]
inc edx
lea ecx, [ebx + ebx]
add ecx, 2
xor edx, 0xd
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x418600
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x41861d
mov eax, 0xffffffff
jmp 0x41861f
add eax, eax
push eax
call fcn.00408cd0
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x418651
add edi, 2
mov eax, dword [esp + 0xc]
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x418640
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x418681
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x418670
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x4186b3
lea edx, [esp + 0x52]
mov esi, dword [esp + 8]
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 0x4186a0
jmp 0x4186b7
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x4186e1
add ebx, 2
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 0x4186d0
mov word [eax], 0
mov dword [esp + 0x10], 0x7b78795c
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x41876b
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xddf60c2f
add eax, 0xddf60c2f
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0xb6
and eax, 0x36
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x418710
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x24]
push dword [ebp + 8]
call fcn.0041ad60
add esp, 0x20
mov ebx, eax
jmp dword [0x4422d8]