Function at 0x100358c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100435f8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10051018]
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 esi, ecx
mov dword [ebp - 0x38], esi
call fcn.100354d0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
xor edx, edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov eax, dword [esi + 0x21c]
sub eax, dword [esi + 0x218]
sar eax, 5
test eax, eax
je 0x10035983
xor edi, edi
nop word [eax + eax]
mov ecx, dword [esi + 0x218]
mov eax, dword [edi + ecx + 0x18]
or eax, dword [edi + ecx + 0x1c]
je 0x10035963
mov eax, ecx
cmp dword [edi + eax], 0
je 0x10035963
add eax, edi
lea ecx, [ebp - 0x1c]
push eax
call fcn.10036740
mov eax, dword [esi + 0x21c]
inc ebx
sub eax, dword [esi + 0x218]
add edi, 0x20
sar eax, 5
cmp ebx, eax
jb 0x10035940
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x7c], eax
mov ebx, dword [ebp - 0x1c]
mov edi, edx
sub edi, ebx
cmp edi, 0x20
jae 0x100359f9
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ebx, [esi + 0x1d0]
mov esi, 0xc
nop
mov edi, dword [ebx]
test edi, edi
je 0x100359bd
push 4
push edi
call eax
test eax, eax
jne 0x100359b8
push eax
mov ecx, edi
call dword [0x10049fec]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add ebx, 4
sub esi, 1
jne 0x100359a0
mov esi, dword [ebp - 0x38]
mov edi, dword [esi + 0x204]
mov ebx, dword [esi + 0x188]
test edi, edi
je 0x100359ea
push 4
push edi
call eax
test eax, eax
jne 0x100359ea
push ebx
mov ecx, edi
call dword [0x1004a054]
mov dword [esi + 0x18c], 1
jmp 0x10036171
lea eax, [ebp - 0x38]
sar edi, 5
push eax
push edi
mov ecx, ebx
mov dword [ebp - 0x38], 0x1002d000
mov dword [ebp - 0x88], edi
call fcn.10037050
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004a900]
divsd xmm0, qword [0x1004a228]
movsd qword [ebp - 0x84], xmm0
fld qword [ebp - 0x84]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp qword [ebp - 0x84]
movsd xmm0, qword [ebp - 0x84]
call fcn.100244b0
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
or ecx, 0xffffffff
cvttsd2si eax, xmm0
mov dword [esi + 0x18c], eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
shl eax, 2
mov dword [ebp - 0x80], eax
lea edi, [eax - 0xc]
mov dword [ebp - 0x38], edi
cmp edi, eax
jge 0x1003614f
jmp 0x10035a93
mov ebx, dword [ebp - 0x1c]
inc ecx
mov dword [ebp - 0x44], ecx
cmp ecx, 0xb
jg 0x1003614f
mov eax, dword [ebp - 0x88]
dec eax
cmp edi, eax
jg 0x10036119
shl edi, 5
mov ecx, dword [edi + ebx]
test ecx, ecx
je 0x10036116
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x10049fa0]
mov ebx, eax
test ebx, ebx
je 0x10036110
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 1
mov ecx, ebx
mov eax, dword [ebp - 0x1c]
mov edx, dword [edi + eax]
call fcn.100087a0
mov dword [ebp - 0x60], eax
test eax, eax
je 0x10035b2d
cmp dword [eax + 0x3c], 0
je 0x10035b2d
mov ecx, dword [ebp - 0x1c]
xor edx, edx
push dword [edi + ecx]
lea ecx, [ebp - 0x78]
push eax
call fcn.100088f0
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.10009400
jmp 0x10035b7f
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x78]
mov edx, ebx
push dword [edi + eax]
push 0
call fcn.100088f0
add esp, 8
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x34]
cmp ecx, eax
je 0x10035b7b
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x10035b5e
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10004c80
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.100049f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10035b91
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov eax, dword [ebp - 0x44]
mov ecx, dword [esi + 0x20c]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x1c]
shl edx, 3
mov dword [ebp - 0x40], edx
mov eax, dword [edi + eax + 0x18]
mov dword [edx + ecx + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [edi + eax + 0x1c]
mov dword [edx + ecx + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x20c]
mov eax, dword [edi + eax]
mov dword [ecx + edx + 0x1c], eax
mov eax, dword [esi + 0x20c]
cmp dword [eax + edx + 0x18], 0
je 0x10035c66
mov eax, dword [edx + eax + 0x18]
add eax, 4
mov dword [ebp - 0x3c], eax
je 0x10035c03
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035c00
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
call dword [0x10049fb4]
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0x20c]
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + edx + 0x18]
mov dword [eax + 0x60], ebx
mov eax, dword [esi + 0x20c]
mov eax, dword [edx + eax + 0x18]
mov dword [eax + 0x64], ecx
mov eax, dword [esi + 0x20c]
mov eax, dword [eax + edx + 0x18]
mov dword [eax + 0x68], 0
test ecx, ecx
je 0x10035c41
movsx ecx, word [ecx + 0x4e]
movsx eax, word [ebx + 0x5e]
add ecx, eax
jmp 0x10035c45
movsx ecx, word [ebx + 0x5e]
mov eax, dword [esi + 0x20c]
mov eax, dword [eax + edx + 0x18]
mov dword [eax + 0x6c], ecx
mov eax, dword [esi + 0x20c]
mov ecx, dword [eax + edx + 0x18]
mov eax, dword [ebp - 0x1c]
mov eax, dword [edi + eax + 0x10]
mov dword [ecx + 0x44], eax
mov eax, dword [esi + 0x20c]
mov eax, dword [edx + eax + 0x14]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x10035c91
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035c91
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
push eax
call dword [0x1004a020]
push dword [ebp - 0x60]
mov edx, ebx
lea ecx, [ebp - 0x78]
call fcn.10008c40
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x20c]
mov ebx, dword [eax + ecx]
test ebx, ebx
je 0x10035cd0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035cd0
push dword [ebp - 0x3c]
mov ecx, ebx
call dword [0x1004a050]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10035ce6
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x78]
mov edx, dword [edi + eax + 0x10]
call fcn.10008f10
mov edx, eax
mov byte [ebp - 4], 4
cmp dword [edx + 0x14], 0x10
jb 0x10035d03
mov edx, dword [edx]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp byte [edx], 0
jne 0x10035d1e
xor ecx, ecx
jmp 0x10035d2c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035d23
sub ecx, ebx
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10004510
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x20c]
mov ebx, dword [ebx + eax + 4]
test ebx, ebx
je 0x10035d64
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035d64
lea eax, [ebp - 0x5c]
mov ecx, ebx
push eax
call dword [0x1004a050]
mov eax, dword [ebp - 0x48]
cmp eax, 0x10
jb 0x10035d76
inc eax
push eax
push dword [ebp - 0x5c]
call fcn.10004c80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
cmp eax, 0x10
jb 0x10035d9e
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov ebx, dword [ebp - 0x1c]
mov eax, dword [edi + ebx + 0xc]
cmp eax, 1
jne 0x10035ed4
mov edx, dword [edi + ebx + 8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.1000c9a0
add esp, 4
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10035dcd
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004a670]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x7620
mov byte [ebp - 0x46], 0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x11
jb 0x10035de5
sub esp, 0x18
mov byte [ebp - 0x46], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x10035e21
mov eax, dword [edx]
jmp 0x10035e23
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x57], 0
jne 0x10035e30
xor ecx, ecx
jmp 0x10035e3f
lea ecx, [ebp - 0x57]
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10035e36
sub ecx, ebx
push ecx
lea eax, [ebp - 0x57]
mov ecx, edx
push eax
call fcn.10004510
lea eax, [ebp - 0x78]
push eax
call fcn.10009320
add esp, 0x20
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebx + ecx + 8]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x10035e8b
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035e8b
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x60]
call dword [0x1004a050]
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10035e9d
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp eax, 0x10
jb 0x10035fb2
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10004c80
jmp 0x10035fb2
cmp eax, 2
jne 0x10035faf
mov edx, dword [edi + ebx + 8]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.1000c9a0
add esp, 4
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x10035efc
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004ab90]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov word [ebp - 0x48], 0x3660
mov byte [ebp - 0x46], 0
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x11
jb 0x10035f14
sub esp, 0x18
mov byte [ebp - 0x46], 0
lea eax, [ebp - 0x57]
mov ecx, esp
push eax
call fcn.10003b20
lea eax, [ebp - 0x78]
push eax
call fcn.10009320
add esp, 0x20
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 9
mov ecx, dword [esi + 0x20c]
mov ebx, dword [eax + ecx + 8]
test ebx, ebx
je 0x10035f6f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10035f6f
push dword [ebp - 0x3c]
mov ecx, ebx
call dword [0x1004a050]
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x10035f81
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp eax, 0x10
jb 0x10035faf
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10004c80
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0xa0]
mov edx, dword [edi + eax + 4]
call fcn.1000c9a0
add esp, 4
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x10035fd4
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004aa50]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x1e484d
nop dword [eax]
mov al, byte [ebp - 0x58]
xor byte [ebp + ecx - 0x57], al
inc ecx
cmp ecx, 0x12
jb 0x10035ff0
sub esp, 0x18
mov byte [ebp - 0x45], 0
mov edx, esp
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x14], 0xf
cmp dword [edx + 0x14], 0x10
mov dword [edx + 0x10], 0
jb 0x1003602c
mov eax, dword [edx]
jmp 0x1003602e
mov eax, edx
mov byte [eax], 0
cmp byte [ebp - 0x57], 0
jne 0x1003603b
xor ecx, ecx
jmp 0x1003604a
lea ecx, [ebp - 0x57]
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10036041
sub ecx, edi
push ecx
lea eax, [ebp - 0x57]
mov ecx, edx
push eax
call fcn.10004510
lea eax, [ebp - 0x78]
push eax
call fcn.10009320
add esp, 0x20
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [esi + 0x20c]
mov edi, dword [ecx + ebx + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10036091
push 4
push edi
call ebx
test eax, eax
jne 0x10036091
push dword [ebp - 0x3c]
mov ecx, edi
call dword [0x1004a050]
mov eax, dword [ebp - 0x64]
cmp eax, 0x10
jb 0x100360a3
inc eax
push eax
push dword [ebp - 0x78]
call fcn.10004c80
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp eax, 0x10
jb 0x100360cd
inc eax
push eax
push dword [ebp - 0xa0]
call fcn.10004c80
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x100360e3
inc eax
push eax
push dword [ebp - 0x34]
call fcn.10004c80
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov edi, dword [esi + ecx*4 + 0x1d0]
test edi, edi
je 0x10036139
push 4
push edi
call ebx
test eax, eax
jne 0x10036136
push 1
jmp 0x1003612e
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov ecx, dword [ebp - 0x44]
mov edi, dword [esi + ecx*4 + 0x1d0]
test edi, edi
je 0x10036139
push 4
push edi
call edx
test eax, eax
jne 0x10036136
push eax
mov ecx, edi
call dword [0x10049fec]
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x38]
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
inc edi
mov dword [ebp - 0x38], edi
cmp edi, dword [ebp - 0x80]
jl 0x10035a90
mov edi, dword [esi + 0x188]
mov esi, dword [esi + 0x204]
test esi, esi
je 0x10036171
push 4
push esi
call edx
test eax, eax
jne 0x10036171
push edi
mov ecx, esi
call dword [0x1004a054]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10036187
mov ecx, dword [ebp - 0x7c]
sub ecx, eax
sar ecx, 5
push ecx
push eax
call fcn.100389d0
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.1003fc80
mov esp, ebp
pop ebp
ret 4