Function at 0x10058310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006aea0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
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 esi, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x68], 0
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x11
mov byte [ebp - 0x2b], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058370
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005220
mov dword [ebp - 4], 0
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x100583ad
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100583ad
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100583ea
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100583e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100583e0
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], 0x2f
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058410
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005220
mov dword [ebp - 4], 1
mov edi, dword [esi + 0x40]
test edi, edi
je 0x1005844d
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005844d
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x10075274]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1005848a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058480
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058480
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], 0x6d
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x50], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100584b0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.10005220
mov dword [ebp - 4], 2
mov edi, dword [esi + 0x44]
test edi, edi
je 0x100584ed
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100584ed
lea eax, [ebp - 0x64]
mov ecx, edi
push eax
call dword [0x10075244]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x1005852a
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058520
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058520
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 edi, dword [esi + 0x34]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
test edi, edi
je 0x1005855d
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005855d
lea ecx, [edi + 0xb8]
mov dl, 2
call fcn.10013bc0
mov eax, dword [0x10081800]
test eax, eax
je 0x100585a1
mov ecx, dword [esi + 0x30]
cmp ecx, 1
jne 0x10058573
mov eax, dword [eax + 0x4c]
jmp 0x1005857b
cmp ecx, 2
jne 0x100585a1
mov eax, dword [eax + 0x50]
cmp eax, dword [esi + 0x2c]
jae 0x100585a1
mov edi, dword [esi + 0x34]
test edi, edi
je 0x100585a1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100585a1
mov dl, 7
lea ecx, [edi + 0xb8]
call fcn.10013bc0
mov ecx, dword [esi + 0x24]
test ecx, ecx
jne 0x100585ac
xor eax, eax
jmp 0x100585c3
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100751c4]
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x10058cfd
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
je 0x100586da
test ecx, ecx
je 0x100586da
mov eax, 0x12e0be83
mov edi, ecx
mul ecx
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 0x1d
cmp edi, 4
jae 0x100586da
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 4], 0x2d
jae 0x100586da
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100586da
mov eax, 0x10624dd3
mul dword [ebp - 0x30]
shr edx, 6
sub edi, edx
imul eax, edi, 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 edi, eax
test eax, eax
je 0x100586dc
cmp dword [eax + 0x3c], 0
je 0x100586dc
push dword [esi + 0x24]
xor edx, edx
lea ecx, [ebp - 0x98]
push eax
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x100586d5
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100586cb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100586cb
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 edi, dword [ebp - 0x30]
jmp 0x10058737
xor edi, edi
push dword [esi + 0x24]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x98]
push 0
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10058737
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005872d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005872d
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 [esi + 0x44]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1005875b
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005875b
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call dword [0x10075244]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x98]
push edi
call fcn.1000d450
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov edi, dword [esi + 0x38]
test edi, edi
je 0x10058793
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058793
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x100587d3
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100587c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100587c9
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 [esi + 0x30]
cmp eax, 1
jne 0x10058990
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 0x2c]
call fcn.100120e0
mov ecx, dword [ebp - 0x3c]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x68], 2
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10058871
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10059453
mov esi, dword [ebp - 0x38]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10058847
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
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 0x1005885b
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x1005886e
mov ecx, dword [ebp - 0x3c]
jmp 0x10058806
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
movaps xmm0, xmmword [0x100772f0]
cmova eax, dword [ebp - 0x4c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0
nop
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0xf
jb 0x10058890
sub esp, 0x18
mov byte [ebp - 0x50], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x100588c0
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x80]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x10058907
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058907
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1005893b
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058931
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x10058b04
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058afa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058afa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp eax, 2
jne 0x10058b04
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 0x2c]
call fcn.100120e0
mov ecx, dword [ebp - 0x3c]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x68], 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10058a2b
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10059453
mov esi, dword [ebp - 0x38]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10058a01
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
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 0x10058a15
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10058a28
mov ecx, dword [ebp - 0x3c]
jmp 0x100589c0
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
movaps xmm0, xmmword [0x10077350]
cmova eax, dword [ebp - 0x4c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0xf
jb 0x10058a48
sub esp, 0x18
mov byte [ebp - 0x50], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x10058a78
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x80]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 8
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x10058abf
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058abf
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x1005893b
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058931
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
jmp 0x10058931
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 0x28]
call fcn.100120e0
mov ecx, dword [ebp - 0x3c]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10058b9b
nop dword [eax + eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10059453
mov esi, dword [ebp - 0x38]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10058b71
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
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 0x10058b85
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10058b98
mov ecx, dword [ebp - 0x3c]
jmp 0x10058b30
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
movaps xmm0, xmmword [0x10076fe0]
cmova eax, dword [ebp - 0x4c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x50], 0x6f
nop word [eax + eax]
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x10
jb 0x10058bc0
sub esp, 0x18
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x10058bf0
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x80]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xa
mov edi, dword [esi + 0x40]
test edi, edi
je 0x10058c37
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058c37
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10058c6f
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058c65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x10058cb9
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058caf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100593d0
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058cee
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
jmp 0x100593d0
lea eax, [ecx - 1]
cmp eax, 0x5f5e0fe
ja 0x100593d0
mov edx, dword [esi + 0x54]
sub edx, dword [esi + 0x50]
sar edx, 2
call fcn.10011500
mov ecx, dword [esi + 0x50]
mov edi, dword [ecx + eax*4 - 4]
test edi, edi
je 0x10058e99
mov eax, 0x10624dd3
mul edi
mov eax, edx
shr eax, 6
mov dword [ebp - 0x30], eax
imul eax, eax, 0x3e8
push eax
call dword [0x100751c4]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10058e99
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], 0xb
cmp dword [ecx], 0
je 0x10058fda
mov eax, 0x12e0be83
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x10058fd7
cmp byte [ecx + 4], 0x2d
jae 0x10058fd7
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058fd4
sub esi, dword [ebp - 0x30]
imul eax, esi, 0x3e8
add eax, edi
push eax
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x100751c8]
test eax, eax
je 0x10058fd4
cmp dword [eax + 0x3c], 0
je 0x10058fd4
push edi
push eax
xor edx, edx
lea ecx, [ebp - 0x98]
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10058e3b
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov esi, dword [ebp - 0x34]
mov edi, dword [esi + 0x44]
test edi, edi
je 0x10058e5e
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058e5e
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call dword [0x10075244]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10058e99
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058e8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov eax, dword [esi + 0x30]
cmp eax, 1
jne 0x10059039
mov edx, dword [esi + 0x2c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.10011a10
add esp, 4
mov dword [ebp - 4], 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x10058ec3
mov eax, dword [eax]
movaps xmm0, xmmword [0x10076fc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0xf
jb 0x10058ed5
sub esp, 0x18
mov byte [ebp - 0x50], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x10058f05
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x80]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xd
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x10058f4c
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058f4c
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x10058f84
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058f7a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
cmp ecx, 0xf
jbe 0x100591fb
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100591f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100591f1
jmp 0x1005898a
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
push edi
mov edx, ecx
lea ecx, [ebp - 0x98]
push 0
call fcn.1000d090
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000dbd0
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10058e3e
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005902a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
jmp 0x10058e3e
cmp eax, 2
jne 0x100591fb
mov dword [ebp - 4], 0xe
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 0x2c]
call fcn.100120e0
mov ecx, dword [ebp - 0x3c]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x100590db
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10059453
mov esi, dword [ebp - 0x38]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x100590b1
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
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 0x100590c5
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x100590d8
mov ecx, dword [ebp - 0x3c]
jmp 0x10059070
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
movaps xmm0, xmmword [0x100773a0]
cmova eax, dword [ebp - 0x4c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov byte [ebp - 0x50], 0
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0xf
jb 0x100590f8
sub esp, 0x18
mov byte [ebp - 0x50], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x10059128
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x80]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xf
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x1005916f
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005916f
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x6c]
cmp ecx, 0xf
jbe 0x100591a7
mov edx, dword [ebp - 0x80]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005919d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0xf
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x68], 0
cmp ecx, 0xf
jbe 0x100591fb
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100591f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0x10
lea ecx, [ebp - 0x4c]
mov edx, dword [esi + 0x28]
call fcn.100120e0
mov ecx, dword [ebp - 0x3c]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x68], 8
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x10059290
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x10059453
mov esi, dword [ebp - 0x38]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x10059266
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
cmova eax, dword [ebp - 0x4c]
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 0x1005927a
sub esp, 8
mov byte [ebp - 0x30], 0
push edx
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10011f80
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x1005928d
mov ecx, dword [ebp - 0x3c]
jmp 0x10059225
mov esi, dword [ebp - 0x34]
cmp dword [ebp - 0x38], 0xf
lea eax, [ebp - 0x4c]
movaps xmm0, xmmword [0x10077740]
cmova eax, dword [ebp - 0x4c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x50], 0x2d
nop
mov al, byte [ebp - 0x60]
xor byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x10
jb 0x100592b0
sub esp, 0x18
mov byte [ebp - 0x4f], 0
mov edx, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edi, [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 0x100592e0
sub ecx, edi
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, edx
call fcn.10005220
lea eax, [ebp - 0x98]
push eax
call fcn.10004db0
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x11
mov edi, dword [esi + 0x40]
test edi, edi
je 0x1005932a
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005932a
push dword [ebp - 0x30]
mov ecx, edi
call dword [0x10075274]
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x84]
cmp ecx, 0xf
jbe 0x10059368
mov edx, dword [ebp - 0x98]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005935e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0xf
mov byte [ebp - 0x98], 0
cmp ecx, 0xf
jbe 0x100593be
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100593b4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898a
push ecx
push edx
call fcn.100662c0
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov edi, dword [esi + 0xfc]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005941a
push 4
add edi, 0xe5
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005941a
cmp byte [edi], al
je 0x1005941a
mov edi, dword [esi + 0xfc]
test edi, edi
je 0x1005941a
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005941a
push eax
mov ecx, edi
call dword [0x10075210]
mov esi, dword [esi + 0x34]
test esi, esi
je 0x10059438
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059438
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