joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c5540
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, rcx
mov esi, edx
mov rbp, r8
mov r12, r9
test byte [rcx + 0xa0e], 0x20
je 0x1401c5601
cmp qword [rcx + 0x250], 0
je 0x1401c55b3
call sym.Curl_is_in_callback
mov rcx, rbx
mov edx, 1
mov edi, eax
call sym.Curl_set_in_callback
mov edx, esi
mov rcx, rbx
mov r9, r12
mov rax, qword [rbx + 0x1c8]
mov r8, rbp
mov qword [rsp + 0x20], rax
call qword [rbx + 0x250]
movzx edx, dil
mov rcx, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sym.Curl_set_in_callback
cmp edx, 2
ja 0x1401c5601
mov ecx, edx
mov r9, qword [rbx + 0x1c0]
mov edx, 2
lea rax, [0x1402cbe80]
lea rcx, [rcx + rcx*2]
mov r8d, 1
add rcx, rax
call sub.msvcrt.dll_fwrite
mov r9, qword [rbx + 0x1c0]
mov rdx, r12
mov rcx, rbp
mov r8d, 1
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp sub.msvcrt.dll_fwrite
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1401c8b40
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, r9
mov qword [rsp + 0x98], r9
xor r9d, r9d
mov qword [rax], r9
lea r9, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1401c8c9a
mov rbx, qword [rsp + 0x28]
xor r13d, r13d
xor r12d, r12d
test rbx, rbx
je 0x1401c8c51
mov rcx, qword [rbx + 0x18]
xor ebp, ebp
test rcx, rcx
je 0x1401c8b9f
call sym.strlen
lea rbp, [rax + 1]
mov eax, dword [rbx + 4]
cmp eax, 2
je 0x1401c8bb7
mov r15d, 0x1c
cmp eax, 0x17
je 0x1401c8bbd
jmp 0x1401c8c42
mov r15d, 0x10
cmp qword [rbx + 0x20], 0
je 0x1401c8c42
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1401c8c42
cmp rax, r15
jb 0x1401c8c42
mov rax, qword [0x1402c1ab0]
lea rcx, [r15 + rbp + 0x30]
call qword [rax]
test rax, rax
je 0x1401c8c4b
mov edx, dword [rbx]
mov rsi, qword [rbx + 0x20]
mov rcx, r15
mov dword [rax], edx
mov edx, dword [rbx + 4]
mov dword [rax + 4], edx
mov edx, dword [rbx + 8]
mov dword [rax + 8], edx
mov edx, dword [rbx + 0xc]
mov dword [rax + 0x10], r15d
mov dword [rax + 0xc], edx
xor edx, edx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x28], rdx
lea rdx, [rax + 0x30]
mov qword [rax + 0x20], rdx
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
test rbp, rbp
je 0x1401c8c2f
mov qword [rax + 0x18], rdi
mov rsi, qword [rbx + 0x18]
mov rcx, rbp
rep movsb byte [rdi], byte [rsi]
test r12, r12
cmove r12, rax
test r13, r13
je 0x1401c8c3f
mov qword [r13 + 0x28], rax
mov r13, rax
mov rbx, qword [rbx + 0x28]
jmp 0x1401c8b82
mov r14d, 8
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1401c8c61
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1401c8c79
mov rcx, r12
mov r14d, 8
xor r12d, r12d
call sym.Curl_freeaddrinfo
jmp 0x1401c8c8f
test r12, r12
jne 0x1401c8c8f
mov ecx, 0x2af9
mov r14d, 0x2af9
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rax, qword [rsp + 0x98]
mov qword [rax], r12
mov eax, r14d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401c9f00
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
add rdx, rcx
cmp rcx, rdx
jae 0x1401c9f1d
imul rax, rax, 0x21
movsx r9, byte [rcx]
inc rcx
xor rax, r9
jmp 0x1401c9f08
xor edx, edx
div r8
mov rax, rdx
ret

Function at 0x1401ca410
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, qword [sym.imp.WS2_32.dll_inet_pton]
mov rdx, rcx
mov rbx, rcx
lea r8, [rsp + 0x2c]
mov ecx, 2
call rsi
mov edx, eax
mov al, 1
test edx, edx
jg 0x1401ca44b
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, 0x17
call rsi
test eax, eax
setg al
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x1401d04d0
Capabilities:
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
lea rcx, str.kernel32
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
jne 0x1401d04fb
xor ebx, ebx
jmp 0x1401d061d
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov r12, qword [sym.imp.kernel32.dll_GetProcAddress]
call r12
lea rdx, [0x1402b9c58]
mov rcx, rbp
mov rdi, rax
call sym.strpbrk
mov rbx, rax
test rax, rax
je 0x1401d054a
mov r8d, 8
test rdi, rdi
jne 0x1401d0567
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp qword [sym.imp.kernel32.dll_LoadLibraryA]
test rdi, rdi
je 0x1401d057e
lea rdx, str.AddDllDirectory
mov rcx, rsi
call r12
test rax, rax
je 0x1401d057e
mov r8d, 0x800
xor edx, edx
mov rcx, rbp
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp rax
mov r13, qword [sym.imp.kernel32.dll_GetSystemDirectoryA]
xor edx, edx
xor ecx, ecx
call r13
mov r12d, eax
test eax, eax
je 0x1401d04f4
mov rcx, rbp
call sym.strlen
lea ecx, [r12 + 1]
add rcx, rax
mov rax, qword [0x1402c1ab0]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1401d0611
mov edx, r12d
mov rcx, rax
call r13
test eax, eax
je 0x1401d0611
mov rcx, rsi
call sym.strlen
lea rdx, [0x1402b9c6b]
lea rcx, [rsi + rax]
call sym.strcpy
mov rcx, rsi
call sym.strlen
mov rdx, rbp
lea rcx, [rsi + rax]
call sym.strcpy
test rdi, rdi
je 0x1401d0605
mov r8d, 8
xor edx, edx
mov rcx, rsi
call rdi
jmp 0x1401d060e
mov rcx, rsi
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x1402c1aa0]
mov rcx, rsi
call qword [rax]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1401d4550
Capabilities:
Get socket status

Disassembly:
xor eax, eax
test rcx, rcx
je 0x1401d4572
cmp eax, edx
jae 0x1401d4572
inc rax
mov r9, rax
shl r9, 4
cmp qword [rcx + r9 - 0x10], 0xffffffffffffffff
je 0x1401d4557
jmp sym.Curl_poll.part.0
mov rcx, r8
jmp sym.Curl_wait_ms
Function at 0x1401d5bb0
Capabilities:
Move file

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movups xmmword [rsp + 0x40], xmm6
lea rdi, [rsp + 0x30]
mov rbx, rcx
lea r12, [rsp + 0x20]
mov rsi, rdx
mov rcx, rdi
call sym.Curl_now
mov rcx, rbx
movups xmm6, xmmword [rsp + 0x30]
call sym.strdup
mov rcx, rsi
mov rbx, rax
call sym.strdup
mov rbp, qword [sym.imp.kernel32.dll_MoveFileExA]
mov rsi, rax
mov r8d, 1
mov rdx, rsi
mov rcx, rbx
call rbp
test eax, eax
je 0x1401d5c29
test rbx, rbx
je 0x1401d5c18
mov rcx, rbx
call sym.free
test rsi, rsi
je 0x1401d5c25
mov rcx, rsi
call sym.free
xor eax, eax
jmp 0x1401d5c77
mov rcx, rdi
call sym.Curl_now
mov rdx, r12
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm6
call sym.Curl_timediff
cmp rax, 0x3e8
jbe 0x1401d5c65
test rbx, rbx
je 0x1401d5c56
mov rcx, rbx
call sym.free
test rsi, rsi
je 0x1401d5c72
mov rcx, rsi
call sym.free
jmp 0x1401d5c72
mov ecx, 1
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x1401d5bf9
mov eax, 1
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1401d61f0
Capabilities:
Convert ip address from string

Disassembly:
xor eax, eax
cmp qword [rsp + 0x28], 0
mov qword [r9], rax
js 0x1401d620d
mov qword [rsp + 0x28], r9
mov r9d, 1
jmp sym.Curl_resolv
mov eax, 0xfffffffe
ret

Function at 0x1401d7070
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov dword [rsp + 0x38], eax
mov eax, dword [0x140215230]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x3c], 4
test eax, eax
jne 0x1401d70d1
xor r8d, r8d
xor edx, edx
mov r9d, 2
mov ecx, 6
mov dword [rsp + 0x20], 3
call sym.curlx_verify_windows_version
test al, al
je 0x1401d70c5
mov dword [0x140215230], 2
jmp 0x1401d7129
mov dword [0x140215230], 1
jmp 0x1401d70d6
cmp eax, 2
je 0x1401d7129
lea rax, [rsp + 0x3c]
lea r9, [rsp + 0x38]
mov edx, 0xffff
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401d7107
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jg 0x1401d7129
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov rcx, rbx
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
add rsp, 0x40
pop rbx
ret
Function at 0x1401d85f0
Capabilities:
Convert ip address from string

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
mov rbx, rcx
lea rcx, str.SSL_PROXY
cmp qword [rdx], rcx
jne 0x1401d862b
mov r12, qword [rax + 0xd8]
mov r13, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x1401d8639
mov r12, qword [rax + 0x50]
mov r13, qword [rax + 0x58]
mov ebp, dword [rax + 0x4b8]
test r12, r12
je 0x1401d877c
mov rdx, qword [rbx]
test rdx, rdx
je 0x1401d865a
mov rcx, r12
call sym.strcmp
test eax, eax
je 0x1401d877c
mov rcx, rbx
call sym.Curl_ssl_peer_cleanup
mov r14, qword [0x1402c1af0]
mov rcx, r12
call qword [r14]
mov qword [rbx], rax
mov rsi, rax
test rax, rax
jne 0x1401d868c
mov rcx, rbx
call sym.Curl_ssl_peer_cleanup
mov eax, 0x1b
jmp 0x1401d8781
test r13, r13
je 0x1401d86a0
mov rdx, r13
mov rcx, r12
call sym.strcmp
test eax, eax
jne 0x1401d86a6
mov qword [rbx + 8], rsi
jmp 0x1401d86b5
mov rcx, r13
call qword [r14]
mov qword [rbx + 8], rax
test rax, rax
je 0x1401d867a
mov rsi, qword [rbx]
xor eax, eax
xor edx, edx
mov qword [rbx + 0x10], rax
test rsi, rsi
je 0x1401d8706
cmp byte [rsi], 0
je 0x1401d8706
lea r8, [rsp + 0x30]
mov rdx, rsi
mov ecx, 2
mov r12, qword [sym.imp.WS2_32.dll_inet_pton]
mov qword [rsp + 0x28], r8
call r12
mov r8, qword [rsp + 0x28]
mov edx, 1
test eax, eax
jne 0x1401d8706
mov rdx, rsi
mov ecx, 0x17
call r12
xor edx, edx
test eax, eax
setne dl
mov al, byte [rbx + 0x18]
mov r12, qword [rbx]
and eax, 0xfffffffe
or eax, edx
mov byte [rbx + 0x18], al
cmp byte [r12], 0
je 0x1401d877c
test al, 1
jne 0x1401d877c
mov rcx, r12
call sym.strlen
test rax, rax
je 0x1401d8745
lea rsi, [rax - 1]
cmp byte [r12 + rax - 1], 0x2e
cmovne rsi, rax
cmp rsi, 0xfffe
ja 0x1401d877c
jmp 0x1401d8747
xor esi, esi
mov rax, qword [0x1402c1a90]
mov ecx, 1
lea rdx, [rsi + 1]
call qword [rax]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1401d867a
mov rdx, qword [rbx]
mov r8, rsi
call sym.Curl_strntolower
mov rax, qword [rbx + 0x10]
mov byte [rax + rsi], 0
mov dword [rdi + 0x50], ebp
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x1401d8f90
Capabilities:
Convert ip address from string

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, qword [sym.imp.WS2_32.dll_inet_pton]
lea rsi, [rsp + 0x2c]
mov dword [rsp + 0x68], edx
mov rbx, rcx
mov rdx, rcx
mov r8, rsi
mov ecx, 2
call rdi
mov r9d, dword [rsp + 0x68]
test eax, eax
jle 0x1401d8fcd
mov r8, rbx
mov rdx, rsi
mov ecx, 2
jmp 0x1401d8ffc
lea rsi, [rsp + 0x30]
mov rdx, rbx
mov dword [rsp + 0x68], r9d
mov ecx, 0x17
mov r8, rsi
call rdi
mov edx, eax
xor eax, eax
test edx, edx
jle 0x1401d9001
mov r9d, dword [rsp + 0x68]
mov r8, rbx
mov rdx, rsi
mov ecx, 0x17
call sym.Curl_ip2addr
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x1401d9460
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
xor edx, edx
mov r8, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.msvcrt.dll__beginthreadex]
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffe
mov edx, 0
cmovae rax, rdx
add rsp, 0x38
ret
Function at 0x1401dc850
Capabilities:
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x1d0
and cl, 2
je 0x1401dc895
lea rdx, [rsp + 0x38]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401dc88b
mov eax, dword [rsp + 0x38]
cmp al, 2
jne 0x1401dc885
shr ax, 8
cmp ax, 2
je 0x1401dc895
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 2
jmp 0x1401dc983
call sym.Curl_sspi_global_init
mov esi, eax
test eax, eax
jne 0x1401dc983
lea rcx, str.iphlpapi.dll
call sym.Curl_load_library
mov qword [0x1402154c0], rax
mov rcx, rax
test rax, rax
je 0x1401dc8d8
lea rdx, str.if_nametoindex
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401dc8d8
mov qword [0x1402150e0], rax
lea rcx, str.ws2_32
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1401dc92d
mov rdi, qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, str.FreeAddrInfoExW
mov rcx, rax
call rdi
lea rdx, str.GetAddrInfoExCancel
mov rcx, rbx
mov qword [0x1402148d0], rax
call rdi
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x1402148e0], rax
call rdi
mov qword [0x1402148f0], rax
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
mov dword [rsp + 0x20], 3
call sym.curlx_verify_windows_version
mov dword [rsp + 0x20], 3
mov ecx, 6
xor r8d, r8d
mov r9d, 2
mov edx, 2
mov byte [0x1402150f0], al
call sym.curlx_verify_windows_version
lea rcx, [0x1402150d0]
mov byte [0x140215100], al
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov eax, esi
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret

Function at 0x1401dc990
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0x20
xor eax, eax
mov r9d, 2
mov r10, rcx
mov rdi, rcx
mov rcx, rdx
mov r8, rdx
rep stosb byte [rdi], al
mov rdx, r10
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setne al
movzx eax, al
add eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1401e4df0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
xor eax, eax
mov r13, qword [rsp + 0x1a0]
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov dword [r13], eax
mov rsi, rdx
movsxd rax, dword [rbx + 0x20]
mov rdx, r8
mov r8, qword [rbx + 0x18]
mov r12, r9
mov rcx, qword [rcx + 0x98]
xor r9d, r9d
add rax, 0x30
mov r15, qword [r8 + rax*8 + 8]
mov qword [r8 + rax*8 + 8], rcx
mov r8d, r12d
call qword [sym.imp.WS2_32.dll_send]
movsxd r14, eax
mov rdi, r14
cmp r14d, 0xffffffff
jne 0x1401e4ea3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x1401e4e6f
mov dword [r13], 0x51
jmp 0x1401e4ea3
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
lea rdx, str.Send_failure:__s
mov rcx, rsi
mov r8, rax
call sym.Curl_failf
mov dword [rsi + 0xccc], ebp
mov dword [r13], 0x37
jmp 0x1401e4ea8
test rsi, rsi
je 0x1401e4edb
test byte [rsi + 0xa0e], 0x20
je 0x1401e4edb
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401e4edb
mov eax, dword [r13]
mov dword [rsp + 0x20], edi
mov r9, r12
mov rdx, rbx
lea r8, str.send_len_zu______d__err_d
mov rcx, rsi
mov dword [rsp + 0x28], eax
call sym.Curl_trc_cf_infof
mov rax, qword [rbx + 0x18]
movsxd rdx, dword [rbx + 0x20]
mov qword [rax + rdx*8 + 0x188], r15
mov rax, r14
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401e52f0
Capabilities:
Connect socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbp, qword [rcx + 0x10]
mov rbx, rcx
mov rsi, rdx
mov r12, r9
test byte [rcx + 0x24], 1
je 0x1401e5316
mov byte [r9], 1
jmp 0x1401e54e4
cmp qword [rbp + 0x98], 0xffffffffffffffff
mov byte [r9], 0
mov eax, 7
jne 0x1401e54e6
call sym.cf_socket_open
test eax, eax
je 0x1401e537b
test rsi, rsi
je 0x1401e54e6
test byte [rsi + 0xa0e], 0x20
je 0x1401e54e6
mov rdx, qword [rbx]
cmp dword [rdx + 0xc], 0
jle 0x1401e54e6
mov r9d, eax
lea r8, str.cf_udp_connect____open_failed_____d
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x5c], eax
call sym.Curl_trc_cf_infof
mov eax, dword [rsp + 0x5c]
jmp 0x1401e54e6
cmp dword [rbp], 5
jne 0x1401e54ab
mov rdi, qword [rbx + 0x10]
mov rcx, qword [rdi + 0x98]
mov r8d, dword [rdi + 0x14]
lea rdx, [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_connect]
inc eax
jne 0x1401e53c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rdi + 0xe0]
mov rcx, rsi
mov r8d, eax
call sym.socket_connect_result
test eax, eax
jne 0x1401e54e6
jmp 0x1401e5463
or byte [rdi + 0x17c], 4
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call sym.set_local_ip.isra.0
test rsi, rsi
je 0x1401e5452
test byte [rsi + 0xa0e], 0x20
je 0x1401e5452
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401e5452
mov edx, dword [rdi + 0x144]
mov r8d, dword [rdi + 0x110]
lea rcx, [rdi + 0xe0]
lea rax, [rdi + 0x114]
cmp dword [rdi], 5
mov qword [rsp + 0x38], rcx
mov rcx, rsi
lea r9, [0x1402be2ec]
mov dword [rsp + 0x40], r8d
lea r8, str._s_socket__zd_connected:___s:_d_______s:_d_
mov dword [rsp + 0x30], edx
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rdi + 0x98]
mov qword [rsp + 0x20], rax
lea rax, str.QUIC
cmove r9, rax
call sym.Curl_trc_cf_infof
mov rcx, qword [rdi + 0x98]
mov edx, 1
call sym.curlx_nonblock
test rsi, rsi
je 0x1401e54db
test byte [rsi + 0xa0e], 0x20
je 0x1401e54db
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401e54db
mov eax, dword [rbp + 0x144]
mov rdx, rbx
mov rcx, rsi
mov r9, qword [rbp + 0x98]
add rbp, 0x114
lea r8, str.cf_udp_connect____opened_socket_zd___s:_d_
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call sym.Curl_trc_cf_infof
jmp 0x1401e54db
test rsi, rsi
je 0x1401e54db
test byte [rsi + 0xa0e], 0x20
je 0x1401e54db
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401e54db
mov r9, qword [rbp + 0x98]
lea r8, str.cf_udp_connect____opened_socket_zd__unconnected_
mov rdx, rbx
mov rcx, rsi
call sym.Curl_trc_cf_infof
mov byte [r12], 1
or byte [rbx + 0x24], 1
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1401e6170
Capabilities:
Hash data using djb2

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401e6186
xor edx, edx
jmp 0x1401e6208
call sym.Curl_host_is_ipnum
test al, al
jne 0x1401e617f
mov rcx, rsi
call sym.strlen
mov edx, 0x2e
mov rcx, rsi
mov r8, rax
mov rdi, rax
call sym.Curl_memrchr
mov r8, rax
test rax, rax
jne 0x1401e61b7
mov rbx, rsi
jmp 0x1401e61d9
sub r8, rsi
mov edx, 0x2e
mov rcx, rsi
call sym.Curl_memrchr
test rax, rax
je 0x1401e61b2
lea rbx, [rax + 1]
mov rax, rbx
sub rax, rsi
sub rdi, rax
add rdi, rbx
mov eax, 0x1505
cmp rbx, rdi
jae 0x1401e61fe
movsx ecx, byte [rbx]
imul rsi, rax, 0x21
inc rbx
call sym.Curl_raw_toupper
movsx rax, al
xor rax, rsi
jmp 0x1401e61e1
mov ecx, 0x3f
xor edx, edx
div rcx
mov rax, rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1401e65a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, 8
lea r8, [0x1402c59c0]
mov rax, rcx
mov rcx, rax
movzx eax, al
mov eax, dword [r8 + rax*4]
shr rcx, 8
xor rax, rcx
dec edx
jne 0x1401e65af
ret

Function at 0x1401e8180
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, 1
xor ebx, ebx
mov rdi, rcx
mov rax, qword [0x1402c1ae0]
mov rcx, rbx
mov edx, esi
mov rbp, rbx
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1401e81b0
mov rcx, rbp
jmp 0x1401e81d1
mov rdx, rax
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x1401e81ce
cmp esi, eax
jne 0x1401e81de
mov rcx, rbx
mov rax, qword [0x1402c1aa0]
xor ebx, ebx
call qword [rax]
jmp 0x1401e81e6
cmp eax, esi
jb 0x1401e81e6
mov esi, eax
jmp 0x1401e8192
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401eb4f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor eax, eax
test edx, edx
lea r8, [rsp + 0x2c]
mov edx, 0x8004667e
setne al
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x38
ret

Function at 0x1401eb520
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call sym.read
cdqe
add rsp, 0x28
ret
Function at 0x1401ed350
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rbx
lea rbx, [0x1402c3800]
mov rax, rcx
mov r10, rdx
xor ecx, ecx
mov rsi, qword [r9 + 0xa8]
cmp qword [r9 + 0xa0], rsi
jae 0x1401ed455
cmp qword [r9 + 0x98], 0x48
jbe 0x1401ed3b4
cmp r10, 1
ja 0x1401ed39a
test rcx, rcx
jne 0x1401ed523
mov rcx, 0xfffffffffffffffe
jmp 0x1401ed523
xor edx, edx
mov word [rax], 0xa0d
add rcx, 2
sub r10, 2
mov qword [r9 + 0x98], rdx
add rax, 2
cmp r10, 3
jbe 0x1401ed385
mov r11, qword [r9 + 0xa0]
mov rdx, qword [r9 + 0xa8]
sub rdx, r11
cmp rdx, 2
jbe 0x1401ed469
add rcx, 4
sub r10, 4
add rax, 4
movsx edx, byte [r9 + r11 + 0xb0]
movzx esi, byte [r9 + r11 + 0xb1]
shl edx, 8
movzx edx, dx
or edx, esi
lea rsi, [r11 + 3]
mov qword [r9 + 0xa0], rsi
shl edx, 8
movzx r11d, byte [r9 + r11 + 0xb2]
mov esi, edx
or r11d, edx
shr edx, 0xc
and edx, 0x3f
shr esi, 0x12
mov dl, byte [rbx + rdx]
mov sil, byte [rbx + rsi]
mov byte [rax - 3], dl
mov edx, r11d
and r11d, 0x3f
sar edx, 6
mov byte [rax - 4], sil
and edx, 0x3f
mov dl, byte [rbx + rdx]
mov byte [rax - 2], dl
mov dl, byte [rbx + r11]
mov byte [rax - 1], dl
add qword [r9 + 0x98], 4
jmp 0x1401ed361
test r8b, r8b
je 0x1401ed523
cmp r10, 3
ja 0x1401ed472
jmp 0x1401ed385
test r8b, r8b
je 0x1401ed523
mov word [rax + 2], 0x3d3d
mov rdx, qword [r9 + 0xa8]
mov r8, qword [r9 + 0xa0]
cmp rdx, r8
je 0x1401ed523
sub rdx, r8
mov r10, rdx
xor edx, edx
cmp r10, 2
jne 0x1401ed4ac
movsx edx, byte [r9 + r8 + 0xb1]
shl edx, 8
movzx edx, dx
movsx r8d, byte [r9 + r8 + 0xb0]
lea r10, [0x1402c3800]
shl r8d, 0x10
and r8d, 0xff0000
or edx, r8d
shr r8d, 0x12
mov r8b, byte [r10 + r8]
mov byte [rax], r8b
mov r8d, edx
sar r8d, 0xc
and r8d, 0x3f
mov r8b, byte [r10 + r8]
mov byte [rax + 1], r8b
mov rbx, qword [r9 + 0xa0]
lea r8, [rbx + 1]
mov qword [r9 + 0xa0], r8
cmp r8, qword [r9 + 0xa8]
je 0x1401ed517
sar edx, 6
and edx, 0x3c
mov dl, byte [r10 + rdx]
mov byte [rax + 2], dl
inc qword [r9 + 0xa0]
add qword [r9 + 0x98], 4
add rcx, 4
mov rax, rcx
pop rbx
pop rsi
ret
Function at 0x1401efe10
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r8, [0x1402b9dc0]
mov edx, 0xc
mov r9d, dword [rcx + 0x84]
mov rdi, qword [rcx + 0xe8]
lea rsi, [rsp + 0x24]
mov rbx, rcx
mov rcx, rsi
call sym.curl_msnprintf
mov rcx, qword [rbx + 0x88]
mov rdx, rsi
lea r9, [rbx + 0xb0]
lea r8, [rbx + 0xb8]
call sym.Curl_getaddrinfo_ex
mov esi, eax
test eax, eax
je 0x1401efe8c
mov rbp, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbp
test eax, eax
jne 0x1401efe7a
mov dword [rbx + 0xa8], esi
jmp 0x1401efe8c
call rbp
mov edx, 8
test eax, eax
cmove eax, edx
mov dword [rbx + 0xa8], eax
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
cmp dword [rbx + 0x80], 0
mov rsi, qword [sym.imp.kernel32.dll_LeaveCriticalSection]
je 0x1401efec2
mov rcx, qword [rbx + 0x78]
call rsi
mov rcx, rbx
call sym.destroy_thread_sync_data
mov rax, qword [0x1402c1aa0]
mov rcx, rdi
call qword [rax]
jmp 0x1401eff08
mov rcx, qword [rbx + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x1401efef8
xor r9d, r9d
mov byte [rsp + 0x23], 1
lea rdx, [rsp + 0x23]
mov r8d, 1
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401efef8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbx + 0xa8], eax
mov dword [rbx + 0x80], 1
mov rcx, qword [rbx + 0x78]
call rsi
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401f5cc0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rdi, rdx
mov rbx, r9
test r8, r8
je 0x1401f5d1b
cmp qword [r9 + 0x40], 0
je 0x1401f5cf2
mov r9, qword [rbx + 0x40]
mov rdx, rdi
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp sym.fread
mov rcx, qword [r9 + 0x18]
lea rdx, [0x1402b2025]
mov qword [rsp + 0x28], r8
call sym.curlx_win32_fopen
mov r8, qword [rsp + 0x28]
test rax, rax
mov qword [rbx + 0x40], rax
jne 0x1401f5cdc
or rax, 0xffffffffffffffff
jmp 0x1401f5d22
mov rax, 0xfffffffffffffffe
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x1401f8fc0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
xor edx, edx
mov r9d, 0x18
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000040
mov rbx, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edx, eax
mov eax, 0x1b
test edx, edx
je 0x1401f9024
lea rax, [rbx + 8]
mov edx, 0x800c
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x1401f9024
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov qword [rbx], rax
mov eax, 2
add rsp, 0x30
pop rbx
ret