Function at 0x421d40
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 edi, dword [eax + 4]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, edx
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x421d60
mov esi, dword [ecx + 4]
mov ebx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ebx
cmp word [esi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x421d80
sar edx, 1
sar ebx, 1
lea eax, [edx + 0x1b]
mov ecx, ebx
and ecx, eax
xor eax, ebx
lea eax, [eax + ecx*2]
test eax, eax
mov dword [esp + 4], edx
jns 0x421dac
mov eax, 0xffffffff
jmp 0x421dae
add eax, eax
push eax
call fcn.0040cd40
add esp, 4
mov dword [esp + 0xc], 0x895e8b28
mov dword [esp + 0x10], 0x853b8739
mov dword [esp + 0x14], 0x8136833b
mov dword [esp + 0x18], 0x9d459f60
mov dword [esp + 0x1c], 0x99169b14
mov dword [esp + 0x20], 0x95249723
mov dword [esp + 0x24], 0x91259319
mov dword [esp + 0x28], 0x6ddc6f21
mov dword [esp + 0x2c], 0x69c76b8c
mov dword [esp + 0x30], 0x65ea67d3
mov dword [esp + 0x34], 0x61d563e8
mov dword [esp + 0x38], 0x7dc77fd2
mov dword [esp + 0x3c], 0x79de7bf1
mov word [esp + 0x40], 0x7778
mov dword [esp + 0x42], 0
mov word [esp + 0x46], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0xe3
xor cl, byte [esp + edx + 0xc]
add cl, 0x91
mov byte [esp + edx + 0xc], cl
inc edx
cmp edx, 0x3c
jne 0x421e40
movzx ecx, word [edi]
mov ebp, eax
test cx, cx
je 0x421e82
add edi, 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 [edi]
add edi, 2
test cx, cx
jne 0x421e70
mov dword [esp + 0x48], eax
mov word [ebp], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x421eb2
lea edx, [esp + 0xe]
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x421ea0
mov word [ebp], 0
movzx ecx, word [esi]
test cx, cx
mov dword [esp + 0x4c], ebx
je 0x421ee2
add esi, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], cx
add ebp, 2
movzx ecx, word [esi]
add esi, 2
test cx, cx
jne 0x421ed0
mov word [ebp], 0
mov ebp, dword [esp + 0x68]
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421f00
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 0x421f20
mov edx, dword [esp + 0x6c]
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 0x421f40
sar eax, 1
sar ecx, 1
sar edx, 1
add ecx, eax
lea eax, [edx + ecx]
add eax, 0x13
test eax, eax
jns 0x421f64
mov eax, 0xffffffff
jmp 0x421f6d
add ecx, edx
lea eax, [ecx*2 + 0x26]
push eax
call fcn.0040cd40
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 8], esi
test ax, ax
je 0x421fa1
add ebx, 2
mov esi, dword [esp + 8]
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x421f90
mov word [esi], 0x2f
mov dword [esp + 0xc], 0x79c17b55
mov dword [esp + 0x10], 0x7dea7ff0
mov dword [esp + 0x14], 0x71e073e7
mov dword [esp + 0x18], 0x75e977e5
mov dword [esp + 0x1c], 0x69f86be5
mov dword [esp + 0x20], 0x6d3f6ffd
mov dword [esp + 0x24], 0x636c
mov byte [esp + 0x28], 0
mov eax, 0xbf
mov ecx, 0x40
nop
nop
nop
movzx ebx, byte [esp + eax - 0xb3]
mov edx, ecx
xor edx, eax
and edx, ebx
xor edx, eax
add dl, 0x45
mov byte [esp + eax - 0xb3], dl
inc eax
dec ecx
cmp eax, 0xdc
jne 0x421ff0
add esi, 2
movzx eax, word [ebp]
test ax, ax
je 0x422044
add ebp, 2
mov ebx, dword [esp + 0x6c]
nop
nop
nop
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 0x422030
jmp 0x422048
mov ebx, dword [esp + 0x6c]
mov word [esi], 0
movzx eax, word [esp + 0xc]
test ax, ax
je 0x422071
lea ecx, [esp + 0xe]
nop
nop
nop
nop
nop
mov word [esi], ax
add esi, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422060
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x4220a1
add edi, 2
nop
nop
nop
nop
nop
nop
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 0x422090
mov word [esi], 0
mov dword [esp + 0xc], 0x1716194e
mov dword [esp + 0x10], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
mov edi, ecx
xor edi, 0x7a
mov edx, eax
and edx, 0xa
sub edx, edi
xor dl, byte [esp + ecx + 0xc]
add dl, 0x62
mov byte [esp + ecx + 0xc], dl
inc ecx
add eax, 2
cmp ecx, 8
jne 0x4220c0
lea eax, [esp + 0xc]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x58]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x7c]
call fcn.00425950
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44b600]