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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1484
call fcn.00585720
mov eax, dword [0x6019e4]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x62b17c]
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 0x4087fe
mov eax, dword [ebx]
mov ecx, 0x604b8c
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4087f0
test dl, dl
je 0x4087ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4087f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4087d0
xor eax, eax
jmp 0x4087f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40883a
jmp 0x4088dd
cmp eax, 2
jne 0x4088dd
mov ecx, dword [ebx + 4]
mov edx, 0x604b94
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x408831
test bl, bl
je 0x40882d
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x408831
add eax, 2
add edx, 2
test bl, bl
jne 0x408811
xor eax, eax
jmp 0x408836
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408867
mov edx, dword [esi + 0x18]
mov ecx, dword [esi]
call fcn.0049eb20
mov dword [esi + 0x6f8], eax
xor eax, eax
mov dword [esi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov eax, str.__netinfo
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408890
test dl, dl
je 0x40888c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408890
add ecx, 2
add eax, 2
test dl, dl
jne 0x408870
xor eax, eax
jmp 0x408895
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4088d9
lea ecx, [esp + 0x18]
call fcn.0040c090
test eax, eax
jle 0x408c0b
mov esi, dword [esp + 0x18]
push esi
push str._s_r_n
call fcn.004010e0
push esi
call fcn.0058c812
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
cmp dword [esi + 0x1c], 0
jne 0x408903
lea eax, [esp + 0x88]
mov byte [esp + 0x88], 0
push 0x400
push eax
push 0
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x5a4]
call fcn.00403f10
mov ecx, dword [esi + 0x1c]
mov edx, str..log
call fcn.004035f0
or edx, 0xffffffff
mov ecx, eax
call fcn.004b46d0
mov dword [0x62b154], eax
call fcn.004ad4e0
mov ecx, dword [esi]
mov edx, 0x406a20
push esi
call fcn.004aefa0
mov eax, dword [ebx]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x408950
xor edi, edi
jmp 0x408964
push 0x1000
push eax
call fcn.0058d536
mov edi, eax
add esp, 8
mov eax, dword [esp + 0x14]
add edi, 0xffffffff
js 0x408989
nop dword [eax]
mov al, byte [edi + eax]
mov ecx, 0x604bb8
cmp al, byte [ecx]
je 0x408b86
sub edi, 1
mov eax, dword [esp + 0x14]
jns 0x408970
cmp dword [esi + 0x10], 0
lea eax, [esp + 0x10]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
jne 0x408bc2
cmp dword [esp + 0x10], 2
jl 0x4089cf
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push 1
push 3
push 0x604bbc
call fcn.004b42d0
add esp, 0xc
test eax, eax
jne 0x408bc2
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x408730
call fcn.004af160
mov ecx, dword [esi]
add esp, 8
call fcn.004afc70
mov ecx, dword [esi + 0x24]
mov dword [esi], 0
test ecx, ecx
je 0x408a05
call fcn.004b7a70
mov dword [esi + 0x24], 0
cmp dword [esi + 0x580], 0
je 0x408be5
push 0x40
xor edi, edi
mov dword [esp + 0x34], 0x44
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00587250
mov ecx, dword [esi + 0x1c]
add esp, 0xc
mov edx, str..update.exe
call fcn.004035f0
mov dword [esp + 0x14], eax
cmp dword [esi + 0x58c], edi
je 0x408a57
push edi
push edi
push edi
xor edx, edx
mov ecx, str.SelfUpdate____Updating...
call fcn.004b4f80
add esp, 0xc
mov ebx, 1
mov byte [esp + 0x488], 0
cmp dword [esp + 0x10], ebx
jle 0x408aa3
mov esi, dword [esp + 0x18]
nop
test edi, edi
js 0x408a9f
push dword [esi + ebx*4]
mov eax, 0x1000
sub eax, edi
push 0x604be8
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 0x408a70
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x488]
push eax
push dword [esi + 0x1c]
push ebx
push str._s__update:__s__s
push 0x1000
push 0x62c420
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 0x62c420
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408b72
cmp dword [esi + 0x58c], eax
je 0x408b0e
push eax
push eax
push eax
xor edx, edx
mov ecx, str.SelfUpdate____FAILED...
call fcn.004b4f80
add esp, 0xc
test ebx, ebx
je 0x408be5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x408be5
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push eax
call edi
test eax, eax
jne 0x408b48
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x408b31
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 0x62c420
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x408be5
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
jmp 0x408be5
test edi, edi
jle 0x408989
push edi
push dword [ebx]
push 0x10000
push 0x62d420
call fcn.00588e28
add esp, 0x10
cmp edi, 0x10000
jae 0x408c22
push 0x62d420
mov byte [edi + 0x62d420], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x408989
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x408710
call fcn.004af160
mov ecx, dword [esi]
add esp, 8
call fcn.004afc70
mov dword [esi], 0
mov eax, dword [0x62b150]
dec eax
mov dword [0x62b150], eax
test eax, eax
jg 0x408bf9
call fcn.004e1b70
mov eax, dword [0x62b154]
test eax, eax
je 0x408c0b
push eax
call fcn.0058c812
add esp, 4
mov ecx, dword [esp + 0x148c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
call fcn.005853dc
int3