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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x100ef0f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx]
push ebx
push esi
push edi
sub eax, 1
je 0x100193d9
sub eax, 1
je 0x1001926d
sub eax, 1
je 0x10018ebe
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100025c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], eax
call fcn.1008285b
mov esi, eax
mov ebx, edx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], ebx
call fcn.10082844
push ebx
push ebx
push esi
push edx
push eax
call fcn.100855b0
mov esi, ebx
pop ebx
push 0
push 0x3b9aca00
push esi
push ecx
mov dword [ebp - 0x3c], eax
mov edi, edx
call fcn.10085690
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push edx
push eax
call fcn.100852d0
mov ebx, eax
mov esi, edx
mov ecx, 0x3b9aca00
mov eax, edi
mul ecx
mov edx, 0x3b9aca00
mov ecx, eax
mov eax, dword [ebp - 0x3c]
mul edx
push 0
add ecx, edx
add ebx, eax
mov eax, dword [ebp - 0x38]
adc esi, ecx
push 0x3e8
sub ebx, dword [eax + 0x50]
mov edi, dword [eax + 0x48]
sbb esi, dword [eax + 0x54]
push esi
push ebx
call fcn.100852d0
mov ecx, eax
call fcn.10085a20
divsd xmm0, qword [0x100e6298]
mov esi, dword [ebp + 0xc]
mov ecx, edi
mov ebx, dword [ebp + 0x10]
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, 0
cmovns eax, ecx
mov ecx, dword [ebp - 0x38]
cmp byte [ecx + 0x4c], 0
lea ecx, [ebx + 0xc8]
cmovne edi, eax
cmp byte [ebp + 8], 0
mov dword [ebp - 0x40], edi
lea edi, [esi - 0x3c]
mov dword [ebp - 0x48], edi
jne 0x10018fb5
push 0xffffffffffffffff
push 0
push esi
push ecx
mov ecx, dword [0xa7ab8c]
mov eax, 0x8e1223
push edi
push ebx
push dword [0x100f32b8]
xor edx, edx
call eax
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
cmp byte [0x100f32b5], 0
lea eax, [edi + 0x19]
lea edx, [edi + 5]
mov edi, dword [0x100f3404]
mov dword [ebp - 0x44], edi
mov edi, dword [0x100f33fc]
mov dword [ebp - 0x3c], edi
lea edi, [esi - 0x3c]
je 0x1001904b
imul edx, dword [0x100f33f4]
mov eax, 0x2aaaaaab
mov esi, dword [0x100f33f0]
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
lea eax, [ebx + 0xc8]
imul eax, esi
imul esi, ebx
cdq
and edx, 0x3ff
add eax, edx
lea edx, [edi + 0x19]
imul edx, dword [0x100f33f4]
sar eax, 0xa
push eax
mov eax, 0x2aaaaaab
imul edx
mov eax, esi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp + 0xc]
jmp 0x10019057
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push edx
mov eax, dword [ecx]
push 0xffffffffffffffff
push dword [ebp - 0x38]
push dword [ebp - 0x44]
push ecx
call dword [eax + 0x38]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100f29c4]
mov dword [ebp - 0x24], 0x4a1c1e0b
mov byte [ebp - 0x49], 0x2e
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10100d48]
cmp eax, dword [ecx + 4]
jle 0x100190e8
push 0x10100d48
call fcn.10084984
add esp, 4
cmp dword [0x10100d48], 0xffffffff
jne 0x100190e8
mov eax, dword [ebp - 0x24]
movaps xmm0, xmmword [0x100e6370]
mov dword [0x10100c80], eax
mov al, byte [ebp - 0x49]
push 0x100c2fd0
movups xmmword [0x10100c70], xmm0
mov byte [0x10100c84], al
call fcn.10084d5f
add esp, 4
push 0x10100d48
call fcn.1008493a
add esp, 4
cmp byte [0x10100c84], 0
je 0x1001911d
movups xmm0, xmmword [0x10100c70]
mov eax, 0x10
movaps xmm1, xmmword [0x100e64a0]
pxor xmm1, xmm0
movups xmmword [0x10100c70], xmm1
nop
xor byte [eax + 0x10100c70], 0x2e
inc eax
cmp eax, 0x15
jb 0x10019110
mov eax, 0x88888889
imul dword [ebp - 0x40]
add edx, dword [ebp - 0x40]
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [ebp - 0x40]
mov eax, ecx
shl eax, 4
sub eax, ecx
shl eax, 2
sub edx, eax
lea eax, [ebp - 0x1c]
push edx
push ecx
push 0x10100c70
push eax
call fcn.10002b80
mov edi, dword [0x100f3404]
lea ecx, [esi - 0xf]
mov dword [ebp - 0x44], edi
lea edx, [ebx + 0x48]
mov edi, dword [0x100f33fc]
lea eax, [ebx + 0x80]
add esp, 0x10
mov dword [ebp - 0x3c], edi
cmp byte [0x100f32b5], 0
lea edi, [esi - 0x3c]
je 0x100191f2
mov edi, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul ecx, edi
imul edi, dword [ebp + 0xc]
imul ecx
lea eax, [ebx + 0x80]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push ecx
push eax
mov eax, 0x2aaaaaab
imul edi
lea eax, [ebx + 0x48]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x48]
jmp 0x100191fe
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push edx
mov eax, dword [ecx]
lea edx, [ebp - 0x1c]
push 0xffffffffffffffff
push edx
push dword [ebp - 0x44]
push ecx
call dword [eax + 0x38]
mov ecx, dword [ebp - 0x38]
lea eax, [ebx + 0x3c]
push 1
push 5
push esi
push eax
push edi
lea edx, [ebx + 0xc]
lea ecx, [ecx + 0x1e]
call fcn.100175e0
mov ecx, dword [ebp - 0x38]
lea eax, [ebx + 0xc8]
add esp, 0x14
lea edx, [ebx + 0x82]
lea ecx, [ecx + 0x32]
push 1
push 5
push esi
push eax
push edi
call fcn.100175e0
add esp, 0x14
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
mov ebx, dword [ecx + 4]
jne 0x100192fe
mov edi, dword [ebp + 0x10]
xor edx, edx
mov esi, dword [ebp + 0xc]
mov ecx, dword [0xa7ab8c]
push 0xffffffffffffffff
push 0
push esi
lea eax, [edi + 0xc8]
push eax
lea eax, [esi - 0x3c]
push eax
push edi
push dword [ebx + 0x1c]
mov eax, 0x8e1223
call eax
push 0xffffffffffffffff
push 0
lea eax, [esi - 3]
push eax
movzx eax, word [ebx + 0x18]
imul ecx, eax, 0x7e
mov eax, 0x80008001
imul ecx
add edx, ecx
mov ecx, dword [0xa7ab8c]
sar edx, 0xf
mov eax, edx
add edx, 0x44
shr eax, 0x1f
add eax, edx
xor edx, edx
add eax, edi
push eax
lea eax, [esi - 8]
push eax
lea eax, [edi + 0x48]
push eax
push dword [0x100f33b8]
mov eax, 0x8e1223
call eax
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], 0x10
jb 0x10019306
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edi, dword [0x100f3404]
mov dword [ebp - 0x40], edi
mov edi, dword [0x100f33fc]
lea esi, [eax + 0x48]
sub eax, 0xffffff80
mov dword [ebp - 0x44], edi
cmp byte [0x100f32b5], 0
lea edx, [ecx - 0x20]
mov dword [ebp - 0x48], eax
je 0x100193a0
mov edi, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul edx, edi
imul edi, dword [ebp + 0xc]
imul edx
mov eax, dword [ebp - 0x48]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push ecx
push eax
mov eax, 0x2aaaaaab
imul edi
mov eax, esi
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [ebp - 0x44]
jmp 0x100193ac
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x104
push ecx
push 0xffffffffffffffff
push ebx
push dword [ebp - 0x40]
push edi
call dword [eax + 0x38]
mov eax, 0x3c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10084864
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x40], ecx
lea edi, [ebx + 0xc8]
jne 0x10019413
mov eax, dword [ebp + 0xc]
xor edx, edx
push 0xffffffffffffffff
push 0
push eax
push edi
add eax, 0xffffffd8
push eax
push ebx
push dword [ecx + 0x70]
mov ecx, dword [0xa7ab8c]
mov eax, 0x8e1223
call eax
jmp 0x10019658
cmp byte [0x100f32b5], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [0x100f3404]
mov dword [ebp - 0x48], eax
mov eax, dword [0x100f33fc]
lea edx, [esi - 0xf]
mov dword [ebp - 0x38], eax
je 0x1001949f
mov ecx, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul edx, ecx
mov esi, dword [0x100f33f0]
imul ecx, dword [ebp + 0xc]
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
mov eax, edi
imul eax, esi
imul esi, ebx
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
push eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, esi
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x38]
jmp 0x100194ab
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edx
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push eax
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
add eax, 0x3c
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x38]
call dword [ecx + 0x38]
lea edx, [ebx + 0xc]
lea ecx, [ebx + 0x3c]
mov ebx, dword [0x100f3404]
lea eax, [esi - 0xa]
mov dword [ebp - 0x44], ebx
mov ebx, dword [0x100f33fc]
add esi, 0xffffffd8
cmp byte [0x100f32b5], 0
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x48], esi
je 0x10019571
mov ecx, esi
mov eax, 0x2aaaaaab
imul ecx, dword [0x100f33f4]
imul ecx
lea eax, [ebx + 0x3c]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
push ecx
mov ecx, dword [ebp - 0x38]
and edx, 0x3ff
imul ecx, dword [0x100f33f4]
add eax, edx
sar eax, 0xa
push eax
mov eax, 0x2aaaaaab
imul ecx
lea eax, [ebx + 0xc]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea edi, [ebx + 0xc8]
jmp 0x1001957d
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x3c]
lea edx, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push edx
mov eax, dword [ecx]
push 0xffffffffffffffff
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push ecx
call dword [eax + 0x38]
cmp byte [0x100f32b5], 0
lea eax, [ebx + 0x78]
mov ecx, dword [0x100f3404]
mov edx, dword [0x100f33fc]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], edx
je 0x1001962c
imul esi, dword [0x100f33f4]
mov eax, 0x2aaaaaab
imul esi
lea eax, [ebx + 0xc8]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
push ecx
mov ecx, dword [ebp - 0x38]
and edx, 0x3ff
imul ecx, dword [0x100f33f4]
add eax, edx
sar eax, 0xa
push eax
mov eax, 0x2aaaaaab
imul ecx
lea eax, [ebx + 0x78]
imul eax, dword [0x100f33f0]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
and edx, 0x3ff
add eax, edx
push ecx
sar eax, 0xa
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [ebp - 0x48]
jmp 0x1001963b
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], esi
mov ecx, dword [edx]
lea eax, [ebp - 0x30]
push 0xffffffffffffffff
push 0x105
push eax
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
add eax, 0x1e
push eax
push dword [ebp - 0x3c]
push edx
call dword [ecx + 0x38]
mov ecx, dword [ebp - 8]
mov eax, 0x28
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084864
mov esp, ebp
pop ebp
ret