Function at 0x418ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418ae0
mov eax, dword [esp + 0x70]
mov edi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x418b00
sar ecx, 1
sar eax, 1
lea esi, [ecx + eax]
mov dword [esp + 0x4c], eax
add eax, ecx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], ecx
jns 0x418b2a
mov eax, 0xffffffff
jmp 0x418b31
lea eax, [esi*2 + 0x36]
push eax
call fcn.00408230
add esp, 4
mov dword [esp + 4], 0x51824f90
mov dword [esp + 8], 0x55b753a1
mov dword [esp + 0xc], 0x59ba57b7
mov dword [esp + 0x10], 0x5d9d5b78
mov dword [esp + 0x14], 0x61aa5fa4
mov dword [esp + 0x18], 0x658c6387
mov dword [esp + 0x1c], 0x698d6791
mov dword [esp + 0x20], 0x6d846b99
mov dword [esp + 0x24], 0x71bb6f4c
mov dword [esp + 0x28], 0x75867397
mov dword [esp + 0x2c], 0x799d7780
mov dword [esp + 0x30], 0x7d937b96
mov dword [esp + 0x34], 0x1a27f89
mov word [esp + 0x38], 0x300
mov dword [esp + 0x3a], 0
mov word [esp + 0x3e], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0x8d
xor cl, byte [esp + edx + 4]
add cl, 0x3f
mov byte [esp + edx + 4], cl
inc edx
cmp edx, 0x3c
jne 0x418bc0
movzx ecx, word [ebx]
mov ebp, eax
test cx, cx
je 0x418c02
add ebx, 2
mov ebp, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x418bf0
mov dword [esp], eax
mov word [ebp], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x418c32
lea edx, [esp + 6]
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x418c20
mov word [ebp], 0
movzx ecx, word [edi]
test cx, cx
mov dword [esp + 0x48], esi
je 0x418c62
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x418c50
mov word [ebp], 0
mov ebp, dword [esp + 0x6c]
mov esi, dword [ebp]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + edx + 2], 0
lea edx, [edx + 2]
jne 0x418c80
mov eax, edx
sar eax, 1
xor eax, 1
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x418ca0
and edx, 2
add eax, edx
sar ecx, 1
mov edx, ecx
and edx, eax
add edx, edx
mov edi, dword [esp + 0x70]
mov edi, dword [edi]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x418cd0
xor ecx, eax
sar ebx, 1
add ecx, edx
lea eax, [ebx + ecx]
add eax, 0xc
mov ecx, eax
and ecx, 6
xor eax, 6
lea eax, [eax + ecx*2]
test eax, eax
mov dword [esp + 0x40], edi
jns 0x418d01
mov eax, 0xffffffff
jmp 0x418d03
add eax, eax
push eax
call fcn.00408230
add esp, 4
movzx ecx, word [esi]
mov edi, eax
test cx, cx
je 0x418d31
add esi, 2
mov edi, eax
nop
nop
nop
nop
nop
mov word [edi], cx
add edi, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x418d20
mov dword [esp + 0x44], eax
mov word [edi], 0x2f
mov dword [esp + 4], 0x19511b6d
mov dword [esp + 8], 0x65da67a0
mov dword [esp + 0xc], 0x61d063cf
mov dword [esp + 0x10], 0x6dd96fdd
mov dword [esp + 0x14], 0x69d86bdd
mov dword [esp + 0x18], 0x750777d5
mov word [esp + 0x1c], 0x7374
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov eax, 0x3b
mov ecx, 0xc4
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x37]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
mov bl, 0xd8
sub bl, dl
mov byte [esp + eax - 0x37], bl
inc eax
dec ecx
cmp eax, 0x5b
jne 0x418d90
add edi, 2
movzx eax, word [ebp]
test ax, ax
je 0x418dd4
add ebp, 2
mov edx, dword [esp]
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x418dc0
jmp 0x418dd7
mov edx, dword [esp]
mov word [edi], 0
movzx eax, word [esp + 4]
test ax, ax
je 0x418e03
lea ecx, [esp + 6]
mov esi, dword [esp + 0x44]
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418df0
jmp 0x418e07
mov esi, dword [esp + 0x44]
mov word [edi], 0
mov ecx, dword [esp + 0x40]
movzx eax, word [ecx]
test ax, ax
je 0x418e31
add ecx, 2
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418e20
mov word [edi], 0
mov dword [esp + 4], 0x8382816a
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x60
xor cl, byte [esp + eax + 4]
add cl, 0x20
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 6
jne 0x418e50
lea eax, [esp + 4]
push 0
push 0
push 0xc00000
push eax
push edx
push esi
push dword [esp + 0x80]
mov ebx, edx
call fcn.0041c950
add esp, 0x1c
mov byte [esp], al
jmp dword [0x443fd0]