joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078034
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140097180
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140096ad0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400971c9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401b4020]
jmp 0x1400971d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400780e3
Capabilities:
Set environment variable

Disassembly:
jmp 0x140151440
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140076306
lea rcx, [rsp + 0x48]
call fcn.140076306
call fcn.140076b44
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140076112
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1401514af
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400765fe
lea rcx, [rsp + 0x78]
call fcn.1400765fe
mov eax, dword [rsp + 0x24]
jmp 0x140151540
call fcn.140076b44
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140076112
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401514f6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400765fe
lea rcx, [rsp + 0x78]
call fcn.1400765fe
mov eax, dword [rsp + 0x2c]
jmp 0x140151540
lea rcx, [rsp + 0x48]
call fcn.140076289
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140076289
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400765fe
lea rcx, [rsp + 0x78]
call fcn.1400765fe
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140078296
Capabilities:
Enumerate processes

Disassembly:
jmp 0x14007c0b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xc2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4e8]
mov rax, qword [0x1401a1040]
xor rax, rbp
mov qword [rbp + 0x478], rax
lea rcx, [0x1401b30f3]
call fcn.1400782e1
mov dword [rbp + 4], 0
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
xor edx, edx
mov ecx, 2
call fcn.14007683d
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
je 0x14007c247
mov dword [rbp + 0xb0], 0x238
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x88]
call fcn.140076e96
test eax, eax
je 0x14007c23a
lea rdx, str.HipsTray.exe
lea rcx, [rbp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14007c1a3
lea rdx, str.HipsDaemon.exe
lea rcx, [rbp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14007c1a3
lea rdx, str.wsctrlsvc.exe
lea rcx, [rbp + 0xdc]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14007c21f
mov eax, dword [rbp + 0xb8]
mov dword [rbp + 4], eax
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 4]
mov edx, 0x80002048
mov rcx, qword [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14007c204
lea rdx, [rbp + 0xdc]
lea rcx, str.faild_to_terminate:_ws____n
call fcn.140076824
jmp 0x14007c21f
lea rdx, [rbp + 0xdc]
lea rcx, str.terminated_process:_ws_n
call fcn.140076824
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x88]
call fcn.140077b70
test eax, eax
jne 0x14007c15b
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x64]
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14016d160]
call fcn.1400779f9
mov eax, edi
mov rcx, qword [rbp + 0x478]
xor rcx, rbp
call fcn.1400768ba
lea rsp, [rbp + 0x488]
pop rdi
pop rbp
ret
Function at 0x1401429c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140075924
sub rsp, rax
mov rax, qword [0x1401a1040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a3aa0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140142bb2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140142b06
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140142b06
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140142aeb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140142a88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140142b72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140142bd1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140142bad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140142bd1
jmp 0x140142a5e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768ba
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140142c80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140075924
sub rsp, rax
mov rax, qword [0x1401a1040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401a3aa0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140142e8d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140142dd9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140142dd9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140142db9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140142d48
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140142e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140142eac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140142e88
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140142eac
jmp 0x140142d1e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400768ba
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401875e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401875f0]
mov dword [rax], 1
mov rax, qword [0x140187600]
mov dword [rax], 1
mov rax, qword [0x140187550]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401875d0]
mov dword [0x1401bb00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1401876e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1401876c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140186b60]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140187630]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140187640]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1401bb008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140187590]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140187620]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x1401bb028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x1401bb020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1401bb020], rbp
call dbg.__main
mov rax, qword [0x1401875b0]
mov r8, qword [0x1401bb018]
mov ecx, dword [0x1401bb028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1401bb020]
call sym.main
mov ecx, dword [0x1401bb00c]
mov dword [0x1401bb010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1401bb008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140187640]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140187690]
mov rcx, qword [0x140187680]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x1401bb010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1401876b0]
mov rcx, qword [0x1401876a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001500
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
test ecx, ecx
je 0x14000152c
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Try__minerd___help_for_more_information._n
mov rcx, rax
call sym.fprintf
mov ecx, ebx
call sym.exit
lea rcx, str.Usage:_minerd__OPTIONS__nOptions:_n___a____algoALGO_______specify_the_algorithm_to_use_n__________________________randomx___RandomX__default__n________largepages______enable_large_pages_n________no_affinity_____disable_thread_binding_n___o____urlURL_________URL_of_mining_server_n___O____userpassU:P____username:password_pair_for_mining_server_n___u____userUSERNAME___username_for_mining_server_n___p____passPASSWORD___password_for_mining_server_n________certFILE_______certificate_for_mining_server_using_SSL_n___x____proxy_PROTOCOL:___HOST_:PORT___connect_through_a_proxy_n___t____threadsN_______number_of_miner_threads__default:_number_of_processors__n___r____retriesN_______number_of_times_to_retry_if_a_network_call_fails_n___________________________default:_retry_indefinitely__n___R____retry_pauseN___time_to_pause_between_retries__in_seconds__default:_30__n___T____timeoutN_______timeout_for_long_polling__in_seconds__default:_none__n___s____scantimeN______upper_bound_on_time_spent_scanning_current_work_when_n__________________________long_polling_is_unavailable__in_seconds__default:_5__n________coinbase_addrADDR__payout_address_for_solo_mining_n________coinbase_sigTEXT__data_to_insert_in_the_coinbase_when_possible_n________no_longpoll_____disable_long_polling_support_n________no_getwork______disable_getwork_support_n________no_gbt__________disable_getblocktemplate_support_n________no_stratum______disable_X_Stratum_support_n________no_redirect_____ignore_requests_to_change_the_URL_of_the_mining_server_n___q____quiet___________disable_per_thread_hashmeter_output_n___D____debug___________enable_debug_output_n___P____protocol_dump___verbose_dump_of_protocol_level_activities_n________benchmark_______run_in_offline_benchmark_mode_n___c____configFILE_____load_a_JSON_format_configuration_file_n___V____version_________display_version_information_and_exit_n___h____help____________display_this_help_text_and_exit_n
call sym.printf
jmp 0x140001525

Function at 0x140006000
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x258
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rcx
add ecx, 1
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
setg al
add rsp, 0x258
ret
Function at 0x140006050
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
xor edi, edi
lea r14, [rsp + 0x40]
mov rsi, rcx
mov rcx, rdx
lea r13, [rsp + 0x30]
mov rbp, rdx
call sym.strlen
mov r12, qword [sym.imp.WS2_32.dll_select]
lea r15, [rsp + 0x38]
lea rbx, [rax + 1]
mov byte [rbp + rax], 0xa
nop word [rax + rax]
mov rcx, qword [rsi + 0x118]
xor r9d, r9d
xor edx, edx
mov r8, r14
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x48], rcx
add ecx, 1
call r12
test eax, eax
jle 0x140006105
mov rcx, qword [rsi + 8]
lea rdx, [rbp + rdi]
mov r9, r15
mov r8, rbx
call sym.curl_easy_send
test eax, eax
jne 0x140006100
mov rax, qword [rsp + 0x38]
sub rbx, rax
add rdi, rax
test rbx, rbx
jg 0x140006098
mov eax, 1
jmp 0x140006107
cmp eax, 0x51
je 0x140006098
xor eax, eax
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400082c0
Capabilities:
Get socket status

Disassembly:
mov rax, qword [rcx + 0x128]
cmp byte [rax], 0
je 0x1400082d8
mov eax, 1
ret
mov rcx, qword [rcx + 0x118]
jmp sym.socket_full

Function at 0x1400082f0
Capabilities:
Get socket status

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa88
vmovups xmmword [rsp + 0xa70], xmm6
mov edx, 0xa
mov r15, qword [rcx + 0x128]
mov rbx, rcx
mov rcx, r15
call sym.strchr
test rax, rax
je 0x1400083b0
mov rcx, r15
call sym.strlen
lea rdx, [0x1401710ca]
mov rcx, r15
mov rdi, rax
call sym.strtok
mov rcx, rax
test rax, rax
je 0x1400085c0
call sym.strdup
mov rcx, rax
mov rsi, rax
call sym.strlen
lea rdx, [rax + 1]
cmp rdx, rdi
jl 0x140008450
mov rax, qword [rbx + 0x128]
mov byte [rax], 0
mov rax, qword [0x140187820]
cmp byte [rax], 0
jne 0x140008430
vmovups xmm6, xmmword [rsp + 0xa70]
mov rax, rsi
add rsp, 0xa88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
mov rdi, qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
call rdi
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
lea rax, [rsp + 0x60]
mov r13, qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x270], 1
lea rsi, [rsp + 0x270]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], 0x3c
mov rdx, rsi
mov qword [rsp + 0x278], rcx
add ecx, 1
mov qword [rsp + 0x20], rax
call r13
test eax, eax
jg 0x140008470
lea rdx, str.stratum_recv_line_timed_out
xor ecx, ecx
xor esi, esi
call sym.applog
jmp 0x140008389
lea rdx, str.___s
mov r8, rsi
mov ecx, 4
call sym.applog
jmp 0x140008389
mov rcx, qword [rbx + 0x128]
sub rdi, rax
lea r8, [rdi + 1]
add rdx, rcx
call sym.memmove
jmp 0x140008379
vmovq xmm6, qword [0x1401715f0]
lea rbp, [rsp + 0x50]
lea r14, [rsp + 0x58]
jmp 0x1400084fc
cmp qword [rsp + 0x50], 0
je 0x140008566
mov r12, qword [rbx + 0x128]
mov rcx, r12
call sym.strlen
mov rcx, rsi
mov r15, rax
call sym.strlen
lea rdx, [r15 + rax + 1]
cmp rdx, qword [rbx + 0x120]
jae 0x140008580
mov rdx, rsi
lea rcx, [r12 + r15]
call sym.strcpy
xor ecx, ecx
call rdi
sub rax, qword [rsp + 0x48]
cmp rax, 0x3b
jg 0x1400085b0
mov r15, qword [rbx + 0x128]
mov edx, 0xa
mov rcx, r15
call sym.strchr
test rax, rax
jne 0x14000832c
xor edx, edx
mov r8d, 0x800
mov rcx, rsi
call sym.memset
mov rcx, qword [rbx + 8]
mov r9, rbp
mov rdx, rsi
mov r8d, 0x7fc
call sym.curl_easy_recv
test eax, eax
je 0x140008488
cmp eax, 0x51
jne 0x140008566
mov rcx, qword [rbx + 0x118]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, qword [rsp + 0x38]
mov dword [rsp + 0x60], 1
vmovq qword [rsp + 0x58], xmm6
mov qword [rsp + 0x68], rcx
add ecx, 1
call r13
test eax, eax
jg 0x1400084cc
lea rdx, str.stratum_recv_line_failed
xor ecx, ecx
xor esi, esi
call sym.applog
jmp 0x140008389
and rdx, 0xfffffffffffff800
mov rcx, r12
add rdx, 0x800
mov qword [rbx + 0x120], rdx
call sym.realloc
mov r12, rax
mov qword [rbx + 0x128], rax
jmp 0x1400084c0
mov r15, qword [rbx + 0x128]
jmp 0x14000832c
lea rdx, str.stratum_recv_line_failed_to_parse_a_newline_terminated_string
xor esi, esi
call sym.applog
jmp 0x140008389
Function at 0x140009db0
Capabilities:
Hash data using sha256

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
vmovups xmmword [rsp + 0x60], xmm6
vmovups xmmword [rsp + 0x70], xmm8
vmovdqu xmm8, xmmword [0x140171600]
xor r8d, r8d
vmovdqu xmm6, xmmword [0x140171610]
lea rdi, [rsp + 0x20]
mov rbx, rcx
mov rsi, rdx
vmovdqu xmmword [rsp + 0x20], xmm8
mov rcx, rdi
vmovdqu xmmword [rsp + 0x30], xmm6
call sym.sha256_transform
lea rdx, [rsi + 0x40]
xor r8d, r8d
mov rcx, rdi
call sym.sha256_transform
xor edx, edx
mov eax, 0x80000000
xor r8d, r8d
mov qword [rsp + 0x48], rdx
mov rcx, rbx
movabs rdx, 0x10000000000
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x58], rdx
mov rdx, rdi
vmovdqu xmmword [rbx], xmm8
vmovdqu xmmword [rbx + 0x10], xmm6
mov qword [rsp + 0x50], rax
call sym.sha256_transform
vmovdqu xmm1, xmmword [0x140171620]
vmovdqu xmm2, xmmword [rbx]
vmovdqu xmm3, xmmword [rbx + 0x10]
vpshufb xmm0, xmm2, xmm1
vmovdqu xmmword [rbx], xmm0
vpshufb xmm0, xmm3, xmm1
vmovdqu xmmword [rbx + 0x10], xmm0
vmovups xmm6, xmmword [rsp + 0x60]
vmovups xmm8, xmmword [rsp + 0x70]
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret