Function at 0x140008270
Capabilities:
Get hostname
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x150
lea rdx, str.XMRIG_VERSION
lea r12, [0x140285482]
lea rbx, [rsp + 0x50]
lea rbp, [rsp + 0x60]
mov rcx, rbx
call fcn.1400487c0
mov rdx, r12
mov rcx, rbp
call fcn.1400487c0
lea rsi, [rsp + 0x20]
lea rdi, [0x1402f9140]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400082d1
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400082e0
call fcn.140279770
lea rdx, str.XMRIG_KIND
mov rcx, rbx
call fcn.1400487c0
mov rdx, r12
mov rcx, rbp
call fcn.1400487c0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008317
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008326
call fcn.140279770
mov qword [rsp + 0x50], 0
mov edx, 0x100
mov rcx, rbx
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 qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140008868
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, str.XMRIG_HOSTNAME
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000850e
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000851d
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000852c
call fcn.140279770
lea rbp, [rsp + 0x40]
mov rcx, rbp
call fcn.14001bbb0
lea rdx, str.XMRIG_EXE
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000858b
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000859a
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400085a9
call fcn.140279770
xor edx, edx
mov rcx, rbp
xor r8d, r8d
call fcn.14001bc20
lea rdx, str.XMRIG_EXE_DIR
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008608
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008617
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008626
call fcn.140279770
mov edx, 1
mov rcx, rbp
xor r8d, r8d
call fcn.14001bc20
lea rdx, str.XMRIG_CWD
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008688
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008697
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400086a6
call fcn.140279770
mov edx, 3
mov rcx, rbp
xor r8d, r8d
call fcn.14001bc20
lea rdx, str.XMRIG_HOME_DIR
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008708
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008717
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008726
call fcn.140279770
mov edx, 4
mov rcx, rbp
xor r8d, r8d
call fcn.14001bc20
lea rdx, str.XMRIG_TEMP_DIR
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008788
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008797
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400087a6
call fcn.140279770
mov edx, 2
mov rcx, rbp
xor r8d, r8d
call fcn.14001bc20
lea rdx, str.XMRIG_DATA_DIR
mov rcx, rbx
call fcn.1400487c0
mov rax, qword [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
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.14025cf20
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008808
call fcn.140279770
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008817
call fcn.140279770
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008826
call fcn.140279770
lea rcx, [rsp + 0x30]
lea rdx, str.HOSTNAME
call fcn.1400487c0
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140008880
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008856
call fcn.140279770
nop
add rsp, 0x150
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.1400487c0
jmp 0x1400084bc
mov rcx, rbp
call fcn.140008040
mov rax, qword [rsp + 0x30]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
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.14025cf20
mov rcx, rbx
call fcn.1402381a0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008846
call fcn.140279770
jmp 0x140008846