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

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
mov rbp, rcx
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor esi, esi
mov rdi, qword [rax + 0x698]
mov dword [rsp + 0x50], 0x80
mov r8d, dword [rdi + 0x144]
lea rax, [rdi + 0xb8]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov r8d, eax
mov dword [rdi + 0x13c], eax
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x138], eax
cmp r8d, 4
jge 0x140059729
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.140032ef0
mov dword [rdi + 0xc], 7
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rdx, qword [rdi + 0x150]
movzx ecx, byte [rdx]
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14005975f.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x59880]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14005975f.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14005975f.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140034410
mov esi, eax
test eax, eax
je case.0x14005975f.4
mov edx, 5
mov rcx, rdi
call fcn.14005a290
mov eax, esi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0x58], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.14005a300
cmp rax, rbx
mov rbx, qword [rsp + 0x58]
jae case.0x14005975f.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.140032fe0
jmp case.0x14005975f.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400593d0
mov esi, eax
test eax, eax
je case.0x14005975f.4
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x14015e890]
call fcn.140032ef0
mov rcx, rbp
call fcn.14004c360
test eax, eax
je 0x140059719
mov edx, 5
mov rcx, rdi
call fcn.14005a290
mov rbp, qword [rsp + 0x60]
mov eax, 0x2a
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400632e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
mov rbx, rcx
mov rdi, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x140063353
movzx eax, byte [rdi + 0x7a6]
cmp al, 0xd
je 0x140063335
test rdi, rdi
je 0x14006331b
lea r8, str.STOP
mov r8, qword [r8 + rax*8]
jmp 0x140063322
lea r8, [0x140167b28]
lea r9, str.RETR_PREQUOTE
lea rdx, str.__s_______s_
call fcn.1400331a0
mov r8b, reloc.WS2_32.dll_listen
mov byte [rdi + 0x7a6], 0xd
mov dl, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1400634a0
cmp byte [rcx + 0xa6e], 0
je 0x14006336d
xor edx, edx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140064170
cmp byte [rcx + 0xa71], 0
je 0x1400633f0
mov r9, qword [rdi + 0x750]
lea rdx, [rdi + 0x698]
test r9, r9
jne 0x1400633b7
mov r9, qword [rcx + 0x818]
test r9, r9
jne 0x1400633ae
cmp byte [rcx + 0x1375], 0
lea rax, str.NLST
lea r9, str.LIST
cmovne r9, rax
lea r8, str.PRET__s
jmp 0x1400633ce
cmp byte [rcx + 0x1379], 0
lea r8, str.PRET_STOR__s
jne 0x1400633ce
lea r8, str.PRET_RETR__s
call fcn.1400787f0
mov edi, eax
test eax, eax
jne 0x1400633e3
mov dl, 0x1d
mov rcx, rbx
call fcn.140061910
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140064090

Function at 0x140063740
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1c8]
add rdx, 0x698
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x140063798
cmp qword [rdx + 0xb8], 0
je 0x140063798
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8, str.REST__d
call fcn.1400787f0
mov edi, eax
test eax, eax
jne 0x14006378d
mov dl, 0x1a
mov rcx, rbx
call fcn.140061910
mov eax, edi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400632e0
Function at 0x140063c40
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140063c82
lea rdx, str.Couldnt_set_desired_mode
call fcn.140032ef0
mov eax, reloc.WS2_32.dll_recvfrom
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp edx, 0xc8
je 0x140063c99
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140032fe0
cmp sil, 0x13
jne 0x140063cb6
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
jmp fcn.140063960
cmp sil, 0x14
jne 0x140063dfa
cmp byte [rbx + 0x710], 2
mov qword [rsp + 0x58], r14
mov r14, qword [rbx + 0x18]
jne 0x140063d3d
mov rax, qword [rbx + 0x1c8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140063d3d
xor r9d, r9d
mov qword [rsp + 0x50], rdi
lea r8, [rsp + 0x50]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14003d690
mov esi, eax
test eax, eax
jne 0x140063de6
mov rcx, qword [rsp + 0x50]
mov edx, 0x2f
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140063d32
mov rdi, qword [rsp + 0x50]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], sil
jmp 0x140063d3d
mov rcx, qword [rsp + 0x50]
call qword [fcn.140158666]
mov rdx, qword [rbx + 0x818]
test rdx, rdx
jne 0x140063d62
cmp byte [rbx + 0x1375], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14017ef61]
test rdi, rdi
mov r9, r8
lea rax, [0x14017f064]
cmovne r9, rdi
lea rcx, [0x14015dd4c]
cmovne r8, rax
call fcn.14004e810
mov rcx, rdi
mov rbp, rax
call qword [fcn.140158666]
test rbp, rbp
jne 0x140063db4
mov r14, qword [rsp + 0x58]
mov esi, 0x1b
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rdx, [r14 + 0x698]
mov r9, rbp
lea r8, [0x14015e890]
mov rcx, rbx
call fcn.1400787f0
mov rcx, rbp
mov esi, eax
call qword [fcn.140158666]
test esi, esi
jne 0x140063de6
mov dl, 0x1f
mov rcx, rbx
call fcn.140061910
mov r14, qword [rsp + 0x58]
mov eax, esi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
cmp sil, 0x15
jne 0x140063e05
mov r8b, reloc.WS2_32.dll_listen
jmp 0x140063e0e
cmp sil, 0x16
jne 0x140063e1a
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.1400634a0
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400747f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.14004d760
mov r13, rax
test rax, rax
jne 0x140074870
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140041d60
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140032ef0
xor ecx, ecx
mov ebx, 0x4d
call qword [fcn.140158666]
jmp 0x140074a28
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x170], r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400748e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140041d60
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140032ef0
xor ecx, ecx
mov ebx, 0x4d
jmp 0x140074a12
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14007492f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140041d60
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140032ef0
mov ebx, 0x4d
jmp 0x140074a06
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x140074964
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.140032ef0
mov ebx, 0x4d
jmp 0x1400749fe
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x140074980
mov ebx, 0x1b
jmp 0x1400749fe
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1400749d8
nop dword [rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140074a4a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1400749cf
mov edi, esi
jmp 0x1400749d1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140074990
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.140074560
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.140158666]
mov rcx, r13
call fcn.140158666
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140157800
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140041d60
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.140032ef0
mov ebx, 0x4d
jmp 0x1400749f6
Function at 0x140079d60
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov edx, ebx
mov byte [rcx], 0
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140079d9b
mov edx, 0x2e
mov rcx, rdi
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x140079d99
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007b250
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [section..data]
mov rbx, rax
test rax, rax
jne 0x14007b293
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x14007b2e0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x14007b342
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x14007b300
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x14007b381
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14016ccd1]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14016ccd2]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x14007b350
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x14007b570
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14007b5bc
mov eax, 0x1b
jmp 0x14007b68f
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14007b600
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14007b68f
mov rcx, rbp
call fcn.140037200
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14007b66b
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007b67b
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007b68d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140157800
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x14007c450
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14007c4b5
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x14007c460
ret
Function at 0x14007c4c0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov qword [rsp + 0x40], rbp
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14007c543
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8002
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14007c565
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140157800
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call fcn.140037200
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebp
mov edx, 2
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x10
jne 0x14007c5c4
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rbx
mov dword [rsp + 0x20], ebp
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007c5d4
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14007c5e6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x14007c548
Function at 0x140098970
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.140136020
test eax, eax
jne 0x140098b0d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [reloc.WS2_32.dll_accept], bpl
mov qword [rsp + 0x38], rdi
jne 0x1400989a5
mov edi, ebp
jmp 0x1400989c1
mov ecx, 5
call qword [0x140199b00]
mov rdi, rax
test rax, rax
je 0x1400989c1
mov rcx, rax
call qword [0x140199b10]
test ebx, ebx
jle 0x140098aef
test rsi, rsi
je 0x140098aef
cmp dword [0x14019de30], ebp
jne 0x140098a78
xor ecx, ecx
call fcn.140080fb0
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14019de30], xmm0
test rax, rax
jne 0x140098a18
xorps xmm0, xmm0
mov qword [0x14019de60], rax
movups xmmword [0x14019de40], xmm0
mov dword [0x14019de68], eax
movups xmmword [0x14019de50], xmm0
jmp 0x140098a5c
mov ecx, dword [0x140199c40]
test ecx, ecx
je 0x140098a4a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14019de40], xmm0
mov dword [0x14019de40], ecx
movups xmmword [0x14019de50], xmm0
mov qword [0x14019de60], rax
mov dword [0x14019de68], eax
jmp 0x140098a5c
lea r8, [0x14019de40]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x14019de60]
xor cl, cl
mov byte [0x14019deb0], cl
mov dword [0x14019de6c], eax
mov dword [0x14019de60], ebp
jmp 0x140098a7f
movzx ecx, byte [0x14019deb0]
movzx eax, cl
lea rbp, [0x14019de70]
cmp ebx, eax
jle 0x140098ad1
nop dword [rax]
test cl, cl
je 0x140098aaf
movzx r8d, cl
mov rdx, rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x14019deb0]
sub ebx, ecx
add rsi, rcx
inc dword [0x14019de60]
lea rdx, [0x14019de30]
mov rcx, rbp
call fcn.1400a40e0
mov cl, 0x40
mov byte [0x14019deb0], cl
cmp ebx, 0x40
jg 0x140098a90
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x14019deb0], bl
jmp 0x140098af5
mov dword [0x14019de30], ebp
test rdi, rdi
je 0x140098b03
mov rcx, rdi
call qword [0x140199b20]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14009efa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x14009f199
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x14009f001
inc dword [rbx + 0x3c]
mov ebp, dword [rbx + 0x3c]
jmp 0x14009f010
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x14009f03d
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, gethostname
mov rcx, rdi
call fcn.1400bb2e0
jmp 0x14009f06b
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], gethostname
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], WSAStartup
mov r9, qword [r9 + 0x68]
call fcn.140101a50
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x14009f0af
mov edx, 5
mov rcx, rdi
call fcn.1400bb350
test eax, eax
jne 0x14009f185
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x34
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x14009f185
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x14009f179
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14009f179
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14009efe0
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400b0a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x1400b0a39
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x1400b0a43
mov rcx, qword [rdx + 0x20]
jmp 0x1400b0a53
cmp al, 0x8b
jne 0x1400b0bd4
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x1400b0bd4
mov dword [r8], 0
cmp byte [rdx], 0x8b
jne 0x1400b0a7a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400e6430
mov eax, dword [rdi + 0x3c]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x3c], eax
test ecx, ecx
jle 0x1400b0bbf
mov qword [rsp + 0x80], rbx
lea rcx, [0x140112e40]
mov qword [rsp + 0x90], rbp
mov edx, 2
mov qword [rsp + 0x50], r15
mov ebp, r13d
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea r13, [fcn.1400b1fb0]
nop dword [rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [r15 + rax + 8]
je 0x1400b0b2d
mov word [rsp + 0x44], dx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
test rbx, rbx
je 0x1400b0b1d
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14012ac00
cmp word [rsp + 0x44], 0
je 0x1400b0b2d
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400efca0
jmp 0x1400b0b6d
mov rsi, qword [rdi]
test rbx, rbx
je 0x1400b0b49
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.1400b0eb0
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x1400b0b5d
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400ee240
test rbx, rbx
je 0x1400b0b6d
mov rdx, rbx
mov rcx, rsi
call fcn.1400f1cf0
inc ebp
lea rcx, [0x140112e40]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x1400b0ae0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400f1410