Function at 0x59ac10
Capabilities:
Copy file
Create process on windows
Get common file path
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x665058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x878
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x74]
push ecx
mov dword [ebp - 0x28], edi
mov dword [eax], 0
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [edi + 4]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x1042
push edx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x59b32c
mov eax, dword [0x7147b8]
cmp esi, eax
ja 0x59b1de
test eax, eax
je 0x59b1de
push 0x30
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.006100a0
mov edx, dword [edi + 4]
add esp, 0xc
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0x104b
push edx
mov dword [ebp - 0x6c], 4
mov dword [ebp - 0x68], esi
call ebx
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x7147b8]
jb 0x59acbe
push 0x80070057
call fcn.004011d0
mov ecx, dword [0x7147b4]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [esi + 0x18]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x59ace3
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x18]
call fcn.00401370
mov esi, dword [esi + 0x18]
push esi
lea ecx, [ebp - 0x18]
call fcn.0040bdf0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 0x66f16a
push eax
call fcn.00612c79
add esp, 8
test eax, eax
setne al
test al, al
je 0x59b1b8
lea ecx, [ebp - 0x20]
push ecx
call fcn.005bd6c0
mov edx, dword [0x700724]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x700724
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0x14]
mov eax, dword [edx - 8]
mov ecx, ebx
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x59ad5e
push 0x104
lea ecx, [ebp + 0x14]
call fcn.00401400
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
push 0x104
push edx
push str.LogsDir
push ecx
call fcn.005bd4f0
add esp, 0x10
test eax, eax
jne 0x59ae12
push 0x104
lea ecx, [ebp + 0x14]
call fcn.00401640
push eax
push ebx
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x59adb8
push str.SHGetFolderPathW__0__0x001a__0__SHGFP_TYPE_DEFAULT__strSysDir.GetBuffer__260__
push eax
lea ecx, [ebp - 0x38]
call fcn.0040de50
push 0x6ba4dc
lea edx, [ebp - 0x38]
push edx
call fcn.0060fb01
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x59adc3
xor eax, eax
jmp 0x59ade5
mov eax, edx
lea esi, [eax + 2]
jmp 0x59add0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x59add0
sub eax, esi
sar eax, 1
js 0x59acb4
cmp eax, dword [edx - 8]
jg 0x59acb4
mov dword [edx - 0xc], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push 0x67ea0c
mov word [edx + eax*2], cx
lea eax, [ebp + 0x14]
push str._sData_
push eax
call fcn.00414990
add esp, 0xc
jmp 0x59ae59
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x59ae1d
xor eax, eax
jmp 0x59ae37
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x59ae22
sub eax, esi
sar eax, 1
js 0x59acb4
cmp eax, dword [edx - 8]
jg 0x59acb4
mov dword [edx - 0xc], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push str.Data_
lea ecx, [ebp + 0x14]
call fcn.004017a0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x7147b8]
jb 0x59ae78
push 0x80070057
call fcn.004011d0
mov edx, dword [0x7147b4]
lea ecx, [eax + eax*4]
cmp dword [edx + ecx*8 + 0x24], 0
lea ecx, [edx + ecx*8]
jne 0x59b233
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x2d8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
push 0x66ea40
lea ecx, [ebp - 0x10]
call fcn.00401b50
mov eax, dword [edi + 0x2d8]
mov ecx, dword [eax + 0x14]
cmp dword [ecx - 0xc], 0
jle 0x59aef6
mov eax, ecx
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
push 0x66ea40
lea ecx, [ebp - 0x10]
call fcn.00401b50
push str.USBCachedFiles
lea ecx, [ebp - 0x10]
call fcn.00401b50
push 0x66ea40
lea ecx, [ebp - 0x10]
call fcn.00401b50
mov edx, dword [ebp - 0x4c]
push edx
mov ecx, 0x7147b4
call fcn.004bd400
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x10]
jne 0x59af2e
push str.read
jmp 0x59af33
push 0x67ea98
call fcn.00401b50
mov edi, 0x5c
push edi
lea ecx, [ebp - 0x18]
call fcn.0046e340
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.0043ad60
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.004149b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.004014a0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b4e0
lea ecx, [ebp - 0x884]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x59b1f7
test eax, eax
je 0x59b1f7
mov edx, dword [ebp - 0x10]
push 0x66fe90
push edx
call fcn.00614a04
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x59b189
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x482]
push ecx
mov word [ebp - 0x484], ax
call fcn.006100a0
push ebx
push 1
lea edx, [ebp - 0x484]
push 0x208
push edx
call fcn.00614929
lea eax, [ebp - 0x484]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x59b000
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x59b000
sub eax, edx
sar eax, 1
push 0
lea eax, [eax + eax + 0x12]
push eax
push ebx
call fcn.006167c5
lea eax, [ebp - 0x484]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x59b030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x59b030
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x59b054
cmp word [ebp + esi*2 - 0x484], di
je 0x59b054
dec esi
test esi, esi
jg 0x59b045
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov byte [ebp - 4], 6
lea edx, [ebp + esi*2 - 0x482]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040bea0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401710
push 0x1000
call fcn.005fb5ce
mov edi, eax
mov eax, dword [ebp - 0x14]
push 0x674758
push eax
call fcn.00614a04
mov esi, eax
add esp, 0xc
test esi, esi
je 0x59b171
mov ecx, dword [ebp - 0x4c]
push 0x1000
push ecx
mov ecx, 0x7147b4
call fcn.004bd400
mov edx, dword [eax + 0x14]
push edx
call fcn.00615734
add esp, 8
mov dword [ebp - 0x2c], edx
test eax, eax
jle 0x59b104
mov dword [ebp - 0x24], eax
jmp 0x59b0e0
push ebx
push 0x1000
push 1
push edi
call fcn.00614929
push esi
push 0x1000
push 1
push edi
call fcn.006161f6
add esp, 0x20
dec dword [ebp - 0x24]
jne 0x59b0e0
mov eax, dword [ebp - 0x2c]
push ebx
push eax
push 1
push edi
call fcn.00614929
mov ecx, dword [ebp - 0x2c]
push esi
push ecx
push 1
push edi
call fcn.006161f6
push esi
call fcn.00615f4d
push esi
call fcn.0061466b
push ebx
call fcn.0061466b
mov eax, dword [ebp - 0x14]
add esp, 0x2c
cmp dword [eax - 4], 1
jle 0x59b14b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401370
mov eax, dword [ebp - 0x14]
push 7
push 0
push 0
push eax
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 0x348
call fcn.004ad950
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.004014a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.004014a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59b1b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x59b1de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014a0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push eax
mov ecx, 0x7147b4
call fcn.004bd400
cmp dword [eax + 0x24], ebx
jne 0x59b195
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, 0x7147b4
call fcn.004bd400
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
mov bl, 9
mov byte [ebp - 4], bl
lea edx, [ebp - 0x884]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x59b305
test eax, eax
je 0x59b305
lea eax, [ebp - 0x884]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bea0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, 0x7147b4
call fcn.004bd400
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00401710
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 7
push 0
push 0
lea ecx, [ebp - 0x14]
call fcn.004014f0
push eax
push 0x66f294
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
call fcn.004014f0
push eax
lea ecx, [edi + 0x348]
call fcn.004ad950
mov byte [ebp - 4], bl
jmp 0x59b181
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.004014a0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.004014a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004014a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10