Function at 0x1400084b0
Capabilities:
Get hostname
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
lea rdx, str.XMRIG_VERSION
lea r12, [0x1402712c2]
lea rbx, [rsp + 0x50]
lea rbp, [rsp + 0x60]
mov rcx, rbx
call fcn.140046680
mov rdx, r12
mov rcx, rbp
call fcn.140046680
lea rsi, [rsp + 0x20]
lea rdi, [0x1402f9140]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008513
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008522
call fcn.140267150
lea rdx, str.XMRIG_KIND
mov rcx, rbx
call fcn.140046680
mov rdx, r12
mov rcx, rbp
call fcn.140046680
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008559
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008568
call fcn.140267150
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
mov r13, qword [sym.imp.WS2_32.dll_gethostname]
call r13
test eax, eax
je 0x140008ab0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, str.XMRIG_HOSTNAME
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008754
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008763
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008772
call fcn.140267150
lea rbp, [rsp + 0x40]
mov rcx, rbp
call fcn.14001bcb0
lea rdx, str.XMRIG_EXE
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400087d1
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400087e0
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400087ef
call fcn.140267150
xor edx, edx
mov rcx, rbp
xor r8d, r8d
call fcn.14001bd20
lea rdx, str.XMRIG_EXE_DIR
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000884e
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000885d
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000886c
call fcn.140267150
mov edx, 1
mov rcx, rbp
xor r8d, r8d
call fcn.14001bd20
lea rdx, str.XMRIG_CWD
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400088ce
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400088dd
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400088ec
call fcn.140267150
mov edx, 3
mov rcx, rbp
xor r8d, r8d
call fcn.14001bd20
lea rdx, str.XMRIG_HOME_DIR
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000894e
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000895d
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000896c
call fcn.140267150
mov edx, 4
mov rcx, rbp
xor r8d, r8d
call fcn.14001bd20
lea rdx, str.XMRIG_TEMP_DIR
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400089ce
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400089dd
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400089ec
call fcn.140267150
mov edx, 2
mov rcx, rbp
xor r8d, r8d
call fcn.14001bd20
lea rdx, str.XMRIG_DATA_DIR
mov rcx, rbx
call fcn.140046680
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.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008a4e
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008a5d
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008a6c
call fcn.140267150
lea rcx, [rsp + 0x30]
lea rdx, str.HOSTNAME
call fcn.140046680
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_getenv
mov r12, rax
test rax, rax
je 0x140008ac8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140008a9f
call fcn.140267150
nop
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140046680
jmp 0x140008702
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 r13
mov edx, eax
xor eax, eax
test edx, edx
je 0x140008cd8
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rsi
mov qword [rsp + 0x60], r12
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
mov rdx, rdi
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call fcn.140249490
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008cac
call fcn.140267150
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008cbb
call fcn.140267150
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008a8f
call fcn.140267150
jmp 0x140008a8f
mov rdx, rbx
mov rcx, rbp
call fcn.140046680
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
jmp 0x140008c4d