Function at 0x421de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov ebx, dword [ebp + 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 0x421e00
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 0x421e20
sar ecx, 1
sar eax, 1
lea edx, [ecx + eax]
mov dword [esp + 0x48], eax
add eax, ecx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x44], edx
jns 0x421e4e
mov eax, 0xffffffff
jmp 0x421e55
lea eax, [edx*2 + 0x36]
push eax
call fcn.0040c820
add esp, 4
mov dword [esp + 8], 0x9722993c
mov dword [esp + 0xc], 0x930d9507
mov dword [esp + 0x10], 0x8f1a9131
mov dword [esp + 0x14], 0x8b378dec
mov dword [esp + 0x18], 0x870a8900
mov dword [esp + 0x1c], 0x83108519
mov dword [esp + 0x20], 0xff67810f
mov dword [esp + 0x24], 0xfb68fd6f
mov dword [esp + 0x28], 0xf759f998
mov dword [esp + 0x2c], 0xf37ef569
mov dword [esp + 0x30], 0xef77f17c
mov dword [esp + 0x34], 0xeb71ed7e
mov dword [esp + 0x38], 0xe742e967
mov word [esp + 0x3c], 0xe5e4
mov dword [esp + 0x3e], 0
mov esi, 0xb1a3b426
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + esi + 0x4e5c4be2]
mov edx, ecx
and edx, esi
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, esi
add cl, 0x42
mov byte [esp + esi + 0x4e5c4be2], cl
inc esi
cmp esi, 0xb1a3b460
jne 0x421ee0
movzx ecx, word [ebx]
mov esi, eax
test cx, cx
je 0x421f31
add ebx, 2
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x421f20
mov word [esi], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x421f61
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421f50
mov word [esi], 0
movzx ecx, word [edi]
test cx, cx
mov dword [esp + 0x50], eax
je 0x421f91
add edi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], cx
add esi, 2
movzx ecx, word [edi]
add edi, 2
test cx, cx
jne 0x421f80
mov word [esi], 0
mov esi, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [esi + eax + 2], 0
lea eax, [eax + 2]
jne 0x421fa0
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 0x421fc0
mov edx, dword [esp + 0x70]
mov ebx, dword [edx]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + edx + 2], 0
lea edx, [edx + 2]
jne 0x421fe0
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0xd
mov ecx, eax
and ecx, 6
xor eax, 6
lea eax, [eax + ecx*2]
test eax, eax
jns 0x42200f
mov eax, 0xffffffff
jmp 0x422011
add eax, eax
push eax
call fcn.0040c820
add esp, 4
mov edi, eax
movzx eax, word [esi]
mov dword [esp + 4], edi
test ax, ax
je 0x422041
add esi, 2
mov edi, dword [esp + 4]
nop
mov word [edi], ax
add edi, 2
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x422030
mov word [edi], 0x2f
mov dword [esp + 8], 0xc971cb1d
mov dword [esp + 0xc], 0xc54ac740
mov dword [esp + 0x10], 0xc150c35f
mov dword [esp + 0x14], 0xbd29bf4d
mov dword [esp + 0x18], 0xb928bb2d
mov dword [esp + 0x1c], 0xb567b735
mov word [esp + 0x20], 0xb3b4
mov dword [esp + 0x22], 0
mov word [esp + 0x26], 0
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0x33
xor cl, byte [esp + eax + 8]
inc cl
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 0x20
jne 0x422090
add edi, 2
movzx eax, word [ebp]
test ax, ax
je 0x4220d2
add ebp, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ebp]
add ebp, 2
test ax, ax
jne 0x4220c0
mov word [edi], 0
movzx eax, word [esp + 8]
test ax, ax
je 0x422101
lea ecx, [esp + 0xa]
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 0x4220f0
mov word [edi], 0
movzx eax, word [ebx]
test ax, ax
je 0x422131
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [edi], ax
add edi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x422120
mov word [edi], 0
mov dword [esp + 8], 0x9796994e
mov word [esp + 0xc], 0
mov eax, 0x68185e66
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x68185e5e]
lea ecx, [eax - 0x68185e00]
and ecx, esi
add ecx, ecx
sub esi, ecx
add esi, eax
mov ebx, esi
not ebx
add ebx, ebx
or ebx, 0x10f3affd
xor esi, 0x879d7fe
lea ebp, [ebx + esi]
mov ecx, 0x7e
sub ecx, ebp
mov edx, ebp
not edx
add esi, ebx
inc esi
mov ebx, esi
or ebx, 1
add edx, ebx
sub ebp, ebx
and ebp, 2
mov ebx, edx
and ebx, 0xfd
imul ebx, ebp
mov ebp, edx
and ebp, 2
or edx, 2
imul edx, ebp
and esi, 0x85
and ecx, 0x7a
or ecx, esi
xor ecx, 0x84
add ecx, ebx
add ecx, edx
mov byte [esp + eax - 0x68185e5e], cl
inc eax
cmp eax, 0x68185e6c
jne 0x422150
lea eax, [esp + 8]
push 0
push 0
push 0xc00000
push eax
mov esi, dword [esp + 0x60]
push esi
push dword [esp + 0x18]
push dword [esp + 0x80]
call fcn.00425020
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44babc]