Function at 0x418810
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov ebp, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ebp + 2], 0
lea ebp, [ebp + 2]
jne 0x418830
mov esi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418850
sar ebp, 1
sar eax, 1
lea ecx, [eax + ebp]
add ecx, 2
test ecx, ecx
jns 0x418870
mov eax, 0xffffffff
jmp 0x418879
add eax, ebp
lea eax, [eax*2 + 4]
push eax
call fcn.004084d0
add esp, 4
movzx ecx, word [esi]
mov edi, eax
test cx, cx
je 0x4188b1
add esi, 2
mov edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x4188a0
mov word [edi], 0x5c
add edi, 2
movzx ecx, word [ebx]
test cx, cx
je 0x4188e1
lea edx, [ebx + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4188d0
mov word [edi], 0
lea ecx, [esp + 8]
push 0x60
push 3
push 0x120089
push ecx
mov dword [esp + 0x14], eax
push eax
call fcn.00440d20
add esp, 0x14
mov ebx, eax
mov dword [esp + 0xc], 0xb7f609c7
mov dword [esp + 0x10], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0xc]
lea ecx, [eax + 0x111c3fe]
mov edi, 0x36ee3c01
sub edi, eax
and edi, 0x300c07f6
and ecx, 0x100c009
or ecx, edi
mov edi, ecx
xor edi, edx
xor edi, 0x47e2f809
xor ecx, 9
and ecx, edx
or ecx, edi
lea edi, [edx + edx]
not edi
add edi, edx
lea esi, [eax - 0x76ee3c02]
or esi, edi
mov edi, 1
sub edi, eax
and edi, edx
not edi
and edi, ecx
and edi, esi
lea ecx, [edi + edi]
not ecx
add ecx, edi
add cl, 0xa
mov byte [esp + eax + 0xc], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 8
jb case.default.0x418996
xor eax, eax
cmp ebx, dword [esp + 0xc]
sete al
jmp dword [eax*4 + 0x447408]
mov dword [esp + 0x14], 0xe92a2b50
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x14]
lea ecx, [eax + 0xb7]
mov esi, 0x48
sub esi, eax
xor ecx, esi
and ecx, edx
xor ecx, esi
mov dl, 0x6c
sub dl, cl
mov byte [esp + eax + 0x14], dl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 7
jb case.default.0x4189fd
xor eax, eax
cmp ebx, dword [esp + 0x14]
sete al
mov esi, dword [esp + 4]
jmp dword [eax*4 + 0x447410]
mov esi, dword [esp + 4]
push 0
push 0x1388
push esi
call fcn.004398a0
add esp, 0xc
movzx eax, al
jmp dword [eax*4 + 0x447418]
not ebx
shr ebx, 0x1f
jmp dword [ebx*4 + 0x447420]
xor ebx, ebx
jmp dword [0x447468]
push 0x60
push 3
push 0x120089
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00440d20
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x447420]
lea eax, [esp + 0x14]
push 0
push eax
push dword [esp + 0x10]
call fcn.00441040
add esp, 0xc
not eax
shr eax, 0x1f
xor esi, esi
mov dword [esp], 0
jmp dword [eax*4 + 0x447428]
mov edi, dword [esp + 0x14]
push edi
call fcn.004084d0
add esp, 4
mov ebx, eax
push 0
push edi
push eax
push dword [esp + 0x14]
call fcn.00441100
add esp, 0x10
mov ecx, dword [0x44743c]
nop
nop
nop
nop
nop
nop
nop
jmp ecx
mov eax, dword [esp + 8]
mov dword [esp + 0xc], 0xbcbdbebf
mov byte [esp + 0x10], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + esi + 0xc]
mov ecx, esi
or ecx, edx
or ecx, 0xeaaac3e0
lea edi, [esi + 0xe0]
and edi, edx
sub ecx, edi
lea edx, [ecx + 0x6aaa2c9f]
mov edi, edx
and edi, 1
mov ebx, edx
and ebx, 0xfe
xor edx, 1
add ecx, edx
add ecx, 0x6aaa2c9f
sub ecx, ebx
add ecx, edi
mov byte [esp + esi + 0xc], cl
inc esi
cmp esi, 5
jne 0x418c40
mov ecx, dword [0x44e1c8]
test ecx, ecx
mov ebx, dword [esp]
je 0x418cb8
mov edx, dword [esp + 0xc]
xor esi, esi
mov edi, dword [0x44e1cc]
nop
nop
cmp dword [edi + esi*8], 0x1b6183f2
je 0x418cb0
inc esi
cmp ecx, esi
jne 0x418ca0
jmp 0x418cb8
mov ecx, dword [edi + esi*8 + 4]
cmp ecx, edx
jne 0x418cc2
mov esi, dword [esp + 4]
jmp dword [0x447468]
push eax
push 4
push ecx
push dword [0x44e1d0]
call fcn.0043e5b0
add esp, 0x10
mov esi, dword [esp + 4]
jmp dword [0x447468]