joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074cf0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000000
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140074d61
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140074d51
mov r9d, 1
mov dword [rsp + 0x20], 8
xor r8d, r8d
lea rcx, [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140074d61
mov eax, 0xffffffe7
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ecx, ecx
mov eax, 0xffffffe7
test ebx, ebx
mov rbx, qword [rsp + 0x40]
cmovne eax, ecx
add rsp, 0x30
pop rdi
ret

Function at 0x1400763c4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1401d1690]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140176ab0]
mov rbp, rcx
call fcn.1400d2178
xor edi, edi
test rax, rax
je 0x1400764aa
mov ebx, edi
call fcn.14005cd44
mov r14d, dword [rax]
call fcn.14005cd44
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140101148
mov rsi, rax
test rax, rax
je 0x14007643b
call fcn.14005cd44
mov dword [rax], r14d
jmp 0x140076465
call fcn.14005cd44
cmp dword [rax], 0x22
jne 0x1400764a2
call fcn.14005cd44
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140101148
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400764a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140076469
cmp rax, 3
je 0x140076484
mov rcx, rsi
call fcn.140076320
test al, al
je 0x140076495
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140076495
mov dil, 1
mov rcx, rbx
call fcn.14003ef6c
mov al, dil
jmp 0x1400764ac
mov rcx, rbx
call fcn.14003ef6c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005e960
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140078a78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1401d5ac0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140078acf
cmp word [rdx], r13w
jne 0x140078acf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140078ad4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140078bf9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140078c1a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140078b0d
mov rdx, r9
mov word [rbx], cx
jmp 0x140078b34
cmp r9, r8
jae 0x140078b44
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140078aee
jmp 0x140078bf9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140078bee
cmp dword [rsp + 0x80], esi
je 0x140078bee
lea r8, [0x1401d5ac0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140078bc6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140078b96
mov word [rbx], r13w
jmp 0x140078bf6
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140078ba3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140078bf6
cmp word [rsp + 0x70], r13w
jne 0x140078bd3
cmp rbx, r14
je 0x140078b90
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140083d2c
cmp word [rsp + 0x70], r13w
je 0x140078bf9
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1401d5ac0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140078bf3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140078bf9
Function at 0x140084660
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400847a8
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140084817
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140084817
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140084817
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140084817
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140084817
cmp dword [rcx + 0x84], 0xe
jbe 0x140084817
cmp dword [rcx + 0xf8], 0
je 0x140084817
mov ecx, ebx
call fcn.1400846e0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14008493c
nop
cmp dword [rbp + 0x20], 0
je 0x140084865
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140084774
int3

Function at 0x1400903d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x270]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140090551
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x14009046d
mov rax, qword [rbx + 0x30]
add qword [rax + r14], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x1400904c7
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x1400904b0
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140090492
cmp r13d, 1
jne 0x140090523
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x140090500
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140090450
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x140093920
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
lea rdx, [rsp + 0x60]
mov r14, rcx
mov dword [rsp + 0x70], r15d
lea ebx, [r15 + 1]
cmp qword [rcx + 8], r15
je 0x140093956
mov r8d, ebx
call fcn.140039c10
mov dword [rsp + 0x70], eax
jmp 0x140093970
mov rcx, qword [rcx]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
cmp eax, 1
jne 0x140093a38
movzx ecx, byte [rsp + 0x60]
test cl, cl
js 0x140093996
mov byte [rsi], cl
mov rax, rbx
mov byte [rsi + 1], r15b
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
movzx eax, cl
mov qword [rsp + 0x68], rbp
and al, 0xe0
mov qword [rsp + 0x30], rdi
cmp al, 0xc0
jne 0x1400939b2
mov ebp, 2
mov edi, ebp
jmp 0x1400939d9
movzx eax, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1400939c5
mov edi, 3
lea ebx, [rdi - 1]
jmp 0x1400939d6
movzx eax, cl
and al, 0xf8
cmp al, 0xf0
jne 0x140093a2e
mov edi, 4
lea ebx, [rdi - 1]
mov rbp, rdi
mov byte [rsi], cl
lea rdx, [rsi + 1]
cmp qword [r14 + 8], r15
je 0x1400939f3
lea r8, [rdi - 1]
mov rcx, r14
call fcn.140039c10
jmp 0x140093a10
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x70]
mov rdi, rbp
cmp eax, ebx
cmovne rdi, r15
mov rax, rdi
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
mov word [rsi], 0x3f
mov rax, rbx
jmp 0x140093a19
xor eax, eax
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x14009a2e4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r11d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rdi, dword [rcx + 0x160]
mov r15, rdx
mov rbx, rcx
test r11d, r11d
je 0x14009a3a3
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
lea r10d, [rax + rax*2]
mov eax, edi
imul eax, r9d
movsxd r12, r10d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [rbx + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [rbx + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x14009a389
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 3]
xor byte [rcx], al
add rcx, rdi
sub r9, 1
jne 0x14009a36c
mov eax, dword [rbx + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r11d, 1
jne 0x14009a338
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret

Function at 0x14009b044
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
mov r10d, dword [rsp + 0x60]
mov r14d, r8d
movsxd rbx, dword [rcx + 0x160]
mov r15, rdx
mov r11, rcx
test r10d, r10d
je 0x14009b104
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
shl eax, 2
movsxd r12, eax
mov eax, ebx
imul eax, r9d
movsxd r13, eax
mov ebp, ecx
mov eax, r14d
imul eax, ecx
movsxd rdx, eax
mov eax, r8d
imul eax, dword [r11 + 0x158]
add rdx, r12
add rdx, r15
movsxd rcx, eax
add rcx, qword [r11 + 0x150]
add rcx, r13
cmp dword [rsp + 0x58], 0
jle 0x14009b0e9
mov r9d, dword [rsp + 0x58]
mov al, byte [rdx + 2]
xor byte [rcx + 2], al
mov al, byte [rdx + 1]
xor byte [rcx + 1], al
mov al, byte [rdx]
lea rdx, [rdx + 4]
xor byte [rcx], al
add rcx, rbx
sub r9, 1
jne 0x14009b0cc
mov eax, dword [r11 + 0x174]
inc r8d
neg eax
sbb ecx, ecx
and ecx, 2
dec ecx
add ecx, ebp
sub r10d, 1
jne 0x14009b097
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
pop r15
pop r14
pop r13
ret
Function at 0x1400a7da0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400a7df4
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov qword [rsp + 0x70], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400a7f77
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400a7f77
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400a7f77
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400a7f77
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1400a7f77
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400a7f77
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1400a7f77
mov r9, rsi
lea r8, [0x1401609d4]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140056a70
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400a7f11
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400a7f77
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1400a7f77
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140018db0
test eax, eax
jne 0x1400a7f77
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1400a7f98
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400acdb0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400acf74
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400acf54
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400ace0d
lea ebp, [rax + 0xe]
jmp 0x1400ace19
cmp eax, 0x17
jne 0x1400acec1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400acec1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400acec1
cmp rax, rbp
jb 0x1400acec1
mov ecx, 0x30
call qword [fcn.14003f410]
mov rdi, rax
test rax, rax
je 0x1400acefc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.14003f410]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400aceeb
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.1400173a0
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400aceae
call qword [case.0x1400446e9.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400aced0
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400acebe
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400ace00
jmp 0x1400acf02
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.14003ef6c]
mov rcx, rdi
call qword [fcn.14003ef6c]
jmp 0x1400acf02
mov rcx, rdi
mov r14d, 8
call qword [fcn.14003ef6c]
jmp 0x1400acf02
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400acf17
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1400acf4f
test rbx, rbx
je 0x1400acf4a
mov rcx, qword [rbx + 0x20]
call qword [fcn.14003ef6c]
mov rcx, qword [rbx + 0x18]
call qword [fcn.14003ef6c]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.14003ef6c]
mov rbx, rdi
test rdi, rdi
jne 0x1400acf21
mov rbx, r13
jmp 0x1400acf63
test rbx, rbx
jne 0x1400acf63
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret

Function at 0x1400ad960
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.140084610
sub rsp, rax
call fcn.1401030cc
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400ad9aa
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400ad9aa
lea rcx, [rsp + 0x20]
call qword [case.0x1400446e9.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x1400ade90
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x1401d1690]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov dword [rcx + 0x270], ebp
mov rbx, rcx
call fcn.140118df0
test eax, eax
jne 0x1400ae02e
mov eax, dword [rsp + 0x30]
mov edx, 0x3e8
mov r8d, dword [rbx + 0xb0]
imul ecx, eax, 0x3e8
mov qword [rsp + 0x4a0], rdi
mov edi, dword [rbx + 0x25c]
test edi, edi
cmove ecx, edx
test r8d, r8d
jle 0x1400adf4f
test eax, eax
je 0x1400adf04
cmp ecx, r8d
jle 0x1400adf4f
xor ecx, ecx
call fcn.1400abb2c
mov rdx, rsi
mov rcx, rax
call fcn.140118dc0
mulsd xmm0, qword [0x140154b88]
mov ecx, dword [rbx + 0xb0]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x1400adf45
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.140118f10
jmp 0x1400ae026
sub ecx, eax
mov r8d, 1
jmp 0x1400adf58
test ecx, ecx
mov r8d, ebp
setg r8b
mov eax, 0x10624dd3
mov r10, rbp
imul ecx
mov r11, rbp
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x3e8
mov dword [rsp + 0x38], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x1400adfa4
mov rax, qword [rbx + 0x250]
lea r11, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1400adfcc
mov rax, qword [rbx + 0x250]
lea r10, [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov dword [rsp + 0x250], 1
mov ecx, dword [rbx + 0x250]
lea rax, [rsp + 0x38]
test r8d, r8d
mov rdx, r11
mov r8, r10
cmove rax, rbp
inc ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400ae00c
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.140118f10
jmp 0x1400ae026
jns 0x1400ae024
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.140118f10
jmp 0x1400ae026
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14005e960
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400b0e40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x50
mov rdi, rcx
lea rdx, [0x1401607e4]
mov rcx, qword [rsp + 0xa8]
xor r15d, r15d
mov ebx, r15d
mov r12, r9
mov r13, r8
call fcn.14007ad00
mov rsi, rax
test rax, rax
jne 0x1400b0e98
lea r8, str.Unable_to_open_public_key_file
mov rcx, rdi
lea edx, [rax - 0x10]
call fcn.140118f10
jmp 0x1400b10be
mov rcx, rsi
call fcn.140120444
test eax, eax
jne 0x1400b0ee7
nop dword [rax]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x30]
mov r8d, edx
mov r9, rsi
call fcn.14002b1ac
cmp rax, 1
jne 0x1400b0ee7
movzx eax, byte [rsp + 0x30]
cmp al, 0xd
je 0x1400b0ee7
cmp al, 0xa
je 0x1400b0ee7
mov rcx, rsi
inc rbx
call fcn.140120444
test eax, eax
je 0x1400b0eb0
mov rcx, rsi
call fcn.140120470
cmp rbx, 1
ja 0x1400b0f16
mov rcx, rsi
call fcn.14003eaa4
lea r8, str.Invalid_data_in_public_key_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118f10
jmp 0x1400b10be
mov rdx, rdi
mov qword [rsp + 0x80], rbp
mov rcx, rbx
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rbp, rax
test rax, rax
jne 0x1400b0f4e
mov rcx, rsi
call fcn.14003eaa4
lea r8, str.Unable_to_allocate_memory_for_public_key_data
mov rcx, rdi
lea edx, [rbp - 6]
call fcn.140118f10
jmp 0x1400b10b6
mov r9, rsi
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.14002b1ac
cmp rax, rbx
je 0x1400b0f90
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
mov rcx, rsi
call fcn.14003eaa4
lea r8, str.Unable_to_read_public_key_from_file
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118f10
jmp 0x1400b10b6
mov rcx, rsi
call fcn.14003eaa4
nop dword [rax + rax]
movzx ecx, byte [rbx + rbp - 1]
call fcn.140114fa0
test eax, eax
je 0x1400b0fd4
sub rbx, 1
jne 0x1400b0fa0
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Missing_public_key_data
mov rcx, rdi
lea edx, [rbx - 0x10]
call fcn.140118f10
jmp 0x1400b10b6
mov r8, rbx
mov edx, 0x20
mov rcx, rbp
call fcn.14006e930
mov rsi, rax
test rax, rax
jne 0x1400b100c
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_public_key_data
mov rcx, rdi
lea edx, [rsi - 0x10]
call fcn.140118f10
jmp 0x1400b10b6
inc rsi
mov qword [rsp + 0x90], r14
mov r14, rsi
mov r8, rbx
sub r14, rbp
mov edx, 0x20
cmp rsi, rbp
mov rcx, rsi
cmova r15, r14
sub r8, r15
call fcn.14006e930
test rax, rax
jne 0x1400b1040
lea rax, [rbx + rbp]
sub rax, rsi
lea r8, [rsp + 0x40]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140119040
test eax, eax
je 0x1400b1080
mov rdx, rdi
mov rcx, rbp
call qword [rdi + 0x18]
lea r8, str.Invalid_key_data__not_base64_encoded
mov edx, 0xfffffff0
mov rcx, rdi
call fcn.140118f10
jmp 0x1400b10ae
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0xa0]
mov qword [rax], rbp
lea rax, [r14 - 1]
mov qword [r13], rax
mov rax, qword [rsp + 0x38]
mov qword [r12], rax
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
xor eax, eax
mov r14, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret