Function at 0x460610
Capabilities:
Copy file
Get common file path
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xea4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
push edi
lea ecx, [ebp - 0x1c]
call fcn.00413810
mov dword [ebp - 4], 0
mov eax, dword [eax]
push eax
call fcn.00505a30
add esp, 4
movzx esi, al
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46067b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov eax, 0x5a06ec
jne 0x460686
mov eax, edi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bfb0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00413810
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4606d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x460701
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
movzx ecx, byte [eax]
movzx edx, byte [eax + 1]
movzx esi, byte [eax + 2]
movzx eax, byte [eax + 3]
push eax
push esi
push edx
push ecx
push 0x5a008c
lea edx, [ebp - 0x14]
push edx
call fcn.004060d0
add esp, 0x18
mov ecx, 0x5f5774
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 6
mov ecx, 0x5f5774
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 8
push 0x104
lea eax, [ebp - 0x294]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x46077b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x46075f
and eax, 0xffff
or eax, 0x80070000
push str.::GetModuleFileNameW___0__path_buffer__260__
push eax
lea ecx, [ebp - 0x7c]
call fcn.00434a80
push 0x5cc0a0
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00554cbc
lea edx, [ebp - 0xa9c]
push edx
lea eax, [ebp - 0x89c]
push eax
lea ecx, [ebp - 0x69c]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x294]
push eax
call fcn.00557c68
add esp, 0x14
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0xca4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0xca4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x59c2bc
mov edx, dword [str.SCAuxiliaryServiceCfg.dat]
push edx
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x294]
push edx
call fcn.00559224
add esp, 0x14
push 1
push 0x1a
lea eax, [ebp - 0x49c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x49c]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x460810
mov ebx, dword [0x59e4c4]
mov dword [edi], ebx
mov eax, 0x5a03c0
mov edx, eax
jmp 0x460830
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460830
sub eax, edx
lea edi, [ebp - 0x49c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x460846
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x49c]
add edi, 0xfffffffe
jmp 0x460870
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x460870
mov dword [edi], ebx
lea eax, [ebp - 0x49c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460887
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00405e50
mov edx, dword [str.SCAuxiliaryServiceCfg.dat]
test edx, edx
jne 0x4608b4
xor eax, eax
jmp 0x4608cf
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4608c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406040
push 0x59c2bc
mov edx, dword [str.AuxiliarySvc.exe]
push edx
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x294]
push edx
call fcn.00559224
add esp, 0x14
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
jmp 0x460910
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x460910
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x34]
call fcn.00405e50
lea ecx, [ebp - 0xa9c]
push ecx
lea edx, [ebp - 0x89c]
push edx
lea eax, [ebp - 0x69c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00557c68
add esp, 0x14
lea eax, [ebp - 0x89c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040bfb0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xa9c]
push ecx
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00425e40
add esp, 0xc
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46099e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004601e0
add esp, 8
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4609bd
cmp word [edi], 0
jne 0x4609bd
xor edi, edi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x4609cc
cmp word [esi], 0
jne 0x4609cc
xor esi, esi
mov ecx, 0x5f5774
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
mov ecx, 0x5f5774
mov eax, dword [0x5f5774]
mov edx, dword [eax + 0xc]
call edx
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x14]
push eax
push str._sADMIN_
lea ecx, [ebp - 0x18]
push ecx
call fcn.004060d0
push esi
push edi
mov edx, dword [ebp - 0x18]
push edx
call fcn.00511620
mov eax, dword [ebp - 0x14]
push eax
push str._sIPC_
lea ecx, [ebp - 0x28]
push ecx
call fcn.004060d0
push esi
push edi
mov edx, dword [ebp - 0x28]
push edx
call fcn.00511620
add esp, 0x30
mov byte [ebp - 4], 0x12
push 0x7530
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [str.SCAuxiliaryService]
push ecx
call fcn.0045fb90
add esp, 0x10
mov dword [ebp - 4], 0x11
mov ecx, 0x5f5774
mov edx, dword [0x5f5774]
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x14
mov byte [ebp - 4], 0x15
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x5a06c8
lea eax, [ebp - 0x20]
push eax
call fcn.004060d0
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
call esi
test eax, eax
jne 0x460b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x460ac5
and eax, 0xffff
or eax, 0x80070000
push str.bRes
push eax
lea ecx, [ebp - 0x8c]
call fcn.00434a80
push 0x5cc0a0
lea eax, [ebp - 0x8c]
push eax
call fcn.00554cbc
mov dword [ebp - 4], 0x11
mov eax, 0x460af4
ret
mov ecx, dword [str.AuxiliarySvc.exe]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x5a06c8
lea eax, [ebp - 0x20]
push eax
call fcn.004060d0
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call esi
test eax, eax
jne 0x460b62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x460b46
and eax, 0xffff
or eax, 0x80070000
push str.bRes
push eax
lea ecx, [ebp - 0x6c]
call fcn.00434a80
push 0x5cc0a0
lea eax, [ebp - 0x6c]
push eax
call fcn.00554cbc
mov ecx, dword [str.SCAuxiliaryServiceCfg.dat]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0x5a06c8
lea eax, [ebp - 0x20]
push eax
call fcn.004060d0
add esp, 0x10
push 0
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call esi
test eax, eax
jne 0x460bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x460ba2
and eax, 0xffff
or eax, 0x80070000
push str.bRes
push eax
lea ecx, [ebp - 0x5c]
call fcn.00434a80
push 0x5cc0a0
lea eax, [ebp - 0x5c]
push eax
call fcn.00554cbc
push str.C:WINDOWS
lea ecx, [ebp - 0x30]
call fcn.0040bfb0
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push reloc.WS2_32.dll_bind
mov edx, dword [ebp - 0x14]
push edx
call fcn.0045f3f0
add esp, 0xc
test eax, eax
jne 0x460c1f
lea eax, [ebp - 0xeac]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.005116f0
add esp, 8
test eax, eax
je 0x460c15
lea edx, [ebp - 0xeac]
push edx
lea ecx, [ebp - 0x30]
call fcn.0040b5a0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x59e4c4
lea ecx, [ebp - 0x40]
call fcn.0040bfb0
mov bl, 0x17
mov byte [ebp - 4], bl
mov ecx, dword [str.AuxiliarySvc.exe]
push ecx
push eax
lea edx, [ebp - 0x48]
push edx
call fcn.00425e40
add esp, 0xc
mov byte [ebp - 4], 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00406040
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.00404d60
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x40]
call fcn.00404d60
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0x120
push str.Network_enumerating_devices_service
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [str.SCAuxiliaryService]
push edx
call fcn.0045f480
push 0x7530
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [str.SCAuxiliaryService]
push ecx
call fcn.0045f8c0
add esp, 0x28
push 0x12c
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
mov edx, dword [ebp - 0x14]
push edx
push 0x80
mov eax, dword [str.SCAuxiliaryService]
push eax
call fcn.0045ffe0
add esp, 0xc
push 0x12c
call esi
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x30]
call fcn.00404d60
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x20]
call fcn.00404d60
mov dword [ebp - 4], 0x10
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460300
mov eax, dword [ebp - 0x28]
push eax
call fcn.005116a0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.005116a0
add esp, 0x10
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x28]
call fcn.00404d60
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x18]
call fcn.00404d60
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x24]
call fcn.00404d60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.00404d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404d60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404d60
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret