Function at 0x4210d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x707f7e7d
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x421139
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
mov edx, eax
and edx, 0xede72815
xor eax, 0x6de72815
lea eax, [eax + edx*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x97
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x421100
mov eax, dword [esp + 0xc]
mov ecx, dword [0x44bbd0]
test ecx, ecx
je 0x421184
xor edx, edx
mov esi, dword [0x44bbd4]
nop
cmp dword [esi + edx*8], 0xcecd21fd
je 0x421160
inc edx
cmp ecx, edx
jne 0x421150
jmp 0x421184
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x421184
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 5
push 4
push dword [0x44bbd8]
push ecx
call fcn.0043c6e0
add esp, 0x1c
cmp eax, 0xc0000004
jne 0x421220
push dword [esp + 0x24]
call fcn.0043a0c0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0xc], 0x707f7e7d
mov byte [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x4211f9
nop
nop
nop
mov eax, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0xc]
mov esi, eax
and esi, 0xede72815
xor eax, 0x6de72815
lea eax, [eax + esi*2]
xor eax, edx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x97
mov edx, dword [esp]
mov byte [esp + edx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x4211c0
mov eax, dword [esp + 0xc]
mov edx, dword [0x44bbd0]
test edx, edx
je 0x421246
xor esi, esi
mov edi, dword [0x44bbd4]
nop
cmp dword [edi + esi*8], 0xcecd21fd
je 0x421227
inc esi
cmp edx, esi
jne 0x421210
jmp 0x421246
xor ebx, ebx
jmp 0x42151a
mov edx, dword [edi + esi*8 + 4]
cmp edx, eax
je 0x421246
push 0
push ecx
push ebp
push 5
push 4
push dword [0x44bbd8]
push edx
call fcn.0043c6e0
add esp, 0x1c
xor ebx, ebx
test eax, eax
js 0x421511
mov edi, dword [ebp]
mov eax, edi
mov ecx, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea edx, [ecx + eax]
mov esi, ebx
and esi, 1
xor ebx, 1
lea ebx, [ebx + esi*2]
mov eax, dword [ecx + eax]
mov ecx, edx
test eax, eax
jne 0x421260
mov eax, ebx
and eax, 0xfffffefb
mov ecx, ebx
and ecx, 0x104
or ebx, 0x104
imul ebx, ecx
xor ecx, 0x104
imul ecx, eax
add ebx, ecx
mov dword [esp + 0x20], ebp
jns 0x4212a7
mov ebx, 0xffffffff
jmp 0x4212a9
add ebx, ebx
push ebx
call fcn.00408680
add esp, 4
mov ebp, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
jmp 0x4212d2
mov esi, ebp
add eax, edi
lea ebp, [esi + 2]
mov word [esi], 0xa
mov edi, dword [eax]
test edi, edi
je 0x421303
mov ecx, dword [eax + edi + 0x3c]
movzx edx, word [ecx]
test dx, dx
je 0x4212c0
add ecx, 2
mov esi, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [esi], dx
add esi, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4212f0
jmp 0x4212c2
xor ebx, ebx
mov eax, dword [esp + 4]
cmp ebp, eax
je 0x421504
mov word [ebp], 0
movzx ecx, word [eax]
test cx, cx
je 0x421364
xor ebx, ebx
mov eax, dword [esp + 4]
jmp 0x42133e
add ebx, edx
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
je 0x421364
cmp eax, ebp
jae 0x421364
movzx edi, cx
cmp edi, 0x800
mov ecx, 3
sbb ecx, 0
mov edx, 1
cmp edi, 0x80
jb 0x421330
mov edx, ecx
jmp 0x421330
lea eax, [ebx + 1]
mov dword [esp + 0x28], eax
push eax
call fcn.00408680
add esp, 4
mov edx, eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x421465
mov edx, dword [esp + 0x1c]
cmp dword [esp + 4], ebp
jae 0x421465
mov edx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov dword [esp + 0x30], eax
add dword [esp + 0x28], edx
mov ebp, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebp]
test cx, cx
je 0x421465
cmp cx, 0x7f
ja 0x4213d0
mov byte [edx], cl
mov edi, 1
jmp 0x421450
mov eax, edx
not eax
add eax, dword [esp + 0x28]
movzx edi, cx
cmp eax, 2
jb 0x421410
cmp edi, 0x7ff
ja 0x421410
mov eax, ecx
shr eax, 6
add al, 0xc0
mov byte [edx], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 1], cl
mov edi, 2
jmp 0x421450
mov dword [esp + 0x2c], edi
xor edi, edi
cmp eax, 3
jb 0x421450
mov edi, dword [esp + 0x2c]
mov eax, edi
shr eax, 0xc
or al, 0xe0
mov byte [edx], al
mov eax, edi
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [edx + 1], al
and cl, 0x3f
or cl, 0x80
mov byte [edx + 2], cl
mov edi, 3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add edx, edi
cmp edx, dword [esp + 0x30]
jae 0x421465
lea eax, [ebp + 2]
cmp ebp, esi
mov ebp, eax
jb 0x4213b0
mov byte [edx], 0
mov dword [esp + 0xc], 0x283d3f58
mov dword [esp + 0x10], 0x26353a29
mov dword [esp + 0x14], 0xf327337
mov dword [esp + 0x18], 0x8530
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x4214db
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0xc]
lea edx, [eax + ecx]
add edx, 0x95c857e2
add eax, 0x95c857e2
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x96
mov ecx, dword [esp]
mov byte [esp + ecx + 0xc], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x4214a0
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0x48]
push ebx
mov esi, dword [esp + 0x20]
push esi
push eax
call fcn.00409230
mov ebx, eax
push esi
call fcn.00408690
add esp, 4
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 4]
jmp 0x421508
mov ebp, dword [esp + 0x20]
push eax
call fcn.00408690
add esp, 4
push ebp
call fcn.0043a150
add esp, 4
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret