joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x402bef
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [rsp + 0x18]
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
nop
call fcn.00409320
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045e2e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x402bc0
cmp byte [0x00602b14], 0
je 0x460435
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x45d400
jmp 0x402bc0

Function at 0x460440
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00602de0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00602b14], 0
je 0x460475
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x00603060]
aesenc xmm0, xmmword [0x00603070]
aesenc xmm0, xmmword [0x00603080]
movq rax, xmm0
ret
jmp 0x409520

Function at 0x460480
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00602de0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00602b14], 0
je 0x4604b6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00603060]
aesenc xmm0, xmmword [0x00603070]
aesenc xmm0, xmmword [0x00603080]
movq rax, xmm0
ret
jmp 0x409580

Function at 0x461e00
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x00602fe0]
mov qword [rsp + 8], rdx
lea r8d, [0x00602b2c]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00460380
add rsp, 0x30
ret

Function at 0x462cc0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
call fcn.0045cea0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x462d60
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x90
mov qword [rsp + 0x88], rbp
lea rbp, [rsp + 0x88]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rax
call fcn.0045cfe0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
add rsp, 0x90
ret
Function at 0x478600
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
xor edx, edx
jmp 0x478618
movzx esi, byte [rbx + rdx]
inc rdx
imul eax, eax, 0x1000193
xor eax, esi
cmp rcx, rdx
jg 0x478609
ret
Function at 0x14001b710
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14058cfc0]
jmp 0x1400121d0

Function at 0x14001b720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x14058cfc0]
jmp 0x1400121d0

Function at 0x180024200
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024228
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024228
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a830
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a84d
mov eax, 1
cmp edx, eax
jne 0x18002a8a2
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a89d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140003d90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003dc4
cmp word [rcx], 0x5a4d
jne 0x140003dc4
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003dc4
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dc4
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003cd0
test eax, eax
jne 0x140003de0
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003d40
test rax, rax
je 0x140003dd5
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004598
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004490
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004430
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004904
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x140561678]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x140561674]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004952
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000494a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004a39
inc ebx
add rax, 0x28
jmp 0x14000492a
mov rcx, r12
call fcn.140005131
mov rbp, rax
test rax, rax
jne 0x140004971
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400048a0
movsxd rbx, ebx
mov rax, qword [0x140561678]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.1400051df
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140561678]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400049d3
mov rax, qword [0x140561678]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400048a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004a33
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004a33
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140561678]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004a33
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400048a0
inc dword [0x140561674]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004e60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1405616e0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405616c0]
test rbx, rbx
je 0x140004eac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004ea6
test eax, eax
jne 0x140004ea6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004e7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005060
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005083
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005083
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005084
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400050be
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400050b5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400050c0
inc r8d
add rax, 0x28
jmp 0x14000509c
xor eax, eax
ret

Function at 0x140005131
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055d770]
mov r8, rcx
mov rcx, r9
call fcn.140005060
test eax, eax
je 0x14000515d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005084
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001c18
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov rcx, qword [rdx + 0x10]
movabs r15, 0x7ffffffffffffffe
mov rax, r15
sub rax, rcx
cmp rax, 2
jb 0x140001e0b
mov r9, rdx
cmp qword [rdx + 0x18], 8
jb 0x140001c76
mov r9, qword [rdx]
mov qword [rsp + 0x30], 2
lea rax, [0x14003f3d4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140006f04
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001dc5
lea rdx, [0x14003f3dc]
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140001dab
lea rdx, [0x14003f3e0]
lea rcx, [rbp - 0x24]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140001dab
test byte [rbp - 0x50], 0x10
jne 0x140001dab
mov rcx, qword [rbx + 0x10]
mov rax, r15
sub rax, rcx
cmp rax, 1
jb 0x140001e05
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x140001d1f
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x14003f3e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x70]
call fcn.140006f04
nop
lea rax, [rbp - 0x24]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x140001d4b
lea rdx, [rbp - 0x24]
lea rcx, [rbp - 0x70]
call fcn.140007010
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140006200
nop
lea rcx, [rbp - 0x70]
call fcn.140006790
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001cc2
mov rcx, rsi
jmp 0x140001dc9
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FindClose]
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
lea rcx, [rsp + 0x70]
call fcn.140006790
nop
mov rcx, rbx
call fcn.140006790
mov rax, rdi
mov rbx, qword [rsp + 0x330]
add rsp, 0x300
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140001740
nop
call fcn.140001740
int3
Function at 0x140001e14
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x140001e3b
mov rcx, qword [rcx]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001e7b
mov rcx, rbx
call fcn.140006790
xor eax, eax
jmp 0x140001f03
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x70]
inc rcx
call fcn.14000f45c
mov rbp, rax
mov qword [rsp + 0x20], rdi
mov r9, r14
mov r8d, dword [rsp + 0x70]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001ec9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call fcn.14000f0f0
jmp 0x140001ef8
cmp dword [r14], edi
jbe 0x140001ee6
mov eax, dword [r14]
cmp rax, qword [rsp + 0x70]
jg 0x140001ee6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rbp
jmp 0x140001ef8
mov rcx, rbp
call fcn.14000f0f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rbx
call fcn.140006790
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140001f18
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rbx, rdx
mov rdi, rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r14d
mov rcx, qword [rdx + 0x10]
movabs r12, 0x7ffffffffffffffe
mov rax, r12
sub rax, rcx
cmp rax, 2
jb 0x140002120
mov r9, rdx
cmp qword [rdx + 0x18], 8
jb 0x140001f76
mov r9, qword [rdx]
mov qword [rsp + 0x30], 2
lea rax, [0x14003f3d4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x70]
call fcn.140006f04
nop
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400020da
lea rdx, [0x14003f3dc]
lea rcx, [rbp - 4]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400020c0
lea rdx, [0x14003f3e0]
lea rcx, [rbp - 4]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400020c0
test byte [rbp - 0x30], 0x10
je 0x1400020c0
mov rcx, qword [rbx + 0x10]
mov rax, r12
sub rax, rcx
cmp rax, 1
jb 0x14000211a
mov r9, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000201f
mov r9, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x14003f3e8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x50]
call fcn.140006f04
nop
lea rax, [rbp - 4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r14w
jne 0x14000204b
lea rdx, [rbp - 4]
lea rcx, [rbp - 0x50]
call fcn.140007010
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea rcx, [rbp - 0x50]
call fcn.140006790
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.140006870
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.140006200
nop
lea rcx, [rbp - 0x70]
call fcn.140006790
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001fc2
mov rcx, rsi
jmp 0x1400020de
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FindClose]
movups xmm0, xmmword [rsp + 0x40]
movdqu xmmword [rdi], xmm0
lea rcx, [rsp + 0x70]
call fcn.140006790
nop
mov rcx, rbx
call fcn.140006790
mov rax, rdi
mov rbx, qword [rsp + 0x350]
add rsp, 0x320
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140001740
nop
call fcn.140001740
int3
Function at 0x1400021f4
Capabilities:
Encrypt data using dpapi

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
lea rax, [r11 - 0x18]
mov qword [r11 - 0x20], rdx
mov qword [r11 - 0x38], rax
lea rcx, [r11 - 0x28]
and dword [rsp + 0x28], 0
mov rbx, r9
and qword [r11 - 0x48], 0
xor r9d, r9d
mov dword [r11 - 0x28], r8d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x14000225f
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x140002256
mov r9, qword [rsp + 0x58]
mov rdx, rbx
sub r9, rbx
mov r10d, r8d
mov cl, byte [r9 + rdx]
mov byte [rdx], cl
inc rdx
sub r10, 1
jne 0x140002247
mov byte [r8 + rbx], 0
mov al, 1
jmp 0x140002261
xor al, al
add rsp, 0x60
pop rbx
ret
Function at 0x140003158
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x3c8]
sub rsp, 0x4c0
cmp byte [rdx], 0x76
mov r14, r8
mov rbx, rdx
mov rdi, rcx
jne 0x140003292
mov al, byte [rdx + 1]
mov cl, 0x31
cmp al, cl
jne 0x140003292
cmp byte [rdx + 2], 0x30
je 0x1400031ac
cmp al, cl
jne 0x140003292
cmp byte [rdx + 2], cl
jne 0x140003292
and dword [rbp + 0x3d8], 0
lea rcx, [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 0x58]
call fcn.1400117d0
lea rax, [rbx + 3]
mov dword [rsp + 0x60], 0x58
mov qword [rsp + 0x68], rax
lea rcx, [rbx - 0x10]
movsxd rax, dword [rdi + 0xc0]
add rcx, rax
mov dword [rsp + 0x64], 1
mov qword [rbp - 0x78], rcx
mov ecx, 0x3ccd
mov dword [rsp + 0x70], recv
mov dword [rbp - 0x70], reloc.WS2_32.dll_recv
call fcn.14000f45c
and dword [rsp + 0x48], 0
lea rcx, [rbp + 0x3d8]
mov r8d, dword [rdi + 0xc0]
lea rdx, [rbx + 0xf]
mov qword [rsp + 0x40], rcx
lea r9, [rsp + 0x60]
mov rcx, qword [rdi + 0xb8]
sub r8d, 0x1f
mov dword [rsp + 0x38], 0x400
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov qword [rdi + 0xc8], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
cmp dword [rbp + 0x3d8], 0x2710
ja 0x1400032a6
mov edx, dword [rbp + 0x3d8]
mov rcx, qword [rdi + 0xc8]
mov byte [rdx + rcx], 0
mov rcx, r14
mov rdx, qword [rdi + 0xc8]
call fcn.14000154c
mov rcx, qword [rdi + 0xc8]
call fcn.14000f0f0
jmp 0x1400032c3
mov r8d, dword [rdi + 0xc0]
lea r9, [rbp - 0x40]
call fcn.1400021f4
test al, al
jne 0x1400032aa
xor al, al
jmp 0x1400032c5
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400010d4
mov rdx, rax
mov rcx, r14
call fcn.1400014b4
mov al, 1
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400092d4
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov r12, rcx
cmp qword [rdx + 0x18], 8
jb 0x140009304
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.14000b6a4
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rdx + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x2c], edx
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x40], 6
je 0x14000934f
or rbx, 0xffffffffffffffff
jmp 0x140009485
mov ecx, 0x10000
call fcn.14000f45c
mov r15, rax
xor r14b, r14b
mov esi, 0x9fc00
mov eax, 0x1000
mov edi, 0x10000
cmp rsi, rdi
cmovl edi, esi
xor ebx, ebx
test edi, edi
jle 0x1400093a8
mov r8d, edi
sub r8d, ebx
cmp r8d, eax
cmovg r8d, eax
movsxd rdx, ebx
add rdx, r15
xor r9d, r9d
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x1400093dc
add ebx, eax
cmp ebx, edi
mov eax, 0x1000
jl 0x14000937a
test ebx, ebx
js 0x1400093dc
movsxd rbx, ebx
mov r8, rbx
mov rdx, r15
lea rcx, [rsp + 0x30]
call fcn.14000ae18
mov rdx, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
test byte [rcx + rdx + 0x10], 6
jne 0x1400093dc
sub rsi, rbx
mov eax, 0x1000
jne 0x140009369
jmp 0x1400093df
mov r14b, 1
mov rcx, r15
call fcn.14000f0f0
cmp qword [rbp - 0x48], 0
je 0x14000943b
mov rax, qword [rsp + 0x50]
lea rcx, [rbp - 0x58]
cmp qword [rax], rcx
jne 0x140009417
mov rdx, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x78]
mov dword [rax], edx
lea rdi, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.14000b524
neg al
sbb rbx, rbx
and rbx, rdi
mov rcx, qword [rbp - 0x48]
call fcn.140016e04
test eax, eax
je 0x14000943d
xor ebx, ebx
mov edi, 2
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14000b5cc
test rbx, rbx
jne 0x140009471
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
mov edx, edi
call fcn.14000b99c
neg r14b
sbb rbx, rbx
and rbx, 0xfffffffffff603fd
add rbx, 0x9fc00
lea rcx, [rbp - 0x28]
call fcn.14000ad98
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x28], rax
lea rcx, [rbp - 0x28]
call fcn.14000e824
nop
mov rax, rbx
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret