joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800042e0
Capabilities:
Delete file
Get common file path

Disassembly:
sub rsp, 0x488
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x470], rax
call fcn.180003d30
test eax, eax
jne 0x18000446e
lea rcx, [rsp + 0x30]
call sym.dcapi.dll_dc_load_config
test eax, eax
jne 0x18000446e
mov ecx, dword [rsp + 0x30]
cmp ecx, 0x2b4
jae 0x1800043b5
lea rcx, [rsp + 0x260]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1800043f2
cmp eax, 0x104
jae 0x1800043f2
lea rax, str.dc_fsf.sys
lea r9, [rsp + 0x260]
lea r8, str._sdrivers_s
lea rcx, [rsp + 0x50]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.1800045d0
test eax, eax
jns 0x180004399
mov eax, 0x7a
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180015920
add rsp, 0x488
ret
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.180003b40
test eax, eax
jne 0x18000446e
mov ecx, dword [rsp + 0x30]
cmp ecx, 0x16e
jae 0x18000440f
lea r8, [0x18002a6c0]
lea rdx, str.UpperFilters
lea rcx, str.SYSTEMCurrentControlSetControlClass4D36E965_E325_11CE_BFC1_08002BE10318
call fcn.1800038a0
test eax, eax
jne 0x18000446e
mov eax, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
or eax, 0x180
mov dword [rsp + 0x34], eax
jmp 0x180004413
mov eax, 0x7b
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180015920
add rsp, 0x488
ret
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x480], rbx
cmp ecx, 0x282
jae 0x18000442b
bts eax, 0xa
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x30]
call sym.dcapi.dll_dc_save_config
mov ebx, eax
test eax, eax
jne 0x180004466
call sym.dcapi.dll_dc_get_version
lea r8, str.DC_UPD__d
lea rcx, [rsp + 0x50]
mov r9d, eax
mov edx, 0x104
call fcn.1800045d0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, ebx
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.180015920
add rsp, 0x488
ret
Function at 0x180004650
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov r12, rcx
mov ecx, 0x10110
mov rsi, rdx
call sym.dcapi.dll_secure_alloc
mov rdi, rax
test rax, rax
jne 0x18000467d
lea eax, [rdi + 9]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x60], rbx
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800046bb
lea ebx, [rax + 0xe]
jmp 0x1800047c9
mov rcx, rdi
mov qword [rsp + 0x68], rbp
call fcn.180027d30
lea r9, [rsp + 0x70]
lea rdx, [rdi + 0xd0]
mov r8d, 0x10000
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18000472e
nop dword [rax]
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x18000472e
lea rdx, [rdi + 0xd0]
mov r8d, eax
mov rcx, rdi
call fcn.180028490
lea r9, [rsp + 0x70]
lea rdx, [rdi + 0xd0]
mov r8d, 0x10000
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1800046f0
lea rdx, [rdi + 0x100d0]
mov rcx, rdi
call fcn.1800283b0
movsxd r11, dword [r12]
mov eax, 0x100
sub eax, r11d
lea rcx, [r11 + r12 + 4]
xor edx, edx
movsxd r8, eax
call fcn.180015950
mov rbp, qword [rsp + 0x68]
mov rcx, rdi
sub rcx, r12
lea r11, [r12 + 4]
mov edx, 4
nop dword [rax]
mov eax, dword [rcx + r11 + 0x100cc]
add r11, 0x10
add dword [r11 - 0x10], eax
mov eax, dword [rcx + r11 + 0x100c0]
add dword [r11 - 0xc], eax
mov eax, dword [rcx + r11 + 0x100c4]
add dword [r11 - 8], eax
mov eax, dword [rcx + r11 + 0x100c8]
add dword [r11 - 4], eax
dec rdx
jne 0x180004770
mov ecx, dword [r12]
mov edx, 0x40
cmp ecx, edx
cmovg edx, ecx
mov dword [r12], edx
test rsi, rsi
je 0x1800047c9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call sym.dcapi.dll_secure_free
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1800047f0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x6d0
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov r12, rcx
mov r14, rdx
mov r9, rdx
lea rcx, [rsp + 0x2a0]
lea r8, str._s
mov edx, 0x208
call fcn.180015fe0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x180004a39
mov qword [rsp + 0x710], rbp
mov qword [rsp + 0x6c8], rsi
mov qword [rsp + 0x6c0], r15
xor r15d, r15d
mov ebx, 0x2c
test byte [rsp + 0x50], 0x10
jne 0x180004a00
lea rax, [rsp + 0x7c]
lea r8, str._s_s
lea rcx, [rsp + 0x2a0]
mov r9, r14
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.180015fe0
mov ecx, 0x10110
call sym.dcapi.dll_secure_alloc
mov rbp, rax
test rax, rax
jne 0x1800048bf
lea ebx, [rax + 9]
jmp 0x1800049fc
xor r9d, r9d
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x2a0]
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800048fc
lea ebx, [rax + 0xe]
jmp 0x1800049f4
mov rcx, rbp
call fcn.180027d30
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0xd0]
mov r8d, 0x10000
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180004966
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180004966
lea rdx, [rbp + 0xd0]
mov r8d, eax
mov rcx, rbp
call fcn.180028490
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0xd0]
mov r8d, 0x10000
mov rcx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180004928
lea rdx, [rbp + 0x100d0]
mov rcx, rbp
call fcn.1800283b0
movsxd rdx, dword [r12]
mov eax, 0x100
sub eax, edx
lea rcx, [rdx + r12 + 4]
xor edx, edx
movsxd r8, eax
call fcn.180015950
mov rcx, rbp
lea rdx, [r12 + 4]
sub rcx, r12
mov edi, 4
nop
mov eax, dword [rcx + rdx + 0x100cc]
add rdx, 0x10
add dword [rdx - 0x10], eax
mov eax, dword [rcx + rdx + 0x100c0]
add dword [rdx - 0xc], eax
mov eax, dword [rcx + rdx + 0x100c4]
add dword [rdx - 8], eax
mov eax, dword [rcx + rdx + 0x100c8]
add dword [rdx - 4], eax
dec rdi
jne 0x1800049a0
mov eax, dword [r12]
mov ecx, 0x40
mov ebx, r15d
cmp eax, ecx
cmovg ecx, eax
mov dword [r12], ecx
test rsi, rsi
je 0x1800049f4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call sym.dcapi.dll_secure_free
test ebx, ebx
jne 0x180004a16
lea rdx, [rsp + 0x50]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180004874
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x6c0]
mov rsi, qword [rsp + 0x6c8]
mov rbp, qword [rsp + 0x710]
jmp 0x180004a46
mov rdx, r14
mov rcx, r12
call fcn.180004650
mov ebx, eax
xor eax, eax
lea rdi, [rsp + 0x50]
mov ecx, 0x250
rep stosb byte [rdi], al
lea rdi, [rsp + 0x2a0]
mov ecx, 0x410
rep stosb byte [rdi], al
mov eax, ebx
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.180015920
add rsp, 0x6d0
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x180005dc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push r12
push r13
push r14
mov eax, 0x1290
call fcn.1800166c0
sub rsp, rax
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x1270], rax
xor r13d, r13d
xor r12d, r12d
mov r14, r8
mov rsi, rdx
mov ebx, ecx
cmp ecx, 0xffffffff
jne 0x180005e33
lea rdx, [rsp + 0x250]
lea rcx, str..GLOBALROOTArcNamemulti_0_disk_0_rdisk_0_partition_1_
call sym.dcapi.dll_dc_get_drive_info
test eax, eax
jne 0x180005e26
cmp dword [rsp + 0x254], 2
ja 0x180005e26
mov ebx, dword [rsp + 0x268]
jmp 0x180005e2b
mov eax, 0x1c
test eax, eax
jne 0x180005fe8
mov qword [rsp + 0x1280], rdi
test rsi, rsi
je 0x180005e9b
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x180005e79
lea eax, [r13 + 0xf]
jmp 0x180005fe0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x180005e91
cmp eax, 0x200000
jle 0x180005ef2
mov ebx, 0x16
jmp 0x180005fc3
xor edx, edx
mov ecx, ebx
call sym.dcapi.dll_dc_disk_open
mov r12, rax
test rax, rax
jne 0x180005eb6
lea eax, [r12 + 0xd]
jmp 0x180005fe0
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov r8d, 0x200
mov rcx, rax
call sym.dcapi.dll_dc_disk_read
mov ebx, eax
test eax, eax
jne 0x180005ee6
mov eax, 0xaa55
cmp word [rsp + 0x24e], ax
je 0x180005f12
mov ebx, 0x12
mov edi, dword [rsp + 0x40]
test ebx, ebx
jne 0x180005fd1
movsxd rcx, edi
mov qword [rsp + 0x1288], rbp
call fcn.1800165f8
mov rbp, rax
test rax, rax
jne 0x180005f43
lea ebx, [rax + 9]
jmp 0x180005fbb
mov eax, dword [rsp + 0x52]
cmp eax, 0x10eb9090
je 0x180005f2b
cmp eax, 0x20b60251
je 0x180005f2b
mov ebx, 0x15
jmp 0x180005ee6
mov rax, qword [rsp + 0x5e]
movzx edi, word [rsp + 0x58]
shl rax, 9
shl edi, 9
mov qword [rsp + 0x48], rax
jmp 0x180005eea
mov r8d, edi
mov rdx, rax
test rsi, rsi
je 0x180005f6e
lea r9, [rsp + 0x40]
mov rcx, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180005f81
lea ebx, [rax + 0xf]
jmp 0x180005fb3
mov r9, qword [rsp + 0x48]
mov rcx, r12
call sym.dcapi.dll_dc_disk_read
mov ebx, eax
test eax, eax
jne 0x180005fb3
mov rdx, rbp
cmp edi, 0x35a
jbe 0x180005fae
nop dword [rax]
cmp dword [rdx], 0x1434a669
jne 0x180005fa1
cmp dword [rdx + 4], 0x7269da46
je 0x180006008
dec edi
inc rdx
cmp edi, 0x35a
ja 0x180005f90
mov ebx, 0x17
mov rcx, rbp
call fcn.180016574
mov rbp, qword [rsp + 0x1288]
test r13, r13
je 0x180005fd1
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x180005fde
mov rcx, r12
call sym.dcapi.dll_dc_disk_close
mov eax, ebx
mov rdi, qword [rsp + 0x1280]
mov rcx, qword [rsp + 0x1270]
xor rcx, rsp
call fcn.180015920
add rsp, 0x1290
pop r14
pop r13
pop r12
pop rsi
pop rbx
ret
test rdx, rdx
je 0x180005fae
mov rcx, r14
mov r8d, 0x35a
call fcn.180016100
xor ebx, ebx
jmp 0x180005fb3
Function at 0x180006750
Capabilities:
Get disk information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x280], rax
movzx eax, word [rcx]
mov esi, r8d
mov ebx, edx
cmp ax, 0x5c
je 0x1800067a3
lea r8, str.._c:
lea rcx, [rsp + 0x70]
movzx r9d, ax
mov edx, 0x104
call fcn.180015fe0
jmp 0x1800067b6
mov rdx, rcx
lea rcx, [rsp + 0x70]
mov r8d, 0x104
call fcn.180016710
xor ebp, ebp
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800067f1
lea eax, [rbp + 0xd]
jmp 0x180006900
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov edx, 0x70000
mov rcx, rdi
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006832
lea ebx, [rax + 1]
jmp 0x1800068d3
cmp dword [rsp + 0x60], 0xb
je 0x180006843
mov ebx, 0x28
jmp 0x1800068d3
test dword [rsp + 0x6c], 0x1ff
je 0x180006854
mov ebx, 0x22
jmp 0x1800068d3
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x2d1080
mov rcx, rdi
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x180006892
lea ebx, [rax + 1]
jmp 0x1800068d3
test ebx, ebx
jne 0x1800068e5
mov ecx, dword [rsp + 0x4c]
call fcn.180004ef0
test eax, eax
jne 0x1800068ce
mov ecx, dword [rsp + 0x4c]
lea edx, [rbx + 1]
mov r8d, esi
call sym.dcapi.dll_dc_set_mbr
mov ebx, eax
cmp eax, 0x14
jne 0x1800068d3
mov ecx, dword [rsp + 0x4c]
mov r8d, esi
xor edx, edx
call sym.dcapi.dll_dc_set_mbr
mov ebx, eax
cmp eax, 0x14
jne 0x1800068d3
mov ebx, 0x29
test rdi, rdi
je 0x1800068e1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x180006900
mov r8d, dword [rsp + 0x4c]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180006480
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180015920
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180006a10
Capabilities:
Get token membership

Disassembly:
push rdi
sub rsp, 0x80
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor edi, edi
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 0x20]
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x180006a8a
lea eax, [rdi + 9]
jmp 0x180006ace
lea r8, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x90], rbx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180006aa8
lea ebx, [rax + 1]
jmp 0x180006ab4
cmp dword [rsp + 0x60], edi
mov ebx, 0x1b
cmovne ebx, edi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x180006ac4
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180015920
add rsp, 0x80
pop rdi
ret

Function at 0x180006af0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor r9d, r9d
mov edi, r8d
mov rsi, rdx
mov qword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180006b71
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov eax, 0xd
add rsp, 0x40
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov rsi, rdx
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x180006bdd
lea eax, [rbx + 0xd]
jmp 0x180006c3b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
movsxd rcx, eax
mov dword [rbp], eax
call fcn.1800165f8
mov qword [rsi], rax
test rax, rax
jne 0x180006c00
lea ebx, [rax + 9]
jmp 0x180006c2b
mov r8d, dword [rbp]
lea r9, [rsp + 0x68]
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180006c2b
mov rcx, qword [rsi]
call fcn.180016574
mov ebx, 0xf
test rdi, rdi
je 0x180006c39
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180006c60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x38], ecx
mov ebx, ecx
mov edx, ecx
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x180006c92
add rsp, 0x40
pop rbx
ret
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov ecx, 0x220060
lea r8d, [r9 + 0xc]
mov dword [rsp + 0x20], 0
call sym.dcapi.dll_dc_device_control
test eax, eax
je 0x180006cc2
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rax, qword [rsp + 0x30]
add rsp, 0x40
pop rbx
ret

Function at 0x180007010
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rbp, rdx
xor edx, edx
mov rdi, rcx
mov ecx, dword [rcx + 0xc]
mov rax, r9
mov qword [rsp + 0x70], rbx
div rcx
mov qword [rsp + 0x78], r14
mov rbx, r9
movsxd r12, r8d
test rdx, rdx
jne 0x18000705d
mov eax, r12d
div ecx
test edx, edx
jne 0x18000705d
mov r13d, dword [rsp + 0x60]
mov qword [rsp + 0x68], rbx
mov r14d, r12d
mov rsi, rbp
jmp 0x180007090
mov ecx, dword [rdi + 0xc]
xor edx, edx
mov rax, rbx
div rcx
mov eax, edx
mov r13, rdx
lea r14d, [rdx + r12]
sub rbx, rax
xor edx, edx
mov eax, r14d
mov qword [rsp + 0x68], rbx
div ecx
sub ecx, edx
add r14d, ecx
mov ecx, r14d
call fcn.1800165f8
mov rsi, rax
test rsi, rsi
jne 0x18000709a
lea edi, [rsi + 9]
jmp 0x1800070e4
mov rcx, qword [rdi]
lea r8, [rsp + 0x6c]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x60], eax
cmp eax, 0xffffffff
jne 0x1800070bd
mov edi, 0xf
jmp 0x1800070e4
mov rcx, qword [rdi]
lea r9, [rsp + 0x60]
xor ebx, ebx
mov r8d, r14d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, 0xf
test eax, eax
cmove ebx, edi
mov edi, ebx
mov r14, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
cmp rsi, rbp
je 0x180007110
test edi, edi
jne 0x180007108
mov edx, r13d
mov r8, r12
mov rcx, rbp
add rdx, rsi
call fcn.180016100
mov rcx, rsi
call fcn.180016574
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180007130
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rdi
sub rsp, 0x58
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x20], r12
mov rbp, rdx
xor edx, edx
mov r12, rcx
mov ecx, dword [rcx + 0xc]
mov rax, r9
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
div rcx
mov qword [r11 - 0x38], r15
mov rbx, r9
movsxd r14, r8d
test rdx, rdx
jne 0x180007183
mov eax, r14d
div ecx
test edx, edx
jne 0x180007183
mov r15d, dword [rsp + 0x70]
mov qword [r11 + 0x10], rbx
mov r13d, r14d
mov rdi, rbp
jmp 0x1800071b8
mov ecx, dword [r12 + 0xc]
xor edx, edx
mov rax, rbx
div rcx
mov eax, edx
mov r15, rdx
lea r13d, [rdx + r14]
sub rbx, rax
xor edx, edx
mov eax, r13d
mov qword [rsp + 0x78], rbx
div ecx
sub ecx, edx
add r13d, ecx
mov ecx, r13d
call fcn.1800165f8
mov rdi, rax
test rdi, rdi
jne 0x1800071c5
lea ebx, [rdi + 9]
jmp 0x18000726d
mov rcx, qword [r12]
lea r8, [rsp + 0x7c]
xor r9d, r9d
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x1800071ec
mov ebx, 0xf
jmp 0x18000726d
mov rcx, qword [r12]
mov qword [rsp + 0x50], rsi
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rdx, rdi
cmp rdi, rbp
je 0x180007256
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000721b
lea ebx, [rsi + 0xf]
jmp 0x180007268
mov ecx, r15d
mov r8, r14
mov rdx, rbp
add rcx, rdi
call fcn.180016100
mov edx, dword [rsp + 0x78]
mov rcx, qword [r12]
lea r8, [rsp + 0x7c]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [r12]
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
mov r8d, r13d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, 0xf
test eax, eax
cmove esi, ebx
mov ebx, esi
mov rsi, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x40]
mov r12, qword [rsp + 0x48]
cmp rdi, rbp
mov rbp, qword [rsp + 0x80]
je 0x180007296
mov rcx, rdi
call fcn.180016574
mov eax, ebx
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x1800078d0
Capabilities:
Enumerate gui resources
Get memory capacity

Disassembly:
mov qword [rsp + 8], rdi
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x180038240]
xor rax, rsp
mov qword [rbp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x38], rax
call qword [sym.imp.USER32.dll_GetShellWindow]
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x50], rax
call qword [sym.imp.USER32.dll_GetOpenClipboardWindow]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x64], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x68], eax
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x78], rax
call qword [sym.imp.USER32.dll_GetKBCodePage]
mov dword [rbp - 0x80], eax
call qword [sym.imp.USER32.dll_GetCursor]
mov rcx, qword [rsp + 0x30]
mov qword [rbp - 0x78], rax
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov qword [rbp - 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, 0x4bf
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [rbp - 0x60], eax
call qword [sym.imp.USER32.dll_GetInputState]
mov dword [rbp - 0x5c], eax
call qword [sym.imp.USER32.dll_GetMessageTime]
mov dword [rbp - 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetOEMCP]
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x18
mov dword [rbp + 0x18], 0x40
mov dword [rbp + 0x58], 0x48
mov dword [rbp - 0x54], eax
call qword [sym.imp.USER32.dll_GetCursorInfo]
lea rcx, [rbp - 0x38]
call qword [sym.imp.USER32.dll_GetCaretPos]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea r9, [rbp - 0x20]
mov rcx, rax
lea rax, [rbp - 0x18]
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rbp]
mov rcx, rax
lea rax, [rbp + 8]
lea r8, [rbp - 8]
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x58]
mov rcx, rax
mov r8d, 0x48
call sub.PSAPI.DLL_GetProcessMemoryInfo
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
lea rcx, [rsp + 0x30]
mov edx, 0x170
call fcn.180007570
lea rcx, [0x180007640]
xor edx, edx
call qword [sym.imp.USER32.dll_EnumWindows]
mov r8d, dword [0x180039a10]
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, qword [0x180039a18]
mov ecx, 0x220020
call sym.dcapi.dll_dc_device_control
mov rdi, qword [0x180039a18]
xor eax, eax
mov ecx, 0x2000
mov dword [0x180039a10], eax
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180015920
mov rdi, qword [rsp + 0x1c0]
add rsp, 0x1b0
pop rbp
ret