Function at 0x10015960
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001962d
mov eax, dword fs:[0]
push eax
sub esp, 0x580
mov eax, dword [0x10021008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x588], eax
test eax, eax
je 0x10015a2a
lea ecx, [eax + 0x808]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
je 0x10015a2a
mov dword [ebp - 0x574], 0
mov dword [ebp - 0x570], 0
mov dword [ebp - 0x56c], 0
push ecx
lea ecx, [ebp - 0x574]
mov dword [ebp - 4], 0
call fcn.10011e80
mov ebx, dword [ebp - 0x574]
mov ecx, ebx
call fcn.10013610
mov dword [ebp - 0x57c], eax
test eax, eax
jne 0x10015a4b
test ebx, ebx
je 0x10015a2a
mov ecx, dword [ebp - 0x56c]
mov eax, ebx
sub ecx, ebx
cmp ecx, 0x1000
jb 0x10015a20
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015a20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push ebx
call fcn.100174a3
add esp, 8
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10016f21
mov esp, ebp
pop ebp
ret 4
mov edx, str.isARDll
mov ecx, eax
call fcn.100139b0
test eax, eax
je 0x10015d89
call eax
mov edi, eax
mov edx, edi
mov dword [ebp - 0x568], edi
lea esi, [edx + 1]
nop
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x10015a70
sub edx, esi
je 0x10015d89
mov ecx, str.ARPD
call fcn.10013e60
push eax
lea ecx, [ebp - 0x564]
call fcn.10007710
push edi
lea ecx, [ebp - 0x534]
mov byte [ebp - 4], 1
call fcn.100012b0
lea edx, [ebp - 0x534]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54c]
call fcn.10013ad0
mov byte [ebp - 4], 3
lea edi, [ebp - 0x54c]
cmp dword [ebp - 0x538], 8
lea ecx, [ebp - 0x564]
mov esi, dword [ebp - 0x53c]
cmovae edi, dword [ebp - 0x54c]
cmp dword [ebp - 0x550], 8
mov eax, dword [ebp - 0x554]
cmovae ecx, dword [ebp - 0x564]
mov dword [ebp - 0x578], edi
mov dword [ebp - 0x580], ecx
cmp esi, eax
ja 0x10015b63
test esi, esi
je 0x10015ba3
sub eax, esi
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x584], eax
sub eax, ecx
sar eax, 1
je 0x10015b63
movzx edx, word [edi]
nop
cmp word [ecx], dx
je 0x10015b2f
add ecx, 2
sub eax, 1
jne 0x10015b20
jmp 0x10015b63
test ecx, ecx
je 0x10015b63
mov edx, edi
test esi, esi
je 0x10015b56
mov edi, ecx
sub edi, dword [ebp - 0x578]
mov ax, word [edi + edx]
cmp ax, word [edx]
jne 0x10015cc4
add edx, 2
sub esi, 1
jne 0x10015b41
sub ecx, dword [ebp - 0x580]
sar ecx, 1
cmp ecx, 0xffffffff
jne 0x10015ba3
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x564]
call fcn.10008500
push 0x1001ae74
lea ecx, [ebp - 0x564]
call fcn.10008480
cmp dword [ebp - 0x550], 8
lea edx, [ebp - 0x564]
mov ecx, str.ARPD
cmovae edx, dword [ebp - 0x564]
call fcn.10013d90
push 0x104
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push dword [ebp - 0x568]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x51c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x51c]
push 0
push 0
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x568], edi
cmp edi, 0xffffffff
je 0x10015c88
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebp - 0x570]
sub esi, ebx
cmp eax, esi
je 0x10015c81
push esi
call fcn.100175d7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10015c81
xor edx, edx
test esi, esi
je 0x10015c66
mov edi, dword [ebp - 0x574]
mov ecx, ebx
sub edi, ebx
nop dword [eax + eax]
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
xor al, 0x60
inc edx
mov byte [ecx - 1], al
cmp edx, esi
jb 0x10015c50
mov edi, dword [ebp - 0x568]
push 0
lea eax, [ebp - 0x58c]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call fcn.100174d4
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x538]
cmp eax, 8
jb 0x10015ce8
mov edx, dword [ebp - 0x54c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10015cde
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015cde
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x578]
add ecx, 2
mov esi, dword [ebp - 0x53c]
mov eax, dword [ebp - 0x584]
jmp 0x10015b16
push ecx
push edx
call fcn.100174a3
add esp, 8
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x520]
cmp edx, 0x10
jb 0x10015d28
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015d1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015d1e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], 0
cmp edx, 8
jb 0x10015d89
mov ecx, dword [ebp - 0x564]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015d7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015d7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov ebx, dword [ebp - 0x57c]
mov edx, str.getDllName
mov ecx, ebx
call fcn.100139b0
xor edi, edi
test eax, eax
je 0x10015e2a
call eax
mov edi, eax
test edi, edi
je 0x10015e2a
push edi
lea ecx, [ebp - 0x534]
call fcn.100012b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x534]
mov eax, dword [0x1007d0e4]
push ecx
cmp dword [0x1007d0e8], eax
je 0x10015de4
mov edx, eax
call fcn.10014c20
add esp, 4
add dword [0x1007d0e4], 0x18
jmp 0x10015dea
push eax
call fcn.10014ce0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x520]
cmp edx, 0x10
jb 0x10015e2a
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015e20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015e20
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov edx, str.isCSDll
mov ecx, ebx
call fcn.100139b0
mov edx, str.PluginMe
mov ecx, ebx
mov esi, eax
call fcn.100139b0
mov ebx, eax
test esi, esi
je 0x10015f3a
test ebx, ebx
je 0x10015f4c
mov esi, dword [ebp - 0x588]
lea ecx, [esi + 8]
push ecx
lea ecx, [ebp - 0x54c]
call fcn.10007710
lea edx, [ebp - 0x54c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x534]
call fcn.10013bd0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x10015e8c
mov eax, dword [eax]
push 0
push dword [esi + 4]
push eax
call ebx
mov byte [ebp - 4], 5
add esp, 0xc
mov edx, dword [ebp - 0x520]
cmp edx, 0x10
jb 0x10015ed7
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015ecd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015ecd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x538]
mov dword [ebp - 0x524], 0
mov dword [ebp - 0x520], 0xf
mov byte [ebp - 0x534], 0
cmp edx, 8
jb 0x10015f4c
mov ecx, dword [ebp - 0x54c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015f2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015f2e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
jmp 0x10015f4c
test ebx, ebx
je 0x10015f4c
push 0
push 0
push 0x1001a585
call ebx
add esp, 0xc
test edi, edi
je 0x10015fa3
push edi
lea ecx, [ebp - 0x534]
call fcn.100012b0
lea ecx, [ebp - 0x534]
call fcn.10013f40
mov edx, dword [ebp - 0x520]
cmp edx, 0x10
jb 0x10015fa3
mov ecx, dword [ebp - 0x534]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10015f99
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015f99
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100174a3
add esp, 8
mov ecx, dword [ebp - 0x57c]
call fcn.10013a40
mov edx, dword [ebp - 0x574]
test edx, edx
je 0x10015a2d
mov ecx, dword [ebp - 0x56c]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x10015fe4
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10015fe4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100174a3
add esp, 8
jmp 0x10015a2d