Function at 0x421d50
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 edi, dword [ebp + 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 0x421d70
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 0x421d90
sar edx, 1
sar eax, 1
lea ecx, [edx + eax]
mov dword [esp + 0x4c], eax
add eax, edx
add eax, 0x1b
test eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], ecx
jns 0x421dbe
mov eax, 0xffffffff
jmp 0x421dc5
lea eax, [ecx*2 + 0x36]
push eax
call fcn.0040c7f0
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 0xc], 0xc38ec1bc
mov dword [esp + 0x10], 0xc7a5c5ab
mov dword [esp + 0x14], 0xcba6c9a9
mov dword [esp + 0x18], 0xcf8bcdec
mov dword [esp + 0x1c], 0xf366f168
mov dword [esp + 0x20], 0xf798f591
mov dword [esp + 0x24], 0xfb93f96b
mov dword [esp + 0x28], 0xff90fd93
mov dword [esp + 0x2c], 0xe391e1c0
mov dword [esp + 0x30], 0xe772e581
mov dword [esp + 0x34], 0xeb83e97c
mov dword [esp + 0x38], 0xef89ed82
mov dword [esp + 0x3c], 0x136e1183
mov dword [esp + 0x40], 0x1514
mov byte [esp + 0x44], 0
mov eax, 0x804d4050
mov ecx, 0xaf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x7fb2bfbc]
mov ebx, ecx
xor ebx, eax
and ebx, edx
xor ebx, eax
add ebx, 0x7e7dbe6f
mov edx, ebx
and edx, 1
xor ebx, 1
lea edx, [ebx + edx*2]
mov byte [esp + eax + 0x7fb2bfbc], dl
inc eax
dec ecx
cmp eax, 0x804d4089
jne 0x421e60
movzx ecx, word [edi]
mov eax, dword [esp + 4]
test cx, cx
je 0x421ec1
add edi, 2
mov eax, dword [esp + 4]
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 0x421eb0
mov word [eax], 0
movzx ecx, word [esp + 0xc]
test cx, cx
je 0x421ef1
lea edx, [esp + 0xe]
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 0x421ee0
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x421f21
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 0x421f10
mov word [eax], 0
mov ebx, dword [ebp]
mov eax, 0xfffffffe
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x421f30
sar eax, 1
mov ebp, dword [ebp + 8]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebp + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x421f50
inc eax
sar ecx, 1
mov edx, ecx
and edx, eax
add edx, edx
mov esi, dword [esp + 0x70]
mov edi, dword [esi]
mov esi, 0xfffffffe
nop
cmp word [edi + esi + 2], 0
lea esi, [esi + 2]
jne 0x421f70
xor ecx, eax
sar esi, 1
add ecx, edx
lea eax, [esi + ecx]
add eax, 0x12
test eax, eax
jns 0x421f92
mov eax, 0xffffffff
jmp 0x421f9b
add ecx, esi
lea eax, [ecx*2 + 0x24]
push eax
call fcn.0040c7f0
add esp, 4
mov esi, eax
movzx eax, word [ebx]
mov dword [esp + 8], esi
test ax, ax
je 0x421fd1
add ebx, 2
mov esi, dword [esp + 8]
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 0x421fc0
mov word [esi], 0x2f
mov dword [esp + 0xc], 0xb7fb89db
mov dword [esp + 0x10], 0xb32eb52c
mov dword [esp + 0x14], 0xbf2cb1dd
mov dword [esp + 0x18], 0xbbd3bd23
mov dword [esp + 0x1c], 0xa734b92b
mov dword [esp + 0x20], 0xa3f1a53b
mov word [esp + 0x24], 0xa1a0
mov dword [esp + 0x26], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x1e
xor cl, byte [esp + eax + 0xc]
add cl, 0x6a
mov byte [esp + eax + 0xc], cl
inc eax
cmp eax, 0x1e
jne 0x422020
add esi, 2
movzx eax, word [ebp]
test ax, ax
mov ebx, dword [esp + 0x70]
je 0x422062
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 0x422050
mov word [esi], 0
movzx eax, word [esp + 0xc]
test ax, ax
je 0x422091
lea ecx, [esp + 0xe]
nop
nop
nop
nop
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 0x422080
mov word [esi], 0
movzx eax, word [edi]
test ax, ax
je 0x4220c1
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 0x4220b0
mov word [esi], 0
mov dword [esp + 0xc], 0x818687ee
mov byte [esp + 0x10], 0
mov eax, 0xa1
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x95]
lea edx, [ecx + ecx]
not edx
add edx, ecx
and edx, eax
xor ecx, eax
or ecx, edx
add cl, 0xdb
mov byte [esp + eax - 0x95], cl
inc eax
cmp eax, 0xa6
jne 0x4220e0
lea eax, [esp + 0xc]
push 0
push 0
push 0xc00000
push eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x80]
call fcn.00425870
add esp, 0x1c
mov byte [esp + 3], al
jmp dword [0x44da54]