joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7758bac40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a8]
add rdx, 0x5d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x7ff7758bac8b
cmp qword [rdx + 0xa0], 0
je 0x7ff7758bac8b
xor r9d, r9d
lea r8, [0x7ff77590da88]
call fcn.7ff7758de720
test eax, eax
jne 0x7ff7758bac95
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x6c6], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.7ff7758ba890
add rsp, 0x20
pop rbx
ret

Function at 0x7ff7758baf50
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x7ff7758baf90
lea rdx, [0x7ff77590de08]
call fcn.7ff7758a5090
lea eax, [rdi + 0x11]
jmp 0x7ff7758bb0f5
cmp edx, 0xc8
je 0x7ff7758bafa7
mov r8d, edx
lea rdx, [0x7ff77590de28]
call fcn.7ff7758a5180
cmp sil, 0x13
jne 0x7ff7758bafbd
mov rdx, rbp
mov rcx, rbx
call fcn.7ff7758bae50
jmp 0x7ff7758bb0f1
cmp sil, 0x14
jne 0x7ff7758bb0d3
cmp byte [rbx + 0x6f8], 2
mov rbp, qword [rbx + 0x20]
jne 0x7ff7758bb03b
mov rax, qword [rbx + 0x1a8]
mov rcx, qword [rax]
test rcx, rcx
je 0x7ff7758bb03b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.7ff77588f510
test eax, eax
jne 0x7ff7758bb0f1
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x7ff7758bb030
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x7ff7758bb03b
mov rcx, qword [rsp + 0x40]
call qword [fcn.7ff7759015f4]
mov rdx, qword [rbx + 0x750]
test rdx, rdx
jne 0x7ff7758bb060
cmp byte [rbx + 0x137b], 0
lea rax, [0x7ff77590da58]
lea rdx, [0x7ff77590cb2c]
cmovne rdx, rax
lea r8, [0x7ff7759204a1]
test rdi, rdi
mov r9, r8
lea rax, [0x7ff775905f64]
cmovne r9, rdi
lea rcx, [0x7ff775906ad4]
cmovne r8, rax
call fcn.7ff7758902c0
mov rcx, rdi
mov rsi, rax
call qword [fcn.7ff7759015f4]
test rsi, rsi
jne 0x7ff7758bb09e
lea edi, [rsi + 0x1b]
jmp 0x7ff7758bb0f3
lea rdx, [rbp + 0x5d0]
mov r9, rsi
lea r8, [0x7ff7759072b4]
mov rcx, rbx
call fcn.7ff7758de720
mov rcx, rsi
mov edi, eax
call qword [fcn.7ff7759015f4]
test edi, edi
jne 0x7ff7758bb0f3
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x6c6], 0x1f
jmp 0x7ff7758bb0f3
cmp sil, 0x15
jne 0x7ff7758bb0de
mov r8b, 0xd
jmp 0x7ff7758bb0e7
cmp sil, 0x16
jne 0x7ff7758bb0f3
mov r8b, 0xe
mov dl, 1
mov rcx, rbx
call fcn.7ff7758ba9b0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x7ff7758c8050
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7ff77592e900]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x7ff7758c81de
inc rsi
lea rdx, [0x7ff775907028]
mov rcx, rsi
sub rdi, 2
call qword [sym.imp.ucrtbase.dll_strspn]
cmp rdi, rax
je 0x7ff7758c8156
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rdi, rax
jne 0x7ff7758c81de
xor ebp, ebp
lea rdx, [0x7ff77590fe78]
lea rcx, [r14 + 1]
lea rbx, [r14 + 1]
lea r8d, [rbp + 2]
call qword [sym.imp.ucrtbase.dll_strncmp]
test eax, eax
jne 0x7ff7758c80e4
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x7ff7758c80e4
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x7ff7758c81de
mov rcx, rbp
cmp al, 0x5d
je 0x7ff7758c810f
cmp rcx, 0xf
jge 0x7ff7758c810f
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x7ff7758c80f2
test ebp, ebp
je 0x7ff7758c81de
cmp byte [rbx], 0x5d
jne 0x7ff7758c81de
movsxd rax, ebp
cmp rax, 0x10
jae 0x7ff7758c81ff
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x7ff775898400.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x7ff7758c8150
mov eax, 7
jmp 0x7ff7758c81e3
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi + rsi], 0
mov rdx, rsi
mov ecx, 0x17
call qword [sym.imp.ws2_32.dll_inet_pton]
cmp eax, 1
jne 0x7ff7758c81de
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.ws2_32.dll_inet_ntop
test rax, rax
je 0x7ff7758c81d6
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x7ff7758c81a0
cmp rdx, rdi
jae 0x7ff7758c81d6
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x7ff7758c81c0
mov rdi, rdx
mov byte [rdx + rsi + 1], al
mov byte [rdi + rsi], 0x5d
xor eax, eax
jmp 0x7ff7758c81e3
mov eax, 0x16
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7ff7759004e0
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.7ff775900e48
int3
Function at 0x7ff7758c9240
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.ws2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x7ff7758c93de
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x7ff7758c93be
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x7ff7758c92ae
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff7758c92a0
inc rbx
jmp 0x7ff7758c92b0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x7ff7758c92bd
lea ebp, [rax + 0xe]
jmp 0x7ff7758c92c9
cmp eax, 0x17
jne 0x7ff7758c9361
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x7ff7758c9361
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x7ff7758c9361
cmp rax, rbp
jb 0x7ff7758c9361
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [sub.ucrtbase.dll_malloc]
mov r14, rax
test rax, rax
je 0x7ff7758c9370
mov ecx, dword [rsi]
mov r8, rbp
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
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x7ff7758c934e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x7ff7758c935e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x7ff7758c9290
jmp 0x7ff7758c9376
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff7758c9390
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
test r12d, r12d
je 0x7ff7758c93b9
test rdi, rdi
je 0x7ff7758c93b5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.7ff7759015f4]
mov rdi, rbx
test rbx, rbx
jne 0x7ff7758c93a0
xor edi, edi
jmp 0x7ff7758c93cd
test rdi, rdi
jne 0x7ff7758c93cd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.ws2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret
Function at 0x7ff7758d09c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
test rax, rax
je 0x7ff7758d09f7
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x7ff7758d1950
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov r14, r8
mov rdi, rdx
mov r15, rcx
lea rdx, [0x7ff77590f160]
mov r8d, 0x11
mov rcx, r9
mov rbx, r9
call fcn.7ff77588fc60
test eax, eax
je 0x7ff7758d199b
mov ebp, dword [rdi + 0x150]
cmp ebp, 0x191
je 0x7ff7758d19c2
mov r8d, 0x13
lea rdx, [0x7ff77590f178]
mov rcx, rbx
call fcn.7ff77588fc60
test eax, eax
je 0x7ff7758d1a1d
mov ebp, dword [rdi + 0x150]
cmp ebp, 0x197
jne 0x7ff7758d1a1d
mov rcx, rbx
call fcn.7ff7758befd0
mov rsi, rax
test rax, rax
jne 0x7ff7758d19da
lea eax, [rsi + 0x1b]
jmp 0x7ff7758d1be1
mov r9, rbx
lea r8, [0x7ff775910bf8]
mov rdx, r15
mov rcx, rdi
call fcn.7ff7758a5220
cmp ebp, 0x197
mov r8, rsi
mov rcx, rdi
sete dl
call fcn.7ff7758c1020
mov rcx, rsi
mov ebx, eax
call qword [fcn.7ff7759015f4]
test ebx, ebx
je 0x7ff7758d1bdf
mov eax, ebx
jmp 0x7ff7758d1be1
mov r8d, 0xf
lea rdx, [0x7ff77590ea98]
mov rcx, rbx
call fcn.7ff77588fc60
test eax, eax
je 0x7ff7758d1a78
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x7ff7758d1a5d
lea rdx, [0x7ff775910c18]
mov rcx, rdi
call fcn.7ff7758a5180
jmp 0x7ff7758d1bdf
xor edx, edx
lea r9, [r14 + 0xc8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.7ff7758ad990
jmp 0x7ff7758d1bdf
lea r9, [0x7ff7759078e0]
mov qword [rsp + 0x20], 5
mov r8d, 0xb
lea rdx, [0x7ff77590eaa8]
mov rcx, rbx
call fcn.7ff7758bef00
test al, al
jne 0x7ff7758d1bd7
mov r8d, 0x12
lea rdx, [0x7ff77590eab8]
mov rcx, rbx
call fcn.7ff77588fc60
test eax, eax
je 0x7ff7758d1b36
mov r8d, dword [rdi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x7ff7758d1ae5
lea rdx, [0x7ff775910c50]
mov rcx, rdi
call fcn.7ff7758a5180
jmp 0x7ff7758d1bdf
lea r9, [0x7ff775906ef0]
mov qword [rsp + 0x20], 7
mov r8d, 0x12
lea rdx, [0x7ff77590eab8]
mov rcx, rbx
call fcn.7ff7758bef00
test al, al
je 0x7ff7758d1bdf
lea rdx, [0x7ff775910c88]
mov rcx, rdi
call fcn.7ff7758a5180
mov rcx, rdi
mov byte [r14 + 0xd4], 1
call fcn.7ff7758cf300
jmp 0x7ff7758d1bdf
lea r9, [0x7ff7759078e0]
mov qword [rsp + 0x20], 5
mov r8d, 0x11
lea rdx, [0x7ff77590f080]
mov rcx, rbx
call fcn.7ff7758bef00
test al, al
jne 0x7ff7758d1bd7
mov r8d, 7
lea rdx, [0x7ff775910ca8]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_strncmp]
test eax, eax
jne 0x7ff7758d1bdf
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x7ff7758d1bdf
cmp byte [rbx + 8], 0x20
jne 0x7ff7758d1bdf
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x7ff7758d1bdf
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x7ff7758d1bdf
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x7ff7758d1bdf
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x7ff7758d1bdf
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rdi + 0x150], ecx
mov dword [rdi + 0x1394], ecx
jmp 0x7ff7758d1bdf
mov byte [r14 + 0xd5], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x7ff7758d5a80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x7ff77592f600]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x7ff7758d5ae4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.7ff7758d78c0
test al, al
je 0x7ff7758d5ad8
mov dword [0x7ff77592f600], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x7ff77592f600], 1
jmp 0x7ff7758d5ae9
cmp eax, 2
je 0x7ff7758d5b3b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_getsockopt]
test eax, eax
jne 0x7ff7758d5b1a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x7ff7758d5b3b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x7ff7758d6740
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x7ff77592e900]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.ws2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x7ff7758d67e1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x7ff7758d67a5
mov dword [rsi], 0x51
jmp 0x7ff7758d67da
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.7ff7758ab7d0
mov rcx, qword [rdi + 8]
lea rdx, [0x7ff775911c00]
mov r8, rax
call fcn.7ff7758a5090
mov rax, qword [rdi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rsi], 0x38
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, [0x7ff775911c18]
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.7ff7758a5220
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff7759004e0
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x7ff77592e900]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x7ff7758d6963
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.ws2_32.dll_getsockname]
test eax, eax
je 0x7ff7758d68f1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.7ff7758ab7d0
mov r9, rax
lea rdx, [0x7ff775911b50]
mov r8d, ebx
mov rcx, rsi
call fcn.7ff7758a5090
mov eax, 2
jmp 0x7ff7758d6965
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.7ff7758a6440
test al, al
jne 0x7ff7758d6963
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.ucrtbase.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.ucrtbase.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.7ff7758ab7d0
mov r8d, dword [rdi]
lea rdx, [0x7ff775911cc8]
mov r9, rax
mov rcx, rsi
call fcn.7ff7758a5090
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x7ff7758d6965
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.7ff7759004e0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x7ff7758d8840
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 [0x7ff77592e900]
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.7ff77588f7a0
mov r13, rax
test rax, rax
jne 0x7ff7758d88be
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff7758ab910
mov r9, rax
lea rdx, [0x7ff7759123d8]
mov r8, r12
mov rcx, r15
call fcn.7ff7758a5090
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.7ff7759015f4]
jmp 0x7ff7758d8a79
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.kernel32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7758d8931
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff7758ab910
mov r9, rax
lea rdx, [0x7ff775912410]
mov r8, r12
mov rcx, r15
call fcn.7ff7758a5090
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x7ff7758d8a62
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x7ff7758d897a
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff7758ab910
mov r9, rax
lea rdx, [0x7ff775912440]
mov r8, r12
mov rcx, r15
call fcn.7ff7758a5090
mov ebx, 0x4d
jmp 0x7ff7758d8a56
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x7ff7758d89af
mov r8d, 0x100000
lea rdx, [0x7ff775912478]
mov rcx, r15
call fcn.7ff7758a5090
mov ebx, 0x4d
jmp 0x7ff7758d8a4e
lea rcx, [rdi + 1]
call qword [sub.ucrtbase.dll_malloc]
mov rbp, rax
test rax, rax
jne 0x7ff7758d89c9
lea ebx, [rax + 0x1b]
jmp 0x7ff7758d8a4e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x7ff7758d8a28
nop word [rax + 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 0x7ff7758d8a9b
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x7ff7758d8a1f
mov edi, esi
jmp 0x7ff7758d8a21
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x7ff7758d89e0
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.7ff7758d85c0
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.7ff7759015f4]
mov rcx, r13
call qword [sym.imp.ucrtbase.dll_free]
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.7ff7759004e0
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.7ff7758ab910
mov r9, rax
lea rdx, [0x7ff7759124a8]
mov r8, r12
mov rcx, r15
call fcn.7ff7758a5090
mov ebx, 0x4d
jmp 0x7ff7758d8a46
Function at 0x7ff7758e57d0
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 [sub.ucrtbase.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x7ff7758e5813
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 0x7ff7758e5860
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 + 0x10]
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 0x7ff7758e58c2
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 0x7ff7758e5880
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x7ff7758e5901
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x7ff77591465a]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x7ff77591465b]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x7ff7758e58d0
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 0x7ff7758e5af0
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 [0x7ff77592e900]
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 0x7ff7758e5b3c
mov eax, 0x1b
jmp 0x7ff7758e5c0e
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 0x7ff7758e5b80
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x7ff7758e5c0e
mov rcx, rbp
call fcn.7ff77588fd10
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 dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.advapi32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x7ff7758e5bea
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 0x7ff7758e5bfa
call qword [sym.imp.advapi32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x7ff7758e5c0c
xor edx, edx
call qword [sym.imp.advapi32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7ff7759004e0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x7ff7758e5c30
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x7ff7758e5c95
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 0x7ff7758e5c40
ret