joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402d86e0
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
add rax, 0xf0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x50]
mov dword [rax + 0x12c8], ecx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x555]
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x12d0], eax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x12a9]
test eax, eax
je 0x1402d8754
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x12a9]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x555]
cmp eax, ecx
jle 0x1402d876b
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
movzx ecx, byte [rcx + 0x555]
mov byte [rax + 0x12a9], cl
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10d0], 0
je 0x1402d87a4
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x12aa]
test eax, eax
jne 0x1402d87a4
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0x1a0
jne 0x1402d87a4
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xd1], 1
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x555]
cmp eax, 0xa
jne 0x1402d87d7
lea rdx, str.HTTP_1.0__assume_close_after_body
mov rcx, qword [rsp + 0x50]
call fcn.1402e8500
mov edx, 1
mov rcx, qword [rsp + 0x58]
call fcn.1402e40d0
jmp 0x1402d883f
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x555]
cmp eax, 0x14
je 0x1402d87fe
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x6c], 2
jne 0x1402d8818
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0x65
jne 0x1402d8818
xor eax, eax
test eax, eax
jne 0x1402d87fe
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x518]
mov dword [rax], 2
jmp 0x1402d883f
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x555]
cmp eax, 0xb
jl 0x1402d883f
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x2fe]
test eax, eax
jne 0x1402d883f
xor eax, eax
test eax, eax
jne 0x1402d8839
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0x64
jl 0x1402d8862
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 0xc8
jge 0x1402d8862
mov dword [rsp + 0x20], 1
jmp 0x1402d886a
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x20], 0
jne 0x1402d887b
mov dword [rsp + 0x24], 0
jmp 0x1402d8883
mov dword [rsp + 0x24], 1
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rsp + 0x24]
mov byte [rax + 0xd2], cl
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xcc
je 0x1402d88d1
cmp dword [rsp + 0x28], 0x130
je 0x1402d88b5
jmp 0x1402d88f6
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x508]
test eax, eax
je 0x1402d88d1
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x13a4], 1
mov rax, qword [rsp + 0x30]
mov qword [rax], 0
mov rax, qword [rsp + 0x30]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x30]
mov byte [rax + 0xd2], 1
xor eax, eax
add rsp, 0x48
ret
Function at 0x1402e8280
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0xa2f]
test eax, eax
je 0x1402e838b
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x260], 0
je 0x1402e8314
mov rcx, qword [rsp + 0x50]
call fcn.1402a6cd0
mov byte [rsp + 0x30], al
mov dl, 1
mov rcx, qword [rsp + 0x50]
call fcn.1402a6c60
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
call qword [rax + 0x260]
movzx edx, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1402a6c60
jmp 0x1402e838b
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1402e8333
cmp dword [rsp + 0x34], 1
je 0x1402e8333
cmp dword [rsp + 0x34], 2
je 0x1402e8333
jmp 0x1402e838b
movsxd rax, dword [rsp + 0x58]
imul rax, rax, 3
lea rcx, [0x1403d4778]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
mov r9, qword [rcx + 0x1d0]
mov r8d, 1
mov edx, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rax, qword [rsp + 0x50]
mov r9, qword [rax + 0x1d0]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x48
ret

Function at 0x1402ea800
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x1402ea82a
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
jne 0x1402ea86c
cmp qword [rsp + 0x80], 0
je 0x1402ea842
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
jne 0x1402ea86c
cmp qword [rsp + 0x88], 0
je 0x1402ea85a
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
jne 0x1402ea86c
mov rcx, qword [rsp + 0x90]
call fcn.1402ea760
jmp 0x1402ea931
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14031e2c0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x88], 0
je 0x1402ea8aa
mov rax, qword [rsp + 0x88]
cmp dword [rax], 0
je 0x1402ea8aa
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
jmp 0x1402ea8b3
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x80], 0
je 0x1402ea8da
mov rax, qword [rsp + 0x80]
cmp dword [rax], 0
je 0x1402ea8da
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x38], rax
jmp 0x1402ea8e3
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x78], 0
je 0x1402ea901
mov rax, qword [rsp + 0x78]
cmp dword [rax], 0
je 0x1402ea901
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x1402ea90a
mov qword [rsp + 0x40], 0
mov eax, dword [rsp + 0x70]
inc eax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.ws2_32.dll_select]
add rsp, 0x68
ret
Function at 0x1402f3820
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x208
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov eax, dword [rsp + 0x210]
and eax, 2
test eax, eax
je 0x1402f38d8
mov eax, 0x202
mov word [rsp + 0x30], ax
lea rdx, [rsp + 0x50]
movzx ecx, word [rsp + 0x30]
call qword [sym.imp.ws2_32.dll_WSAStartup]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1402f387e
mov eax, 2
jmp 0x1402f397e
movzx eax, word [rsp + 0x50]
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
jne 0x1402f38c8
movzx eax, word [rsp + 0x50]
shr rax, 8
and rax, 0xff
movzx eax, al
movzx ecx, word [rsp + 0x30]
shr rcx, 8
and rcx, 0xff
movzx ecx, cl
cmp eax, ecx
je 0x1402f38d8
call qword [sym.imp.ws2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1402f397e
call fcn.140320af0
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1402f38f1
mov eax, dword [rsp + 0x34]
jmp 0x1402f397e
lea rcx, str.iphlpapi.dll
call fcn.1402f3a00
mov qword [0x14045edd8], rax
cmp qword [0x14045edd8], 0
je 0x1402f393b
lea rdx, str.if_nametoindex
mov rcx, qword [0x14045edd8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1402f393b
mov rax, qword [rsp + 0x40]
mov qword [0x14045edd0], rax
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140320720
movzx eax, al
test eax, eax
je 0x1402f3968
mov byte [0x140461808], 1
jmp 0x1402f396f
mov byte [0x140461808], 0
lea rcx, [0x140461810]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140354350
add rsp, 0x208
ret
Function at 0x1402f3a00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1402f3a3c
xor eax, eax
jmp 0x1402f3bd9
lea rdx, str.LoadLibraryExA
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], rax
lea rdx, [0x140451fa0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1402f3aa9
cmp qword [rsp + 0x30], 0
je 0x1402f3a8a
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x1402f3a9a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
jmp 0x1402f3bd4
cmp qword [rsp + 0x30], 0
je 0x1402f3ae3
lea rdx, str.AddDllDirectory
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1402f3ae3
mov r8d, 0x800
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x1402f3bd4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402f3bd4
mov rcx, qword [rsp + 0x70]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
add rax, qword [rsp + 0x58]
mov rcx, rax
call qword [str._N5_]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1402f3bc9
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1402f3bc9
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
lea rdx, [0x140451fb8]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
mov rcx, qword [rsp + 0x28]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
cmp qword [rsp + 0x30], 0
je 0x1402f3baf
mov r8d, 8
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
jmp 0x1402f3bbf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x28]
call qword [str.EN5_]
mov rax, qword [rsp + 0x38]
add rsp, 0x68
ret
Function at 0x1402f5050
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x60]
call fcn.1402d1340
lea rcx, [rsp + 0x80]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rsp + 0x28], rax
mov r8d, 1
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x1402f5125
cmp qword [rsp + 0x20], 0
je 0x1402f50f8
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x1402f50dc
cmp qword [rsp + 0x28], 0
je 0x1402f511a
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x1402f50fe
jmp 0x1402f51de
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x80]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x70]
call fcn.1402d1340
lea rcx, [rsp + 0x50]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1402d1420
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jl 0x1402f5183
movsxd rax, dword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jle 0x1402f51ce
cmp qword [rsp + 0x20], 0
je 0x1402f519f
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x1402f5183
cmp qword [rsp + 0x28], 0
je 0x1402f51c1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x1402f51a5
mov eax, 1
jmp 0x1402f51e0
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1402f50c2
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140354350
add rsp, 0xa8
pop rdi
pop rsi
ret

Function at 0x1402f5810
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r9d, 2
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1402f5851
mov eax, 2
jmp 0x1402f5853
xor eax, eax
add rsp, 0x28
ret
Function at 0x1402f8700
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x28], 0x8000
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x30]
call qword [str.KN5_]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1402f874f
mov rcx, qword [rsp + 0x30]
call qword [str.EN5_]
xor eax, eax
jmp 0x1402f87ba
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x24], eax
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402f8795
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
je 0x1402f8795
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jbe 0x1402f87a4
mov rcx, qword [rsp + 0x30]
call qword [str.EN5_]
xor eax, eax
jmp 0x1402f87ba
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jae 0x1402f87b5
mov rax, qword [rsp + 0x30]
jmp 0x1402f87ba
jmp 0x1402f8722
add rsp, 0x48
ret
Function at 0x140306920
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 4
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x38], eax
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0xf0000040
mov r9d, dword [rsp + 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14030699c
jmp 0x140306a74
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1403069c7
jmp 0x140306a4c
xor r9d, r9d
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x1403069e5
jmp 0x140306a4c
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x30]
mov edx, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x140306a0d
jmp 0x140306a4c
mov eax, dword [rsp + 0x30]
cmp qword [rsp + 0x78], rax
jae 0x140306a1a
jmp 0x140306a4c
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov r8, qword [rsp + 0x70]
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x140306a42
jmp 0x140306a4c
xor eax, eax
test eax, eax
jne 0x14030699c
cmp qword [rsp + 0x40], 0
je 0x140306a5f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp qword [rsp + 0x48], 0
je 0x140306a74
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add rsp, 0x58
ret
Function at 0x140308000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14030805b
mov ecx, 0xffffffff
call fcn.1403080f0
cmp qword [rsp + 0x30], rax
jne 0x14030805f
xor eax, eax
jmp 0x140308064
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1403102b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
cmp dword [0x14045ee08], 0
jne 0x140310314
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140320720
movzx eax, al
test eax, eax
je 0x14031030a
mov dword [0x14045ee08], 2
jmp 0x140310314
mov dword [0x14045ee08], 1
cmp dword [0x14045ee08], 2
jne 0x14031031f
jmp 0x140310377
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ws2_32.dll_getsockopt]
test eax, eax
jne 0x140310354
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jle 0x140310354
jmp 0x140310377
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ws2_32.dll_setsockopt]
add rsp, 0x48
ret

Function at 0x140310c30
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ws2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140310c70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x158
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 1
mov edx, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
jge 0x140310cfb
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1402adc10
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x160]
call fcn.1402e8500
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140354350
add rsp, 0x158
ret
Function at 0x140310d20
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0xa3b]
test eax, eax
je 0x140310d5d
mov dword [rsp + 0x54], 1
jmp 0x140310d65
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x50]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
jge 0x140310db8
mov r8, qword [rsp + 0x98]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0x90]
call fcn.1402e8500
jmp 0x140310e8a
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x9a8]
call fcn.1402c7c50
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x90]
mov ecx, dword [rax + 0x9ac]
call fcn.1402c7c50
mov dword [rsp + 0x50], eax
imul eax, dword [rsp + 0x50], 0x3e8
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xc
lea r8, [rsp + 0x60]
mov edx, 0x98000004
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ws2_32.dll_WSAIoctl]
test eax, eax
je 0x140310e8a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0x98]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0x90]
call fcn.1402e8500
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140354350
add rsp, 0x88
ret
Function at 0x140311da0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
mov rax, qword [0x14045e9a8]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1e0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x1e8]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x318]
mov eax, dword [rax + 0x84]
and eax, 0x800
test eax, eax
jne 0x140311ef9
mov dword [rsp + 0x24], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x24]
lea rdx, [rsp + 0x40]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
je 0x140311e7b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xc0]
mov ecx, dword [rsp + 0x20]
call fcn.1402adc10
mov r9, rax
mov r8d, dword [rsp + 0x20]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1e8]
call fcn.1402e83a0
mov eax, 2
jmp 0x140311efb
mov rax, qword [rsp + 0x28]
add rax, 0x144
mov rcx, qword [rsp + 0x28]
add rcx, 0x114
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x40]
call fcn.1402e3e00
movzx eax, al
test eax, eax
jne 0x140311ef9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, pe_nt_image_headers64
lea rdx, [rsp + 0xc0]
mov ecx, dword [rax]
call fcn.1402adc10
mov qword [rsp + 0x30], rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rcx, qword [rsp + 0x30]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x1e8]
call fcn.1402e83a0
mov eax, 2
jmp 0x140311efb
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140354350
add rsp, 0x1d8
ret

Function at 0x140312410
Capabilities:
Connect socket

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140312444
jmp 0x14031246f
mov rax, qword [rsp + 0x28]
add rax, 0x18
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.ws2_32.dll_connect]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret