Function at 0x40b6c0
Capabilities:
Connect network resource
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4387bd
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x44e3ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x104], eax
lea eax, [esi + 0x78]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b600
add esp, 8
cmp dword [esi + 0x104], 8
lea eax, [esi + 0xf0]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
jb 0x40b72d
mov eax, dword [eax]
push ecx
xor edx, edx
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], dx
call fcn.00410cc0
cmp dword [ebp - 0x8c], 8
lea eax, [ebp - 0xa0]
push dword [ebp - 0x90]
cmovae eax, dword [ebp - 0xa0]
xor ecx, ecx
mov word [ebp - 0x40], cx
lea ecx, [ebp - 0x40]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
call fcn.00410cc0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00409150
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x40b7df
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b7d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc2c
push edx
push ecx
call fcn.0041b4d3
add esp, 8
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp edx, 8
jb 0x40b81d
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc2c
push edx
push ecx
call fcn.0041b4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x74], 8
lea ecx, [esi + 0x90]
mov word [ebp - 0x28], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x14], 7
cmovae eax, dword [ebp - 0x88]
cmp dword [ecx + 0x14], 8
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x134], 1
movups xmmword [ebp - 0x128], xmm0
mov dword [ebp - 0x124], eax
jb 0x40b871
mov ecx, dword [ecx]
cmp dword [esi + 0xec], 8
lea eax, [esi + 0xd8]
jb 0x40b882
mov eax, dword [eax]
push 4
push ecx
push eax
lea eax, [ebp - 0x138]
push eax
call sub.MPR.dll_WNetAddConnection2W
cmp eax, 0x4c3
je 0x40b8a1
test eax, eax
jne 0x40bc31
lea eax, [ebp - 0x88]
mov dword [ebp - 0x104], eax
push 0x10
xor eax, eax
mov byte [ebp - 4], 6
push str.imageservice.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00410cc0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00409150
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x40b930
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b926
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc50
push edx
push ecx
call fcn.0041b4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xc
push str.snapshot.exe
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00410cc0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00409150
add esp, 0xc
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 0xc
cmp edx, 8
jb 0x40b9bd
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b9b3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc50
push edx
push ecx
call fcn.0041b4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
push 0x10
push str.service_cert.pem
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00410cc0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.00409150
add esp, 0xc
mov edx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x40ba4a
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ba40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc50
push edx
push ecx
call fcn.0041b4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
push 0xf
push str.service_key.pem
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00410cc0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00409150
mov edx, dword [ebp - 0x2c]
add esp, 0xc
mov byte [ebp - 4], 0xf
cmp edx, 8
jb 0x40bad7
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bacd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bc50
push edx
push ecx
call fcn.0041b4d3
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp dword [ebp - 0xec], 8
lea eax, [ebp - 0x100]
mov byte [ebp - 4], 0x11
mov ecx, esi
cmovae eax, dword [ebp - 0x100]
cmp dword [esi + 0x14], 8
jb 0x40bb0d
mov ecx, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
push eax
push ecx
call edi
test eax, eax
jne 0x40bb2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
jmp 0x40bc34
cmp dword [ebp - 0xd4], 8
lea ecx, [ebp - 0xe8]
lea eax, [esi + 0x18]
cmovae ecx, dword [ebp - 0xe8]
cmp dword [eax + 0x14], 8
jb 0x40bb4a
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
test eax, eax
jne 0x40bb62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
jmp 0x40bc34
cmp dword [ebp - 0xbc], 8
lea ecx, [ebp - 0xd0]
lea eax, [esi + 0x30]
cmovae ecx, dword [ebp - 0xd0]
cmp dword [eax + 0x14], 8
jb 0x40bb81
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
test eax, eax
jne 0x40bb99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
jmp 0x40bc34
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
cmovae eax, dword [ebp - 0xb8]
add esi, 0x48
cmp dword [esi + 0x14], 8
jb 0x40bbb8
mov esi, dword [esi]
push 0
push eax
push esi
call edi
test eax, eax
jne 0x40bbcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 9
jmp 0x40bc34
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x100]
push eax
call fcn.00407170
lea ecx, [ebp - 0x100]
call fcn.004087c0
lea ecx, [ebp - 0x104]
call fcn.00407eb0
lea ecx, [ebp - 0x88]
call fcn.00408230
lea ecx, [ebp - 0xa0]
call fcn.00408230
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b949
mov esp, ebp
pop ebp
ret
call fcn.0042069c
push eax
push 8
lea ecx, [ebp - 0x114]
call fcn.00407660
push 0x44c704
lea eax, [ebp - 0x114]
push eax
call fcn.0041c83d
call fcn.0042069c
int3