Function at 0x406670
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.00442310
lea rdx, [0x008bf44c]
mov rcx, r14
call fcn.00442310
lea r13, [rsp + 0x20]
mov r8, r12
lea rdx, [0x009e2140]
mov rcx, r13
call fcn.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x4066cd
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x4066dc
call fcn.008ae2f0
lea rdx, str.XMRIG_KIND
mov rcx, r12
call fcn.00442310
lea rdx, [0x008bf45e]
mov rcx, r14
call fcn.00442310
mov r8, r12
lea rdx, [0x009e2140]
mov rcx, r13
call fcn.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x40671b
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x40672a
call fcn.008ae2f0
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 0x406c90
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, str.XMRIG_HOSTNAME
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406919
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406928
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406937
call fcn.008ae2f0
lea r14, [rsp + 0x40]
mov rcx, r14
call fcn.004136c0
lea rdx, str.XMRIG_EXE
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x40699a
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x4069a9
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4069b8
call fcn.008ae2f0
xor edx, edx
mov rcx, r14
xor r8d, r8d
call fcn.00413730
lea rdx, str.XMRIG_EXE_DIR
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406a1b
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406a2a
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406a39
call fcn.008ae2f0
mov edx, 1
mov rcx, r14
xor r8d, r8d
call fcn.00413730
lea rdx, str.XMRIG_CWD
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406a9f
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406aae
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406abd
call fcn.008ae2f0
mov edx, 3
mov rcx, r14
xor r8d, r8d
call fcn.00413730
lea rdx, str.XMRIG_HOME_DIR
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406b23
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406b32
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406b41
call fcn.008ae2f0
mov edx, 4
mov rcx, r14
xor r8d, r8d
call fcn.00413730
lea rdx, str.XMRIG_TEMP_DIR
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406ba7
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406bb6
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406bc5
call fcn.008ae2f0
mov edx, 2
mov rcx, r14
xor r8d, r8d
call fcn.00413730
lea rdx, str.XMRIG_DATA_DIR
mov rcx, r12
call fcn.00442310
mov rax, qword [rsp + 0x40]
mov r8, r12
lea rdx, [0x009e2140]
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.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406c2b
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406c3a
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406c49
call fcn.008ae2f0
lea rcx, [rsp + 0x30]
lea rdx, str.HOSTNAME
call fcn.00442310
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
je 0x406ca8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x406c7c
call fcn.008ae2f0
nop
add rsp, 0x150
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.00442310
jmp 0x4068c3
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 0x406ec0
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, [0x009e2140]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.0088bda0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x406e91
call fcn.008ae2f0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x406ea0
call fcn.008ae2f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x406c6c
call fcn.008ae2f0
jmp 0x406c6c
mov rdx, r12
mov rcx, r14
call fcn.00442310
mov rbx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jmp 0x406e2e