joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a7260
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 0x1401a728b
xor ebx, ebx
jmp 0x1401a73ad
lea rdx, str.LoadLibraryExA
mov rcx, rax
mov r12, qword [sym.imp.kernel32.dll_GetProcAddress]
call r12
lea rdx, [0x14028fd68]
mov rcx, rbp
mov rdi, rax
call sym.strpbrk
mov rbx, rax
test rax, rax
je 0x1401a72da
mov r8d, 8
test rdi, rdi
jne 0x1401a72f7
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 0x1401a730e
lea rdx, str.AddDllDirectory
mov rcx, rsi
call r12
test rax, rax
je 0x1401a730e
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 0x1401a7284
mov rcx, rbp
call sym.strlen
lea ecx, [r12 + 1]
add rcx, rax
mov rax, qword [0x140297bb0]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x1401a73a1
mov edx, r12d
mov rcx, rax
call r13
test eax, eax
je 0x1401a73a1
mov rcx, rsi
call sym.strlen
lea rdx, [0x14028fd7b]
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 0x1401a7395
mov r8d, 8
xor edx, edx
mov rcx, rsi
call rdi
jmp 0x1401a739e
mov rcx, rsi
call qword [sym.imp.kernel32.dll_LoadLibraryA]
mov rbx, rax
mov rax, qword [0x140297ba0]
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 0x1401ab2e0
Capabilities:
Get socket status

Disassembly:
xor eax, eax
test rcx, rcx
je 0x1401ab302
cmp eax, edx
jae 0x1401ab302
inc rax
mov r9, rax
shl r9, 4
cmp qword [rcx + r9 - 0x10], 0xffffffffffffffff
je 0x1401ab2e7
jmp sym.Curl_poll.part.0
mov rcx, r8
jmp sym.Curl_wait_ms
Function at 0x1401ac940
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 0x1401ac9b9
test rbx, rbx
je 0x1401ac9a8
mov rcx, rbx
call sym.free
test rsi, rsi
je 0x1401ac9b5
mov rcx, rsi
call sym.free
xor eax, eax
jmp 0x1401aca07
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 0x1401ac9f5
test rbx, rbx
je 0x1401ac9e6
mov rcx, rbx
call sym.free
test rsi, rsi
je 0x1401aca02
mov rcx, rsi
call sym.free
jmp 0x1401aca02
mov ecx, 1
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x1401ac989
mov eax, 1
movups xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1401acf80
Capabilities:
Convert ip address from string

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

Function at 0x1401ade00
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov dword [rsp + 0x38], eax
mov eax, dword [0x1401eb230]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x3c], 4
test eax, eax
jne 0x1401ade61
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 0x1401ade55
mov dword [0x1401eb230], 2
jmp 0x1401adeb9
mov dword [0x1401eb230], 1
jmp 0x1401ade66
cmp eax, 2
je 0x1401adeb9
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 0x1401ade97
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jg 0x1401adeb9
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 0x1401af380
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 0x1401af3bb
mov r12, qword [rax + 0xd8]
mov r13, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x1401af3c9
mov r12, qword [rax + 0x50]
mov r13, qword [rax + 0x58]
mov ebp, dword [rax + 0x4b8]
test r12, r12
je 0x1401af50c
mov rdx, qword [rbx]
test rdx, rdx
je 0x1401af3ea
mov rcx, r12
call sym.strcmp
test eax, eax
je 0x1401af50c
mov rcx, rbx
call sym.Curl_ssl_peer_cleanup
mov r14, qword [0x140297bf0]
mov rcx, r12
call qword [r14]
mov qword [rbx], rax
mov rsi, rax
test rax, rax
jne 0x1401af41c
mov rcx, rbx
call sym.Curl_ssl_peer_cleanup
mov eax, 0x1b
jmp 0x1401af511
test r13, r13
je 0x1401af430
mov rdx, r13
mov rcx, r12
call sym.strcmp
test eax, eax
jne 0x1401af436
mov qword [rbx + 8], rsi
jmp 0x1401af445
mov rcx, r13
call qword [r14]
mov qword [rbx + 8], rax
test rax, rax
je 0x1401af40a
mov rsi, qword [rbx]
xor eax, eax
xor edx, edx
mov qword [rbx + 0x10], rax
test rsi, rsi
je 0x1401af496
cmp byte [rsi], 0
je 0x1401af496
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 0x1401af496
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 0x1401af50c
test al, 1
jne 0x1401af50c
mov rcx, r12
call sym.strlen
test rax, rax
je 0x1401af4d5
lea rsi, [rax - 1]
cmp byte [r12 + rax - 1], 0x2e
cmovne rsi, rax
cmp rsi, 0xfffe
ja 0x1401af50c
jmp 0x1401af4d7
xor esi, esi
mov rax, qword [0x140297b90]
mov ecx, 1
lea rdx, [rsi + 1]
call qword [rax]
mov qword [rbx + 0x10], rax
mov rcx, rax
test rax, rax
je 0x1401af40a
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 0x1401afd20
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 0x1401afd5d
mov r8, rbx
mov rdx, rsi
mov ecx, 2
jmp 0x1401afd8c
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 0x1401afd91
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 0x1401b01f0
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 0x1401b35e0
Capabilities:
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x1d0
and cl, 2
je 0x1401b3625
lea rdx, [rsp + 0x38]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1401b361b
mov eax, dword [rsp + 0x38]
cmp al, 2
jne 0x1401b3615
shr ax, 8
cmp ax, 2
je 0x1401b3625
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 2
jmp 0x1401b3713
call sym.Curl_sspi_global_init
mov esi, eax
test eax, eax
jne 0x1401b3713
lea rcx, str.iphlpapi.dll
call sym.Curl_load_library
mov qword [0x1401eb4c0], rax
mov rcx, rax
test rax, rax
je 0x1401b3668
lea rdx, str.if_nametoindex
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x1401b3668
mov qword [0x1401eb0e0], rax
lea rcx, str.ws2_32
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1401b36bd
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 [0x1401ea8d0], rax
call rdi
lea rdx, str.GetAddrInfoExW
mov rcx, rbx
mov qword [0x1401ea8e0], rax
call rdi
mov qword [0x1401ea8f0], 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 [0x1401eb0f0], al
call sym.curlx_verify_windows_version
lea rcx, [0x1401eb0d0]
mov byte [0x1401eb100], al
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
mov eax, esi
add rsp, 0x1d0
pop rbx
pop rsi
pop rdi
ret

Function at 0x1401b3720
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 0x1401bbb80
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 0x1401bbc33
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x1401bbbff
mov dword [r13], 0x51
jmp 0x1401bbc33
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 0x1401bbc38
test rsi, rsi
je 0x1401bbc6b
test byte [rsi + 0xa0e], 0x20
je 0x1401bbc6b
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401bbc6b
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 0x1401bc080
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 0x1401bc0a6
mov byte [r9], 1
jmp 0x1401bc274
cmp qword [rbp + 0x98], 0xffffffffffffffff
mov byte [r9], 0
mov eax, 7
jne 0x1401bc276
call sym.cf_socket_open
test eax, eax
je 0x1401bc10b
test rsi, rsi
je 0x1401bc276
test byte [rsi + 0xa0e], 0x20
je 0x1401bc276
mov rdx, qword [rbx]
cmp dword [rdx + 0xc], 0
jle 0x1401bc276
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 0x1401bc276
cmp dword [rbp], 5
jne 0x1401bc23b
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 0x1401bc157
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 0x1401bc276
jmp 0x1401bc1f3
or byte [rdi + 0x17c], 4
mov rcx, qword [rbx + 0x10]
mov rdx, rsi
call sym.set_local_ip.isra.0
test rsi, rsi
je 0x1401bc1e2
test byte [rsi + 0xa0e], 0x20
je 0x1401bc1e2
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401bc1e2
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, [0x1402943fc]
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 0x1401bc26b
test byte [rsi + 0xa0e], 0x20
je 0x1401bc26b
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401bc26b
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 0x1401bc26b
test rsi, rsi
je 0x1401bc26b
test byte [rsi + 0xa0e], 0x20
je 0x1401bc26b
mov rax, qword [rbx]
cmp dword [rax + 0xc], 0
jle 0x1401bc26b
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 0x1401bcf00
Capabilities:
Hash data using djb2

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401bcf16
xor edx, edx
jmp 0x1401bcf98
call sym.Curl_host_is_ipnum
test al, al
jne 0x1401bcf0f
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 0x1401bcf47
mov rbx, rsi
jmp 0x1401bcf69
sub r8, rsi
mov edx, 0x2e
mov rcx, rsi
call sym.Curl_memrchr
test rax, rax
je 0x1401bcf42
lea rbx, [rax + 1]
mov rax, rbx
sub rax, rsi
sub rdi, rax
add rdi, rbx
mov eax, 0x1505
cmp rbx, rdi
jae 0x1401bcf8e
movsx ecx, byte [rbx]
imul rsi, rax, 0x21
inc rbx
call sym.Curl_raw_toupper
movsx rax, al
xor rax, rsi
jmp 0x1401bcf71
mov ecx, 0x3f
xor edx, edx
div rcx
mov rax, rdx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1401bd330
Capabilities:
Encode data using xor
Hash data with crc32

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

Function at 0x1401bef10
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 [0x140297be0]
mov rcx, rbx
mov edx, esi
mov rbp, rbx
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1401bef40
mov rcx, rbp
jmp 0x1401bef61
mov rdx, rax
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea edx, [rax - 1]
cmp edx, 0x7fff
ja 0x1401bef5e
cmp esi, eax
jne 0x1401bef6e
mov rcx, rbx
mov rax, qword [0x140297ba0]
xor ebx, ebx
call qword [rax]
jmp 0x1401bef76
cmp eax, esi
jb 0x1401bef76
mov esi, eax
jmp 0x1401bef22
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401c2280
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 0x1401c22b0
Capabilities:
Read file on windows

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

Disassembly:
push rsi
push rbx
lea rbx, [0x140299900]
mov rax, rcx
mov r10, rdx
xor ecx, ecx
mov rsi, qword [r9 + 0xa8]
cmp qword [r9 + 0xa0], rsi
jae 0x1401c41e5
cmp qword [r9 + 0x98], 0x48
jbe 0x1401c4144
cmp r10, 1
ja 0x1401c412a
test rcx, rcx
jne 0x1401c42b3
mov rcx, 0xfffffffffffffffe
jmp 0x1401c42b3
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 0x1401c4115
mov r11, qword [r9 + 0xa0]
mov rdx, qword [r9 + 0xa8]
sub rdx, r11
cmp rdx, 2
jbe 0x1401c41f9
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 0x1401c40f1
test r8b, r8b
je 0x1401c42b3
cmp r10, 3
ja 0x1401c4202
jmp 0x1401c4115
test r8b, r8b
je 0x1401c42b3
mov word [rax + 2], 0x3d3d
mov rdx, qword [r9 + 0xa8]
mov r8, qword [r9 + 0xa0]
cmp rdx, r8
je 0x1401c42b3
sub rdx, r8
mov r10, rdx
xor edx, edx
cmp r10, 2
jne 0x1401c423c
movsx edx, byte [r9 + r8 + 0xb1]
shl edx, 8
movzx edx, dx
movsx r8d, byte [r9 + r8 + 0xb0]
lea r10, [0x140299900]
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 0x1401c42a7
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 0x1401c6ba0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r8, [0x14028fed0]
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 0x1401c6c1c
mov rbp, qword [sym.imp.WS2_32.dll_WSAGetLastError]
call rbp
test eax, eax
jne 0x1401c6c0a
mov dword [rbx + 0xa8], esi
jmp 0x1401c6c1c
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 0x1401c6c52
mov rcx, qword [rbx + 0x78]
call rsi
mov rcx, rbx
call sym.destroy_thread_sync_data
mov rax, qword [0x140297ba0]
mov rcx, rdi
call qword [rax]
jmp 0x1401c6c98
mov rcx, qword [rbx + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x1401c6c88
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 0x1401c6c88
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 0x1401cca50
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 0x1401ccaab
cmp qword [r9 + 0x40], 0
je 0x1401cca82
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, [0x140288135]
mov qword [rsp + 0x28], r8
call sym.curlx_win32_fopen
mov r8, qword [rsp + 0x28]
test rax, rax
mov qword [rbx + 0x40], rax
jne 0x1401cca6c
or rax, 0xffffffffffffffff
jmp 0x1401ccab2
mov rax, 0xfffffffffffffffe
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x1401cfd50
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 0x1401cfdb4
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 0x1401cfdb4
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
Function at 0x1401dc490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
mov rbx, rcx
xor ecx, ecx
mov r12, r8
mov rsi, r9
mov dword [r9], ecx
mov rcx, qword [rax + 0x98]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r13, eax
mov rdi, r13
cmp r13d, 0xffffffff
jne 0x1401dc51c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x2733
jne 0x1401dc4e7
mov dword [rsi], 0x51
jmp 0x1401dc51c
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov ecx, eax
call sym.Curl_strerror
mov rcx, qword [rbx + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call sym.Curl_failf
mov rax, qword [rbx + 8]
mov dword [rax + 0xccc], ebp
mov dword [rsi], 0x38
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401dc558
test byte [rcx + 0xa0e], 0x20
je 0x1401dc558
mov rdx, qword [rbx]
test rdx, rdx
je 0x1401dc558
mov rax, qword [rdx]
cmp dword [rax + 0xc], 0
jle 0x1401dc558
mov eax, dword [rsi]
mov dword [rsp + 0x20], edi
mov r9, r12
lea r8, str.nw_in_read_len_zu______d__err_d
mov dword [rsp + 0x28], eax
call sym.Curl_trc_cf_infof
mov rax, r13
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1401e1d30
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov r8d, 0x1008
mov edx, 0xffff
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x50], rcx
lea r9, [rsp + 0x38]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401e1d80
cmp dword [rsp + 0x38], 1
mov rcx, qword [rsp + 0x50]
jne 0x1401e1d80
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_send]
nop
add rsp, 0x48
ret