Function at 0x4188c0
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], 0xbc805fa
mov dword [esp + 0x14], 0xfed099b
mov dword [esp + 0x18], 0x33e00de9
mov dword [esp + 0x1c], 0x37fb3112
mov dword [esp + 0x20], 0x3ba035ae
mov dword [esp + 0x24], 0x3faa39d1
mov dword [esp + 0x28], 0x23d33dab
mov dword [esp + 0x2c], 0x27b221b3
mov dword [esp + 0x30], 0x2bd12506
mov dword [esp + 0x34], 0x2fbc29c1
mov dword [esp + 0x38], 0xd3c32dba
mov dword [esp + 0x3c], 0xd739d140
mov dword [esp + 0x40], 0xdb28d543
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0xd9da
mov dword [esp + 0x46], 0
mov word [esp + 0x4a], 0
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0x50]
cmp ecx, 0x3b
ja 0x4189b1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x50]
movzx edx, byte [esp + edx + 0x10]
lea esi, [ecx - 0x46f670ab]
and esi, edx
add ecx, edx
add ecx, 0xb9098f55
add esi, esi
sub ecx, esi
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x6c]
add cl, 0xad
mov edx, dword [esp + 0x50]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0x50]
mov ecx, dword [esp + 0x50]
cmp ecx, 0x3c
jb 0x418970
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
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4189e0
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 0x418a00
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x418a1e
mov eax, 0xffffffff
jmp 0x418a25
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.00409310
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 8], eax
test cx, cx
je 0x418a61
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 0x418a50
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x418a91
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 0x418a80
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x418ac1
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 0x418ab0
mov word [eax], 0
mov dword [esp + 0x10], 0x239f21f7
mov dword [esp + 0x14], 0x1f901daa
mov dword [esp + 0x18], 0x1b8e1981
mov dword [esp + 0x1c], 0x178f1597
mov dword [esp + 0x20], 0x13861187
mov dword [esp + 0x24], 0xfdd0d9f
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0x90e
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x25
ja 0x418b6d
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 + edx]
add esi, 0xf164eedb
add ecx, 0xf164eedb
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x50]
add cl, 3
mov edx, dword [esp]
mov byte [esp + edx + 0x10], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x26
jb 0x418b30
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
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418ba0
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 0x418bc0
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 0x418bf0
and ecx, 0x1a
add ecx, edx
sar eax, 1
add eax, ecx
jns 0x418c0d
mov eax, 0xffffffff
jmp 0x418c0f
add eax, eax
push eax
call fcn.00409310
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 0xc], eax
test cx, cx
je 0x418c41
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 0x418c30
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x418c71
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 0x418c60
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x418ca3
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 0x418c90
jmp 0x418ca7
mov esi, dword [esp + 8]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x418cd1
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 0x418cc0
mov word [eax], 0
mov dword [esp + 0x10], 0xb3b4b560
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x418d5c
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, 0x62a939e9
add eax, 0x62a939e9
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0xa0
and eax, 0x20
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x418d10
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.0041b770
add esp, 0x20
mov ebx, eax
jmp dword [0x4430e8]