joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000bbc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x38]
mov rbx, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov r8d, 0x1f4
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x18000bbee
add rsp, 0x20
pop rbx
jmp fcn.180003180
movsxd rcx, eax
mov rax, qword [rbx + 0x38]
mov byte [rcx + rax], 0
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x18000c360
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
xor r9d, r9d
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x48], 7
mov qword [rcx + 0x40], rsi
mov word [rcx + 0x30], si
mov qword [rcx + 0x70], 7
mov qword [rcx + 0x68], rsi
mov word [rcx + 0x58], si
mov qword [rcx + 0x98], 7
mov qword [rcx + 0x90], rsi
mov word [rcx + 0x80], si
lea rcx, str.Net__KuaiZip_
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rcx, qword [rbx]
mov rdi, rax
test rcx, rcx
je 0x18000c3e2
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbx + 0x20], esi
mov qword [rbx + 0xa0], rsi
mov dword [rbx + 0xac], esi
mov dword [rbx + 0xa8], esi
mov rsi, qword [rsp + 0x48]
mov qword [rbx], rdi
mov qword [rbx + 0x18], 0xffffffffffffffff
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000d550
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov esi, edx
lea rcx, [rsp + 0x42]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bp
call fcn.18006cf60
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x18000d5c1
cmp eax, 0x104
ja 0x18000d5c1
lea rdx, str.WMCache_
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x18000d5d7
call fcn.180003180
test eax, eax
js 0x18000d67b
cmp eax, 1
je 0x18000d67b
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000d5ff
lea rcx, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x18000d5ff
call fcn.180003180
jmp 0x18000d67b
lea r9, [rdi + 0x10]
lea rdx, [0x1800e17f8]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x278], rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x18000d66a
mov dword [rdi + 0x220], esi
mov qword [rsp + 0x30], rbp
neg esi
sbb eax, eax
lea rcx, [rdi + 0x10]
mov edx, 0xc0000000
and eax, 0x20000000
xor r9d, r9d
xor r8d, r8d
bts eax, 0x1a
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x218], rax
cmp rax, 0xffffffffffffffff
jne 0x18000d671
call fcn.180003180
jmp 0x18000d673
xor eax, eax
mov rbx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18006a4f0
lea r11, [rsp + 0x260]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180013030
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov dword [rsp + 0x20], 0x38
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov r11, qword [rsp + 0x30]
shr r11, 1
mov eax, 0x40000000
lea rcx, [rsi + 0xf0]
cmp r11, rax
cmova r11d, eax
mov rax, qword [rcx]
mov edx, r11d
call qword [rax + 0x18]
lea rcx, [rsi + 0x10]
mov rdx, rbx
call fcn.18000fac0
test eax, eax
js 0x1800130f8
cmp eax, 1
je 0x1800130f8
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1800130b6
mov rax, qword [rax + 0xa0]
test rax, rax
jne 0x1800130ad
mov eax, 0x80004005
jmp 0x1800130d8
mov qword [rsi + 0x188], rax
jmp 0x1800130d6
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1800130f3
mov rcx, qword [rax + 0x58]
test rcx, rcx
jne 0x1800130cf
mov eax, 0x80004005
jmp 0x1800130d8
mov qword [rsi + 0x188], rcx
xor eax, eax
test eax, eax
js 0x1800130f3
cmp eax, 1
je 0x1800130f3
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov eax, 0xe0036006
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180015480
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov edi, edx
lea rcx, [rsp + 0x32]
xor ebp, ebp
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bp
call fcn.18006cf60
lea edx, [rbp + 0x5c]
lea rcx, [rbx + 0xc0]
call fcn.18006bcd0
test rax, rax
jne 0x1800154e2
mov eax, 0x80004005
jmp 0x180015537
sub rax, rbx
lea rdx, [rbx + 0xc0]
lea rcx, [rsp + 0x30]
lea r8, [rax - 0xc0]
sar r8, 1
inc r8d
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x180015525
call fcn.180003180
jmp 0x180015537
mov ecx, dword [rbx + 0x6c]
mov eax, 0x80070070
add ecx, edi
cmp qword [rsp + 0x20], rcx
cmova eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18006a4f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180017e80
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rsi, r8
mov rbx, rcx
test r8, r8
jne 0x180017ea3
mov eax, 0x80070057
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x180017ece
test rdx, rdx
je 0x180017e96
mov rax, qword [rsp + 0x70]
mov rdx, qword [rdx]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.180013110
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 0x18]
cmp rcx, 0xffffffffffffffff
jne 0x180017ee5
mov eax, 0x80004005
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
test rdx, rdx
je 0x180017f0a
mov rdx, qword [rdx]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180017f0a
call fcn.180003180
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x50], rbp
lea r9, [rsp + 0x60]
mov qword [rsp + 0x58], r12
xor r12d, r12d
mov r8d, edi
mov rdx, rsi
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001800d
cmp dword [rsp + 0x78], r12d
jne 0x180017ff4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x180017f72
cmp eax, 0x3e6
je 0x180017f72
test eax, eax
jle 0x18001801f
movzx eax, ax
or eax, 0x80070000
jmp 0x18001801f
cmp dword [rbx + 0x458], edi
jae 0x180017fc1
mov rcx, qword [rbx + 0x450]
test rcx, rcx
je 0x180017f99
call fcn.18006aaac
mov qword [rbx + 0x450], r12
mov dword [rbx + 0x458], r12d
lea rdx, [0x180106f48]
mov rcx, rdi
call fcn.18006aaa4
mov qword [rbx + 0x450], rax
test rax, rax
jne 0x180017fbb
mov eax, 0x8007000e
jmp 0x18001801f
mov dword [rbx + 0x458], edi
mov rcx, qword [rbx + 0x450]
mov r8, rdi
xor edx, edx
call fcn.18006cf60
mov rdx, qword [rbx + 0x450]
mov rcx, qword [rbx + 0x18]
lea r9, [rsp + 0x60]
mov r8d, edi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180017ffb
call fcn.180003180
jmp 0x18001801f
mov rdx, qword [rbx + 0x450]
mov r8, rdi
mov rcx, rsi
call fcn.18006c2d0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18001801d
mov eax, dword [rsp + 0x60]
mov dword [rcx], eax
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180019100
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r14, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1800192a7
mov r12d, dword [rdx + 8]
test r12d, r12d
je 0x180019133
test r8, r8
je 0x1800192a7
test r12d, r12d
jne 0x180019146
xor eax, eax
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp qword [rcx + 0x18], 0xffffffffffffffff
jne 0x180019165
cmp qword [rcx + 0x20], 0
jne 0x180019165
mov eax, 0x80004005
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [rcx + 0x28], 0x990
je 0x18001917f
mov eax, 0x80004001
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
imul r12d, r12d, 0x990
mov qword [rsp + 0x80], r13
mov edx, r12d
call fcn.18001d130
mov r13, rax
test rax, rax
jne 0x1800191a5
mov eax, 0x8007000e
jmp 0x18001920c
mov ecx, dword [rdi + 0x28]
mov rax, qword [rbp]
mov qword [rsp + 0x70], rbx
cqo
xor ebx, ebx
and edx, 0x7ff
add rax, rdx
sar rax, 0xb
imul rax, rcx
mov ecx, dword [rdi + 0x34]
add rax, rcx
test r12d, r12d
je 0x18001926a
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x1800191f8
lea rdx, [rsp + 0x30]
mov r9d, r12d
mov r8, r13
mov qword [rsp + 0x20], rdx
mov rdx, rax
call fcn.180013110
jmp 0x180019261
mov rcx, qword [rdi + 0x18]
cmp rcx, 0xffffffffffffffff
jne 0x180019220
mov eax, 0x80004005
mov rbx, qword [rsp + 0x70]
mov r13, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x18001923a
call fcn.180003180
jmp 0x180019261
mov rcx, qword [rdi + 0x18]
lea r9, [rsp + 0x78]
mov r8d, r12d
mov rdx, r13
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001926a
call fcn.180003180
test eax, eax
js 0x180019207
cmp eax, 1
je 0x180019207
cmp dword [rbp + 8], ebx
jbe 0x180019295
nop
mov edx, dword [rdi + 0x28]
mov rcx, rsi
mov r8d, 0x930
imul edx, ebx
add rdx, r13
call fcn.18006c2d0
inc ebx
add rsi, 0x930
cmp ebx, dword [rbp + 8]
jb 0x180019270
test r14, r14
je 0x1800192a0
mov eax, dword [rbp + 8]
mov dword [r14], eax
xor eax, eax
jmp 0x180019207
mov eax, 0x80070057
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180019d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rdi
push r13
sub rsp, 0x160
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, r9
mov rbx, r8
mov r13, rdx
test rdx, rdx
je 0x180019f65
test rbx, rbx
je 0x180019f65
test r9, r9
je 0x180019f65
mov rcx, rbx
mov qword [rsp + 0x150], rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [rsp + 0x1a0]
add rsi, rdi
cmp dword [rsp + 0x1a8], 0
je 0x180019eb2
mov ecx, dword [rsi]
lea rdx, [0x1800e1be0]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180019ecc
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x158], rbp
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
test rax, rax
je 0x180019f54
add rbp, 2
cmp dword [rsp + 0x1a8], 0
je 0x180019ee9
mov edx, dword [rsi]
mov rcx, rbp
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180019f5e
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea rdx, [0x1800e1bd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180019f5e
mov eax, 0xe0032009
mov rbp, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x160
pop r13
pop rdi
pop rbx
ret
mov ecx, dword [rsi]
lea rdx, str..mdf
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180019df5
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
lea rdx, [0x1800e1bd0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
jmp 0x180019e8e
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], 0
call fcn.18006cf60
mov edx, dword [rsi]
lea rcx, [rsp + 0x30]
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
mov r11, rbx
lea r8, [rsp + 0x30]
repne scasb al, byte [rdi]
sub r11, rbp
xor edx, edx
not rcx
add r11, 0x208
sar r11, 1
mov r9d, ecx
xor ecx, ecx
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x180019e38
mov eax, 0x80004005
jmp 0x180019e86
xor eax, eax
jmp 0x180019e86
mov eax, 0x80070057
jmp 0x180019e96
Function at 0x18001ce10
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rbx, qword [rcx + 0x3f0]
xor r14d, r14d
mov rdi, rcx
mov r12, r14
mov r13d, r14d
cmp rbx, qword [rcx + 0x3f8]
jbe 0x18001ce4f
call fcn.18006aa4c
mov rbp, qword [rdi + 0x3d8]
nop word [rax + rax]
mov rsi, qword [rdi + 0x3f8]
cmp qword [rdi + 0x3f0], rsi
jbe 0x18001ce75
call fcn.18006aa4c
test rbp, rbp
je 0x18001ce83
cmp rbp, qword [rdi + 0x3d8]
je 0x18001ce88
call fcn.18006aa4c
mov rcx, rdi
cmp rbx, rsi
je 0x18001cf82
mov r8, r12
mov edx, r13d
call fcn.18001a9f0
xor r11d, r11d
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r11
test rbp, rbp
jne 0x18001cebb
call fcn.18006aa4c
mov r11, r14
jmp 0x18001cebf
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x18001ceca
call fcn.18006aa4c
cmp qword [rbx + 0x20], 8
lea rcx, [rbx + 8]
jb 0x18001ced8
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x18001cf7b
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001cf65
mov rax, qword [rsp + 0x40]
lea rcx, [rdi + 0x3a8]
lea rdx, [rsp + 0x40]
sub rax, 0x2c
inc r13d
mov qword [rsp + 0x40], rax
add r12, rax
call fcn.18001d8d0
test rbp, rbp
jne 0x18001cf4d
call fcn.18006aa4c
mov r11, r14
jmp 0x18001cf51
mov r11, qword [rbp]
cmp rbx, qword [r11 + 0x20]
jb 0x18001cf5c
call fcn.18006aa4c
add rbx, 0x28
jmp 0x18001ce60
call fcn.180003180
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x18001cf93
call fcn.180003180
jmp 0x18001cf93
mov rdx, r12
call fcn.18001a930
mov qword [rdi + 0x370], r12
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18001cfc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
mov rax, qword [rcx + 0x3c8]
mov ebx, edx
mov esi, r9d
sub rax, qword [rcx + 0x3c0]
mov r12d, r8d
mov rdi, rcx
sar rax, 4
cmp rbx, rax
jb 0x18001d002
mov eax, 0x80004005
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rax, qword [rcx + 0x3c8]
mov qword [rsp + 0x50], rbp
sub rax, qword [rcx + 0x3c0]
sar rax, 4
cmp rbx, rax
jb 0x18001d023
call fcn.18006aa4c
mov rbp, qword [rdi + 0x3c0]
add rbx, rbx
mov rcx, qword [rbp + rbx*8 + 8]
test rcx, rcx
je 0x18001d115
cmp rcx, 0xffffffffffffffff
je 0x18001d115
lea edx, [r12 + 0x2c]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001d0ec
mov r12, qword [rsp + 0x70]
mov dword [rsp + 0x58], 0
mov rcx, qword [rbp + rbx*8 + 8]
lea r9, [rsp + 0x58]
mov rdx, r12
mov r8d, esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001d101
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f8
je 0x18001d0b0
cmp eax, 0x3e6
je 0x18001d0b0
test eax, eax
jle 0x18001d11a
movzx eax, ax
or eax, 0x80070000
jmp 0x18001d11a
mov edx, esi
mov rcx, rdi
call fcn.18001d130
mov rdi, rax
test rax, rax
jne 0x18001d0c9
mov eax, 0x8007000e
jmp 0x18001d11a
mov rcx, qword [rbp + rbx*8 + 8]
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001d0f3
call fcn.180003180
jmp 0x18001d11a
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call fcn.18006c2d0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18001d111
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
xor eax, eax
jmp 0x18001d11a
mov eax, 0x80004005
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x18001dfc0
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rax, r9
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
mov ebx, r8d
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x48]
cmp eax, ebx
jne 0x18001dff3
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x18001fb50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x248
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, r9
mov r12, r8
mov rdi, rdx
nop dword [rax + rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x18001fb8f
cmp ax, 9
jne 0x18001fb95
add rdi, 2
jmp 0x18001fb80
cmp word [rdi], 0x22
mov qword [rsp + 0x240], rbp
jne 0x18001fbbb
add rdi, 2
mov edx, 0x22
lea rcx, [rdi + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
jmp 0x18001fbf5
lea rcx, [rdi + 2]
mov edx, 0x20
call qword [sym.imp.SHLWAPI.dll_StrChrW]
lea rcx, [rdi + 2]
mov edx, 9
mov rbp, rax
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rbx, rax
test rbp, rbp
je 0x18001fbf5
test rax, rax
jne 0x18001fbee
mov rbx, rbp
jmp 0x18001fbf5
cmp rbp, rax
cmovb rbx, rbp
test rbx, rbx
jne 0x18001fc04
mov eax, 0xe0032002
jmp 0x18001fd09
sub rbx, rdi
sar rbx, 1
cmp rbx, 0x104
jge 0x18001fbfa
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x18001fc3f
add rbx, rbx
mov rdx, rdi
mov rcx, rsi
mov r8, rbx
call fcn.18006c2d0
xor edi, edi
mov word [rbx + rsi], di
jmp 0x18001fc85
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov rbp, rax
test rax, rax
jne 0x18001fc6c
mov eax, 0x80004005
jmp 0x18001fd09
add rbx, rbx
lea rcx, [rax + 2]
mov rdx, rdi
mov r8, rbx
call fcn.18006c2d0
xor edi, edi
mov word [rbx + rbp + 2], di
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18001fd07
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], di
call fcn.18006cf60
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rax], 0
je 0x18001fcc7
lea rcx, [rsp + 0x20]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp word [rsp + 0x20], 0
je 0x18001fcf2
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18001fd07
mov eax, 0xe0032001
jmp 0x18001fd09
xor eax, eax
mov rbp, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x248
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18001feb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp word [rcx], 0
mov rsi, r8
mov rdi, rdx
jne 0x18001fedc
mov eax, 0x80070057
jmp 0x1800200b0
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x70], rbp
xor ebp, ebp
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18001ff21
call fcn.180003180
jmp 0x1800200a3
xor eax, eax
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea r8d, [rax + 0x10]
mov rcx, rbx
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x48], bpl
mov qword [rsp + 0x49], rax
mov dword [rsp + 0x51], eax
mov word [rsp + 0x55], ax
mov byte [rsp + 0x57], al
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002005c
mov ecx, dword [rsp + 0x48]
cmp ecx, dword [str.MAC]
jne 0x18001ff79
mov dword [rdi], 5
jmp 0x180020092
cmp ecx, dword [str.fLaC]
jne 0x18001ff8c
mov dword [rdi], 6
jmp 0x180020092
cmp ecx, dword [str.wvpk]
jne 0x18001ff9f
mov dword [rdi], 7
jmp 0x180020092
cmp ecx, dword [str.IsZ_]
jne 0x18001ffb2
mov dword [rdi], 0xa
jmp 0x180020092
cmp ecx, dword [str.RIFF]
jne 0x18001ffd3
mov rax, qword [rsp + 0x50]
cmp rax, qword [str.WAVEfmt]
jne 0x18001ffd3
mov dword [rdi], 8
jmp 0x180020092
lea rax, [rsp + 0x48]
lea rcx, str.MEDIA_DESCRIPTOR
mov rdx, qword [rax]
cmp rdx, qword [rcx]
jne 0x18001fff5
mov rdx, qword [rax + 8]
cmp rdx, qword [rcx + 8]
jne 0x18001fff5
mov eax, ebp
jmp 0x18001fffa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x180020009
mov dword [rdi], 2
jmp 0x180020092
xor eax, eax
xor r8d, r8d
mov rcx, rbx
lea r9d, [rax + 2]
lea rdx, [rax - 0x10]
mov byte [rsp + 0x58], bpl
mov qword [rsp + 0x59], rax
mov dword [rsp + 0x61], eax
mov word [rsp + 0x65], ax
mov byte [rsp + 0x67], al
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180020070
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180020070
call fcn.180003180
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1800200a3
mov eax, dword [rsp + 0x5c]
cmp eax, dword [str.NER5]
je 0x18002008c
mov eax, dword [rsp + 0x60]
cmp eax, dword [str.NERO]
je 0x18002008c
mov dword [rsi], ebp
jmp 0x180020098
mov dword [rdi], 1
mov dword [rsi], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18006a4f0
add rsp, 0x78
pop rdi
pop rsi
ret
Function at 0x180020b90
Capabilities:
Get disk information via ioctl
Get disk size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x1800ff050]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor eax, eax
mov rdi, rdx
xor esi, esi
mov qword [r11 - 0x70], rsi
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
lea rax, [r11 - 0x68]
mov rbx, r8
xor r9d, r9d
mov qword [r11 - 0x78], rax
lea rax, [r11 - 0x40]
mov edx, 0x24050
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180020c32
cmp dword [rsp + 0x40], esi
je 0x180020c32
cmp dword [rsp + 0x7c], 0x800
jne 0x180020ce6
mov rax, qword [rsp + 0x80]
mov qword [rbx], rax
xor eax, eax
jmp 0x180020ceb
xor eax, eax
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov edx, 0x2404c
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180020ce6
cmp dword [rsp + 0x40], esi
je 0x180020ce6
cmp dword [rsp + 0x64], 0x800
jne 0x180020ce6
xor eax, eax
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov edx, 0x7405c
mov rcx, rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180020ce6
cmp dword [rsp + 0x40], esi
je 0x180020ce6
mov rax, qword [rsp + 0x48]
mov qword [rbx], rax
xor eax, eax
jmp 0x180020ceb
mov eax, 0xe003200c
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.18006a4f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret