joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f7fe0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push rbx
mov eax, 0xd0
call fcn.140144180
sub rsp, rax
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0x40
test eax, eax
je 0x1400f8072
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400f8065
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x1400f8056
addsd xmm2, qword [0x1401cf530]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.140080e90
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, reloc.WS2_32.dll_shutdown
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400f80e2
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400f80d5
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x1400f80c6
addsd xmm2, qword [0x1401cf530]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.140080e90
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1400f811d
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400f8102
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x1400f811d
xorps xmm2, xmm2
lea rcx, [rsp + 0x40]
mov edx, 8
call fcn.140080e90
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1400f8139
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 4
mov dword [rsp + 0x38], eax
call fcn.140080e90
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm2, qword [0x1401a8ef0]
lea rcx, [rsp + 0x48]
mov edx, 0x38
call fcn.140080e90
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm2, qword [0x1401a8ef0]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov dword [rsp + 0x3c], eax
call fcn.140080e90
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401439f0
add rsp, 0xd0
pop rbx
ret
Function at 0x140101d30
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x50]
mov eax, 0x150
call fcn.140144180
sub rsp, rax
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rbp + 0x40], rax
movups xmm2, xmmword [rdx]
mov rbx, rcx
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rdx + 0x10]
lea rdx, [rbp - 0x10]
movd eax, xmm2
movups xmmword [rbp], xmm0
and al, 0xf8
psrldq xmm0, 8
movups xmmword [rbp - 0x10], xmm2
mov byte [rbp - 0x10], al
movq rax, xmm0
shr rax, 0x38
and al, 0x3f
or al, 0x40
mov byte [rbp + 0xf], al
call fcn.1401044d0
mov ecx, dword [rsp + 0x78]
mov edx, dword [rbp - 0x60]
mov r8d, dword [rbp - 0x3c]
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rsp + 0x7c]
mov dword [rbp + 0x18], edx
mov edx, dword [rbp - 0x5c]
mov dword [rbp - 0x10], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x80]
mov dword [rbp + 0x1c], edx
mov edx, dword [rbp - 0x58]
mov dword [rbp - 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x7c]
mov dword [rbp + 0x20], edx
mov edx, dword [rbp - 0x54]
mov dword [rbp - 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x78]
mov dword [rbp + 0x24], edx
mov edx, dword [rbp - 0x50]
mov dword [rbp - 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x74]
mov dword [rbp + 0x28], edx
mov edx, dword [rbp - 0x4c]
mov dword [rbp], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x70]
mov dword [rbp + 0x2c], edx
mov edx, dword [rbp - 0x48]
mov dword [rbp + 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x6c]
mov dword [rbp + 0x30], edx
mov edx, dword [rbp - 0x44]
mov dword [rbp + 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x68]
mov dword [rbp + 0x34], edx
mov edx, dword [rbp - 0x40]
mov dword [rbp + 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov dword [rbp + 0x38], edx
lea rcx, [rsp + 0x20]
mov edx, dword [rbp - 0x64]
mov dword [rbp + 0x10], eax
lea eax, [rdx + r8]
sub r8d, edx
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x3c], r8d
mov dword [rbp + 0x14], eax
call fcn.140102310
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.140102590
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.140103bc0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1401439f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rbp
ret
Function at 0x14011aae0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
mov eax, 0x28
call fcn.140144180
sub rsp, rax
mov qword [rsp + 0x58], rbx
mov rsi, rdx
mov rbx, qword [rsp + 0x78]
mov r14, r9
mov qword [rsp + 0x60], r12
mov rdi, rcx
shl rsi, 5
mov r12, rdx
mov qword [rsp + 0x68], r13
mov r13, r8
test rsi, rsi
je 0x14011ab5e
mov r9, rsi
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
mov dword [rbx], eax
movzx eax, byte [rcx - 3]
shl eax, 8
or dword [rbx], eax
movzx eax, byte [rcx - 2]
shl eax, 0x10
or dword [rbx], eax
movzx eax, byte [rcx - 1]
shl eax, 0x18
or dword [rbx], eax
add rbx, 4
sub r9, 1
jne 0x14011ab30
mov qword [rsp + 0x20], r15
cmp r13, 1
jbe 0x14011ab8e
mov rbp, r12
lea r15, [r8 - 1]
shl rbp, 7
mov rdx, rbx
mov r8, r12
sub rdx, rbp
mov rcx, rbx
call fcn.14011a670
add rbx, rbp
sub r15, 1
jne 0x14011ab74
mov rdx, r13
mov r8, r12
shl rdx, 7
mov rcx, r14
add rdx, 0xffffffffffffff80
imul rdx, r12
add rdx, qword [rsp + 0x78]
call fcn.14011a670
xor ebp, ebp
test r13, r13
je 0x14011acb4
mov rbx, qword [rsp + 0x70]
mov rdi, r12
shl rdi, 7
mov r15, r13
nop word [rax + rax]
mov eax, dword [rdi + r14 - 0x40]
xor edx, edx
div r13
mov eax, edx
imul rax, r12
shl rax, 7
add rax, qword [rsp + 0x78]
test rsi, rsi
je 0x14011ac97
cmp rsi, 8
jb 0x14011ac6b
lea rcx, [rsi - 1]
mov r8, rbp
lea rcx, [rax + rcx*4]
lea rdx, [rbx - 4]
lea rdx, [rdx + rsi*4]
cmp rbx, rcx
ja 0x14011ac15
cmp rdx, rax
jae 0x14011ac6b
lea rcx, [r14 - 4]
lea rcx, [rcx + rsi*4]
cmp rbx, rcx
ja 0x14011ac27
cmp rdx, r14
jae 0x14011ac6b
mov rdx, r14
lea rcx, [rbx + 0x10]
sub rdx, rbx
movdqu xmm0, xmmword [rax]
add r8, 8
lea rax, [rax + 0x20]
movdqu xmm1, xmmword [rdx + rcx - 0x10]
lea rcx, [rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm1, xmmword [rdx + rcx - 0x20]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp r8, rsi
jb 0x14011ac31
jmp 0x14011ac97
mov r9, r14
mov rdx, rbx
sub r9, rbx
mov r8, rsi
nop word [rax + rax]
mov ecx, dword [rdx + r9]
lea rdx, [rdx + 4]
xor ecx, dword [rax]
lea rax, [rax + 4]
mov dword [rdx - 4], ecx
sub r8, 1
jne 0x14011ac80
mov r8, r12
mov rdx, rbx
mov rcx, r14
call fcn.14011a670
sub r15, 1
jne 0x14011abd0
mov rdi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
test rsi, rsi
je 0x14011acf8
nop dword [rax]
mov ecx, dword [r14 + rbp*4]
mov eax, ecx
mov byte [rdi], cl
lea rdi, [rdi + 4]
shr eax, 8
inc rbp
mov byte [rdi - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [rdi - 2], al
mov byte [rdi - 1], cl
cmp rbp, rsi
jb 0x14011acd0
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012a6e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x1402c3da0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1402c1d60], ecx
jg 0x14012a7c2
mov eax, ebx
cmp rbx, rax
jne 0x14012a784
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14012a784
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x1402c1d58]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14012a805
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401439f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140008a90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14012a2e0
lea rdx, [0x140214f40]
lea rcx, [rsp + 0x40]
call fcn.140146828
nop
lea rcx, [0x1402c1d60]
call fcn.140143ac0
cmp dword [0x1402c1d60], 0xffffffff
jne 0x14012a72c
lea rcx, [0x1402c1d58]
call fcn.14012a1d0
lea rcx, [0x140183940]
call fcn.140144118
nop
lea rcx, [0x1402c1d60]
call fcn.140143a54
jmp 0x14012a72c
mov ecx, eax
call fcn.14012a850
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x1401e08d0]
lea rcx, [rsp + 0x20]
call fcn.140008a90
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14012a2e0
lea rdx, [0x140214f40]
lea rcx, [rsp + 0x40]
call fcn.140146828
int3
Function at 0x140130840
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r14d, r8d
mov r12, rdx
mov qword [rsp + 0x28], rdx
mov rbx, rcx
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 0x38]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov rax, qword [rax]
call qword [rax + 0x48]
mov r15d, eax
test eax, eax
je 0x140130a2a
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, rax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rsi, rax
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x48]
mov edi, eax
add edi, edi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x40]
add eax, edi
mov r13d, eax
mov rsi, qword [rbx + 0x28]
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x20], rdi
xor ebp, ebp
cmp rdi, r13
je 0x14013093e
test eax, eax
jne 0x1401308f3
mov r12d, ebp
jmp 0x1401308fe
mov rcx, r13
call fcn.14012e1d0
mov r12, rax
mov r8, rdi
cmp r13, rdi
cmovb r8, r13
test rsi, rsi
je 0x140130936
test r12, r12
je 0x140130922
test r8, r8
je 0x140130922
mov rdx, rsi
mov rcx, r12
call fcn.1401458c0
mov rdi, rsi
xor eax, eax
mov rcx, qword [rsp + 0x20]
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.14012e240
mov rsi, r12
mov r12, qword [rsp + 0x28]
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x20], r13
mov qword [rbx + 0x18], 0xffffffffffffffff
cmp r14d, r15d
ja 0x140130972
test rsi, rsi
je 0x14013099c
test r12, r12
je 0x14013099c
test r14d, r14d
je 0x14013099c
mov r8, r14
mov rdx, r12
mov rcx, rsi
call fcn.1401458c0
jmp 0x14013099c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rax]
mov r9, r14
mov r8, r12
mov rdx, qword [rbx + 0x28]
mov rcx, rax
call qword [rdi + 0x60]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x40]
mov r14d, eax
mov r8d, r15d
sub r8d, r14d
mov ecx, r14d
add rcx, qword [rbx + 0x28]
xor edx, edx
call fcn.140145f60
test r15d, r15d
je 0x1401309ff
mov rsi, rbp
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x78]
mov rdi, qword [rbx + 0x28]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x48]
mov edx, eax
add rdx, rdi
mov rax, qword [rbx + 0x28]
movzx ecx, byte [rsi + rax]
xor cl, 0x5c
mov byte [rdx + rbp], cl
mov rax, qword [rbx + 0x28]
xor byte [rsi + rax], 0x36
lea rsi, [rsi + 1]
lea rbp, [rbp + 1]
sub r14, 1
jne 0x1401309c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401439f0
mov rbx, qword [rsp + 0x108]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.HMAC:_can_only_be_used_with_a_block_based_hash_function
lea rcx, [rsp + 0x38]
call fcn.140008a90
nop
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x60]
call fcn.1400124f0
lea rdx, [0x1402159b0]
lea rcx, [rsp + 0x60]
call fcn.140146828
int3
Function at 0x14013b620
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14013b774
cmp r9, 4
jb 0x14013b66a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14013b650
xor r11d, r11d
test r9, r9
je 0x14013b774
cmp r9, 0x40
jb 0x14013b753
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14013b69c
cmp rdx, r8
jae 0x14013b753
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14013b6b1
cmp rdx, r10
jae 0x14013b753
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14013b6e0
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x14013b774
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14013b760
add rsp, 8
ret
Function at 0x140140f24
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140140fa8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140140fa8
dec r8
sub rdx, 1
jne 0x140140f8e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140157378
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401573af
call fcn.14015ed2c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14015e604
xor eax, eax
jmp 0x14015743d
mov rdx, r9
mov rcx, r8
call fcn.140157314
mov rbx, rax
test rax, rax
je 0x14015743a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140157240]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140157427
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14015eca0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14015740e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14015741d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14016caa0
jmp 0x14015743a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140157437
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140161808
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 [0x140225b08]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401e70a8]
mov rbp, rcx
call fcn.140172f8c
xor edi, edi
test rax, rax
je 0x1401618ee
mov ebx, edi
call fcn.14015ed2c
mov r14d, dword [rax]
call fcn.14015ed2c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140172ed8
mov rsi, rax
test rax, rax
je 0x14016187f
call fcn.14015ed2c
mov dword [rax], r14d
jmp 0x1401618a9
call fcn.14015ed2c
cmp dword [rax], 0x22
jne 0x1401618e6
call fcn.14015ed2c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140172ed8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401618e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401618ad
cmp rax, 3
je 0x1401618c8
mov rcx, rsi
call fcn.140161764
test al, al
je 0x1401618d9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401618d9
mov dil, 1
mov rcx, rbx
call fcn.14015f370
mov al, dil
jmp 0x1401618f0
mov rcx, rbx
call fcn.14015f370
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401439f0
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 0x140161f24
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140144180
sub rsp, rax
mov rax, qword [0x140225b08]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140161b54
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140161f73
mov rax, rbp
jmp 0x14016207b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2c4380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140172744
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2c4380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140162077
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140162077
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140172744
test rax, rax
js 0x140162077
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140162077
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140162069
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140162069
cmp byte [rcx], 0xd
jne 0x14016204f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14016205e
cmp byte [rcx + 1], 0xa
jne 0x14016205e
inc rcx
jmp 0x14016205e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x225f00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140162031
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14016207b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401439f0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14016bc44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14016bc5a
mov al, 1
jmp 0x14016bcba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14016bc6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14016bcb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140173628
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14016bcb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14016bcb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14016bcb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14016bcba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140171ae4
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, [0x1402c4380]
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 0x140171b3b
cmp word [rdx], r13w
jne 0x140171b3b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140171b40
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140171c65
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140171c86
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140171b79
mov rdx, r9
mov word [rbx], cx
jmp 0x140171ba0
cmp r9, r8
jae 0x140171bb0
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 0x140171b5a
jmp 0x140171c65
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 0x140171c5a
cmp dword [rsp + 0x80], esi
je 0x140171c5a
lea r8, [0x1402c4380]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140171c32
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140171c02
mov word [rbx], r13w
jmp 0x140171c62
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 0x140171c0f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140171c62
cmp word [rsp + 0x70], r13w
jne 0x140171c3f
cmp rbx, r14
je 0x140171bfc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14017274c
cmp word [rsp + 0x70], r13w
je 0x140171c65
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, [0x1402c4380]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140171c5f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140171c65