Function at 0x418d30
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], 0x5b2e593c
mov dword [esp + 0x14], 0x472545d3
mov dword [esp + 0x18], 0x43d64121
mov dword [esp + 0x1c], 0x4f034d6c
mov dword [esp + 0x20], 0x4bd649d0
mov dword [esp + 0x24], 0x77e07519
mov dword [esp + 0x28], 0x731b71e3
mov dword [esp + 0x2c], 0x7fe87deb
mov dword [esp + 0x30], 0x7b097958
mov dword [esp + 0x34], 0x67fa6509
mov dword [esp + 0x38], 0x630b61fc
mov dword [esp + 0x3c], 0x6f016dfa
mov dword [esp + 0x40], 0x6b0e69fb
lea eax, [esp + 0x44]
mov word [esp + 0x44], 0x9594
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov word [esp + 0x4e], 0
mov ecx, 0xb637b44c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x49c84bc4]
mov esi, ecx
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x6c]
add dl, 0xec
mov byte [esp + ecx + 0x49c84bc4], dl
movzx edx, byte [esp + ecx + 0x49c84bc5]
lea esi, [ecx + 1]
and esi, edx
add esi, esi
sub edx, esi
add edx, ecx
inc edx
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x6c]
add dl, 0xec
mov byte [esp + ecx + 0x49c84bc5], dl
add ecx, 2
cmp ecx, 0xb637b48c
jne 0x418de0
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
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418e70
mov ecx, eax
sar ecx, 1
xor ecx, 0x1b
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 4]
mov edx, 0xfffffffe
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x418e90
and eax, 0x36
add ecx, eax
sar edx, 1
mov eax, edx
and eax, ecx
xor edx, ecx
lea eax, [edx + eax*2]
test eax, eax
jns 0x418eb6
mov eax, 0xffffffff
jmp 0x418eb8
add eax, eax
push eax
call fcn.00408e20
add esp, 4
movzx ecx, word [esi]
mov dword [esp + 4], eax
test cx, cx
je 0x418ef1
add esi, 2
mov eax, dword [esp + 4]
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 0x418ee0
mov word [eax], 0
movzx ecx, word [esp + 0x6c]
test cx, cx
je 0x418f21
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 0x418f10
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x418f51
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 0x418f40
mov word [eax], 0
mov dword [esp + 0x10], 0xf337cd1f
mov dword [esp + 0x14], 0xf762f168
mov dword [esp + 0x18], 0xfb68f511
mov dword [esp + 0x1c], 0xff17f96f
mov dword [esp + 0x20], 0xe370fd6f
mov dword [esp + 0x24], 0xe735e177
lea eax, [esp + 0x28]
mov word [esp + 0x28], 0xe5e4
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
xor ecx, ecx
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x10]
lea esi, [ecx - 0x46ee94e2]
lea edi, [ecx + edx]
add edi, 0xb9116b1e
and esi, edx
add esi, esi
sub edi, esi
mov dword [esp + 0x50], edi
mov edx, dword [esp + 0x50]
add dl, 0x2e
mov byte [esp + ecx + 0x10], dl
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
cmp ecx, 0x26
jb 0x418fb0
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
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x419020
mov esi, dword [ebx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x419040
sar eax, 1
add eax, 0xe
mov edx, dword [ebp + 0x10]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x419060
sar ecx, 1
add eax, ecx
sar edx, 1
mov ecx, edx
and ecx, eax
xor edx, eax
lea eax, [edx + ecx*2]
test eax, eax
jns 0x419085
mov eax, 0xffffffff
jmp 0x419087
add eax, eax
push eax
call fcn.00408e20
add esp, 4
movzx ecx, word [edi]
mov dword [esp + 8], eax
test cx, cx
je 0x4190c1
add edi, 2
mov eax, dword [esp + 8]
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 0x4190b0
mov word [eax], 0x2f
add eax, 2
movzx ecx, word [esi]
test cx, cx
je 0x4190f1
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 0x4190e0
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x419123
lea edx, [esp + 0x52]
mov esi, dword [esp + 4]
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 0x419110
jmp 0x419127
mov esi, dword [esp + 4]
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x419151
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 0x419140
mov word [eax], 0
mov dword [esp + 0x10], 0xb3b4b560
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov eax, 0xdf5c8dc9
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x20a37247]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x81
mov byte [esp + eax + 0x20a37247], cl
cmp eax, 0xdf5c8dd5
je 0x4191d6
movzx ecx, byte [esp + eax + 0x20a37248]
lea edx, [eax + 1]
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
inc ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x81
mov byte [esp + eax + 0x20a37248], cl
add eax, 2
jmp 0x419180
push 0
push 0
push 0
push 0xc00000
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x20]
push dword [ebp + 8]
call fcn.0041bac0
add esp, 0x20
mov ebx, eax
jmp dword [0x445470]