joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401c3f80
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x68], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x1401c5310
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401c5483
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401c5347
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401c5448
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401c5466
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1401c53a9
mov eax, dword [rsp + 0x2c]
mov ecx, 2
test rax, rax
je 0x1401c53ee
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1401c53f2
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1401c53f6
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1401c5425
lea rax, [rsp + 0x30]
jmp 0x1401c5404
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401c542b
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1401b0aa0
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
cmp rcx, 2
jne 0x1401c5435
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
test rcx, rcx
jne 0x1401c5392
mov ecx, 1
jmp 0x1401c539c
mov r8d, 0x10
mov rcx, rbx
call fcn.140224650
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x1401c5354
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140224650
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401c5354
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140224600
int3
Function at 0x1401c9740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1401cba80
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne case.0x1401c2f76.129
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
jmp 0x1401c97aa
mov rdx, qword [rsp + 0x50]
Function at 0x1401cb090
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14035fbc1]
mov ecx, 0x10
mov edx, 8
call fcn.140026090
test rax, rax
je 0x1401cb16f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401cb220]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401cb161
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401cb138
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400260a0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.1400260a0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140225a80
ud2

Function at 0x1401cda80
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x200
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rsp + 0x26], ax
mov rax, qword [0x14035fd20]
cmp rax, 3
jne 0x1401cdb8e
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
ja 0x1401cdbb0
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r8, rdi
call fcn.14021a580
mov byte [rsp + rdi + 0x80], 0
inc rdi
lea rcx, [rsp + 0x38]
mov rdx, rbx
mov r8, rdi
call fcn.1401da5b0
cmp qword [rsp + 0x38], 0
je 0x1401cdb12
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401cdb80
mov rcx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401cdb65
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401cdb79
mov rax, qword [rsp + 0x28]
movzx ecx, word [rsp + 0x26]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x200
pop rbx
pop rdi
pop rsi
ret
mov rbx, rdx
call fcn.140224ae0
mov rdx, rbx
lea rax, [rsp + 0x26]
mov qword [rsp + 0x30], rax
cmp rdi, 0x17f
jbe 0x1401cdac8
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8, rdi
call fcn.140224b50
jmp 0x1401cdb80
Function at 0x1401cdbd0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov eax, 1
test rcx, rcx
jne 0x1401cdc83
mov rax, qword [0x14035fd20]
cmp rax, 3
jne 0x1401cdcab
mov rsi, rdx
mov rcx, rdx
mov edx, 1
call fcn.1401c3360
test rax, rax
je 0x1401cdc11
mov eax, 1
jmp 0x1401cdc83
cmp word [rsi], 0
je 0x1401cdc33
movups xmm0, xmmword [rsi + 4]
mov eax, dword [rsi + 0x14]
mov r9d, dword [rsi + 0x18]
movzx ecx, word [rsi + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x1401cdc48
mov eax, dword [rsi + 2]
movzx ecx, word [rsi + 6]
mov r8d, 0x10
mov r10w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x2c], r10w
mov word [rsp + 0x2e], cx
mov dword [rsp + 0x30], eax
movups xmmword [rsp + 0x34], xmm0
mov dword [rsp + 0x44], r9d
lea rax, [rsp + 0x2c]
mov rsi, rdx
mov rcx, rdx
mov rdx, rax
call qword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401cdc8a
xor eax, eax
mov rdx, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rdx, rdi
jmp 0x1401cdc0a
mov rsi, rdx
call fcn.140224ae0
mov rdx, rsi
jmp 0x1401cdbf5

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

Disassembly:
push rsi
sub rsp, 0xb0
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x2c], 0x80
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1401cdeb0
mov eax, dword [rsp + 0x2c]
movzx ecx, word [rsp + 0x30]
cmp ecx, 2
je 0x1401cdec0
cmp ecx, 0x17
jne 0x1401cdee7
cmp eax, 0x1b
jbe 0x1401cdf00
movzx eax, word [rsp + 0x32]
rol ax, 8
movups xmm0, xmmword [rsp + 0x38]
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x48]
mov word [rsi], 1
movups xmmword [rsi + 4], xmm0
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
add rsp, 0xb0
pop rsi
ret
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401cdeee
cmp eax, 0xf
jbe 0x1401cdf18
movzx eax, word [rsp + 0x32]
rol ax, 8
mov ecx, dword [rsp + 0x34]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
add rsp, 0xb0
pop rsi
ret
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb0
pop rsi
ret
lea rcx, str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___
lea r8, str.8t._
mov edx, 0x43
call fcn.140225d70
lea rcx, [0x1402e7459]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in___
mov edx, 0x42
call fcn.140225d70
int3
Function at 0x1401e2290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401e230a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401e2300
cmp r11, r10
ja 0x1401e2395
cmp r10, rdx
ja 0x1401e23a7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401e2302
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401e22e0
jmp 0x1401e2377
ja 0x1401e230a
mov r11, r10
cmp rax, r8
jne 0x1401e22b2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401e237b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401e2350
mov r8, r10
sub ecx, r9d
jns 0x1401e236e
jmp 0x1401e237d
cmp r10, rdx
je 0x1401e2389
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401e237d
xor al, 1
cmp r8, rdx
jne 0x1401e2330
jmp 0x1401e237d
xor eax, eax
jmp 0x1401e237d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140225c60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140226200
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1402261f0
int3
Function at 0x1401e6bc0
Capabilities:
Get socket status

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x14035f0c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
xor ebp, ebp
lea rdx, [rsp + 0x30]
mov dword [rcx + 0x258], ebp
mov rbx, rcx
call fcn.1401eea70
test eax, eax
jne 0x1401e6d51
mov eax, dword [rsp + 0x30]
mov edx, 0x3e8
mov r8d, dword [rbx + 0x98]
imul ecx, eax, 0x3e8
mov qword [rsp + 0x4a0], rdi
mov edi, dword [rbx + 0x244]
test edi, edi
cmove ecx, edx
test r8d, r8d
jle 0x1401e6c7f
test eax, eax
je 0x1401e6c34
cmp ecx, r8d
jle 0x1401e6c7f
xor ecx, ecx
call fcn.140203ffc
mov rdx, rsi
mov rcx, rax
call fcn.14020411c
mulsd xmm0, qword [0x1402d9030]
mov ecx, dword [rbx + 0x98]
cvttsd2si eax, xmm0
cmp eax, ecx
jle 0x1401e6c75
lea r8, str.API_timeout_expired
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e6d49
sub ecx, eax
mov r8d, 1
jmp 0x1401e6c88
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 rcx, qword [rbx + 0x238]
mov dword [rsp + 0x3c], eax
test dil, 1
je 0x1401e6cd4
mov qword [rsp + 0x48], rcx
lea r11, [rsp + 0x40]
mov dword [rsp + 0x40], 1
test dil, 2
je 0x1401e6cf5
mov qword [rsp + 0x258], rcx
lea r10, [rsp + 0x250]
mov dword [rsp + 0x250], 1
test r8d, r8d
lea rax, [rsp + 0x38]
mov r8, r10
mov rdx, r11
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 0x1401e6d2f
lea r8, str.Timed_out_waiting_on_socket
mov rcx, rbx
lea edx, [rax - 9]
call fcn.1401ebf70
jmp 0x1401e6d49
jns 0x1401e6d47
lea r8, str.Error_waiting_on_socket
mov edx, 0xfffffff7
mov rcx, rbx
call fcn.1401ebf70
jmp 0x1401e6d49
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401fdc80
add rsp, 0x470
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401ec520
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r9, r9
je 0x1401ec5f4
cmp r9, 0x40
jb 0x1401ec5d3
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r9
add rax, r9
cmp rcx, rax
ja 0x1401ec552
cmp r11, r8
jae 0x1401ec5d3
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x1401ec563
cmp r11, rdx
jae 0x1401ec5d3
mov rax, r9
and rax, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r10, 0x40
movdqu xmm1, xmmword [rdx]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [rdx + 0x20]
xorps xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x30]
add r8, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [rdx + 0x30]
add rdx, 0x40
xorps xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp r10, rax
jb 0x1401ec570
cmp r10, r9
jae 0x1401ec5f4
sub rdx, rcx
sub r8, rcx
sub r9, r10
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor al, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x1401ec5e0
ret

Function at 0x1401f1710
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1401f17ac
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1401f177c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_ReadFile]
jmp 0x1401f178d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1401f17cb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1401f1750
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1401f17e8
cmp eax, 0x3e5
je 0x1401f17ef
mov eax, 0xffffffff
jmp 0x1401f17b2
cmp eax, 0x3e4
jne 0x1401f17e1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1401f17b2
Function at 0x1401f1800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, r9
xor r15d, r15d
mov r9, qword [r9]
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp r9, r8
jae 0x1401f189c
mov rax, r9
lea rbp, [rcx + 0x68]
nop word [rax + rax]
mov rcx, qword [rbx + 0x88]
cmp dword [rbx + 0x90], r15d
jne 0x1401f186c
mov r8d, esi
mov qword [rsp + 0x20], rbp
sub r8d, r9d
lea rdx, [rax + r14]
lea r9, [rsp + 0x60]
call qword [sym.imp.kernel32.dll_WriteFile]
jmp 0x1401f187d
xor r9d, r9d
lea r8, [rsp + 0x60]
mov rdx, rbp
call qword [sym.imp.kernel32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [rsp + 0x60]
add qword [rdi], rax
test ecx, ecx
je 0x1401f18bb
mov dword [rbx + 0x90], r15d
mov rax, qword [rdi]
mov r9d, eax
cmp rax, rsi
jb 0x1401f1840
mov qword [rdi], r15
mov eax, r9d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
cmp dword [rbx + 0x90], r15d
jne 0x1401f18d8
cmp eax, 0x3e5
je 0x1401f18df
mov eax, 0xffffffff
jmp 0x1401f18a2
cmp eax, 0x3e4
jne 0x1401f18d1
mov dword [rbx + 0x90], 1
mov eax, 0xffffffdb
jmp 0x1401f18a2
Function at 0x1401f2740
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1401f2977
test rdx, rdx
je 0x1401f2977
test r8, r8
je 0x1401f2977
test rbx, rbx
je 0x1401f2977
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
call fcn.140203764
mov r15, rax
test rax, rax
je 0x1401f2977
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r14 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r12
xor r12d, r12d
mov qword [rax + 0x10], r12
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r14 + 8]
add rcx, rax
mov rdx, qword [r14]
call fcn.14021a580
mov ecx, dword [r14 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, r15
mov rdx, qword [rbx]
call fcn.14021a580
mov rcx, qword [0x140360ff8]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r12d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x50], r12d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x1401f2960
mov r8d, dword [rsi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rsi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401f2956
mov ebx, dword [rsp + 0x90]
cmp ebx, dword [rdi + 8]
je 0x1401f28a7
mov rcx, qword [rdi]
mov edx, ebx
call fcn.140204114
test rax, rax
je 0x1401f2951
mov dword [rdi + 8], ebx
mov ebx, dword [rsp + 0x90]
mov qword [rdi], rax
mov eax, dword [rsi + 8]
cmp eax, ebx
jbe 0x1401f28b7
mov ebx, eax
mov dword [rsp + 0x90], eax
mov ecx, ebx
call fcn.140203764
mov rbp, rax
test rax, rax
je 0x1401f2951
mov r9d, dword [rsi + 8]
mov rcx, rax
mov r8, qword [rsi]
mov edx, dword [rsp + 0x90]
call fcn.1401f4bf0
mov ecx, dword [rdi + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call sub.bcrypt.dll_BCryptEncrypt
mov rcx, rbp
mov ebx, eax
call fcn.140204100
test ebx, ebx
js 0x1401f2956
mov esi, dword [rsp + 0x50]
cmp esi, dword [rdi + 8]
je 0x1401f2956
mov rcx, qword [rdi]
mov edx, esi
call fcn.140204114
test rax, rax
je 0x1401f2956
mov qword [rdi], rax
mov dword [rdi + 8], esi
jmp 0x1401f2956
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, r15
call fcn.140204100
mov r12, qword [rsp + 0x98]
sar ebx, 0x1f
mov eax, ebx
jmp 0x1401f297c
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f2a80
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov ebp, dword [rdx + 0x10]
mov r14, r9
mov r13, qword [rsp + 0xa0]
mov eax, r8d
mov rdi, rcx
test ebp, ebp
je 0x1401f2ab4
mov r15, qword [rcx + 0x18]
jmp 0x1401f2ab7
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x1401f2b09
test ebp, ebp
jne 0x1401f2b09
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x1401f2b49
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401f2c61
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.140203764
mov rsi, rax
test rax, rax
je 0x1401f2c54
cmp dword [rsp + 0x90], 0
jne 0x1401f2bc6
test ebp, ebp
jne 0x1401f2bc6
mov ecx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rdi + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x1401f2c09
mov rcx, qword [rdi]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0xa0]
mov rdx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x1401f2c4a
mov rcx, r14
test ebp, ebp
je 0x1401f2c3a
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.1401ec520
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.1401ebdb0
mov rcx, rsi
call fcn.140204100
jmp 0x1401f2c59
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.14021a580
mov rcx, rsi
call fcn.140204100
jmp 0x1401f2c59
mov ebx, 0xc0000017
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
sar ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x1401f3a80
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
sar eax, 0x1f
add rsp, 0x28
ret