Function at 0x1005b8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b1ae
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x1007e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x24
mov byte [ebp - 0x2b], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b920
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10005220
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x1005b960
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005b960
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x1005b99d
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005b993
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005b993
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x3f
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005b9c2
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10005220
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x1b8]
test esi, esi
je 0x1005ba02
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005ba02
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x1005ba3f
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005ba35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005ba35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x11
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005ba64
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.10005220
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x1bc]
test esi, esi
je 0x1005baa4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005baa4
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x10075244]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x1005bae1
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bad7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bad7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov ecx, dword [edi + 0x198]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
test ecx, ecx
jne 0x1005bb01
xor eax, eax
jmp 0x1005bb18
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100751c4]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1005c176
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
cmp dword [eax], 0
mov ecx, dword [edi + 0x198]
mov dword [ebp - 0x30], ecx
je 0x1005bc2c
test ecx, ecx
je 0x1005bc2c
mov eax, 0x12e0be83
mov esi, ecx
mul ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x1005bc2c
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 4], 0x2d
jae 0x1005bc2c
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005bc2c
mov eax, 0x10624dd3
mul dword [ebp - 0x30]
shr edx, 6
sub esi, edx
imul eax, esi, 0x3e8
add eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x100751c8]
mov dword [ebp - 0x30], eax
mov esi, eax
test eax, eax
je 0x1005bc2e
cmp dword [eax + 0x3c], 0
je 0x1005bc2e
push dword [edi + 0x198]
xor edx, edx
lea ecx, [ebp - 0x78]
push eax
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1005bc27
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bc1d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bc1d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov esi, dword [ebp - 0x30]
jmp 0x1005bc83
xor esi, esi
push dword [edi + 0x198]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push 0
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1005bc83
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bc79
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bc79
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [edi + 0x1bc]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1005bcaa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005bcaa
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call dword [0x10075244]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push esi
call fcn.1000d450
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x1ac]
test esi, esi
je 0x1005bce2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005bce2
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1005bd1c
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bd12
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bd12
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [edi + 0x1a4]
cmp eax, 1
jne 0x1005be5d
mov edx, dword [edi + 0x1a0]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10011a10
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1005bd49
mov eax, dword [eax]
movaps xmm0, xmmword [0x100773d0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0x3066
mov byte [ebp - 0x32], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x11
jb 0x1005bd61
sub esp, 0x18
mov byte [ebp - 0x32], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005bd91
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x60]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x1005bddb
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005bddb
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1005be0f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005be05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005be57
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1005bf5f
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005bf55
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005bf55
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp eax, 2
jne 0x1005bf5f
mov edx, dword [edi + 0x1a0]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10011a10
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0xf
jbe 0x1005be84
mov eax, dword [eax]
movaps xmm0, xmmword [0x10077590]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0x2076
mov byte [ebp - 0x32], 0
nop dword [eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x11
jb 0x1005bea0
sub esp, 0x18
mov byte [ebp - 0x32], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005bed0
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x60]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 8
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x1005bf1a
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005bf1a
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x1005be0f
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005be05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005be57
jmp 0x1005be05
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
mov edx, dword [edi + 0x19c]
call fcn.100120e0
mov ecx, dword [ebp - 0x50]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x1005bff8
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x1005c1b2
mov esi, dword [ebp - 0x4c]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x1005bfd1
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
cmova eax, dword [ebp - 0x60]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x1005bfe5
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x60]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x1005bff8
mov ecx, dword [ebp - 0x50]
jmp 0x1005bf90
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
movaps xmm0, xmmword [0x10076ef0]
cmova eax, dword [ebp - 0x60]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x7b2d28
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x12
jb 0x1005c018
sub esp, 0x18
mov byte [ebp - 0x31], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005c048
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x78]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x80]
mov byte [ebp - 4], 0xa
mov esi, dword [edi + 0x1b8]
test esi, esi
je 0x1005c095
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c095
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x10075274]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x1005c0cd
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c0c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005be57
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x1005c117
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c10d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005be57
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x1005c164
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005c15a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005be57
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov esi, dword [edi + 0x1a8]
test esi, esi
je 0x1005c197
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005c197
push 1
mov ecx, esi
call dword [0x10075210]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006625f
mov esp, ebp
pop ebp
ret
call fcn.100113a0
int3