Function at 0x421480
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x6c]
mov ebx, dword [ebp + 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 0x4214a0
mov edi, dword [ecx + 4]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + eax + 2], 0
lea eax, [eax + 2]
jne 0x4214c0
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
jns 0x4214ee
mov eax, 0xffffffff
jmp 0x4214f5
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c4e0
add esp, 4
mov dword [esp], eax
mov dword [esp + 4], 0x994e9b78
mov dword [esp + 8], 0xa54ba769
mov dword [esp + 0xc], 0xa156a34b
mov dword [esp + 0x10], 0xad65af80
mov dword [esp + 0x14], 0xa956ab54
mov dword [esp + 0x18], 0xb544b743
mov dword [esp + 0x1c], 0xb145b349
mov dword [esp + 0x20], 0xbd4cbf41
mov dword [esp + 0x24], 0xb967bb9c
mov dword [esp + 0x28], 0x45ba4753
mov dword [esp + 0x2c], 0x41b543b8
mov dword [esp + 0x30], 0x4da74fb2
mov dword [esp + 0x34], 0x49ae4bb1
mov word [esp + 0x38], 0x5748
mov dword [esp + 0x3a], 0
mov byte [esp + 0x3e], 0
mov eax, 0x2132c0db
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x2132c0d7]
xor ecx, eax
add ecx, 0x900cb013
mov edx, ecx
and edx, 0x25
xor ecx, 0xa5
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x2132c0d7], cl
inc eax
cmp eax, 0x2132c116
jne 0x421590
movzx ecx, word [ebx]
mov eax, dword [esp]
test cx, cx
je 0x4215e1
add ebx, 2
mov eax, dword [esp]
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4215d0
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x421611
lea edx, [esp + 6]
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 0x421600
mov word [eax], 0
movzx ecx, word [edi]
test cx, cx
je 0x421641
add edi, 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 [edi]
add edi, 2
test cx, cx
jne 0x421630
mov word [eax], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421650
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421670
mov edx, dword [esp + 0x70]
mov edi, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x421690
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
mov dword [esp + 0x50], edi
jns 0x4216b8
mov eax, 0xffffffff
jmp 0x4216c1
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040c4e0
add esp, 4
movzx ecx, word [esi]
mov edi, eax
test cx, cx
je 0x4216f1
add esi, 2
mov edi, eax
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 0x4216e0
mov dword [esp + 0x40], eax
mov word [edi], 0x2f
mov dword [esp + 4], 0x17eb19cb
mov dword [esp + 8], 0x139e159c
mov dword [esp + 0xc], 0xf9c118d
mov dword [esp + 0x10], 0xb930d83
mov dword [esp + 0x14], 0x794099b
mov dword [esp + 0x18], 0x3d1058b
mov word [esp + 0x1c], 0x100
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov eax, 0x46
mov ecx, 0xb9
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x42]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
mov bl, 0xa1
sub bl, dl
mov byte [esp + eax - 0x42], bl
inc eax
dec ecx
cmp eax, 0x66
jne 0x421750
add edi, 2
movzx eax, word [ebp]
test ax, ax
je 0x421794
add ebp, 2
mov esi, dword [esp + 0x70]
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x421780
jmp 0x421798
mov esi, dword [esp + 0x70]
mov word [edi], 0
movzx eax, word [esp + 4]
test ax, ax
je 0x4217d3
lea ecx, [esp + 6]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4217c0
jmp 0x4217da
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp]
mov word [edi], 0
mov ecx, dword [esp + 0x50]
movzx eax, word [ecx]
test ax, ax
je 0x421801
add ecx, 2
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4217f0
mov word [edi], 0
mov dword [esp + 4], 0x4342416a
mov byte [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x90
xor cl, byte [esp + eax + 4]
add cl, 0x30
mov byte [esp + eax + 4], cl
inc eax
cmp eax, 5
jne 0x421820
lea eax, [esp + 4]
push 0
push 0
push 0xc00000
push eax
push ebp
push ebx
push dword [esp + 0x80]
call fcn.004249e0
add esp, 0x1c
mov byte [esp], al
jmp dword [0x44a9cc]