Function at 0x100a33b
Capabilities:
Connect network resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 4]
push dword [eax + 0x4008]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 1], 1
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x100a385
push 0x1002120
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
jmp 0x100a53b
push esi
mov esi, dword [ebp + 8]
push esi
lea eax, [ebp - 8]
push eax
call fcn.0100d25d
test al, al
je 0x100a4f7
push esi
lea eax, [ebp - 0x10]
push eax
call fcn.0100d25d
test al, al
je 0x100a4f7
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0100d25d
test al, al
je 0x100a4f7
push ebx
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0xc], 4
xor ecx, ecx
xor edx, edx
mov dx, word [esi]
cmp dx, cx
mov dword [ebp - 0x1c], ecx
mov dword [ebp + 8], ecx
mov eax, esi
je 0x100a409
cmp dx, 0x5c
jne 0x100a3f3
inc dword [ebp + 8]
mov edx, dword [ebp + 8]
cmp edx, dword [ebp - 0xc]
je 0x100a409
mov dx, word [esi + ecx*2]
mov ebx, dword [ebp - 0x10]
inc eax
inc eax
mov word [ebx + ecx*2], dx
mov dx, word [eax]
inc ecx
test dx, dx
jne 0x100a3e2
mov ebx, dword [ebp - 0x10]
xor edx, edx
mov word [ebx + ecx*2], dx
mov cx, word [eax]
cmp cx, dx
je 0x100a42e
mov ebx, dword [ebp - 8]
mov word [ebx + edx*2], cx
inc edx
inc eax
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100a41a
mov eax, dword [ebp - 8]
and word [eax + edx*2], 0
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
jne 0x100a468
push dword [ebp - 8]
push eax
push 0x10020f8
push eax
call edi
push dword [ebp - 8]
mov ebx, eax
call edi
pop ecx
pop ecx
add ebx, eax
push ebx
push esi
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x14
jmp 0x100a47d
push eax
push 0x1002118
push eax
call edi
pop ecx
push eax
push esi
call dword [sym.imp.msvcrt.dll__snwprintf]
add esp, 0x10
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x2c], eax
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 1
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
je 0x100a4e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x55
je 0x100a4e9
cmp ebx, 0x43
jne 0x100a4d0
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 8], eax
jne 0x100a4d0
push dword [ebp - 0x18]
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x100a4e9
push 0x1002120
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
mov byte [ebp - 1], 0
xor ebx, ebx
jmp 0x100a4e9
mov ebx, dword [ebp - 0x1c]
inc dword [ebp - 0xc]
cmp ebx, 0x43
je 0x100a3ce
pop edi
pop ebx
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x100a51c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push 0xc0001772
push 1
call fcn.0100d50f
mov byte [ebp - 1], 0
call esi
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov al, byte [ebp - 1]
add esp, 0xc
pop esi
leave
ret 4