Function at 0x10020430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046005
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10058014]
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 eax, ecx
mov dword [ebp - 0x34], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x100208d0
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x100208d0
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x38], edx
cmp edx, 8
jl 0x1002055b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005bd5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005bdbc]
cmp eax, dword [ecx + 4]
jle 0x100204ef
push 0x1005bdbc
call fcn.1004207b
add esp, 4
cmp dword [0x1005bdbc], 0xffffffff
jne 0x100204ef
push 0x10048ff0
mov dword [0x1005bdb0], 0x1005bdac
mov dword [0x1005bdac], 0x1004df4c
call fcn.10042798
push 0x1005bdbc
call fcn.10042031
add esp, 8
mov edi, dword [ebp + 0x10]
mov dword [esi], 7
mov dword [esi + 4], 0x1005bdac
or esi, 0xffffffff
test edi, edi
je 0x10020525
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10020525
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10020525
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x10020988
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10020988
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10020988
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x10020988
add ebx, 0x38
lea esi, [ecx + 0x38]
cmp edx, 1
jne 0x1002067b
cmp dword [esi + 0x14], 0x10
mov edx, dword [esi + 0x10]
jb 0x10020579
mov eax, dword [esi]
add edx, eax
jmp 0x1002057d
add edx, esi
mov eax, esi
xor edi, edi
cmp eax, edx
je 0x100205a4
movzx ecx, byte [eax]
add edi, edi
movzx ecx, byte [ecx + 0x1004a828]
movzx edi, byte [ecx + edi*8 + 0x1004a928]
cmp edi, 1
je 0x100205ac
inc eax
cmp eax, edx
jne 0x10020583
mov ecx, dword [ebp + 0xc]
test edi, edi
je 0x10020678
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005bd5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005bdbc]
cmp eax, dword [ecx + 4]
jle 0x10020609
push 0x1005bdbc
call fcn.1004207b
add esp, 4
cmp dword [0x1005bdbc], 0xffffffff
jne 0x10020609
push 0x10048ff0
mov dword [0x1005bdb0], 0x1005bdac
mov dword [0x1005bdac], 0x1004df4c
call fcn.10042798
push 0x1005bdbc
call fcn.10042031
add esp, 8
mov ebx, dword [ebp - 0x2c]
or esi, 0xffffffff
mov edi, dword [ebp + 0x10]
mov dword [ebx], 5
mov dword [ebx + 4], 0x1005bdac
test edi, edi
je 0x10020642
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10020642
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10020642
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1002098b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002098b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1002098b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1002098b
mov eax, dword [ebp - 0x34]
mov al, byte [eax + 5]
mov edx, dword [esi + 0x10]
mov edi, dword [ebx + 0x10]
mov byte [ebp - 0x25], al
mov al, byte [ecx + 0x55]
mov byte [ebp - 0x2d], al
lea eax, [ebx + 0x10]
mov dword [ebp - 0x34], eax
cmp edx, edi
ja 0x100206a9
mov dword [eax], edx
mov eax, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x100206a3
mov eax, dword [ebx]
mov byte [eax + edx], 0
jmp 0x100206f1
mov eax, dword [ebx + 0x14]
mov ecx, edx
sub ecx, edi
sub eax, edi
mov dword [ebp - 0x18], ecx
cmp ecx, eax
ja 0x100206df
cmp dword [ebx + 0x14], 0x10
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
mov eax, ebx
jb 0x100206c8
mov eax, dword [ebx]
push ecx
add edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x100206f1
push 0
push ecx
mov byte [ebp - 0x17], 0
push dword [ebp - 0x17]
push ecx
mov ecx, ebx
call fcn.10014aa0
cmp byte [ebp - 0x25], 0
mov eax, dword [ebx + 0x14]
jne 0x10020738
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x10020708
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x10020717
mov eax, dword [esi]
add eax, dword [esi + 0x10]
mov esi, dword [esi]
jmp 0x1002071c
mov eax, dword [esi + 0x10]
add eax, esi
xor ecx, ecx
mov edx, eax
cmp esi, eax
je 0x10020762
mov al, byte [ebp + ecx - 0x18]
inc ecx
xor al, byte [esi]
and ecx, 3
mov byte [ebx], al
inc esi
inc ebx
cmp esi, edx
jne 0x10020724
jmp 0x10020762
cmp eax, 0x10
jb 0x1002073f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], 0x10
jb 0x1002074e
mov ecx, dword [esi]
mov eax, ecx
add eax, dword [esi + 0x10]
jmp 0x10020755
mov eax, dword [esi + 0x10]
mov ecx, esi
add eax, esi
sub eax, ecx
push eax
push ecx
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, dword [ebp - 0x34]
xor bl, bl
mov esi, 0x80
mov edx, dword [eax]
xor al, al
cmp byte [ebp - 0x2d], al
movzx ecx, al
mov al, byte [ebp - 0x38]
cmovne ecx, esi
and al, 0xf
or cl, al
mov byte [ebp - 0x18], cl
movzx ecx, bl
mov bl, byte [ebp - 0x25]
test bl, bl
cmove ecx, esi
cmp edx, 0x7d
ja 0x10020797
mov al, dl
jmp 0x100207a2
cmp edx, 0xffff
seta al
add al, 0x7e
or cl, al
mov byte [ebp - 0x17], cl
lea ecx, [ebp - 0x24]
push 0
test bl, bl
jne 0x10020817
push 0
push edx
call fcn.10006140
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.10006250
add esp, 4
mov edx, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0x14]
add ecx, 8
cmp ecx, edx
je 0x100207eb
cmp dword [edx + 0x14], 0x10
jb 0x100207e2
mov eax, dword [edx]
push dword [edx + 0x10]
push eax
call fcn.100110a0
mov edx, dword [ebp - 0x3c]
cmp edx, 0x10
jb 0x10020851
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10020847
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10020847
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
call fcn.10006110
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x50]
call fcn.10006250
add esp, 4
mov edx, eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x14]
add ecx, 8
cmp ecx, edx
je 0x100207eb
cmp dword [edx + 0x14], 0x10
jb 0x100207e2
jmp 0x100207e0
push edx
push ecx
call fcn.100427b2
add esp, 8
mov eax, dword [ebp + 0x14]
or esi, 0xffffffff
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
mov byte [eax + 0x54], 1
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x50], ecx
mov edi, dword [ebp + 0x10]
mov dword [ebx], 0
mov dword [ebx + 4], 0x10058030
test edi, edi
je 0x1002089a
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002089a
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1002089a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x1002098b
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1002098b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x1002098b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x1002098b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1005bd5c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1005bdbc]
cmp eax, dword [ecx + 4]
jle 0x1002092d
push 0x1005bdbc
call fcn.1004207b
add esp, 4
cmp dword [0x1005bdbc], 0xffffffff
jne 0x1002092d
push 0x10048ff0
mov dword [0x1005bdb0], 0x1005bdac
mov dword [0x1005bdac], 0x1004df4c
call fcn.10042798
push 0x1005bdbc
call fcn.10042031
add esp, 8
mov edi, dword [ebp + 0x10]
mov dword [esi], 6
mov dword [esi + 4], 0x1005bdac
or esi, 0xffffffff
test edi, edi
je 0x10020963
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10020963
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10020963
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x10020988
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10020988
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10020988
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ebx, dword [ebp - 0x2c]
mov eax, ebx
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.10041f5c
mov esp, ebp
pop ebp
ret 0x14