Function at 0x407f10
Capabilities:
Copy file
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1484
call fcn.00584ea0
mov eax, dword [0x6009e4]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x6234f8]
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x407f8e
mov eax, dword [ebx]
mov ecx, 0x603554
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407f80
test dl, dl
je 0x407f7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407f80
add eax, 2
add ecx, 2
test dl, dl
jne 0x407f60
xor eax, eax
jmp 0x407f85
sbb eax, eax
or eax, 1
test eax, eax
je 0x407fca
jmp 0x40806d
cmp eax, 2
jne 0x40806d
mov ecx, dword [ebx + 4]
mov edx, 0x60355c
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x407fc1
test bl, bl
je 0x407fbd
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x407fc1
add eax, 2
add edx, 2
test bl, bl
jne 0x407fa1
xor eax, eax
jmp 0x407fc6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x407ff7
mov edx, dword [esi + 0x14]
mov ecx, dword [esi]
call fcn.0049e730
mov dword [esi + 0x6e8], eax
xor eax, eax
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov eax, str.__netinfo
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408020
test dl, dl
je 0x40801c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408020
add ecx, 2
add eax, 2
test dl, dl
jne 0x408000
xor eax, eax
jmp 0x408025
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408069
lea ecx, [esp + 0x18]
call fcn.0040b830
test eax, eax
jle 0x40839b
mov esi, dword [esp + 0x18]
push esi
push str._s_r_n
call fcn.004010e0
push esi
call fcn.0058bf82
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x18], 0
jne 0x408093
lea eax, [esp + 0x88]
mov byte [esp + 0x88], 0
push 0x400
push eax
push 0
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi + 0x18]
lea edx, [esi + 0x594]
call fcn.00403e40
mov ecx, dword [esi + 0x18]
mov edx, str..log
call fcn.00403550
or edx, 0xffffffff
mov ecx, eax
call fcn.004b3f30
mov dword [0x6234d4], eax
call fcn.004acd70
mov ecx, dword [esi]
mov edx, 0x4065f0
push esi
call fcn.004ae830
mov eax, dword [ebx]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4080e0
xor edi, edi
jmp 0x4080f4
push 0x1000
push eax
call fcn.0058cca6
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
add edi, 0xffffffff
js 0x408119
nop dword [eax]
mov al, byte [edi + eax]
mov ecx, 0x603580
cmp al, byte [ecx]
je 0x408316
sub edi, 1
mov eax, dword [esp + 0x14]
jns 0x408100
cmp dword [esi + 0xc], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
jne 0x408352
cmp dword [esp + 0x10], 2
jl 0x40815f
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push 1
push 3
push 0x603584
call fcn.004b3b30
add esp, 0xc
test eax, eax
jne 0x408352
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x407ec0
call fcn.004ae9f0
mov ecx, dword [esi]
add esp, 8
call fcn.004af500
mov ecx, dword [esi + 0x20]
mov dword [esi], 0
test ecx, ecx
je 0x408195
call fcn.004b7210
mov dword [esi + 0x20], 0
cmp dword [esi + 0x57c], 0
je 0x408375
push 0x40
xor edi, edi
mov dword [esp + 0x34], 0x44
lea eax, [esp + 0x38]
push edi
push eax
call fcn.005869c0
mov ecx, dword [esi + 0x18]
add esp, 0xc
mov edx, str..update.exe
call fcn.00403550
mov dword [esp + 0x14], eax
cmp dword [esi + 0x588], edi
je 0x4081e7
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Updating...
call fcn.004b47e0
add esp, 0xc
mov ebx, 1
mov byte [esp + 0x488], 0
cmp dword [esp + 0x10], ebx
jle 0x408233
mov esi, dword [esp + 0x18]
nop
test edi, edi
js 0x40822f
push dword [esi + ebx*4]
mov eax, 0x1000
sub eax, edi
push 0x6035b0
push eax
lea eax, [esp + 0x494]
add eax, edi
push eax
call fcn.00401140
inc ebx
add esp, 0x10
add edi, eax
cmp ebx, dword [esp + 0x10]
jl 0x408200
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x488]
push eax
push dword [esi + 0x18]
push ebx
push str._s__update:__s__s
push 0x1000
push 0x6247a0
call fcn.00401140
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0x6247a0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408302
cmp dword [esi + 0x588], eax
je 0x40829e
push eax
push eax
push eax
xor edx, edx
mov ecx, str.SelfUpdate____FAILED...
call fcn.004b47e0
add esp, 0xc
test ebx, ebx
je 0x408375
mov eax, dword [esi + 0x18]
test eax, eax
je 0x408375
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x4082d8
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push dword [esi + 0x18]
call edi
test eax, eax
je 0x4082c1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push 0x6247a0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408375
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
jmp 0x408375
test edi, edi
jle 0x408119
push edi
push dword [ebx]
push 0x10000
push 0x6257a0
call fcn.00588598
add esp, 0x10
cmp edi, 0x10000
jae 0x4083b2
push 0x6257a0
mov byte [edi + 0x6257a0], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x408119
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x407ea0
call fcn.004ae9f0
mov ecx, dword [esi]
add esp, 8
call fcn.004af500
mov dword [esi], 0
mov eax, dword [0x6234d0]
dec eax
mov dword [0x6234d0], eax
test eax, eax
jg 0x408389
call fcn.004e12a0
mov eax, dword [0x6234d4]
test eax, eax
je 0x40839b
push eax
call fcn.0058bf82
add esp, 4
mov ecx, dword [esp + 0x148c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
call fcn.00584b5c
int3