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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1484
call fcn.0059bb50
mov eax, dword [0x6b0d44]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x76a5a4]
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x34]
mov dword [esp + 0x18], esi
test eax, eax
je 0x4076fd
push 2
call eax
jmp 0x407703
call dword [sym.imp.USER32.dll_SetProcessDPIAware]
xor edi, edi
inc edi
cmp dword [esp + 0x14], edi
jne 0x40773b
mov eax, dword [ebx]
mov ecx, 0x6b4904
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407733
test dl, dl
je 0x40772f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407733
add eax, 2
add ecx, 2
test dl, dl
jne 0x407713
xor eax, eax
jmp 0x407737
sbb eax, eax
or eax, edi
test eax, eax
je 0x40778e
cmp dword [esp + 0x14], 2
jne 0x407804
mov eax, dword [ebx + 4]
mov edx, 0x6b490c
mov ecx, eax
mov bl, byte [ecx]
cmp bl, byte [edx]
mov byte [esp + 0xf], bl
mov ebx, dword [esp + 0x10]
jne 0x407786
cmp byte [esp + 0xf], 0
je 0x407782
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
mov byte [esp + 0xf], bl
mov ebx, dword [esp + 0x10]
jne 0x407786
add ecx, 2
add edx, 2
cmp byte [esp + 0xf], 0
jne 0x407750
xor ecx, ecx
jmp 0x40778a
sbb ecx, ecx
or ecx, edi
test ecx, ecx
jne 0x4077a6
mov edx, dword [esi + 0x18]
mov ecx, dword [esi]
call fcn.0046264d
and dword [esi], 0
mov dword [esi + 0xb14], eax
jmp 0x407ac6
mov ecx, str.__netinfo
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4077cb
test dl, dl
je 0x4077c7
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4077cb
add eax, 2
add ecx, 2
test dl, dl
jne 0x4077ab
xor eax, eax
jmp 0x4077cf
sbb eax, eax
or eax, edi
test eax, eax
jne 0x407804
lea ecx, [esp + 0x10]
call fcn.0040b827
test eax, eax
jle 0x407ac6
push dword [esp + 0x10]
push str._s_r_n
call fcn.004010b4
push edi
push dword [esp + 0x1c]
call fcn.005cdee0
add esp, 0x10
jmp 0x407ac6
xor ecx, ecx
cmp dword [esi + 0x1c], ecx
jne 0x407829
lea eax, [esp + 0x88]
mov byte [esp + 0x88], cl
push 0x400
push eax
push ecx
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [esi + 0x1c]
lea edx, [esi + 0x9b8]
call fcn.00403135
mov ecx, dword [esi + 0x1c]
mov edx, str..log
call fcn.00402962
or edx, 0xffffffff
mov ecx, eax
call fcn.00470c3a
mov dword [0x76a578], eax
call fcn.0046ab3b
mov ecx, dword [esi]
mov edx, 0x405b4d
push esi
call fcn.0046c17a
mov ecx, dword [ebx]
or edx, 0xffffffff
push 0x6b4930
call fcn.00470a43
mov edi, eax
pop ecx
pop ecx
test edi, edi
jle 0x4078af
push edi
push dword [ebx]
push 0x10000
push 0x76d080
call fcn.005aca80
add esp, 0x10
cmp edi, 0x10000
jae 0x407add
push 0x76d080
mov byte [edi + 0x76d080], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [esi + 0x10], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ebx
jne 0x407a8f
cmp dword [esp + 0x14], 2
jl 0x4078f5
mov ecx, dword [ebx + 4]
or edx, 0xffffffff
push 1
push 3
push 0x6b4934
call fcn.00470951
add esp, 0xc
test eax, eax
jne 0x407a8f
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x407681
call fcn.0046c24f
pop ecx
pop ecx
mov ecx, dword [esi]
call fcn.0046cf77
and dword [esi], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x407924
call fcn.00473d36
and dword [esi + 0x24], 0
cmp dword [esi + 0x990], 0
je 0x407aae
push 0x40
xor edi, edi
mov dword [esp + 0x34], 0x44
lea eax, [esp + 0x38]
push edi
push eax
call fcn.0059de40
mov ecx, dword [esi + 0x1c]
add esp, 0xc
mov edx, str..update.exe
call fcn.00402962
mov dword [esp + 0x1c], eax
xor eax, eax
cmp dword [esi + 0x99c], eax
je 0x40797a
push eax
push eax
push eax
xor edx, edx
mov ecx, str.SelfUpdate____Updating...
call fcn.0047145c
add esp, 0xc
xor eax, eax
mov byte [esp + 0x488], al
xor eax, eax
inc eax
cmp dword [esp + 0x14], eax
jle 0x4079bf
mov esi, eax
test edi, edi
js 0x4079bb
push dword [ebx + esi*4]
mov eax, 0x1000
sub eax, edi
push 0x6b4960
push eax
lea eax, [esp + 0x494]
add eax, edi
push eax
call fcn.0040112a
add esp, 0x10
add edi, eax
inc esi
cmp esi, dword [esp + 0x14]
jl 0x40798c
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x488]
push eax
push dword [esi + 0x1c]
mov edi, 0x76c080
push ebx
push str._s__update:__s__s
push 0x1000
push edi
call fcn.0040112a
add esp, 0x18
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push 1
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x407a7b
cmp dword [esi + 0x99c], eax
je 0x407a26
push eax
push eax
push eax
xor edx, edx
mov ecx, str.SelfUpdate____FAILED...
call fcn.0047145c
add esp, 0xc
xor eax, eax
test ebx, ebx
je 0x407aae
cmp dword [esi + 0x1c], 0
je 0x407aae
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push eax
jmp 0x407a4a
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebx
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x407a3d
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push 1
push eax
push eax
push 0x76c080
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407aae
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x24]
call esi
jmp 0x407aae
mov ecx, dword [esi]
lea eax, [esp + 0x7c]
push eax
push 0
mov edx, 0x40766a
call fcn.0046c24f
pop ecx
pop ecx
mov ecx, dword [esi]
call fcn.0046cf77
and dword [esi], 0
call fcn.0046ac0d
mov eax, dword [0x76a578]
test eax, eax
je 0x407ac6
push 1
push eax
call fcn.005cdee0
pop ecx
pop ecx
mov ecx, dword [esp + 0x148c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059b3f0
mov esp, ebp
pop ebp
ret
call fcn.0059b550
int3