Function at 0x4213c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 0x1c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x3a393837
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x1f
ja 0x42149d
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax - 0x64f80289]
and edx, ecx
mov esi, 0x64f80288
sub esi, eax
or esi, ecx
add esi, eax
add esi, 0x9b07fd78
mov edi, esi
and edi, edx
xor edx, esi
add eax, ecx
add eax, 0x9b07fd77
lea ecx, [edx + edi*2]
sub eax, ecx
mov ecx, eax
or ecx, 0xbe
and eax, 0xbe
add eax, ecx
inc al
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp eax, 0x20
jb 0x421430
mov eax, dword [esp + 0x20]
mov ecx, dword [0x44c0b0]
test ecx, ecx
je 0x4214f4
xor edx, edx
mov esi, dword [0x44c0b4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x18dc7455
je 0x4214d0
inc edx
cmp ecx, edx
jne 0x4214c0
jmp 0x4214f4
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x4214f4
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 5
push 4
push dword [0x44c0b8]
push ecx
call fcn.00439090
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x4216a3
push dword [esp + 0x1c]
call fcn.00436b20
add esp, 4
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x3a393837
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x1f
ja 0x4215dd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx + 0x20]
lea esi, [eax - 0x64f80289]
and esi, edx
mov edi, 0x64f80288
sub edi, eax
or edi, edx
add edi, eax
add edi, 0x9b07fd78
mov ebx, edi
and ebx, esi
xor esi, edi
add eax, edx
add eax, 0x9b07fd77
lea edx, [esi + ebx*2]
sub eax, edx
mov edx, eax
or edx, 0xbe
and eax, 0xbe
add eax, edx
inc al
mov edx, dword [esp + 0xc]
mov byte [esp + edx + 0x20], al
mov eax, dword [esp + 0xc]
mov edx, eax
and edx, 1
xor eax, 1
lea eax, [eax + edx*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp eax, 0x20
jb 0x421570
mov eax, dword [esp + 0x20]
mov edx, dword [0x44c0b0]
test edx, edx
je 0x421612
xor esi, esi
mov edi, dword [0x44c0b4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + esi*8], 0x18dc7455
je 0x421721
inc esi
cmp edx, esi
jne 0x421600
mov edi, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
js 0x421913
mov ecx, dword [edi]
xor eax, eax
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea esi, [edx + ecx]
mov ecx, dword [edx + ecx]
add eax, 0x208
add ebx, 0x104
mov edx, esi
test ecx, ecx
jne 0x421630
test ebx, ebx
jns 0x421650
mov eax, 0xffffffff
push eax
call fcn.00436b20
add esp, 4
mov ecx, eax
mov edx, dword [edi]
mov eax, edi
mov dword [esp + 0x18], ecx
mov edi, ecx
jmp 0x42167e
mov word [edi], 0xa
add edi, 2
mov edx, dword [eax]
test edx, edx
je 0x4216aa
mov ecx, dword [eax + edx + 0x3c]
add eax, edx
movzx edx, word [ecx]
test dx, dx
je 0x421670
add ecx, 2
nop
mov word [edi], dx
add edi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x421690
jmp 0x421670
xor ebx, ebx
jmp 0x42191c
mov eax, dword [esp + 0x18]
cmp edi, eax
je 0x421847
mov word [edi], 0
movzx ecx, word [eax]
xor ebx, ebx
test cx, cx
jne 0x4216f0
push 1
call fcn.00436b20
add esp, 4
mov dword [esp + 0x4c], eax
jmp 0x421852
mov ebx, edx
add ebx, esi
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x42174d
cmp eax, edi
jae 0x42174d
mov edx, ebx
movzx ebx, cx
xor ecx, ecx
cmp ebx, 0x800
setb byte [esp + 0x14]
mov esi, 1
cmp ebx, 0x80
jb 0x4216e0
movzx ebx, byte [esp + 0x14]
mov cl, bl
xor ecx, 3
mov esi, ecx
jmp 0x4216e0
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
mov edi, dword [esp + 0x10]
je 0x421616
push 0
push ecx
push edi
push 5
push 4
push dword [0x44c0b8]
push edx
call fcn.00439090
add esp, 0x1c
jmp 0x421616
lea esi, [ebx + 1]
push esi
call fcn.00436b20
add esp, 4
test ebx, ebx
mov dword [esp + 0x4c], eax
jle 0x421852
lea ecx, [eax + ebx]
mov dword [esp + 0x58], ecx
add esi, eax
mov dword [esp + 0x54], esi
mov esi, eax
mov edx, dword [esp + 0x18]
jmp 0x421796
mov byte [esi], cl
mov eax, 1
add edx, 2
add esi, eax
cmp esi, dword [esp + 0x58]
jae 0x421854
cmp edx, edi
jae 0x421854
movzx ecx, word [edx]
test cx, cx
je 0x421854
cmp cx, 0x7f
jbe 0x421780
mov dword [esp + 0x50], esi
mov eax, esi
not eax
add eax, dword [esp + 0x54]
movzx esi, cx
mov dword [esp + 0x14], esi
cmp dword [esp + 0x14], 0x7ff
ja 0x421800
cmp eax, 2
mov eax, 0
mov esi, dword [esp + 0x50]
jb 0x421787
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [esi], al
and cl, 0x3f
or cl, 0x80
mov byte [esi + 1], cl
mov eax, 2
jmp 0x421787
cmp eax, 3
mov eax, 0
mov esi, dword [esp + 0x50]
jb 0x421787
mov eax, dword [esp + 0x14]
shr eax, 0xc
or al, 0xe0
mov byte [esi], al
mov eax, dword [esp + 0x14]
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esi + 1], al
mov eax, ecx
xor eax, 0xc0
or ecx, 0x3f
and ecx, eax
add cl, 0x80
mov byte [esi + 2], cl
mov eax, 3
jmp 0x421787
xor ebx, ebx
mov edi, dword [esp + 0x10]
jmp 0x42190a
mov esi, eax
mov edi, dword [esp + 0x10]
mov byte [esi], 0
mov dword [esp + 0x20], 0xcef5fbd6
mov dword [esp + 0x24], 0xc4fdfcc9
mov dword [esp + 0x28], 0xf3f0bff3
mov word [esp + 0x2c], 0x69f6
mov dword [esp + 0x32], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x15
ja 0x4218e8
nop
nop
nop
nop
nop
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
movzx esi, byte [esp + eax + 0x20]
lea eax, [edx + 0x40370f11]
lea ecx, [edx + esi]
add ecx, 0x40370f11
add edx, 0x11
and edx, esi
and eax, esi
add eax, edx
mov edx, eax
xor edx, ecx
not eax
and eax, ecx
add eax, eax
sub eax, edx
add al, 0x89
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x16
jb 0x4218a0
lea eax, [esp + 0x20]
mov ecx, dword [ebp + 8]
push ebx
mov esi, dword [esp + 0x50]
push esi
push eax
call fcn.00408dd0
mov ebx, eax
push esi
call fcn.004084c0
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call fcn.004084c0
add esp, 4
push edi
call fcn.00436be0
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret