Function at 0x406650
Capabilities:
Get hostname
Query environment variable

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x150
lea rdx, str.XMRIG_VERSION
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x60]
mov rcx, r12
call fcn.0043c460
lea rdx, [0x0087c38c]
mov rcx, r14
call fcn.0043c460
lea r13, [rsp + 0x20]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x4066ad
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x4066bc
call fcn.0086baa0
lea rdx, str.XMRIG_KIND
mov rcx, r12
call fcn.0043c460
lea rdx, [0x0087c39e]
mov rcx, r14
call fcn.0043c460
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x4066fb
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x40670a
call fcn.0086baa0
mov qword [rsp + 0x50], 0
mov edx, 0x100
mov rcx, r12
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
mov rsi, qword [sym.imp.WS2_32.dll_gethostname]
call rsi
test eax, eax
je 0x406c70
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, str.XMRIG_HOSTNAME
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x4068f9
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406908
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406917
call fcn.0086baa0
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.004130e0
lea rdx, str.XMRIG_EXE
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x40697a
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406989
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406998
call fcn.0086baa0
xor edx, edx
mov rcx, r14
xor r8d, r8d
call fcn.00413150
lea rdx, str.XMRIG_EXE_DIR
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x4069fb
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406a0a
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406a19
call fcn.0086baa0
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.00413150
lea rdx, str.XMRIG_CWD
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406a7f
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406a8e
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406a9d
call fcn.0086baa0
mov edx, 3
mov rcx, r14
xor r8d, r8d
call fcn.00413150
lea rdx, str.XMRIG_HOME_DIR
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406b03
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406b12
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406b21
call fcn.0086baa0
mov edx, 4
mov rcx, r14
xor r8d, r8d
call fcn.00413150
lea rdx, str.XMRIG_TEMP_DIR
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406b87
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406b96
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406ba5
call fcn.0086baa0
mov edx, 2
mov rcx, r14
xor r8d, r8d
call fcn.00413150
lea rdx, str.XMRIG_DATA_DIR
mov rcx, r12
call fcn.0043c460
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x00993140]
mov rcx, r13
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], rax
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406c0b
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406c1a
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406c29
call fcn.0086baa0
lea rcx, [rsp + 0x30]
lea rdx, str.HOSTNAME
call fcn.0043c460
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
je 0x406c88
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x406c5c
call fcn.0086baa0
nop
add rsp, 0x150
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.0043c460
jmp 0x4068a3
mov qword [rsp + 0x50], 0
mov edx, 0x100
mov rcx, r12
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x140], 0
mov qword [rsp + 0x148], 0
call rsi
mov r8d, eax
xor eax, eax
test r8d, r8d
je 0x406ea0
mov rdx, qword [rsp + 0x30]
mov r8, r12
mov rcx, r13
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x58], rdx
lea rdx, [0x00993140]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.0084a880
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406e71
call fcn.0086baa0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406e80
call fcn.0086baa0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406c4c
call fcn.0086baa0
jmp 0x406c4c
mov rdx, r12
mov rcx, r14
call fcn.0043c460
mov rbx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jmp 0x406e0e