Function at 0x10020a50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f06c
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x8c], edi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x7c], 0
push 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
push 0x100847b7
mov dword [ebp - 0x78], ebx
mov byte [ebx], 0
call fcn.100109d0
xor eax, eax
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x3c]
xor ecx, ecx
mov dword [ebp - 0x88], eax
mov eax, 0x2aaaaaab
mov dword [ebp - 0x84], ecx
mov ecx, dword [edi + 0x40]
sub ecx, esi
mov dword [ebp - 0x7c], 1
imul ecx
mov byte [ebp - 0x71], 1
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10021084
xor edi, edi
mov dword [ebp - 0x80], edi
nop dword [eax + eax]
lea eax, [edi + esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000f4e0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, 1
jb 0x100210b8
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
inc eax
lea ecx, [ebp - 0x58]
push eax
call fcn.100109d0
or dword [ebp - 0x7c], 2
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
lea eax, [esi + 2]
call fcn.1007cdb0
mov edi, dword [ebp - 0x14]
xor edx, edx
test esi, esi
mov ebx, esp
mov esi, dword [ebp - 0x28]
je 0x10020bb2
nop dword [eax]
cmp edi, 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae eax, esi
cmovae ecx, esi
mov al, byte [eax]
xor al, byte [ecx + edx + 1]
mov byte [edx + ebx], al
inc edx
mov eax, dword [ebp - 0x18]
cmp edx, eax
jb 0x10020b90
jmp 0x10020bb5
mov eax, dword [ebp - 0x18]
mov ecx, ebx
mov dword [ebp - 0xa4], 0
mov byte [eax + ebx - 2], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020be4
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0xa4]
call fcn.100109d0
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
push eax
call fcn.100179b0
xorps xmm1, xmm1
mov eax, dword [eax]
movsd xmm0, qword [eax]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jnp 0x10020c21
mov bl, 1
jmp 0x10020c23
xor bl, bl
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x90]
cmp edx, 0x10
jb 0x10020c61
mov ecx, dword [ebp - 0xa4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020c57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
test bl, bl
jne 0x10020d17
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10020ca1
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020c97
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 0
cmp edi, 0x10
jb 0x10020cd5
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10020ccb
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push ecx
push esi
call fcn.1007be73
add esp, 8
mov ebx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x80]
inc dword [ebp - 0x84]
add edi, 0x18
mov dword [ebp - 0x80], edi
mov ecx, dword [eax + 0x40]
mov esi, dword [eax + 0x3c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x84], eax
jb 0x10020b10
jmp 0x1002107b
push 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x40]
push 0x100847b7
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.100109d0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x78]
mov eax, ecx
cmp dword [ecx + 0x14], 0x10
jb 0x10020d50
mov eax, dword [ecx]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.10010c50
cmp byte [ebp - 0x71], 0
jne 0x10020d71
push 2
push 0x1008d234
lea ecx, [ebp - 0x40]
call fcn.10010c50
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 0x30]
add eax, dword [ebp - 0x80]
cmp ecx, eax
je 0x10020d9f
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x10020d8f
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100109d0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp eax, 1
jb 0x100210b8
dec eax
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp edi, 0x10
lea eax, [ebp - 0x28]
cmovae eax, esi
push ecx
inc eax
lea ecx, [ebp - 0x70]
push eax
call fcn.100109d0
or dword [ebp - 0x7c], 4
mov byte [ebp - 4], 5
mov ebx, dword [ebp - 0x18]
lea eax, [ebx + 2]
call fcn.1007cdb0
mov esi, dword [ebp - 0x28]
xor edx, edx
mov edi, esp
test ebx, ebx
je 0x10020e1e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae eax, esi
cmovae ecx, esi
mov al, byte [eax]
xor al, byte [ecx + edx + 1]
mov byte [edx + edi], al
inc edx
cmp edx, ebx
jb 0x10020e00
mov ecx, edi
mov byte [ebx + edi - 2], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020e28
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.10010c50
call fcn.100167e0
push 0x100e957c
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.1000f4e0
lea eax, [ebp - 0xb4]
push eax
call fcn.10077330
mov ebx, dword [ebp - 0x78]
movss xmm0, dword [eax + 4]
comiss xmm0, dword [0x1008d788]
ja 0x10020f94
cmp byte [ebp - 0x71], 0
jne 0x10020e88
push 2
push 0x1008d234
mov ecx, ebx
call fcn.10010c50
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020e90
sub ecx, edx
push ecx
push edi
mov ecx, ebx
call fcn.10010c50
inc dword [ebp - 0x88]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 0x71], 0
cmp edx, 0x10
jb 0x10020ee4
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020eda
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x10020f1c
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10020f54
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020f4a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10020cd8
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10020f85
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push ecx
push esi
call fcn.1007be73
add esp, 8
jmp 0x10020cd8
push 3
push 0x1008d238
mov ecx, ebx
call fcn.10010c50
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x10020fda
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020fd0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x1002100e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10021004
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x10021042
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10021038
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002106b
push edx
push ecx
call fcn.1007be73
add esp, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x1002107b
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x10021071
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10021071
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1007be73
add esp, 8
cmp dword [ebp - 0x88], 0
jne 0x10021092
push 1
push 0x1008d118
mov ecx, ebx
call fcn.100109d0
mov eax, ebx
lea esp, [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret 4
call fcn.100122c0
int3