Function at 0x421370
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov ebx, dword [eax + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x421390
mov esi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4213b0
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x48], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], ecx
mov dword [esp], esi
jns 0x4213e1
mov eax, 0xffffffff
jmp 0x4213e8
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c8b0
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 4], 0x33e631d4
mov dword [esp + 8], 0x3fdd3dcb
mov dword [esp + 0xc], 0x3bce39d9
mov dword [esp + 0x10], 0xc70bc5e4
mov dword [esp + 0x14], 0xc33ec138
mov dword [esp + 0x18], 0xcf38cd21
mov dword [esp + 0x1c], 0xcb23c93b
mov dword [esp + 0x20], 0xd720d523
mov dword [esp + 0x24], 0xd301d1f0
mov dword [esp + 0x28], 0xdf22dd31
mov dword [esp + 0x2c], 0xdb33d924
mov dword [esp + 0x30], 0xe709e512
mov dword [esp + 0x34], 0xe306e113
mov word [esp + 0x38], 0xedec
mov dword [esp + 0x3a], 0
mov eax, 0xd390000c
mov ebp, 0x2c6ffff3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ebp - 0x2c6fffef]
lea edi, [ebp - 0x2c6ffeff]
and edi, edx
mov ecx, edi
and ecx, 0xfffffffd
mov esi, edi
and esi, 2
or edi, 2
imul edi, esi
xor esi, 2
imul esi, ecx
add edi, esi
lea esi, [eax + edi]
xor esi, edx
mov ecx, ebp
sub ecx, edi
and ecx, edx
add ecx, ecx
sub ecx, esi
add cl, 0x3c
mov byte [esp + ebp - 0x2c6fffef], cl
dec eax
inc ebp
cmp eax, 0xd38fffd2
jne 0x421480
movzx ecx, word [ebx]
mov edx, dword [esp + 0x40]
mov eax, edx
test cx, cx
je 0x4214f1
add ebx, 2
mov eax, edx
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4214e0
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
mov esi, dword [esp]
je 0x421521
lea edx, [esp + 6]
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 0x421510
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x421551
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 0x421540
mov word [eax], 0
mov eax, dword [esp + 0x68]
mov edi, dword [eax]
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 0x421570
mov ecx, eax
sar ecx, 1
xor ecx, 1
mov edx, dword [esp + 0x68]
mov ebp, dword [edx + 8]
mov edx, 0xfffffffe
nop
nop
cmp word [ebp + edx + 2], 0
lea edx, [edx + 2]
jne 0x421590
and eax, 2
mov esi, dword [esp + 0x6c]
mov ebx, dword [esi]
mov esi, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + esi + 2], 0
lea esi, [esi + 2]
jne 0x4215b0
add ecx, eax
sar edx, 1
sar esi, 1
add edx, ecx
lea eax, [esi + edx]
add eax, 0x12
test eax, eax
jns 0x4215d4
mov eax, 0xffffffff
jmp 0x4215dd
add edx, esi
lea eax, [edx*2 + 0x24]
push eax
call fcn.0040c8b0
add esp, 4
mov esi, eax
movzx eax, word [edi]
mov dword [esp], esi
test ax, ax
je 0x421611
add edi, 2
mov esi, dword [esp]
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 0x421600
mov word [esi], 0x2f
mov dword [esp + 4], 0x11591f4d
mov dword [esp + 8], 0x15861398
mov dword [esp + 0xc], 0x9881773
mov dword [esp + 0x10], 0xd910b9d
mov dword [esp + 0x14], 0x1900f9d
mov dword [esp + 0x18], 0x5530395
mov word [esp + 0x1c], 0x704
mov dword [esp + 0x1e], 0
mov byte [esp + 0x22], 0
mov eax, 0xd7810485
nop
movzx ecx, byte [esp + eax + 0x287efb7f]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0x67
mov byte [esp + eax + 0x287efb7f], cl
inc eax
cmp eax, 0xd78104a4
jne 0x421660
add esi, 2
movzx eax, word [ebp]
test ax, ax
mov edi, dword [esp + 0x40]
je 0x4216b2
add ebp, 2
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4216a0
mov word [esi], 0
movzx eax, word [esp + 4]
test ax, ax
je 0x4216e3
lea ecx, [esp + 6]
mov ebp, dword [esp + 0x6c]
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 0x4216d0
jmp 0x4216e7
mov ebp, dword [esp + 0x6c]
mov word [esi], 0
movzx eax, word [ebx]
test ax, ax
je 0x421711
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x421700
mov word [esi], 0
mov dword [esp + 4], 0x838281ea
mov word [esp + 8], 0
mov eax, 0x27a2fea0
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x27a2fe9c]
xor ecx, eax
mov edx, ecx
and edx, 0x5f
xor ecx, 0xdf
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x27a2fe9c], cl
inc eax
cmp eax, 0x27a2fea6
jne 0x421730
lea eax, [esp + 4]
push 0
push 0
push 0xc00000
push eax
push edi
push dword [esp + 0x14]
push dword [esp + 0x7c]
call fcn.00424990
add esp, 0x1c
mov ebx, eax
jmp dword [0x44b730]