joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140041f60
Capabilities:
Parse credit card information

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rsi, rdx
cmp rdx, r8
je 0x1400420ac
mov rbx, r8
mov rdi, rcx
movzx eax, word [rsi]
cmp eax, 0x5b
jg 0x14004202b
cmp eax, 0x24
je 0x140042066
cmp eax, 0x28
jne 0x1400420ac
lea rax, [rsi + 2]
cmp rax, rbx
je 0x1400420ac
cmp word [rax], 0x3f
jne 0x1400420ac
lea rax, [rsi + 4]
cmp rax, rbx
je 0x1400420ac
movzx eax, word [rax]
cmp eax, 0x21
je 0x140042165
cmp eax, 0x3d
jne 0x1400420ac
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.1400429b0
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
add rsi, 6
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.140041180
mov rsi, rax
mov ebp, dword [rsp + 0x3c]
mov r9d, dword [rdi + 0x1c]
lea rdx, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.140042a20
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x140042026
cmp word [rsi], 0x29
je 0x1400421b4
call fcn.140042ad0
cmp eax, 0x5c
je 0x1400420ba
cmp eax, 0x5e
jne 0x1400420ac
mov ecx, 0x18
call fcn.14006fb50
mov ecx, 0x5f0
and ecx, dword [rdi + 0x18]
cmp ecx, 0x400
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx + 8]
mov qword [rax + 8], rdx
lea rdx, [0x1401fc2e8]
jmp 0x140042091
mov ecx, 0x18
call fcn.14006fb50
mov ecx, 0x5f0
and ecx, dword [rdi + 0x18]
cmp ecx, 0x400
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx + 8]
mov qword [rax + 8], rdx
lea rdx, [0x1401fc358]
mov qword [rax], rdx
sete byte [rax + 0x10]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rdi + 0x38], rax
add rsi, 2
mov rax, rsi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rax, [rsi + 2]
cmp rax, rbx
je 0x1400420ac
movzx eax, word [rax]
cmp eax, 0x42
je 0x14004210d
cmp eax, 0x62
jne 0x1400420ac
mov ecx, 0x30
call fcn.14006fb50
mov rbx, rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rbx + 8], rax
lea rax, [0x1401fc3c8]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov rdx, rdi
call fcn.140091ea0
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbx + 0x18], xmm0
mov byte [rbx + 0x28], 0
jmp 0x140042148
mov ecx, 0x30
call fcn.14006fb50
mov rbx, rax
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rbx + 8], rax
lea rax, [0x1401fc3c8]
mov qword [rbx], rax
lea rcx, [rbx + 0x10]
mov rdx, rdi
call fcn.140091ea0
movups xmm0, xmmword [rdi + 8]
movups xmmword [rbx + 0x18], xmm0
mov byte [rbx + 0x28], 1
mov rax, qword [rdi + 0x38]
mov qword [rax + 8], rbx
mov rax, qword [rdi + 0x38]
mov rax, qword [rax + 8]
mov qword [rdi + 0x38], rax
add rsi, 4
jmp 0x1400420ac
lea r14, [rsp + 0x20]
mov rcx, r14
call fcn.1400429b0
mov eax, dword [rdi + 0x18]
mov dword [rsp + 0x38], eax
add rsi, 6
mov rcx, r14
mov rdx, rsi
mov r8, rbx
call fcn.140041180
mov rsi, rax
mov ebp, dword [rsp + 0x3c]
mov r9d, dword [rdi + 0x1c]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8b, 1
call fcn.140042a20
add dword [rdi + 0x1c], ebp
cmp rsi, rbx
je 0x1400421c7
cmp word [rsi], 0x29
jne 0x1400421c7
add rsi, 2
lea rcx, [rsp + 0x20]
call fcn.1400221f0
jmp 0x1400420ac
call fcn.140042ad0
jmp 0x1400421d2
mov rsi, rax
lea rcx, [rsp + 0x20]
call fcn.1400221f0
mov rcx, rsi
call fcn.14009a110
int3
Function at 0x14004c6d0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1c0
movzx eax, byte [0x140288a4c]
test al, al
jne 0x14004c722
test cl, cl
jne 0x14004c722
lea rsi, [rsp + 0x28]
mov rbx, qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdi, str.winsocks_init_faild
nop dword [rax]
mov cx, 0x202
mov rdx, rsi
call rbx
test eax, eax
je 0x14004c738
mov rcx, rdi
mov dl, 1
call fcn.140012160
cmp byte [0x140288a4c], 0
je 0x14004c700
jmp 0x14004c73f
and cl, al
cmp cl, 1
jne 0x14004c73f
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [0x140288a4c], 0
jmp 0x14004c73f
mov byte [0x140288a4c], 1
add rsp, 0x1c0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14004c750
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov rdi, rcx
mov ecx, 2
mov edx, 1
mov r8d, 6
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x40], 0
mov word [rsp + 0x38], 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], eax
mov cx, 0x1bd
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x34], 1
lea r8, [rsp + 0x34]
mov rcx, rsi
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rdx, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x10
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14004c842
cmp dword [rsp + 0x50], 0
setne dil
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14004c84d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor edi, edi
mov eax, edi
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140050cd0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140050df8
mov rcx, qword [rsp + 0x38]
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, str.ProcessorNameString
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x30]
mov rcx, rsi
xor r8d, r8d
call fcn.140072000
mov rcx, qword [rsp + 0x38]
lea rdi, [rsi + 1]
test byte [rsi], 1
mov rax, rdi
je 0x140050d78
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea rdx, str.ProcessorNameString
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx eax, byte [rsi]
test al, 1
je 0x140050daa
mov rdx, qword [rsi + 8]
cmp rdx, 2
jne 0x140050db6
jmp 0x140050ded
mov rdx, rax
shr rdx, 1
cmp rdx, 2
je 0x140050ded
test al, 1
je 0x140050dbe
mov rdi, qword [rsi + 0x10]
dec rdx
nop word cs:[rax + rax]
cmp byte [rdi + rdx - 1], 0x20
jne 0x140050de2
dec rdx
cmp rdx, 1
jne 0x140050dd0
jmp 0x140050ded
mov rcx, rsi
xor r8d, r8d
call fcn.140072000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140050e20
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140050eec
mov rcx, qword [rsp + 0x40]
lea rdi, [rsp + 0x38]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdx, [0x1401fd37f]
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [rsp + 0x38]
mov rcx, rsi
xor r8d, r8d
call fcn.140072000
mov rcx, qword [rsp + 0x40]
test byte [rsi], 1
je 0x140050ebe
mov rax, qword [rsi + 0x10]
jmp 0x140050ec2
lea rax, [rsi + 1]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, [0x1401fd37f]
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140054f10
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r8d
mov rdi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r9
mov byte [rsp + 0x3f], 0
mov ecx, 0x50
call fcn.14006fb50
lea rcx, [0x1401fd770]
mov qword [rax], rcx
lea rcx, [rsp + 0x48]
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x40]
mov qword [rax + 0x10], rcx
lea rcx, [rsp + 0xd0]
mov qword [rax + 0x18], rcx
lea rcx, [rsp + 0xd8]
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0xe0]
mov qword [rax + 0x28], rcx
lea rcx, [rsp + 0xe8]
mov qword [rax + 0x30], rcx
lea rcx, [rsp + 0xf0]
mov qword [rax + 0x38], rcx
lea rcx, [rsp + 0xf8]
mov qword [rax + 0x40], rcx
lea rcx, [rsp + 0x3f]
mov qword [rax + 0x48], rcx
mov qword [rsp + 0x70], rax
lea rsi, [rsp + 0x50]
mov qword [rdi], rsi
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rdi + 8]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x140055069
mov rax, qword [0x1401fe088]
mov rcx, qword [rdi + 0x10]
mov edx, 0x14d
call qword [rax]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
lea rbx, [0x140053f10]
mov r14, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop word cs:[rax + rax]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 0x40000
xor ecx, ecx
mov r8, rbx
mov r9, rdi
call r14
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140055020
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov qword [rdi], 0
xor esi, esi
jmp 0x140055072
cmp byte [rsp + 0x3f], 0
setne sil
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
cmp rdx, rcx
je 0x140055092
test rdx, rdx
je 0x14005509d
mov rax, qword [rdx]
add rax, 0x28
mov rcx, rdx
jmp 0x14005509b
mov rax, qword [rsp + 0x50]
add rax, 0x20
call qword [rax]
mov eax, esi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400550f0
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r8d
mov rdi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], r9
mov byte [rsp + 0x3f], 0
mov ecx, 0x40
call fcn.14006fb50
lea rcx, [0x1401fd8e8]
mov qword [rax], rcx
lea rcx, [rsp + 0x48]
mov qword [rax + 8], rcx
lea rcx, [rsp + 0x40]
mov qword [rax + 0x10], rcx
lea rcx, [rsp + 0xd0]
mov qword [rax + 0x18], rcx
lea rcx, [rsp + 0xd8]
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0xe0]
mov qword [rax + 0x28], rcx
lea rcx, [rsp + 0xe8]
mov qword [rax + 0x30], rcx
lea rcx, [rsp + 0x3f]
mov qword [rax + 0x38], rcx
mov qword [rsp + 0x70], rax
lea rsi, [rsp + 0x50]
mov qword [rdi], rsi
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rdi + 8]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x140055229
mov rax, qword [0x1401fe088]
mov rcx, qword [rdi + 0x10]
mov edx, 0x14d
call qword [rax]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
lea rbx, [0x140053f10]
mov r14, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop word [rax + rax]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 0x40000
xor ecx, ecx
mov r8, rbx
mov r9, rdi
call r14
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400551e0
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov qword [rdi], 0
xor esi, esi
jmp 0x140055232
cmp byte [rsp + 0x3f], 0
setne sil
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
cmp rdx, rcx
je 0x140055252
test rdx, rdx
je 0x14005525d
mov rax, qword [rdx]
add rax, 0x28
mov rcx, rdx
jmp 0x14005525b
mov rax, qword [rsp + 0x50]
add rax, 0x20
call qword [rax]
mov eax, esi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400563b0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
lea rdi, [0x1401fd752]
mov rbx, qword [sym.imp.KERNEL32.DLL_CreateEventA]
nop word [rax + rax]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
mov r9, rdi
call rbx
mov qword [rsi + 0x20], rax
test rax, rax
je 0x1400563e0
lea rdi, [0x1401fd752]
nop dword [rax]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
mov r9, rdi
call rbx
mov qword [rsi + 8], rax
test rax, rax
je 0x140056400
lea rdi, [0x1401fd752]
nop dword [rax]
xor ecx, ecx
xor edx, edx
xor r8d, r8d
mov r9, rdi
call rbx
mov qword [rsi + 0x18], rax
test rax, rax
je 0x140056420
lea rdi, [0x140053f10]
mov rbx, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop word cs:[rax + rax]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 0x40000
xor ecx, ecx
mov r8, rdi
mov r9, rsi
call rbx
mov qword [rsi + 0x10], rax
test rax, rax
je 0x140056450
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140056490
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov ebx, r8d
mov rdi, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x34], r9d
mov byte [rsp + 0x33], 0
lea rax, [0x1401fdc00]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x33]
mov qword [rsp + 0x58], rax
lea rsi, [rsp + 0x40]
mov qword [rsp + 0x60], rsi
mov qword [rcx], rsi
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rdi + 8]
mov edx, ebx
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x140056599
mov rax, qword [0x1401fe088]
mov rcx, qword [rdi + 0x10]
mov edx, 0x14d
call qword [rax]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rdi + 0x10], 0
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
lea rbx, [0x140053f10]
mov r14, qword [sym.imp.KERNEL32.DLL_CreateThread]
nop word cs:[rax + rax]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov edx, 0x40000
xor ecx, ecx
mov r8, rbx
mov r9, rdi
call r14
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140056550
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
mov qword [rdi], 0
xor esi, esi
jmp 0x1400565a2
cmp byte [rsp + 0x33], 0
setne sil
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x40]
cmp rdx, rcx
je 0x1400565c2
test rdx, rdx
je 0x1400565cd
mov rax, qword [rdx]
add rax, 0x28
mov rcx, rdx
jmp 0x1400565cb
mov rax, qword [rsp + 0x40]
add rax, 0x20
call qword [rax]
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14005beb0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r14d, r14d
mov edx, 2
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rbx, rax
inc rax
cmp rax, 2
jb 0x14005bf3d
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x44]
cmp rax, rsi
sete r14b
mov eax, r14d
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14005bf50
Capabilities:
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor ebx, ebx
mov edx, 1
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
inc rax
cmp rax, 2
jb 0x14005c00f
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
mov dword [rsp + 0x44], 0
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jle 0x14005bfcb
mov rcx, rsi
xor r8d, r8d
call fcn.140072000
test byte [rsi], 1
je 0x14005bfd8
mov rsi, qword [rsi + 0x10]
jmp 0x14005bfdb
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
jmp 0x14005c00f
inc rsi
mov r8d, dword [rsp + 0x48]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0x44]
cmp qword [rsp + 0x48], rax
sete bl
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005c050
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rcx
test r9b, r9b
je 0x14005c099
mov rdi, qword [rsi]
test rdi, rdi
je 0x14005c1ce
cmp dword [rdi + 0xc], 0
je 0x14005c1d2
mov rcx, rsi
mov rdx, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.14005c8c0
mov rdi, r8
mov rbx, rdx
movzx r13d, byte [rdx]
mov eax, r13d
and al, 1
je 0x14005c0b0
mov r13, qword [rbx + 8]
jmp 0x14005c0b3
shr r13, 1
lea r14, [r13 + 1]
movabs rcx, 0x7ffffffffffffff0
cmp r14, rcx
jae 0x14005c205
cmp r14, 0xa
ja 0x14005c0ee
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
add r14b, r14b
mov byte [rsp + 0x20], r14b
xor r15d, r15d
jmp 0x14005c125
mov r12, r14
or r12, 7
inc r12
js 0x14005c20f
lea rcx, [r12 + r12]
call fcn.14006fb50
mov r15, rax
or r12, 1
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
movzx eax, byte [rbx]
and al, 1
mov r14d, r12d
test r14b, 1
lea r12, [rsp + 0x22]
cmove r15, r12
lea r14, [rbx + 2]
mov rdx, r14
test al, al
je 0x14005c141
mov rdx, qword [rbx + 0x10]
mov r8, r13
add r8, r13
mov rcx, r15
call sub.msvcrt.dll_memmove
mov dword [r15 + r13*2], 0x5c
test byte [rsp + 0x20], 1
je 0x14005c163
mov r12, qword [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov r15d, eax
test byte [rsp + 0x20], 1
je 0x14005c180
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
xor ebp, ebp
cmp r15d, 3
jne 0x14005c1f2
cmp qword [rsi], 0
jne 0x14005c1f2
test byte [rbx], 1
je 0x14005c197
mov r14, qword [rbx + 0x10]
mov rdx, r14
call fcn.14005c240
mov qword [rsi], rax
test rax, rax
je 0x14005c1ce
add rax, 0x18
mov rcx, rax
mov rdx, rdi
call fcn.140072d10
mov rdi, qword [rsi]
cmp dword [rdi + 0xc], 0
je 0x14005c1d2
mov rcx, rsi
mov rdx, rdi
call fcn.14005c8c0
mov ebp, eax
jmp 0x14005c1f2
xor ebp, ebp
jmp 0x14005c1f2
xor ebp, ebp
mov rdx, rdi
xor r8d, r8d
call fcn.14005c590
test rax, rax
je 0x14005c1f2
mov rcx, rsi
mov rdx, rdi
call fcn.14005c6c0
mov bpl, 1
mov eax, ebp
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x20]
call fcn.140002ec0
call fcn.140002f60
mov rsi, rax
test byte [rsp + 0x20], 1
je 0x14005c228
mov rcx, qword [rsp + 0x30]
call fcn.14006fbd0
mov rcx, rsi
call fcn.14009a110
int3
Function at 0x14005c240
Capabilities:
Get volume information via ioctl
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rdi, rdx
mov ecx, 0x300
call fcn.14006fb50
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], 0
movups xmmword [rax + 0x18], xmm0
movups xmmword [rax + 0x28], xmm0
movups xmmword [rax + 0x38], xmm0
movups xmmword [rax + 0x48], xmm0
mov qword [rax + 0x58], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14005c3c5
mov rdi, rax
lea r8, [rsp + 0x50]
mov rcx, rax
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
lea rdx, [rsi + 0x100]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
mov rcx, rdi
mov r8d, 0x200
call qword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, eax
mov rcx, qword [rsi]
mov rax, rsi
add rax, 0x60
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x68
mov edx, 0x90064
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_DeviceIoControl]
mov word [rsi + 0x2fe], 0xaa55
cmp dword [rsp + 0x4c], 0x200
jne 0x14005c3d1
cmp dword [rsp + 0x48], 0x68
jne 0x14005c3d1
test edi, edi
je 0x14005c3d1
test eax, eax
je 0x14005c3d1
cmp dword [rsi + 0x103], 0x5346544e
jne 0x14005c3d8
mov dword [rsi + 8], 1
mov eax, dword [rsi + 0x8c]
mov ecx, dword [rsi + 0x90]
mov dword [rsi + 0xcc], eax
mov dword [rsi + 0xc8], ecx
mov byte [rsi + 0xd0], 0
mov rcx, rax
imul rcx, qword [rsi + 0xa0]
mov qword [rsi + 0xe8], rcx
mov qword [rsi + 0xf0], 0
mov qword [rsi + 0xd8], 0
movzx ecx, byte [rsi + 0x140]
imul ecx, eax
mov dword [rsi + 0xf8], ecx
jmp 0x14005c3d8
mov rcx, rsi
call fcn.14006fbd0
xor esi, esi
jmp 0x14005c3d8
mov dword [rsi + 8], 0xff99ff99
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x14005c3f0
Capabilities:
Get disk information

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
test r8b, r8b
je 0x14005c460
xor r14d, r14d
xor ebx, ebx
jmp 0x14005c430
mov rcx, rsi
mov rdx, rdi
call fcn.14005c8c0
test al, al
je 0x14005c575
inc r14
cmp r14, 0x20
je 0x14005c569
mov rdi, qword [rsi + r14*8]
test rdi, rdi
je 0x14005c423
cmp dword [rdi + 0xc], 0
jne 0x14005c410
mov rdx, rdi
xor r8d, r8d
call fcn.14005c590
test rax, rax
je 0x14005c577
mov rcx, rsi
mov rdx, rdi
call fcn.14005c6c0
jmp 0x14005c423
mov ebx, edx
call qword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov edi, eax
and edi, ebx
lea r13, str._C:_
lea r14, [rsp + 0x26]
mov rbp, qword [sym.imp.USER32.dll_wsprintfW]
mov r15, qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
xor ebx, ebx
jmp 0x14005c4bd
mov rcx, rsi
mov rdx, r12
call fcn.14005c8c0
test al, al
mov r13, rbp
mov rbp, r15
mov r15, r14
lea r14, [rsp + 0x26]
je 0x14005c575
nop dword [rax + rax]
inc rbx
cmp rbx, 0x20
je 0x14005c569
bt edi, ebx
jae 0x14005c4b0
lea r8d, [rbx + 0x41]
mov rcx, r14
mov rdx, r13
call rbp
mov rcx, r14
call r15
cmp eax, 3
jne 0x14005c4b0
cmp qword [rsi + rbx*8], 0
jne 0x14005c4b0
mov r14, r15
mov r15, rbp
mov rbp, r13
lea r13, [rbx + 0x41]
movabs rax, 0x5c002e005c005c
mov qword [rsp + 0x30], rax
mov word [rsp + 0x38], r13w
mov dword [rsp + 0x3a], 0x3a
lea rdx, [rsp + 0x30]
call fcn.14005c240
test rax, rax
je 0x14005c56d
mov r12, rax
mov rcx, rax
add rcx, 0x18
mov edx, r13d
call fcn.1400723b0
mov qword [rsi + rbx*8], r12
cmp dword [r12 + 0xc], 0
jne 0x14005c48a
mov rdx, r12
xor r8d, r8d
call fcn.14005c590
test rax, rax
mov r13, rbp
mov rbp, r15
mov r15, r14
lea r14, [rsp + 0x26]
je 0x14005c575
mov rcx, rsi
mov rdx, r12
call fcn.14005c6c0
jmp 0x14005c4b0
mov bl, 1
jmp 0x14005c577
mov qword [rsi + rbx*8], 0
xor ebx, ebx
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret