Function at 0x140008c50
Capabilities:
Get hostname
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
lea rdx, str.XMRIG_VERSION
lea rbx, [rsp + 0x50]
lea rbp, [rsp + 0x60]
mov rcx, rbx
call fcn.140058790
lea rdx, [0x1404046c2]
mov rcx, rbp
call fcn.140058790
lea rsi, [rsp + 0x20]
lea rdi, [0x140523140]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008cac
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008cbb
call fcn.1403f2f70
lea rdx, str.XMRIG_KIND
mov rcx, rbx
call fcn.140058790
lea rdx, [0x1404046d4]
mov rcx, rbp
call fcn.140058790
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008cf6
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008d05
call fcn.1403f2f70
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 0x140009248
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
lea rdx, str.XMRIG_HOSTNAME
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008eed
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008efc
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008f0b
call fcn.1403f2f70
lea rbp, [rsp + 0x40]
mov rcx, rbp
call fcn.14001d670
lea rdx, str.XMRIG_EXE
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008f6a
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008f79
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140008f88
call fcn.1403f2f70
xor edx, edx
mov rcx, rbp
xor r8d, r8d
call fcn.14001d6e0
lea rdx, str.XMRIG_EXE_DIR
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140008fe7
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140008ff6
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009005
call fcn.1403f2f70
mov edx, 1
mov rcx, rbp
xor r8d, r8d
call fcn.14001d6e0
lea rdx, str.XMRIG_CWD
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140009067
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140009076
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009085
call fcn.1403f2f70
mov edx, 3
mov rcx, rbp
xor r8d, r8d
call fcn.14001d6e0
lea rdx, str.XMRIG_HOME_DIR
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400090e7
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400090f6
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009105
call fcn.1403f2f70
mov edx, 4
mov rcx, rbp
xor r8d, r8d
call fcn.14001d6e0
lea rdx, str.XMRIG_TEMP_DIR
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140009167
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140009176
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009185
call fcn.1403f2f70
mov edx, 2
mov rcx, rbp
xor r8d, r8d
call fcn.14001d6e0
lea rdx, str.XMRIG_DATA_DIR
mov rcx, rbx
call fcn.140058790
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400091e7
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400091f6
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009205
call fcn.1403f2f70
lea rcx, [rsp + 0x30]
lea rdx, str.HOSTNAME
call fcn.140058790
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_getenv
test rax, rax
je 0x140009260
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140009235
call fcn.1403f2f70
nop
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140058790
jmp 0x140008e9b
mov rcx, rbp
call fcn.140008a20
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.1403d40b0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400092d1
call fcn.1403f2f70
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400092e0
call fcn.1403f2f70
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140009225
call fcn.1403f2f70
jmp 0x140009225