Function at 0x4e93e0
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 0x5936a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
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 0x4e9abc
mov eax, dword [0x5f7c34]
cmp esi, eax
ja 0x4e996e
test eax, eax
je 0x4e996e
push 0x30
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00555020
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 [0x5f7c34]
jb 0x4e948e
push 0x80070057
call fcn.00401150
mov ecx, dword [0x5f7c30]
lea eax, [eax + eax*4]
lea esi, [ecx + eax*8]
mov eax, dword [esi + 0x18]
mov ebx, 1
cmp dword [eax - 4], ebx
jle 0x4e94b3
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esi + 0x18]
call fcn.00403bd0
mov esi, dword [esi + 0x18]
push esi
lea ecx, [ebp - 0x18]
call fcn.00413810
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
push 0x59d4a4
push eax
call fcn.0055784e
add esp, 8
test eax, eax
setne al
test al, al
je 0x4e9948
lea ecx, [ebp - 0x20]
push ecx
call fcn.0050a4d0
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
add esp, 4
mov ecx, 0x5f5774
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 0x4e952e
push 0x104
lea ecx, [ebp + 0x14]
call fcn.00403ca0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
push 0x104
push edx
push str.LogsDir
push ecx
call fcn.0050a330
add esp, 0x10
test eax, eax
jne 0x4e95e2
push 0x104
lea ecx, [ebp + 0x14]
call fcn.00405c40
push eax
push ebx
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x4e9588
push str.SHGetFolderPathW__0__0x001a__0__SHGFP_TYPE_DEFAULT__strSysDir.GetBuffer__260__
push eax
lea ecx, [ebp - 0x38]
call fcn.00434a80
push 0x5cc0a0
lea edx, [ebp - 0x38]
push edx
call fcn.00554cbc
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4e9593
xor eax, eax
jmp 0x4e95b5
mov eax, edx
lea esi, [eax + 2]
jmp 0x4e95a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e95a0
sub eax, esi
sar eax, 1
js 0x4e9484
cmp eax, dword [edx - 8]
jg 0x4e9484
mov dword [edx - 0xc], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push 0x5a6264
mov word [edx + eax*2], cx
lea eax, [ebp + 0x14]
push str._sData_
push eax
call fcn.0040a750
add esp, 0xc
jmp 0x4e9629
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4e95ed
xor eax, eax
jmp 0x4e9607
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e95f2
sub eax, esi
sar eax, 1
js 0x4e9484
cmp eax, dword [edx - 8]
jg 0x4e9484
mov dword [edx - 0xc], eax
mov edx, dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push 0x59e4c8
lea ecx, [ebp + 0x14]
call fcn.00407ed0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x5f7c34]
jb 0x4e9648
push 0x80070057
call fcn.00401150
mov edx, dword [0x5f7c30]
lea ecx, [eax + eax*4]
cmp dword [edx + ecx*8 + 0x24], 0
lea ecx, [edx + ecx*8]
jne 0x4e99c3
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov eax, dword [edi + 0x2a8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00406040
push 0x59e4c4
lea ecx, [ebp - 0x14]
call fcn.0040b5f0
push 0x5a62bc
lea ecx, [ebp - 0x14]
call fcn.0040b5f0
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, 0x5f7c30
call fcn.004e6060
cmp dword [eax + 0x10], 0
lea ecx, [ebp - 0x14]
jne 0x4e96c6
push str.write
jmp 0x4e96cb
push str._read
call fcn.0040b5f0
mov edi, 0x5c
push edi
lea ecx, [ebp - 0x18]
call fcn.00431760
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.00432070
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x18]
call fcn.00413260
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00404d60
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004343a0
lea ecx, [ebp - 0x67c]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x4e9987
test eax, eax
je 0x4e9987
mov edx, dword [ebp - 0x14]
push 0x59e650
push edx
call fcn.00558089
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4e9919
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x27a]
push ecx
mov word [ebp - 0x27c], ax
call fcn.00555020
push ebx
push 1
lea edx, [ebp - 0x27c]
push 0x208
push edx
call fcn.005583d8
lea eax, [ebp - 0x27c]
add esp, 0x1c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e9793
sub eax, edx
sar eax, 1
push 0
lea eax, [eax + eax + 0x12]
push eax
push ebx
call fcn.00558678
lea eax, [ebp - 0x27c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x4e97c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e97c0
sub eax, edx
sar eax, 1
mov esi, eax
test esi, esi
jle 0x4e97e4
cmp word [ebp + esi*2 - 0x27c], di
je 0x4e97e4
dec esi
test esi, esi
jg 0x4e97d5
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040bfb0
mov byte [ebp - 4], 6
lea edx, [ebp + esi*2 - 0x27a]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0040bfb0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406040
push 0x1000
call fcn.0053f875
mov edi, eax
mov eax, dword [ebp - 0x10]
push 0x59f2c0
push eax
call fcn.00558089
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4e9901
mov ecx, dword [ebp - 0x4c]
push 0x1000
push ecx
mov ecx, 0x5f7c30
call fcn.004e6060
mov edx, dword [eax + 0x14]
push edx
call fcn.0055b3f8
add esp, 8
mov dword [ebp - 0x2c], edx
test eax, eax
jle 0x4e9894
mov dword [ebp - 0x24], eax
jmp 0x4e9870
push ebx
push 0x1000
push 1
push edi
call fcn.005583d8
push esi
push 0x1000
push 1
push edi
call fcn.00557f51
add esp, 0x20
dec dword [ebp - 0x24]
jne 0x4e9870
mov eax, dword [ebp - 0x2c]
push ebx
push eax
push 1
push edi
call fcn.005583d8
mov ecx, dword [ebp - 0x2c]
push esi
push ecx
push 1
push edi
call fcn.00557f51
push esi
call fcn.005588b6
push esi
call fcn.00557d86
push ebx
call fcn.00557d86
mov eax, dword [ebp - 0x10]
add esp, 0x2c
cmp dword [eax - 4], 1
jle 0x4e98db
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov eax, dword [ebp - 0x10]
push 7
push 0
push 0
push eax
push 0x59bf70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
push eax
add ecx, 0x318
call fcn.00434440
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.00404d60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
call fcn.00404d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00404d60
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 0x4e9948
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 0x4e996e
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 - 0x14]
call fcn.00404d60
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404d60
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, 0x5f7c30
call fcn.004e6060
cmp dword [eax + 0x24], ebx
jne 0x4e9925
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, 0x5f7c30
call fcn.004e6060
mov eax, dword [eax + 0x18]
sub eax, 0x10
push eax
call fcn.004021d0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
mov bl, 9
mov byte [ebp - 4], bl
lea edx, [ebp - 0x67c]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x200
ja 0x4e9a95
test eax, eax
je 0x4e9a95
lea eax, [ebp - 0x67c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bfb0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, 0x5f7c30
call fcn.004e6060
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406040
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 7
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00404db0
push eax
push 0x59bf70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
call fcn.00404db0
push eax
lea ecx, [edi + 0x318]
call fcn.00434440
mov byte [ebp - 4], bl
jmp 0x4e9911
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00404d60
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00404d60
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