joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4130
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1401504f0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x6d8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x154]
mov rdx, qword [rdi + 0x160]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x148], 0
mov dword [rdi + 0x14c], eax
jne 0x1400a41c7
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xc8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x148], eax
mov r8d, dword [rdi + 0x14c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x1400a422d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.14007baf0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400bfb20
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x160]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x1400a4263.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0xa437c]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x1400a4263.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x15c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1400a4263.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007ba00
mov ebx, eax
test eax, eax
je 0x1400a42c2
mov edx, 5
mov rcx, rdi
call fcn.1400a4e20
mov eax, ebx
jmp 0x1400a41fc
mov eax, dword [rdi + 0x14c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0x100], rax
mov rdx, qword [rsi + 0x100]
call fcn.14008c070
jmp case.0x1400a4263.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.1400a4ea0
cmp rax, rbx
jae case.0x1400a4263.4
mov r8, rbp
lea rdx, str.TFTP_error:__s_n
mov rcx, rsi
call fcn.14007bc50
jmp case.0x1400a4263.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400a3e60
test eax, eax
je case.0x1400a4263.4
jmp 0x1400a41fc
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140137434]
call fcn.14007baf0
mov rcx, rsi
call fcn.14008c380
test eax, eax
je 0x1400a41fa
mov edx, 5
mov rcx, rdi
call fcn.1400a4e20
mov eax, Ordinal_45
jmp 0x1400a41fc
Function at 0x1400b6350
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.._r_f_]
mov rdi, rax
test rax, rax
jne 0x1400b6392
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b63d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b6432
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400b63f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b6473
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400d221c]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400d221d]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b6440
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b8600
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov eax, gethostname
movaps xmmword [rsp + 0x30], xmm7
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm8
mov rbx, rcx
movsd xmm8, qword [0x1400d2730]
cvtsi2sd xmm6, rax
test rax, rax
jns 0x1400b8639
addsd xmm6, xmm8
movaps xmm0, xmm8
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_log2]
divsd xmm6, xmm0
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
movsd xmm6, qword [0x1400d2728]
mov ecx, 1
cvttsd2si eax, xmm0
xorps xmm7, xmm7
cmp eax, ecx
cmovl eax, ecx
test eax, eax
jle 0x1400b8773
mov qword [rsp + 0x60], rbp
movabs rbp, 0x38eb3ffff6d3
mov qword [rsp + 0x68], rsi
movabs rsi, 0xb5026f5aa96619e9
mov qword [rsp + 0x70], rdi
mov edi, eax
mov eax, dword [rbx]
cmp eax, 0x138
jne 0x1400b86ec
lea r8, [rbx + 0x10]
mov r9d, eax
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rsi
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x1400b86b0
jmp 0x1400b86fb
cmp eax, 0x270
jb 0x1400b86fb
mov rcx, rbx
call fcn.1400b99e0
mov eax, dword [rbx]
xorps xmm1, xmm1
mov rcx, qword [rbx + rax*8 + 8]
inc eax
mov dword [rbx], eax
mov rax, rcx
shr rax, 0x1d
and rax, qword [rbx + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rbp
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rax, rcx
shr rax, 0x2b
xor rax, rcx
cvtsi2sd xmm1, rax
jns 0x1400b874d
addsd xmm1, xmm8
mulsd xmm1, xmm6
mulsd xmm6, xmm8
addsd xmm7, xmm1
sub rdi, 1
jne 0x1400b8695
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm7, xmm6
movaps xmm6, xmmword [rsp + 0x40]
movaps xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x30]
add rsp, 0x50
pop rbx
ret

Function at 0x1400b99e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov r10, rcx
lea r9, [rcx + 0x9c8]
movabs rbx, 0xb5026f5aa96619e9
mov r11d, 0x9c
nop
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 + 0x4d8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x1400b9a00
lea r9, [r10 + 0xea8]
mov r11d, 0x9b
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 8]
lea r9, [r9 + 8]
btr edx, 0x1f
xor rdx, qword [r9 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
xor rcx, qword [r9 - 0xea8]
xor rcx, rdx
mov qword [r9 - 0x9c8], rcx
sub r11, 1
jne 0x1400b9a50
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, rbx
mov rbx, qword [rsp + 8]
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], r11d
ret
Function at 0x1400ba470
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0xae0
mov rax, qword [0x1401504f0]
xor rax, rsp
mov qword [rsp + 0xad0], rax
mov rbx, rdx
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rsp + 0x80]
mov r8, rcx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
or r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
mov r8, rbx
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareValveSteam
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400ba51f
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_opening_Steam_key_n
jmp 0x1400ba5e7
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.SteamExe
lea rax, [rsp + 0xc0]
mov dword [rsp + 0x30], 0x208
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400ba5d5
mov ecx, dword [rsp + 0x30]
cmp ecx, 1
jb 0x1400ba5d5
shr ecx, 1
je 0x1400ba593
lea rax, [rsp + 0xc0]
lea edx, [rbx + 0x5c]
nop
cmp word [rax], 0x2f
jne 0x1400ba589
mov word [rax], dx
add rax, 2
sub rcx, 1
jne 0x1400ba580
lea rax, [rsp + 0x40]
mov edx, 0x800
lea r9, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r8, str.__s__steam:__rungameid__s
lea rcx, [rsp + 0x2d0]
call fcn.1400ba300
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x80]
call fcn.1400b9f60
jmp 0x1400ba5ef
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error_reading_SteamExe_key_n
mov rcx, rax
call fcn.1400ba610
mov rcx, qword [rsp + 0xad0]
xor rcx, rsp
call fcn.1400bfb20
add rsp, 0xae0
pop rbx
ret
Function at 0x1400ba6b0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1401504f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov eax, dword [0x1400d2980]
xor edi, edi
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov dword [rsp + 0x68], eax
mov rbx, rcx
movzx eax, word [0x1400d2984]
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [0x1400d2968]
mov word [rsp + 0x6c], ax
mov eax, Ordinal_50
movups xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov qword [rsp + 0x30], rdi
movsd xmm0, qword [0x1400d2978]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x1400ba7b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400ba768
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x1400ba7d7
inc ax
mov word [rsp + 0x6a], ax
jmp 0x1400ba783
cmp eax, 0xe7
jne 0x1400ba7d7
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1400ba7d7
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400ba748
mov byte [rbx], 1
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400bfb20
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
xor al, al
jmp 0x1400ba7b9

Function at 0x1400ba7e0
Capabilities:
Read file on windows
Read pipe

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x1400ba800
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
je 0x1400ba7f6
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400ba7f6
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbp
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x28], rbp
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], ebp
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1400ba88b
mov eax, dword [rsp + 0x58]
cmp rax, rdi
jb 0x1400ba8a0
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, edi
mov dword [rsp + 0x68], ebp
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400ba874
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, rbx
call fcn.1400ba660
mov rbp, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], bpl
xor al, al
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400ba8b0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x1400ba8c6
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x1400ba8d3
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400ba8cb
test rdx, rdx
je 0x1400ba8cb
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1400ba90a
cmp dword [rsp + 0x50], edi
jne 0x1400ba90a
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400bf540
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400bf5c4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400bf5c4
dec r8
sub rdx, 1
jne 0x1400bf5aa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400c0a3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c0a86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c0a86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c0a86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c0a86
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c0a86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c0a88
xor al, al
add rsp, 0x28
ret
Function at 0x140070370
Capabilities:
Get file size

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x40], r8
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x38], r8
lea rcx, [rbp - 0x30]
mov edx, 0xaa
mov r8d, 8
call fcn.140375530
mov rcx, qword [rbp - 0x40]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x28], 0x4d430001
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 8
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
mov qword [rbp], 0
lea rax, [rbp - 0x28]
xor edx, edx
rol rdi, 3
rol rdi, 0xd
rol rdi, 0x3d
rol rdi, 0x33
xchg rbx, rbx
lea rdx, [rbp - 0x30]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
je 0x140070433
jmp 0x140070475
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x30]
mov word [rbp + 0x28], 0
mov qword [rbp + 0x20], rdx
mov rdx, qword [rbp + 0x20]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x28]
mov qword [rcx + 8], rdx
add rsp, 0xb0
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x58]
mov dx, ax
mov word [rbp + 0xe], dx
call fcn.14001a790
mov rcx, qword [rbp - 0x58]
mov word [rbp + 0x18], ax
call fcn.140002380
mov rcx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp + 0x10]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x18]
mov qword [rcx + 8], rdx
add rsp, 0xb0
pop rbp
ret
jmp 0x140070405
Function at 0x14015ad40
Capabilities:
Hash data using sha256

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rax, rcx
mov qword [rbp - 8], rax
lea rdx, [0x1403e6670]
mov r8d, 0x70
call fcn.1403750f0
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x14015cb60
Capabilities:
Hash data using sha384

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rax, rcx
mov qword [rbp - 8], rax
lea rdx, [0x1403e67b8]
mov r8d, 0xd8
call fcn.1403750f0
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret

Function at 0x14015e8d0
Capabilities:
Hash data using sha512

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rax, rcx
mov qword [rbp - 8], rax
lea rdx, [0x1403e68f0]
mov r8d, 0xd8
call fcn.1403750f0
mov rax, qword [rbp - 8]
add rsp, 0x30
pop rbp
ret
Function at 0x140188b60
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0xd0
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x28], r9d
mov dword [rbp - 0x24], r8d
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rcx
mov eax, dword [rbp + 0x80]
mov dword [rbp - 8], eax
mov dword [rbp], r8d
mov dword [rbp + 4], r9d
mov eax, r9d
and eax, 0xfffcffff
mov dword [rbp - 4], eax
mov dword [rbp + 8], eax
and r9d, 0x10000
cmp r9d, 0
jne 0x140188bfa
jmp 0x140188c04
mov r10d, dword [rbp - 8]
mov r9d, dword [rbp - 4]
mov r8d, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x20]
mov eax, dword [rbp - 0x2c]
mov dword [rbp + 0xc], eax
lea rcx, [rbp + 0x10]
xor r11d, r11d
xor r11d, r11d
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], eax
call fcn.1401ec910
cmp word [rbp + 0x18], 0
jne 0x140188c0b
jmp 0x140188c3c
mov eax, 0x80
mov dword [rbp - 0x2c], eax
jmp 0x140188bb2
xor eax, eax
mov dword [rbp - 0x2c], eax
jmp 0x140188bb2
mov rcx, qword [rbp - 0x20]
mov ax, word [rbp + 0x18]
mov word [rbp + 0x28], ax
call fcn.140002380
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x28]
mov qword [rcx + 8], rdx
add rsp, 0xd0
pop rbp
ret
mov eax, dword [rbp - 0x28]
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x38], rcx
mov qword [rbp + 0x30], rcx
and eax, 0x20000
cmp eax, 0
jne 0x140188c85
jmp 0x140188cab
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x38]
mov word [rbp + 0x48], 0
mov qword [rbp + 0x40], rdx
mov rdx, qword [rbp + 0x40]
mov qword [rcx], rdx
mov rdx, qword [rbp + 0x48]
mov qword [rcx + 8], rdx
add rsp, 0xd0
pop rbp
ret
mov rcx, qword [rbp - 0x38]
mov dword [rbp + 0x3c], 1
mov edx, 0x8004667e
lea r8, [rbp + 0x3c]
call sub.WS2_32.dll_ioctlsocket
mov ecx, eax
mov eax, 0xffffffff
cmp eax, ecx
je 0x140188caf
jmp 0x140188cd1
jmp 0x140188c57
jmp 0x140188c57
call sub.WS2_32.dll_WSAGetLastError
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f40]
call fcn.140001170
jmp 0x140188cad
Function at 0x140188da0
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov dword [rbp - 0x3c], r9d
mov qword [rbp - 0x38], r8
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov dword [rbp - 0xc], r9d
mov eax, 0x7fffffff
sub eax, r9d
cmp eax, 0x7fffffff
jbe 0x140188df2
jmp 0x140188df4
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x30]
call sub.WS2_32.dll_connect
mov dword [rbp - 8], eax
cmp eax, 0
je 0x140188e46
jmp 0x140188e4e
jmp 0x140188dd7
lea rcx, str.integer_cast_truncated_bits
mov edx, 0x1b
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
call sub.WS2_32.dll_WSAGetLastError
mov cx, ax
mov ax, cx
mov word [rbp - 0x4a], cx
add eax, 0xffffd8e3
movzx ecx, ax
mov qword [rbp - 0x48], rcx
sub ax, 0x34
ja case.0x140188e44.2
mov rax, qword [rbp - 0x48]
lea rcx, [0x14037c000]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
xor eax, eax
add rsp, 0x70
pop rbp
ret
jmp 0x140188e11
mov rcx, qword [rbp - 0x28]
mov dx, word [rbp - 0x4a]
mov word [rbp - 2], dx
call fcn.140187f40
mov rcx, qword [rbp - 0x28]
mov word [rbp - 0x4c], ax
call fcn.140002380
mov ax, word [rbp - 0x4c]
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 0x85
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 0x86
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 5
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 8
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 7
add rsp, 0x70
pop rbp
ret
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 0x45
add rsp, 0x70
pop rbp
ret
lea rcx, str.reached_unreachable_code
mov edx, 0x18
xor eax, eax
mov r8d, eax
lea r9, [0x1403e9f60]
call fcn.140001170
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 0x3d
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 0x81
add rsp, 0x70
pop rbp
ret
mov rcx, qword [rbp - 0x28]
call fcn.140002380
mov ax, 6
add rsp, 0x70
pop rbp
ret
Function at 0x14018b9c0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x50], rcx
mov rax, qword [r9]
mov qword [rbp - 0x48], rax
mov rax, qword [r9 + 8]
mov qword [rbp - 0x40], rax
mov rax, qword [r9 + 0x10]
mov qword [rbp - 0x38], rax
mov rax, qword [r9 + 0x18]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov cl, byte [rax]
and cl, 0xf8
mov byte [rax], cl
lea rax, [rbp - 0x48]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov cl, byte [rbp - 0x29]
and cl, 0x7f
or cl, 0x40
mov byte [rax + 0x1f], cl
lea rcx, [rbp - 0x10]
lea r9, [rbp - 0x48]
call fcn.1401f7900
cmp word [rbp + 0x18], 0
je 0x14018ba73
mov rcx, qword [rbp - 0x60]
mov ax, word [rbp + 0x18]
mov word [rbp + 0x48], ax
call fcn.140002380
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x20]
mov r8d, 0x30
call fcn.1403750f0
mov rax, qword [rbp - 0x50]
add rsp, 0x100
pop rbp
ret
lea rdx, [rbp - 0x10]
mov word [rbp + 0x78], 0
lea rcx, [rbp + 0x50]
mov r8d, 0x28
call fcn.1403750f0
mov rcx, qword [rbp - 0x58]
lea rdx, [rbp + 0x50]
mov r8d, 0x30
call fcn.1403750f0
mov rax, qword [rbp - 0x50]
add rsp, 0x100
pop rbp
ret