Function at 0x14000a620
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration
Terminate process

Disassembly:
push rbx
sub rsp, 0xa0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edx, 1
mov ecx, 0x3e8
call qword [sym.imp.MSVCR120.dll_calloc]
mov rbx, rax
test rax, rax
jne 0x14000a6a1
lea rcx, str._n____Error_allocating_memory
call fcn.140001fb0
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattron]
mov rcx, qword [0x140024d38]
lea rdx, str.Error_allocating_memory_n
xor r8d, r8d
call qword [sym.imp.pdcurses.dll_wprintw]
mov rcx, qword [0x140024d38]
mov edx, 0xc000000
call qword [sym.imp.pdcurses.dll_wattroff]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR120.dll_exit]
int3
mov ecx, dword [0x140024040]
xor eax, eax
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
xor edi, edi
lea rdx, [rsp + 0x70]
lea r8d, [rdi + 0xa]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x4c], 6
mov dword [rsp + 0x40], 1
call qword [sym.imp.MSVCR120.dll__itoa]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
lea rcx, [0x140024060]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000a78b
mov eax, dword [0x140024020]
test eax, eax
jle 0x14000a737
dec eax
mov dword [0x140024020], eax
lea rcx, str._n__GMI:_getaddrinfo_failed_with_error:
call fcn.140001fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [reloc.WS2_32.dll_accept], dil
movsxd rdx, eax
je 0x14000ac4e
mov rcx, qword [0x140024d30]
test rcx, rcx
je 0x14000ac4e
mov r8d, edx
lea rdx, [0x14001b7d4]
call qword [sym.imp.MSVCR120.dll_fprintf_s]
mov rcx, qword [0x140024d30]
call qword [sym.imp.MSVCR120.dll_fflush]
jmp 0x14000ac4e
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xb8], rsi
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000a7e2
mov eax, dword [0x140024020]
test eax, eax
jle 0x14000a7c3
dec eax
mov dword [0x140024020], eax
lea rcx, str._n__GMI:_socket_function_failed_with_error:
call fcn.140001fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rcx, eax
call fcn.1400021b0
jmp 0x14000ac3b
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
mov qword [rsp + 0x98], r12
mov dword [rsp + 0x38], 0x3e8
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rcx, str._nConnecting_to_server:
call fcn.140001fb0
lea rcx, [0x140024060]
call fcn.140001fb0
lea rcx, [0x14001bb14]
call fcn.140001fb0
mov rcx, qword [0x140024040]
call fcn.1400021b0
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000a884
mov eax, dword [0x140024020]
test eax, eax
jle 0x14000a878
dec eax
mov dword [0x140024020], eax
lea rcx, str._n__GMI:_connect_function_failed_with_error:
jmp 0x14000a989
cmp qword [0x140024cf8], 2
mov edx, 0x3e8
mov rcx, rbx
jne 0x14000a8b8
mov rax, qword [0x140024040]
lea r9, [0x140024060]
lea r8, str.GET__pool_getMiningInfo_HTTP_1.0_r_nHost:__s:_llu_r_nContent_Type:_text_plain_charsetUTF_8_r_n_r_n
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR120.dll_sprintf_s]
jmp 0x14000a8c5
lea r8, str.POST__burst_requestTypegetMiningInfo_HTTP_1.0_r_nConnection:_close_r_n_r_n
call qword [sym.imp.MSVCR120.dll_sprintf_s]
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000a8fa
mov eax, dword [0x140024020]
test eax, eax
jle 0x14000a8ee
dec eax
mov dword [0x140024020], eax
lea rcx, str._n__GMI:_send_request_failed:
jmp 0x14000a989
cmp byte [0x140024c02], dil
je 0x14000a91d
mov rcx, qword [0x140024d38]
lea rdx, str.Sent:__n_s_n
xor r9d, r9d
mov r8, rbx
call qword [sym.imp.pdcurses.dll_wprintw]
lea rcx, str._nSent_to_server:
call fcn.140001fb0
mov rcx, rbx
call fcn.140002060
xor edx, edx
mov r8d, 0x3e8
mov rcx, rbx
call sub.MSVCR120.dll_memset
mov r8d, 0x3e7
movsxd rdx, edi
xor r9d, r9d
sub r8d, edi
add rdx, rbx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x14000a96b
add edi, eax
cmp byte [0x140024c29], 0
je 0x14000a941
cmp eax, 0xffffffff
mov eax, dword [0x140024020]
jne 0x14000a9a1
test eax, eax
jle 0x14000a982
dec eax
mov dword [0x140024020], eax
lea rcx, str._n__GMI:_get_mining_info_failed::
call fcn.140001fb0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movsxd rcx, eax
call fcn.1400021b0
jmp 0x14000ac22
cmp eax, 0x64
jge 0x14000a9ae
inc eax
mov dword [0x140024020], eax
lea rcx, str._n_GMI:_Received_from_server:
call fcn.140001fb0
mov rcx, rbx
call fcn.140002060
cmp byte [0x140024c02], 0
je 0x14000a9e5
mov rcx, qword [0x140024d38]
lea rdx, str.Received:__s_n
xor r9d, r9d
mov r8, rbx
call qword [sym.imp.pdcurses.dll_wprintw]
lea rdx, str._r_n_r_n
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_strstr]
test rax, rax
jne 0x14000aa0b
lea rcx, str._n__GMI:_error_in_message_from_pool
call fcn.140001fb0
jmp 0x14000ac22
mov qword [rsp + 0xb0], rbp
lea rdx, str._baseTarget_:
mov rcx, rbx
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], r15
call qword [sym.imp.MSVCR120.dll_strstr]
lea rdx, str._height_:
mov rcx, rbx
mov r15, rax
call qword [sym.imp.MSVCR120.dll_strstr]
lea rdx, str._generationSignature_:
mov rcx, rbx
mov r14, rax
call qword [sym.imp.MSVCR120.dll_strstr]
mov rdi, rax
test rax, rax
je 0x14000aa76
lea rcx, [rax + 0x16]
lea rdx, [0x14001bb24]
call qword [sym.imp.MSVCR120.dll_strstr]
lea rdi, [rax + 1]
lea rdx, str._targetDeadline_
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_strstr]
mov rbp, rax
test r15, r15
je 0x14000abfe
test r14, r14
je 0x14000abfe
test rdi, rdi
je 0x14000abfe
lea rdx, [0x14001d5b0]
mov rcx, r15
call qword [sym.imp.MSVCR120.dll_strpbrk]
lea rdx, [0x14001bb34]
mov rcx, rax
mov r12, rax
call qword [sym.imp.MSVCR120.dll_strpbrk]
lea rdx, [0x14001d5c0]
mov rcx, r14
mov r15, rax
call qword [sym.imp.MSVCR120.dll_strpbrk]
lea rdx, [0x14001bb44]
mov rcx, rax
mov r13, rax
call qword [sym.imp.MSVCR120.dll_strpbrk]
lea rdx, [0x14001bb5c]
mov rcx, rdi
mov r14, rax
call qword [sym.imp.MSVCR120.dll_strstr]
test r15, r15
je 0x14000abf5
test r14, r14
je 0x14000abf5
test rax, rax
je 0x14000abf5
mov byte [r15], 0
mov byte [r14], 0
mov byte [rax], 0
test rbp, rbp
je 0x14000ab94
lea rdx, str.0123456789
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll_strpbrk]
lea rdx, [0x14001bb6c]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.MSVCR120.dll_strpbrk]
test rax, rax
jne 0x14000ab63
lea rdx, [0x14001bb7c]
mov rcx, rbp
call qword [sym.imp.MSVCR120.dll_strpbrk]
xor edx, edx
mov rcx, rbp
mov byte [rax], 0
lea r8d, [rdx + 0xa]
call qword [sym.imp.MSVCR120.dll__strtoui64]
lea rcx, str._ntargetDeadlineInfo:
mov qword [0x140024c38], rax
call fcn.140001fb0
mov rcx, qword [0x140024c38]
call fcn.140002170
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 0xa]
call qword [sym.imp.MSVCR120.dll__strtoui64]
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 0xa]
mov qword [0x140024da0], rax
call qword [sym.imp.MSVCR120.dll__strtoui64]
lea rdx, [0x140024c40]
mov rcx, rdi
mov qword [0x140024d78], rax
sub rdx, rdi
nop dword [rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x14000abd0
mov r8, rdi
call fcn.140004cd0
test rax, rax
jne 0x14000ac0a
lea rcx, str._n__GMI:_Node_response:_Error_decoding_generationsignature_n
jmp 0x14000ac05
lea rcx, str._n__GMI:_error_parsing__2__message_from_server
jmp 0x14000ac05
lea rcx, str._n__GMI:_error_parsing__1__message_from_server
call fcn.140001fb0
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rsi, qword [rsp + 0xb8]
mov rcx, rbx
call qword [sym.imp.MSVCR120.dll_free]
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140018be0
add rsp, 0xa0
pop rbx
ret