Function at 0x418170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov dword [esp + 0x10], 0x632e611c
mov dword [esp + 0x14], 0x6705650b
mov dword [esp + 0x18], 0x6b066909
mov dword [esp + 0x1c], 0x6f2b6d4c
mov dword [esp + 0x20], 0x93069108
mov dword [esp + 0x24], 0x97f895f1
mov dword [esp + 0x28], 0x9bf3990b
mov dword [esp + 0x2c], 0x9ff09df3
mov dword [esp + 0x30], 0x83f181a0
mov dword [esp + 0x34], 0x871285e1
mov dword [esp + 0x38], 0x8be3891c
mov dword [esp + 0x3c], 0x8fe98de2
mov dword [esp + 0x40], 0xb3ceb123
mov word [esp + 0x44], 0xb5b4
mov dword [esp + 0x46], 0
mov dword [esp + 0x4a], 0
mov dword [esp + 0x4e], 0
mov dword [esp + 0x52], 0
mov dword [esp + 0x56], 0
mov byte [esp + 0x5a], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x84]
cmp eax, 0x4a
ja 0x418299
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x84]
movzx edx, byte [esp + eax + 0x10]
mov eax, 0x8f
sub eax, ecx
add ecx, 0x70
and ecx, edx
or eax, edx
not eax
add eax, edx
sub eax, ecx
add al, 0xf0
mov ecx, dword [esp + 0x84]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 0x84]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x84]
cmp eax, 0x4b
jb 0x418240
mov esi, dword [ebp + 0xc]
movzx ecx, word [esp + 0x10]
lea eax, [esp + 0x84]
test cx, cx
je 0x4182d1
lea edx, [esp + 0x12]
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 [edx]
add edx, 2
test cx, cx
jne 0x4182c0
mov ecx, dword [ebp + 0x10]
mov word [eax], 0
mov esi, dword [esi + 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 0x4182f0
sar eax, 1
mov edi, dword [ecx]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418310
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x41832e
mov eax, 0xffffffff
jmp 0x418335
add eax, ecx
add eax, eax
add eax, 0x36
push eax
call fcn.0042eb60
add esp, 4
movzx ecx, word [esi]
mov ebx, eax
test cx, cx
je 0x418361
add esi, 2
mov ebx, eax
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x418350
mov dword [esp + 0x64], eax
mov word [ebx], 0
movzx ecx, word [esp + 0x84]
test cx, cx
je 0x418391
lea edx, [esp + 0x86]
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x418380
mov word [ebx], 0
movzx ecx, word [edi]
test cx, cx
je 0x4183c1
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], cx
add ebx, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x4183b0
mov word [ebx], 0
mov dword [esp + 0x10], 0xfbbff9d7
mov dword [esp + 0x14], 0xff68fd72
mov dword [esp + 0x18], 0xf36ef159
mov dword [esp + 0x1c], 0xf76ff567
mov dword [esp + 0x20], 0xeb76e967
mov dword [esp + 0x24], 0xefbded7f
mov word [esp + 0x28], 0xe1ee
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x68]
cmp eax, 0x25
ja 0x418464
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x68]
add al, 0xbf
xor al, byte [esp + ecx + 0x10]
add al, 0xc7
mov ecx, dword [esp + 0x68]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 0x68]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
cmp eax, 0x26
jb 0x418430
movzx ecx, word [esp + 0x10]
test cx, cx
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x68]
je 0x418491
lea edx, [esp + 0x12]
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 0x418480
mov word [eax], 0
mov esi, dword [edi]
mov eax, 0xfffffffe
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4184a0
mov ebx, dword [edi + 8]
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 0x4184c0
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x4184e0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xe
test eax, eax
jns 0x418504
mov eax, 0xffffffff
jmp 0x41850c
add ecx, edx
lea eax, [ecx + ecx]
add eax, 0x1c
push eax
call fcn.0042eb60
add esp, 4
movzx edx, word [esi]
mov ecx, eax
test dx, dx
je 0x418541
add esi, 2
mov ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x418530
mov word [ecx], 0x2f
add ecx, 2
movzx edx, word [ebx]
test dx, dx
je 0x418571
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [ebx]
add ebx, 2
test dx, dx
jne 0x418560
mov word [ecx], 0
movzx edx, word [esp + 0x68]
test dx, dx
je 0x4185a1
lea esi, [esp + 0x6a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [esi]
add esi, 2
test dx, dx
jne 0x418590
mov word [ecx], 0
movzx edx, word [edi]
test dx, dx
je 0x4185d1
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], dx
add ecx, 2
movzx edx, word [edi]
add edi, 2
test dx, dx
jne 0x4185c0
mov word [ecx], 0
mov word [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xb3b4b5c0
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 0x11
ja 0x418656
nop
nop
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx esi, byte [esp + ecx + 0x10]
lea ecx, [edx - 0x15d0e067]
add edx, 0x99
and edx, esi
or ecx, esi
sub ecx, edx
mov edx, ecx
or edx, 0xd0
and ecx, 0xd0
add ecx, edx
inc cl
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 0x12
jb 0x418610
lea ecx, [esp + 0x10]
push 0
push 0xc00000
push ecx
push dword [esp + 0x70]
push eax
push dword [ebp + 8]
call fcn.00419300
add esp, 0x18
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret