Function at 0x4218b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [esp + 0x6c]
mov edi, dword [eax + 4]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
cmp word [edi + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x4218d0
mov eax, dword [esp + 0x70]
mov esi, dword [eax + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4218f0
sar ecx, 1
sar eax, 1
lea edx, [ecx + eax]
mov dword [esp + 0x4c], eax
add eax, ecx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], edx
jns 0x42191e
mov eax, 0xffffffff
jmp 0x421925
lea eax, [edx*2 + 0x36]
push eax
call fcn.0040c820
add esp, 4
mov dword [esp + 0x44], eax
mov dword [esp + 8], 0xf1c20fb0
mov dword [esp + 0xc], 0xf557f361
mov dword [esp + 0x10], 0xf95af757
mov dword [esp + 0x14], 0xfd3dfb18
mov dword [esp + 0x18], 0xe16aff64
mov dword [esp + 0x1c], 0xe54ce347
mov dword [esp + 0x20], 0xe94de771
mov dword [esp + 0x24], 0xed44eb79
mov dword [esp + 0x28], 0xd15bef0c
mov dword [esp + 0x2c], 0xd546d377
mov dword [esp + 0x30], 0xd97dd740
mov dword [esp + 0x34], 0xdd73db76
mov dword [esp + 0x38], 0xc162df49
mov word [esp + 0x3c], 0xc3c0
mov dword [esp + 0x3e], 0
mov word [esp + 0x42], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 8]
mov ebx, eax
and ebx, 0x7a
mov ebp, ecx
xor ebp, 0x4eba27fd
add ebp, ebx
xor ebp, edx
mov edx, ebp
and edx, 1
xor ebp, 1
lea edx, [edx*2]
add edx, ebp
add dl, 0xe
mov byte [esp + ecx + 8], dl
inc ecx
add eax, 2
cmp ecx, 0x3c
jne 0x4219c0
movzx ecx, word [edi]
mov edx, dword [esp + 0x44]
mov eax, edx
test cx, cx
je 0x421a21
add edi, 2
mov eax, edx
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x421a10
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x421a51
lea edx, [esp + 0xa]
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 0x421a40
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x421a81
add esi, 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 [esi]
add esi, 2
test cx, cx
jne 0x421a70
mov word [eax], 0
mov eax, dword [esp + 0x6c]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421aa0
mov edx, eax
and edx, 2
mov ecx, dword [esp + 0x6c]
mov ebp, dword [ecx + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421ac0
sar eax, 1
mov esi, dword [esp + 0x70]
mov edi, dword [esi]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + esi + 2], 0
lea esi, [esi + 2]
jne 0x421ae0
xor eax, 1
add edx, eax
sar ecx, 1
sar esi, 1
add ecx, edx
lea eax, [esi + ecx]
add eax, 0x12
test eax, eax
jns 0x421b07
mov eax, 0xffffffff
jmp 0x421b10
add ecx, esi
lea eax, [ecx*2 + 0x24]
push eax
call fcn.0040c820
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 4], esi
test ax, ax
je 0x421b41
add ebx, 2
mov esi, dword [esp + 4]
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x421b30
mov word [esi], 0x2f
mov dword [esp + 8], 0x29612b55
mov dword [esp + 0xc], 0x2d9a2f90
mov dword [esp + 0x10], 0x31803387
mov dword [esp + 0x14], 0x35993785
mov dword [esp + 0x18], 0x39883b85
mov dword [esp + 0x1c], 0x3d4f3f8d
mov dword [esp + 0x20], 0x33c
xor eax, eax
mov ecx, eax
add cl, 0x87
xor cl, byte [esp + eax + 8]
add cl, 0x5d
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 0x1c
jne 0x421b80
add esi, 2
movzx eax, word [ebp]
test ax, ax
mov ebx, dword [esp + 0x44]
je 0x421bc2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x421bb0
mov word [esi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x421bf3
lea ecx, [esp + 0xa]
mov ebp, dword [esp + 0x68]
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421be0
jmp 0x421bf7
mov ebp, dword [esp + 0x68]
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x421c21
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x421c10
mov word [esi], 0
mov dword [esp + 8], 0x393a3b6a
mov word [esp + 0xc], 0
mov eax, 0xa867100b
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x5798effd]
xor ecx, eax
mov edx, 0x65
sub edx, ecx
add ecx, 0x1a
and edx, 0x52
and ecx, 0xad
sub ecx, edx
inc cl
mov byte [esp + eax + 0x5798effd], cl
inc eax
cmp eax, 0xa8671011
jne 0x421c40
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
push ebx
mov edi, dword [esp + 0x18]
push edi
push ebp
call fcn.00424300
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44d6a0]