joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff9b9d2c6f0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x88
mov rax, qword [0x7ff9b9dc6200]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, 0xffffffffffffffff
mov qword [rsp + 0x20], rcx
mov rbx, rsi
mov rdi, rdx
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x7ff9b9d2c720
mov qword [rsp + 0xc0], rbp
xor r15d, r15d
cmp byte [rdx], 0x5b
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
jne 0x7ff9b9d2c90d
cmp rbx, 4
jb 0x7ff9b9d2c906
inc rdi
sub rbx, 2
cmp byte [rdi + rbx], 0x5d
jne 0x7ff9b9d2c906
lea rdx, [0x7ff9b9d92350]
mov rcx, rdi
call fcn.7ff9b9d61770
cmp rbx, rax
je 0x7ff9b9d2c844
cmp byte [rdi + rax], 0x25
lea r12, [rdi + rax]
mov rbx, rax
jne 0x7ff9b9d2c906
lea r8d, [r15 + 2]
mov ebp, r15d
lea rdx, [0x7ff9b9d9236c]
lea rcx, [r12 + 1]
lea r14, [r12 + 1]
call fcn.7ff9b9d5e040
test eax, eax
jne 0x7ff9b9d2c7c9
movzx eax, byte [r12 + 3]
lea rcx, [r12 + 3]
test al, al
je 0x7ff9b9d2c7c9
cmp al, 0x5d
cmovne r14, rcx
movzx eax, byte [r14]
test al, al
je 0x7ff9b9d2c8ff
mov rcx, r15
cmp al, 0x5d
je 0x7ff9b9d2c7f6
cmp rcx, 0xf
jge 0x7ff9b9d2c7f6
inc r14
mov byte [rsp + rcx + 0x28], al
inc ebp
inc rcx
movzx eax, byte [r14]
test al, al
jne 0x7ff9b9d2c7d8
test ebp, ebp
je 0x7ff9b9d2c8ff
cmp byte [r14], 0x5d
jne 0x7ff9b9d2c8ff
movsxd rax, ebp
cmp rax, 0x10
jae 0x7ff9b9d2c928
lea rcx, [rsp + 0x28]
mov byte [rsp + rax + 0x28], r15b
call qword [case.0x7ff9b9cfaf19.0]
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x28], rax
test rax, rax
jne 0x7ff9b9d2c83d
mov eax, 7
jmp 0x7ff9b9d2c8cb
mov word [r12], 0x5d
lea r8, [rsp + 0x28]
mov byte [rdi + rbx], r15b
mov rdx, rdi
mov ecx, 0x17
call qword [sym.imp.ws2_32.dll_inet_pton]
cmp eax, 1
jne 0x7ff9b9d2c906
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x28]
lea ecx, [rax + 0x16]
call fcn.7ff9b9d355d0
test rax, rax
je 0x7ff9b9d2c8b8
lea rax, [rsp + 0x38]
inc rsi
cmp byte [rax + rsi], r15b
jne 0x7ff9b9d2c884
cmp rsi, rbx
jae 0x7ff9b9d2c8b8
lea rax, [rsp + 0x38]
mov rdx, rdi
sub rdx, rax
lea rcx, [rsp + 0x38]
movzx eax, byte [rcx]
mov byte [rdx + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x7ff9b9d2c8a2
mov rbx, rsi
mov byte [rdi + rsi + 1], r15b
mov byte [rdi + rbx], 0x5d
cmp byte [rdi], r15b
mov eax, 0xe
cmove r15d, eax
mov eax, r15d
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.7ff9b9d49770
add rsp, 0x88
pop r15
pop rdi
pop rsi
pop rbx
ret
mov eax, 3
jmp 0x7ff9b9d2c8cb
mov eax, 0x16
jmp 0x7ff9b9d2c8cb
lea rdx, [0x7ff9b9d92370]
mov rcx, rdi
call fcn.7ff9b9d5db60
cmp rbx, rax
je 0x7ff9b9d2c8bc
mov eax, 0x15
jmp 0x7ff9b9d2c8cb
call fcn.7ff9b9d49898
int3
Function at 0x7ff9b9d2de80
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 0x7ff9b9d2e01e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x7ff9b9d2dffe
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x7ff9b9d2deee
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff9b9d2dee0
inc rbx
jmp 0x7ff9b9d2def0
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x7ff9b9d2defd
lea ebp, [rax + 0xe]
jmp 0x7ff9b9d2df09
cmp eax, 0x17
jne 0x7ff9b9d2dfa1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x7ff9b9d2dfa1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x7ff9b9d2dfa1
cmp rax, rbp
jb 0x7ff9b9d2dfa1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.7ff9b9d530e4]
mov r14, rax
test rax, rax
je 0x7ff9b9d2dfb0
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 fcn.7ff9b9d7f070
test rbx, rbx
je 0x7ff9b9d2df8e
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.7ff9b9d7f070
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x7ff9b9d2df9e
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x7ff9b9d2ded0
jmp 0x7ff9b9d2dfb6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x7ff9b9d2dfd0
call qword [sym.imp.ws2_32.dll_FreeAddrInfoW]
test r12d, r12d
je 0x7ff9b9d2dff9
test rdi, rdi
je 0x7ff9b9d2dff5
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.7ff9b9d530d0]
mov rdi, rbx
test rbx, rbx
jne 0x7ff9b9d2dfe0
xor edi, edi
jmp 0x7ff9b9d2e00d
test rdi, rdi
jne 0x7ff9b9d2e00d
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 0x7ff9b9d37a20
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 [0x7ff9b9dc6200]
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 case.0x7ff9b9cfaf19.0
mov r13, rax
test rax, rax
jne 0x7ff9b9d37a9e
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff9b9d114e0
mov r9, rax
lea rdx, [0x7ff9b9d93c48]
mov r8, r12
mov rcx, r15
call fcn.7ff9b9d08c80
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.7ff9b9d530d0]
jmp 0x7ff9b9d37c58
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_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff9b9d37b11
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff9b9d114e0
mov r9, rax
lea rdx, [0x7ff9b9d93c80]
mov r8, r12
mov rcx, r15
call fcn.7ff9b9d08c80
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x7ff9b9d37c42
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
jne 0x7ff9b9d37b5a
call qword [sym.imp.kernel32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.7ff9b9d114e0
mov r9, rax
lea rdx, [0x7ff9b9d93cb0]
mov r8, r12
mov rcx, r15
call fcn.7ff9b9d08c80
mov ebx, 0x4d
jmp 0x7ff9b9d37c36
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x7ff9b9d37b8f
mov r8d, 0x100000
lea rdx, [0x7ff9b9d93ce8]
mov rcx, r15
call fcn.7ff9b9d08c80
mov ebx, 0x4d
jmp 0x7ff9b9d37c2e
lea rcx, [rdi + 1]
call qword [fcn.7ff9b9d530e4]
mov rbp, rax
test rax, rax
jne 0x7ff9b9d37ba9
lea ebx, [rax + 0x1b]
jmp 0x7ff9b9d37c2e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x7ff9b9d37c08
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 0x7ff9b9d37c7a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x7ff9b9d37bff
mov edi, esi
jmp 0x7ff9b9d37c01
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x7ff9b9d37bc0
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.7ff9b9d377a0
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.7ff9b9d530d0]
mov rcx, r13
call fcn.7ff9b9d530d0
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.7ff9b9d49770
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.7ff9b9d114e0
mov r9, rax
lea rdx, [0x7ff9b9d93d18]
mov r8, r12
mov rcx, r15
call fcn.7ff9b9d08c80
mov ebx, 0x4d
jmp 0x7ff9b9d37c26
Function at 0x7ff9b9d43fc0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.7ff9b9d530e4]
mov rbx, rax
test rax, rax
jne 0x7ff9b9d44005
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
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], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x7ff9b9d44050
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + 8]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
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 esi, esi
test r15, r15
je 0x7ff9b9d440b2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + 8]
sub r15, 1
jne 0x7ff9b9d44070
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x7ff9b9d440f3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x7ff9b9d95dea]
mov r8d, 1
call qword [rbp + 8]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x7ff9b9d95deb]
mov r8d, 1
call qword [rbp + 8]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff9b9d440c0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x7ff9b9d44110
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.7ff9b9d01130
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.7ff9b9d530e4]
mov rbx, rax
test rax, rax
je 0x7ff9b9d442b6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x7ff9b9d441a0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + 8]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
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 esi, esi
test r15, r15
je 0x7ff9b9d44202
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + 8]
sub r15, 1
jne 0x7ff9b9d441c0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x7ff9b9d44243
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x7ff9b9d95dea]
mov r8d, 1
call qword [rbp + 8]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x7ff9b9d95deb]
mov r8d, 1
call qword [rbp + 8]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x7ff9b9d44210
mov rcx, qword [rsp + 0x70]
call fcn.7ff9b9d01130
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + 8]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x7ff9b9d44272
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + 0x10]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + 8]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + 0x10]
mov rcx, rbx
call qword [fcn.7ff9b9d530d0]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x7ff9b9d444b0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x7ff9b9d44515
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 0x7ff9b9d444c0
ret
Function at 0x7ff9b9d47548
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x7ff9b9d99470]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff9b9d47582
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff9b9d47587
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff9b9d475d0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff9b9d99370]
cmp byte [rcx + rax], 0
je 0x7ff9b9d475d0
dec r8
sub rdx, 1
jne 0x7ff9b9d475b6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff9b9d55ca8
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.7ff9b9d4a4e0
sub rsp, rax
mov rax, qword [0x7ff9b9dc6200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff9b9d68c50
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff9b9d55cf7
mov rax, rbp
jmp 0x7ff9b9d55dff
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, [0x7ff9b9c00000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x287790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff9b9d615f8
mov r13, rax
lea rax, [0x7ff9b9c00000]
mov rcx, qword [rax + rbx*8 + 0x287790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff9b9d55dfb
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 0x7ff9b9d55dfb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff9b9d615f8
test rax, rax
js 0x7ff9b9d55dfb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff9b9d55dfb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff9b9d55ded
lea r8, [0x7ff9b9c00000]
cmp rcx, rdx
jae 0x7ff9b9d55ded
cmp byte [rcx], 0xd
jne 0x7ff9b9d55dd3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff9b9d55de2
cmp byte [rcx + 1], 0xa
jne 0x7ff9b9d55de2
inc rcx
jmp 0x7ff9b9d55de2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1c6460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff9b9d55db5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff9b9d55dff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff9b9d49770
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 0x7ff9b9d6089c
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 [0x7ff9b9dc6200]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x7ff9b9d9c968]
mov rbp, rcx
call fcn.7ff9b9d6e9b0
xor edi, edi
test rax, rax
je 0x7ff9b9d60982
mov ebx, edi
call fcn.7ff9b9d5d8b4
mov r14d, dword [rax]
call fcn.7ff9b9d5d8b4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.7ff9b9d6e8fc
mov rsi, rax
test rax, rax
je 0x7ff9b9d60913
call fcn.7ff9b9d5d8b4
mov dword [rax], r14d
jmp 0x7ff9b9d6093d
call fcn.7ff9b9d5d8b4
cmp dword [rax], 0x22
jne 0x7ff9b9d6097a
call fcn.7ff9b9d5d8b4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.7ff9b9d6e8fc
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x7ff9b9d6097a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x7ff9b9d60941
cmp rax, 3
je 0x7ff9b9d6095c
mov rcx, rsi
call fcn.7ff9b9d607f8
test al, al
je 0x7ff9b9d6096d
mov rcx, rbp
call qword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x7ff9b9d6096d
mov dil, 1
mov rcx, rbx
call fcn.7ff9b9d530d0
mov al, dil
jmp 0x7ff9b9d60984
mov rcx, rbx
call fcn.7ff9b9d530d0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.7ff9b9d49770
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 0x7ff9b9d65828
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, [0x7ff9b9e87790]
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 0x7ff9b9d6587f
cmp word [rdx], r13w
jne 0x7ff9b9d6587f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff9b9d65884
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff9b9d659a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff9b9d659ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff9b9d658bd
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff9b9d658e4
cmp r9, r8
jae 0x7ff9b9d658f4
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 0x7ff9b9d6589e
jmp 0x7ff9b9d659a9
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 0x7ff9b9d6599e
cmp dword [rsp + 0x80], esi
je 0x7ff9b9d6599e
lea r8, [0x7ff9b9e87790]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff9b9d65976
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff9b9d65946
mov word [rbx], r13w
jmp 0x7ff9b9d659a6
mov ecx, 0xd
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 0x7ff9b9d65953
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff9b9d659a6
cmp word [rsp + 0x70], r13w
jne 0x7ff9b9d65983
cmp rbx, r14
je 0x7ff9b9d65940
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff9b9d61600
cmp word [rsp + 0x70], r13w
je 0x7ff9b9d659a9
mov ecx, 0xd
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, [0x7ff9b9e87790]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff9b9d659a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff9b9d659a9
Function at 0x7ff9b9d6b0ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff9b9d6b102
mov al, 1
jmp 0x7ff9b9d6b162
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff9b9d6b113
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff9b9d6b160
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff9b9d6e330
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff9b9d6b160
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff9b9d6b160
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff9b9d6b160
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff9b9d6b162
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x7ff9b9d6e440
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.7ff9b9d61600
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff9b9d61600
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff9b9d6e590
cmp rax, 0xffffffffffffffff
je 0x7ff9b9d6e590
xor edi, edi
test rbp, rbp
jle 0x7ff9b9d6e53b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff9b9d6b660
mov rbx, rax
test rax, rax
jne 0x7ff9b9d6e4c8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff9b9d6e531
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff9b9d6dda0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.7ff9b9d66be0
cmp eax, 0xffffffff
je 0x7ff9b9d6e511
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff9b9d6e4d8
mov edx, r15d
mov ecx, r14d
call fcn.7ff9b9d6dda0
jmp 0x7ff9b9d6e531
cmp byte [rsi + 0x38], dil
je 0x7ff9b9d6e528
cmp dword [rsi + 0x34], 5
jne 0x7ff9b9d6e528
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff9b9d6e531
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff9b9d67914
jmp 0x7ff9b9d6e5a4
jns 0x7ff9b9d6e5a4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff9b9d61600
cmp rax, 0xffffffffffffffff
jne 0x7ff9b9d6e55c
cmp byte [rsi + 0x30], dil
je 0x7ff9b9d6e5a4
mov edi, dword [rsi + 0x2c]
jmp 0x7ff9b9d6e5a4
mov ecx, r14d
call fcn.7ff9b9d6e330
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff9b9d6e5a4
call qword [sym.imp.kernel32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x7ff9b9d6e5a4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff9b9d6e59d
mov eax, dword [rsi + 0x2c]
jmp 0x7ff9b9d6e5a2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff9b9d61600
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret