Function at 0x101885f0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x14f8
call fcn.101a9500
mov eax, dword [0x10206f54]
xor eax, esp
mov dword [esp + 0x14f4], eax
mov eax, ecx
xor cl, cl
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [eax + 0x200410]
mov byte [esp + 0xe], cl
sub eax, 0x191
je 0x1018863b
sub eax, 1
je 0x10188637
sub eax, 1
jne 0x10188641
mov cl, 2
jmp 0x1018863d
mov cl, 1
jmp 0x1018863d
xor cl, cl
mov byte [esp + 0xe], cl
movzx esi, cl
lea edi, [esp + 0x1478]
mov ecx, 0x20
lea eax, [esi + esi*4]
shl esi, 7
add esi, 0x10206b18
shl eax, 3
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x18], eax
xor edx, edx
mov esi, 0x400
lea eax, [edi + 0x208]
nop dword [eax + eax]
add ecx, dword [eax - 4]
lea eax, [eax + 8]
add edx, dword [eax - 8]
sub esi, 1
jne 0x10188680
add ecx, edx
lea eax, [edi + 0x84]
lea edx, [esi + 0x40]
mov esi, 1
nop
mov word [eax - 0x80], si
mov word [eax], si
mov word [eax + 0x80], si
mov word [eax + 0x100], si
add eax, 2
sub edx, esi
jne 0x101886a0
xor al, al
mov byte [esp + 0xf], al
cmp byte [edi + 0x200408], al
jbe 0x10189043
movsd xmm0, qword [esp + 0x14d0]
mov esi, 3
movsd qword [esp + 0xa8], xmm0
mov edi, 0x101ef5d8
movsd xmm0, qword [esp + 0x14c8]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [esp + 0x14b0]
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [esp + 0x14a8]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [0x101b2ea0]
movsd qword [esp + 0xd0], xmm0
movsd xmm0, qword [0x101f2670]
movsd qword [esp + 0x98], xmm0
movsd xmm0, qword [0x101b21f8]
movsd qword [esp + 0x60], xmm0
movsd xmm0, qword [0x101ef6a8]
movsd qword [esp + 0xa0], xmm0
xorps xmm0, xmm0
movsd qword [esp + 0x58], xmm0
movsd xmm0, qword [0x101e2da8]
movsd qword [esp + 0x80], xmm0
movsd xmm0, qword [0x101b2e48]
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [0x101ef6b0]
movsd qword [esp + 0x88], xmm0
movsd xmm0, qword [0x101ef6b8]
movd xmm1, ecx
movsd qword [esp + 0x90], xmm0
movsd xmm0, qword [0x101b2270]
cvtdq2pd xmm1, xmm1
shr ecx, 0x1f
mov dword [esp + 0x54], esi
movsd qword [esp + 0xc8], xmm0
movsd xmm0, qword [0x101b2da8]
addsd xmm1, qword [ecx*8 + 0x101f2780]
movsd qword [esp + 0xe0], xmm0
movsd xmm0, qword [0x101b2218]
movsd qword [esp + 0xe8], xmm0
movsd xmm0, qword [0x101b2228]
movsd qword [esp + 0x68], xmm1
movsd qword [esp + 0xf0], xmm0
nop dword [eax]
movzx ecx, al
xor edx, edx
mov eax, ecx
mov dword [esp + 0x1c], ecx
div esi
mov eax, edx
mov dword [esp + 0x34], eax
test eax, eax
jne 0x1018883a
cmp byte [esp + 0xe], 2
mov eax, 0x101ef598
cmove eax, edi
mov dword [esp + 0x38], eax
jmp 0x10188842
mov dword [esp + 0x38], 0x101ef618
mov eax, ecx
lea edx, [esp + 0xbf8]
shl eax, 9
lea esi, [esp + 0x3f8]
add edx, eax
add esi, eax
xor eax, eax
mov dword [esp + 0x2c], esi
mov ecx, 0x80
mov dword [esp + 0x10], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, esi
mov ecx, 0x80
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x3f8]
shl eax, 6
mov dword [esp + 0x30], eax
add eax, esi
lea ecx, [ecx + eax*8]
shl eax, 0xb
add eax, edx
mov eax, dword [edi + eax*4 + 0x204]
imul eax, edx
inc edx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101f2780]
divsd xmm0, xmm1
addsd xmm0, qword [ecx]
movsd qword [ecx], xmm0
cmp edx, 0x7ff
jbe 0x10188882
inc esi
cmp esi, 0x40
jl 0x10188880
mov ecx, dword [esp + 0x1c]
add edi, 0x204
mov eax, dword [esp + 0x2c]
shl ecx, 0x13
mov dword [esp + 0x24], eax
add edi, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], 0x40
nop word [eax + eax]
xor esi, esi
movsd xmm1, qword [eax]
movd xmm0, esi
cvtdq2pd xmm0, xmm0
push 2
sub esp, 8
subsd xmm1, xmm0
movsd qword [esp], xmm1
call fcn.10188330
fstp qword [esp + 0x84]
movsd xmm2, qword [esp + 0x84]
inc esi
divsd xmm2, qword [esp + 0x74]
mov eax, dword [edi]
add esp, 0xc
add edi, 4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x101f2780]
mov eax, dword [esp + 0x10]
mulsd xmm2, xmm0
addsd xmm2, qword [eax]
movsd qword [eax], xmm2
mov eax, dword [esp + 0x24]
cmp esi, 0x7ff
jle 0x10188902
xorps xmm1, xmm1
movaps xmm0, xmm2
ucomisd xmm1, xmm0
ja 0x10188982
sqrtsd xmm0, xmm0
jmp 0x10188987
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add eax, 8
mov dword [esp + 0x24], eax
movsd qword [edx], xmm0
add edx, 8
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], edx
jne 0x10188900
movsd xmm3, qword [0x102069d0]
lea edi, [esp + 0x1f8]
movsd xmm1, qword [0x102069c8]
xor eax, eax
movsd xmm2, qword [0x102069c0]
mov ecx, 0x80
mov edx, dword [esp + 0x30]
xorps xmm4, xmm4
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0xf8]
mov eax, 0xff
xorps xmm5, xmm5
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x54]
xor ecx, ecx
lea esi, [ecx + 1]
nop word [eax + eax]
lea eax, [edx + ecx]
movsd xmm0, qword [esp + eax*8 + 0xbf8]
addsd xmm0, xmm0
addsd xmm0, qword [esp + eax*8 + 0x3f8]
comisd xmm0, xmm3
jbe 0x10188a31
addss xmm4, dword [0x101f265c]
mov word [esp + ecx*2 + 0x1478], di
jmp 0x10188a69
comisd xmm0, xmm1
jbe 0x10188a46
addss xmm5, dword [0x101f265c]
mov eax, 2
jmp 0x10188a61
comisd xmm0, xmm2
jbe 0x10188a56
mov word [esp + ecx*2 + 0x1478], si
jmp 0x10188a69
cmp ecx, 0x40
jae 0x10189057
xor eax, eax
mov word [esp + ecx*2 + 0x1478], ax
inc ecx
cmp ecx, 0x40
jl 0x10188a00
mov edi, dword [esp + 0x1c]
xor eax, eax
movsd xmm1, qword [esp + 0x68]
shl edi, 0x11
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
nop word [eax + eax]
movzx eax, word [esp + eax*2 + 0x1478]
xor esi, esi
mov dword [esp + 0x30], eax
test ax, ax
jne 0x10188b1c
movsd xmm0, qword [eax*8 + 0x102069c0]
addsd xmm0, qword [esp + 0x98]
addsd xmm0, qword [esp + 0x60]
cvttsd2si eax, xmm0
cdq
mov ecx, eax
test edx, edx
jg 0x10188af4
jl 0x10188ad0
cmp ecx, 0x7ff
ja 0x10188af4
lea eax, [ecx + edi]
mov edi, dword [esp + 0x28]
add esi, dword [edi + eax*4 + 0x204]
add ecx, 1
mov edi, dword [esp + 0x14]
adc edx, 0
js 0x10188ad0
jg 0x10188af4
cmp ecx, 0x7ff
jbe 0x10188ad0
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
comisd xmm0, xmmword [esp + 0xa0]
jb 0x10188b1c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
inc eax
mov word [esp + ecx*2 + 0x1478], ax
mov eax, dword [esp + 0x10]
add edi, 0x800
inc eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
cmp eax, 0x40
jl 0x10188a90
movsd xmm2, qword [esp + 0x48]
xor ecx, ecx
movss xmm3, dword [0x101ef6a0]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov dl, byte [ecx + edi]
mov byte [esp + 0x23], dl
cmp dl, 1
jne 0x10188bad
movaps xmm0, xmm4
xor eax, eax
mulss xmm0, xmm3
comiss xmm0, dword [0x101f2658]
setbe al
lea eax, [eax*2 + 4]
mov dword [esp + ecx*4 + 0xf8], eax
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10188b9a
movsd xmm0, qword [eax + 0x10206a98]
addsd xmm0, qword [eax + 0x102069f8]
jmp 0x10188d75
movsd xmm0, qword [esp + 0x58]
addsd xmm0, qword [eax + 0x102069f8]
jmp 0x10188d75
movzx eax, word [esp + ecx*2 + 0x1478]
cmp eax, 3
jne 0x10188c47
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10188bd0
movsd xmm0, qword [eax + 0x10206a90]
jmp 0x10188bd6
movsd xmm0, qword [esp + 0x58]
addsd xmm0, qword [eax + 0x102069f0]
lea eax, [esp + 0xf8]
lea eax, [eax + ecx*4]
movsd qword [esp + ecx*8 + 0x1f8], xmm0
movaps xmm0, xmm4
mulss xmm0, xmm3
comiss xmm0, dword [0x101f2658]
jbe 0x10188c0e
mov dword [eax], 8
mov edx, 0xc
jmp 0x10188c35
cvtss2sd xmm0, xmm0
comisd xmm0, xmmword [esp + 0x80]
jbe 0x10188c2a
mov dword [eax], 0xa
mov edx, 0xe
jmp 0x10188c35
mov dword [eax], 0xe
mov edx, 0x12
cmp byte [esp + 0x23], 4
jne 0x10188d5d
mov dword [eax], edx
jmp 0x10188d5d
cmp eax, 2
jne 0x10188ce5
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10188c62
movsd xmm1, qword [eax + 0x10206a88]
jmp 0x10188c68
movsd xmm1, qword [esp + 0x58]
addsd xmm1, qword [eax + 0x102069e8]
movaps xmm0, xmm5
mulss xmm0, xmm3
movsd qword [esp + ecx*8 + 0x1f8], xmm1
comiss xmm0, dword [0x101f2658]
jbe 0x10188c96
mov dword [esp + ecx*4 + 0xf8], 0xa
jmp 0x10188cb6
cvtss2sd xmm0, xmm0
xor eax, eax
comisd xmm0, xmmword [esp + 0x80]
setbe al
lea eax, [eax*2 + 0xc]
mov dword [esp + ecx*4 + 0xf8], eax
cmp dl, 4
jne 0x10188ccd
movsd xmm0, qword [esp + 0xa8]
addsd xmm0, xmm1
jmp 0x10188d54
cmp dl, 3
jne 0x10188d5d
movsd xmm0, qword [esp + 0xb0]
addsd xmm0, xmm1
jmp 0x10188d54
cmp eax, 1
jne 0x10188d46
mov eax, dword [esp + 0x18]
test esi, esi
je 0x10188cfc
movsd xmm1, qword [eax + 0x10206a80]
jmp 0x10188d02
movsd xmm1, qword [esp + 0x58]
mov dword [esp + ecx*4 + 0xf8], 0xe
addsd xmm1, qword [eax + 0x102069e0]
movsd qword [esp + ecx*8 + 0x1f8], xmm1
cmp dl, 4
jne 0x10188d32
movsd xmm0, qword [esp + 0xb8]
addsd xmm0, xmm1
jmp 0x10188d54
cmp dl, 3
jne 0x10188d5d
movsd xmm0, qword [esp + 0xc0]
addsd xmm0, xmm1
jmp 0x10188d54
test ax, ax
jne 0x10188d5d
movsd xmm0, qword [esp + 0x48]
movaps xmm2, xmm0
movsd qword [esp + ecx*8 + 0x1f8], xmm0
movsd xmm0, qword [esp + ecx*8 + 0x1f8]
comisd xmm0, xmm2
jbe 0x10188d7e
movsd xmm0, qword [esp + 0x48]
movaps xmm2, xmm0
movsd qword [esp + ecx*8 + 0x1f8], xmm0
inc ecx
cmp ecx, 0x40
jl 0x10188b50
test esi, esi
je 0x10188d97
movsd xmm0, qword [esp + 0x88]
jmp 0x10188d9d
movsd xmm0, qword [esp + 0x58]
addsd xmm0, qword [esp + 0x88]
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x1f8]
mov ecx, dword [esp + 0x44]
mov eax, 1
movsd xmm3, qword [esp + 0x60]
add ecx, 0x208
add ecx, dword [esp + 0x28]
shl esi, 7
movsd qword [esp + 0x1f8], xmm0
add esi, 4
movaps xmm0, xmmword [0x101de650]
mov word [esp + 0x13f8], ax
xor eax, eax
sub edx, dword [esp + 0x2c]
movups xmmword [esp + 0x13fa], xmm0
mov dword [esp + 0xf8], 4
movups xmmword [esp + 0x140a], xmm0
mov dword [esp + 0x1472], 0x10001
movups xmmword [esp + 0x141a], xmm0
mov word [esp + 0x1476], 1
movups xmmword [esp + 0x142a], xmm0
mov dword [esp + 0x24], eax
movups xmmword [esp + 0x143a], xmm0
mov dword [esp + 0x1c], esi
movups xmmword [esp + 0x144a], xmm0
mov dword [esp + 0x14], ecx
movups xmmword [esp + 0x145a], xmm0
mov dword [esp + 0x30], edx
movq qword [esp + 0x146a], xmm0
movsd xmm0, qword [esp + 0x90]
nop dword [eax + eax]
mov edi, dword [esp + 0x2c]
movsx eax, word [esp + eax*2 + 0x13f8]
dec eax
movsd xmm2, qword [edx + edi]
comisd xmm2, xmm0
mov edi, dword [esp + 0x28]
jbe 0x10188e96
mov eax, 0x14
jmp 0x10188fe0
mov dword [esp + 0x78], eax
mov esi, 1
inc eax
mov edi, ecx
mov dword [esp + 0x10], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm1, xmm0
movsd xmm0, qword [esp + 0xc8]
divsd xmm0, xmm1
mulsd xmm1, qword [esp + 0xc8]
addsd xmm0, xmm3
addsd xmm1, xmm3
cvttsd2si edx, xmm0
cvttsd2si eax, xmm1
mov dword [esp + 0x74], edx
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], eax
mov eax, esi
lea edi, [edi + 4]
imul eax, edx
add eax, 0x7fff
sar eax, 0x10
cwde
imul eax, dword [esp + 0x44]
add eax, 0x7fff
sar eax, 0x10
movsx ecx, ax
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x38]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x74]
cwde
imul eax, dword [edi - 4]
add ecx, eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ecx
adc eax, 0
inc esi
mov dword [esp + 0x34], eax
cmp esi, 0x7ff
jle 0x10188ef7
mov edx, eax
call fcn.101a8c90
divsd xmm0, qword [esp + 0x68]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
movsd xmm2, qword [eax + ecx]
mulsd xmm0, qword [esp + 0x48]
mov eax, dword [esp + 0x10]
divsd xmm0, qword [ecx]
comisd xmm2, xmm0
jbe 0x10188fab
movaps xmm1, xmm0
subsd xmm1, xmm2
andps xmm1, xmmword [esp + 0xd0]
comisd xmm1, xmmword [esp + 0xe0]
jbe 0x10188fab
mov ecx, dword [esp + 0x24]
movsd xmm3, qword [esp + 0x60]
cmp eax, dword [esp + ecx*4 + 0xf8]
mov ecx, dword [esp + 0x14]
jl 0x10188e96
subsd xmm0, qword [esp + 0xe8]
comisd xmm0, xmm2
jbe 0x10188fcc
movsd xmm0, qword [esp + 0xf0]
comisd xmm0, xmm2
cmova eax, dword [esp + 0x78]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
movsd xmm0, qword [esp + 0x90]
movzx eax, ax
add dword [esp + 0x2c], 8
mov ecx, esi
movsd xmm3, qword [esp + 0x60]
mov edx, edi
add esi, 2
mov dword [esp + 0x1c], esi
mov word [edx + ecx], ax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
inc eax
mov edx, dword [esp + 0x30]
add ecx, 0x2000
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
cmp eax, 0x40
jl 0x10188e70
mov al, byte [esp + 0xf]
movsd xmm1, qword [esp + 0x68]
inc al
cmp al, byte [edi + 0x200408]
mov edi, 0x101ef5d8
mov esi, dword [esp + 0x54]
mov byte [esp + 0xf], al
jb 0x10188810
mov ecx, dword [esp + 0x14fc]
pop edi
pop esi
xor ecx, esp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
call fcn.101a9ac5
int3