Function at 0x140041924
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3d0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140072040]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], rdx
xor ebx, ebx
xor edx, edx
lea r8d, [rbx + 0x64]
lea rcx, [rbp + 0x114]
call fcn.1400522a0
mov dword [rbp + 0x110], 0x68
movups xmm0, xmmword [str.rundll32.exe]
movaps xmmword [rbp + 0x1a0], xmm0
movsd xmm0, qword [0x140062f38]
movsd qword [rbp + 0x1b0], xmm0
movzx eax, word [0x140062f40]
mov word [rbp + 0x1b8], ax
xor edx, edx
mov r8d, 0xe6
lea rcx, [rbp + 0x1ba]
call fcn.1400522a0
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x78], rbx
mov dword [rbp + 0xf0], ebx
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], rbx
xor r8d, r8d
lea rdx, [0x140062f48]
lea rcx, [rbp + 0xd0]
call fcn.140001bf0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rbx
mov qword [rbp + 0xc8], rbx
mov rdx, rdi
lea r12d, [rbx + 7]
cmp qword [rdi + 0x18], r12
jbe 0x140041a3a
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rbp + 0xb0]
call fcn.140001ce8
nop
lea rdx, [0x140062f44]
mov rcx, rdi
call fcn.1400048f8
mov r14d, 2
or r13, 0xffffffffffffffff
mov rcx, rdi
cmp rax, r13
je 0x140041b77
lea rdx, [0x140062f50]
call fcn.1400048f8
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
cmp qword [rdi + 0x10], rax
cmovb rax, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140041aa3
mov rdx, qword [rdi]
mov r8, rax
lea rcx, [rsp + 0x60]
call fcn.140001bf0
lea rcx, [rbp + 0xd0]
call fcn.1400016f0
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rsp + 0x70]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], bx
lea rcx, [rsp + 0x60]
call fcn.1400016f0
lea rdx, str.__
mov rcx, rdi
call fcn.1400048f8
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], rbx
mov rax, qword [rdi + 0x10]
cmp rax, rcx
jb 0x140042291
sub rax, rcx
mov r8, r13
cmp rax, r13
cmovb r8, rax
mov rax, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140041b35
mov rax, qword [rdi]
lea rdx, [rax + rcx*2]
lea rcx, [rbp - 0x68]
call fcn.140001bf0
lea rax, [rbp - 0x68]
cmp rdi, rax
je 0x140041b6e
mov rcx, rdi
call fcn.1400016f0
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], r12
mov word [rbp - 0x68], bx
lea rcx, [rbp - 0x68]
jmp 0x140041c9a
lea rdx, [0x140062f58]
call fcn.1400048f8
cmp rax, r13
jne 0x140041c9f
mov dword [rbp + 0xf8], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rbp + 0xf8]
lea rdx, [rbp + 0x180]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x140041c9f
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0xd0]
call fcn.14000374c
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp + 0xe0]
sub rax, rcx
cmp rax, 1
jb 0x14004228b
lea r9, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r12
cmova r9, qword [rbp + 0xd0]
mov qword [rsp + 0x30], 1
lea rax, [0x140062f54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x48]
call fcn.140001dc0
nop
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], r12
cmova rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp - 0x48]
call fcn.140001ed0
movups xmm7, xmmword [rax]
movups xmmword [rsp + 0x60], xmm7
movups xmm6, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm6
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], r12
mov word [rax], bx
lea rcx, [rbp + 0xb0]
call fcn.1400016f0
movups xmmword [rbp + 0xb0], xmm7
movups xmmword [rbp + 0xc0], xmm6
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r12
mov word [rsp + 0x60], bx
lea rcx, [rsp + 0x60]
call fcn.1400016f0
nop
lea rcx, [rbp - 0x48]
call fcn.1400016f0
call fcn.1400497c4
mov r8, rsi
cmp r15d, 1
je 0x140041e73
cmp qword [rsi + 0x18], r12
jbe 0x140041cba
mov r8, qword [rsi]
cmp qword [rbp + 0xe0], rbx
je 0x140041cdb
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r12
cmova rdx, qword [rbp + 0xd0]
jmp 0x140041cde
mov rdx, rbx
mov rcx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140041cea
mov rcx, qword [rdi]
lea rax, [rbp + 0x88]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x110]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], ebx
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
mov r9d, 1
call fcn.140049a18
test eax, eax
je 0x140041f07
lea r8, [rbp + 0x68]
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov rcx, qword [rbp + 0x88]
call fcn.14004a1c8
mov rcx, qword [rbp + 0x88]
test eax, eax
jne 0x140041d8f
call fcn.140049710
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140042720
nop
lea rcx, [rbp + 0xb0]
call fcn.1400016f0
nop
lea rcx, [rbp + 0xd0]
call fcn.1400016f0
nop
mov rcx, rdi
call fcn.1400016f0
nop
mov rcx, rsi
call fcn.1400016f0
xor eax, eax
jmp 0x140042257
call fcn.140049710
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r9, [rbp + 0x70]
lea r8, [rbp + 0x68]
mov rcx, qword [rbp + 0x68]
call fcn.140041780
test r15d, r15d
jne 0x14004202b
mov rcx, qword [rbp + 0x70]
call fcn.140041334
test al, al
jne 0x14004202b
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rbp + 0x180]
mov qword [rbp - 0x70], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x198], rbx
mov rdx, rsi
cmp qword [rsi + 0x18], r12
jbe 0x140041e0f
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp + 0x180]
call fcn.140001ce8
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rbx
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], r12
cmova rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp - 0x48]
call fcn.140001ce8
nop
lea rdx, [rbp + 0x180]
lea rcx, [rbp - 0x48]
mov r8d, 1
call fcn.140041924
mov ebx, eax
jmp 0x14004222a
cmp qword [rsi + 0x18], r12
jbe 0x140041e7c
mov r8, qword [rsi]
cmp qword [rbp + 0xe0], rbx
je 0x140041e9d
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r12
cmova rdx, qword [rbp + 0xd0]
jmp 0x140041ea0
mov rdx, rbx
mov rcx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140041eac
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_LogonUserExW]
test eax, eax
jne 0x140041efd
mov qword [rbp + 0x68], rbx
call fcn.140042720
jmp 0x14004222a
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 9
cmp r15d, 1
cmove r14d, eax
mov r8, rsi
cmp qword [rsi + 0x18], r12
jbe 0x140041f20
mov r8, qword [rsi]
cmp qword [rbp + 0xe0], rbx
je 0x140041f41
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], r12
cmova rdx, qword [rbp + 0xd0]
jmp 0x140041f44
mov rdx, rbx
mov rcx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x140041f50
mov rcx, qword [rdi]
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9d, r14d
call qword [sym.imp.ADVAPI32.dll_LogonUserExW]
test eax, eax
jne 0x140041da1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x557
jne 0x140041ef3
test r15d, r15d
jne 0x140041ef3
lea rax, [rsp + 0x60]
mov qword [rbp + 0xf8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov rdx, rsi
cmp qword [rsi + 0x18], r12
jbe 0x140041fd8
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rsp + 0x60]
call fcn.140001ce8
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], rbx
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], r12
cmova rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp - 0x20]
call fcn.140001ce8
nop
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x20]
jmp 0x140041e61
mov rdx, qword [rbp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140041538
mov r14, rax
cmp rdi, rax
je 0x140042064
mov rcx, rdi
call fcn.1400016f0
movups xmm0, xmmword [r14]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [r14 + 0x10], rbx
mov qword [r14 + 0x18], r12
mov word [r14], bx
lea rcx, [rbp - 0x20]
call fcn.1400016f0
mov rcx, qword [rbp + 0x68]
call fcn.14004e1b8
mov rcx, qword [rbp + 0x70]
call fcn.14004e1b8
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov r12d, 0x88
mov ecx, r12d
call fcn.14000c2a0
mov r14, rax
mov qword [rbp - 0x70], rax
mov r8d, r12d
xor edx, edx
mov rcx, rax
call fcn.1400522a0
mov r12, qword [rbp + 0x78]
mov r13, qword [rbp + 0x80]
lea rax, [rbp]
mov qword [rbp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400420da
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp]
call fcn.140001ce8
nop
lea rax, [rbp + 0x20]
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
lea rdx, [rbp + 0xb0]
cmp qword [rbp + 0xc8], 7
cmova rdx, qword [rbp + 0xb0]
mov r8, qword [rbp + 0xc0]
lea rcx, [rbp + 0x20]
call fcn.140001ce8
nop
lea rdx, [rbp + 0xb0]
cmp qword [rdi + 0x10], rbx
cmova rdx, rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rbx
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x140042153
mov rdx, qword [rdx]
lea rcx, [rbp + 0x40]
call fcn.140001ce8
cmp r15d, 1
sete al
mov byte [rsp + 0x40], al
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r13
lea rax, [rbp]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x40]
mov r8, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov rcx, r14
call fcn.1400045a8
mov rbx, rax
mov qword [rbp - 0x28], rax
mov ecx, SafeArrayCopy
call fcn.14000c2a0
mov r14, rax
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.CE_RWEI_JCD_BWYM::AGPBORM_AXH.0
mov qword [r14], rax
mov qword [r14 + 0x10], rbx
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], r14
movdqu xmmword [rbp - 0x80], xmm0
lock inc dword [r14 + 8]
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], r14
lea rcx, [rbp - 0x80]
call fcn.140004810
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [r14 + 8], ecx
cmp ecx, 1
jne 0x14004222a
mov rdx, qword [r14]
mov rcx, r14
call qword [rdx]
or ecx, 0xffffffff
lock xadd dword [r14 + 0xc], ecx
cmp ecx, 1
jne 0x14004222a
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
nop
lea rcx, [rbp + 0xb0]
call fcn.1400016f0
nop
lea rcx, [rbp + 0xd0]
call fcn.1400016f0
nop
mov rcx, rdi
call fcn.1400016f0
nop
mov rcx, rsi
call fcn.1400016f0
mov eax, ebx
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14000c280
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001664
nop
call fcn.1400049d0
int3