Function at 0x100018d0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100193f5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002200c]
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 edi, ecx
mov dword [ebp - 0x20], edi
call fcn.10001280
mov ecx, eax
test ecx, ecx
je 0x10001bc2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.10001600
mov byte [ebp - 4], 1
mov eax, 0x12
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov dword [ebp - 0x4c], 0xf800af
mov dword [ebp - 0x48], 0xfe00d0
mov dword [ebp - 0x44], 0xea00fa
mov dword [ebp - 0x40], 0xfc00f1
mov dword [ebp - 0x3c], 0xf000d3
mov dword [ebp - 0x38], 0xfc00e0
mov dword [ebp - 0x34], 0xf200e0
mov dword [ebp - 0x30], 0xf100c4
mov dword [ebp - 0x2c], 0xff00f3
mov dword [ebp - 0x28], 0x9c
lea eax, [ecx + 0x8a]
xor word [ebp + ecx*2 - 0x4c], ax
inc ecx
mov eax, dword [ebp - 0x50]
cmp ecx, eax
jb 0x10001984
xor ecx, ecx
mov word [ebp + eax*2 - 0x4c], cx
lea eax, [ebp - 0x4c]
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10002780
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov ebx, dword [0x100234b8]
add ebx, 0xfffffff0
lea ecx, [esi - 0x10]
mov dword [ebp - 0x58], ecx
cmp ecx, ebx
je 0x10001a0d
cmp dword [ebx + 0xc], 0
jl 0x100019ff
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x100019ff
call fcn.100023d0
mov dword [ebp - 0x24], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100019f5
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [0x100234b8], eax
jmp 0x10001a0d
push dword [esi - 0xc]
mov ecx, 0x100234b8
push esi
call fcn.100024b0
push 0x1001fd9c
push esi
call fcn.1000a097
mov esi, eax
add esp, 8
mov dword [ebp - 0x54], esi
test esi, esi
je 0x10001a4b
push 2
push 0
push esi
call fcn.10009885
add esp, 0xc
push esi
call fcn.10006c4c
mov ebx, eax
add esp, 4
mov dword [edi], ebx
test ebx, ebx
jne 0x10001aa8
push esi
call fcn.10009561
add esp, 4
xor esi, esi
mov byte [ebp - 4], 0
or ebx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10001a6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10001a8a
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.100034da
mov esp, ebp
pop ebp
ret
cmp ebx, 0x7fffffff
ja 0x10001bcc
cmp ebx, 0x1000
jb 0x10001ae3
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x10001bd1
push eax
call fcn.1000359d
add esp, 4
test eax, eax
je 0x10001bd6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10001aee
push ebx
call fcn.1000359d
add esp, 4
mov edi, eax
push ebx
push 0
push edi
call fcn.10004db0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
push dword [ecx]
call fcn.1000a3dd
add esp, 4
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x10001b16
push esi
call fcn.10009561
jmp 0x10001b4f
push 0
push 0
push esi
call fcn.10009885
mov eax, dword [ebp - 0x20]
add esp, 0xc
push esi
push dword [eax]
push 1
push edi
call fcn.1000a2a2
push dword [ebp - 0x54]
mov esi, eax
call fcn.10009561
mov eax, dword [ebp - 0x20]
add esp, 0x14
mov eax, dword [eax]
cmp esi, eax
je 0x10001b85
push dword [ebp - 0x24]
call fcn.1000a0ae
add esp, 4
xor esi, esi
test edi, edi
je 0x10001a4d
cmp ebx, 0x1000
jb 0x10001b76
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x10001bd6
mov edi, ecx
push ebx
push edi
call fcn.100038e7
add esp, 8
jmp 0x10001a4d
lea eax, [eax + eax*4]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
call fcn.10009591
mov esi, eax
add esp, 8
test esi, esi
je 0x10001b52
mov eax, dword [ebp - 0x20]
push dword [eax]
lea eax, [ebp - 0x1c]
push edi
push eax
push esi
call dword [sym.imp.zlib1.dll_uncompress]
add esp, 0x10
test eax, eax
je 0x10001bb8
push esi
jmp 0x10001b4a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x10001b54
push 0x80004005
call fcn.10001070
call fcn.10002950
call fcn.10001560
call fcn.10009af4
int3