joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007da6c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14007dab6
call fcn.140067d30
mov dword [rax], 0xf
call fcn.140067d10
mov dword [rax], 0xd
call fcn.1400760f4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400574e0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14007dac1
lea eax, [rbx + 1]
jmp 0x14007daa3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14007daa1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14007daa3

Function at 0x14007e08c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14007e0a2
mov al, 1
jmp 0x14007e102
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14007e0b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14007e100
mov ecx, dword [rcx + 0x18]
nop
call fcn.140067e5c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007e100
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14007e100
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14007e100
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14007e102
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a0880
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 1
je 0x1400a08a9
mov rcx, qword [rsi]
jmp 0x1400a08b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400a08fb
mov dil, 1
test bl, bl
je 0x1400a08e4
cmp byte [rsi + 8], 1
je 0x1400a08d0
mov rcx, qword [rsi]
jmp 0x1400a08d9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400574e0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 1
jne 0x1400a0912
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400a0915
mov rcx, qword [rsi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400a0928
xor edi, edi
jmp 0x1400a08e4
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 1
jne 0x1400a0941
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400a0944
mov rcx, qword [rsi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x1400a08e4
Function at 0x1400a09e0
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
movaps xmmword [rsp + 0x130], xmm6
mov ebx, r9d
mov edi, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov qword [rsp + 0x40], 0xb
mov rax, qword [0x1400d1848]
mov al, byte [rax + 0xb]
test al, al
jne 0x1400a0c8d
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x120], r13
movaps xmm6, xmmword [0x1400c9910]
movaps xmmword [rsp + 0x110], xmm6
lea r15, [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.1400267f0
cmp byte [r15 + 0x17], 0
js 0x1400a0b11
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x80]
movaps xmmword [rsp + 0x110], xmm0
lea r12, [rsp + 0x80]
mov rcx, r12
call fcn.140024ee0
lea r15, [rsp + 0xf0]
mov qword [r15 + 0x10], r13
movaps xmmword [r15], xmm6
mov rcx, r14
mov rdx, r15
call fcn.1400a4280
xorps xmm0, xmm0
movups xmmword [r12 + 0x60], xmm0
movups xmmword [r12 + 0x50], xmm0
movups xmmword [r12 + 0x40], xmm0
movups xmmword [r12 + 0x30], xmm0
movabs rax, 0x4000000070
mov qword [r12], rax
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [r12 + 8], rax
lea rax, str.runas
mov qword [r12 + 0x10], rax
cmp byte [rsp + 0x127], 0
js 0x1400a0b33
lea rax, [rsp + 0x110]
jmp 0x1400a0b3b
mov rdx, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
lea rcx, [rsp + 0x110]
call fcn.140022a20
jmp 0x1400a0a92
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x98], rax
cmp byte [rsp + 0x107], 0
jns 0x1400a0b55
mov r15, qword [rsp + 0xf0]
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x20], r15
xor r14d, r14d
mov qword [rcx + 0x28], r14
xor dil, 1
movzx eax, dil
mov dword [rcx + 0x30], eax
mov qword [rcx + 0x38], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400a0beb
test bl, bl
je 0x1400a0be3
lea rdi, [rsp + 0x40]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchElevatedProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x9e
call fcn.140046700
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14002c620
mov rcx, qword [rsp + 0xe8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.14002c6a0
mov r14, qword [rsp + 0xe8]
mov rcx, rsi
mov rdx, r14
call fcn.140023330
cmp byte [rsp + 0x107], 0
jns 0x1400a0c0d
mov rcx, qword [rsp + 0xf0]
call fcn.1400562cc
cmp byte [rsp + 0x127], 0
jns 0x1400a0c24
mov rcx, qword [rsp + 0x110]
call fcn.1400562cc
mov qword [rsp + 0x40], 0xb
mov rax, qword [0x1400d1848]
mov al, byte [rax + 0xb]
test al, al
jne 0x1400a0c69
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1400574e0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, al
lea r8, [rsp + 0x80]
mov qword [r8], 0
lea rdx, [rsp + 0x40]
mov r9d, 2
call fcn.140043e40
jmp 0x1400a0c3b
movzx ecx, al
lea rax, str.LaunchElevatedProcess
lea r8, [rsp + 0x80]
mov qword [r8], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
call fcn.140043e40
jmp 0x1400a0a33
Function at 0x1400a16c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1400f4138], 0
je 0x1400a1706
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400574e0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1400f4140]
test rdi, rdi
jne 0x1400a17d3
mov ecx, 0x18
call fcn.140056290
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140086760
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x1400c9910]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.14001a8f0
movsx rax, byte [rdi + 0x17]
mov rcx, rdi
test rax, rax
jns 0x1400a1780
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x1400a17b7
add rax, rax
test rax, rax
je 0x1400a17b7
lea rdx, [rax - 2]
cmp word [rcx + rax - 2], 0x5c
mov rax, rdx
jne 0x1400a1788
cmp rdx, 0xfffffffffffffffe
je 0x1400a17b7
sar rdx, 1
inc rdx
mov rcx, rdi
mov r8, 0xffffffffffffffff
call fcn.14001cb50
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140022d00
mov qword [0x1400f4140], rdi
test byte [0x1400e5020], 1
je 0x1400a16e9
cmp byte [rdi + 0x17], 0
jns 0x1400a17e9
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f4138], rax
inc rax
cmp rax, 1
ja 0x1400a16e9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140086760
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x1400a1925
mov rcx, qword [0x1400f4140]
lea rdx, [rsp + 0x40]
call fcn.140022cd0
mov rcx, qword [0x1400f4140]
movsx rax, byte [rcx + 0x17]
test rax, rax
js 0x1400a192c
test al, al
je 0x1400a193d
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400a18b7
lea rdx, [0x1400ca39a]
mov r8d, 1
call fcn.140022d00
mov rcx, qword [0x1400f4140]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140022d00
mov rcx, qword [0x1400f4140]
cmp byte [rcx + 0x17], 0
jns 0x1400a18d9
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400f4138], rax
inc rax
cmp rax, 1
ja 0x1400a16e9
mov qword [0x1400f4138], 0
xor esi, esi
jmp 0x1400a16e9
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400a193d
mov rdx, qword [rcx]
jmp 0x1400a1896
ud2
Function at 0x1400a6dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x88], rax
movaps xmm0, xmmword [0x1400c9910]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.DirectoryExists
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x235
call fcn.140046700
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14002c620
cmp byte [rdi + 0x17], 0
jns 0x1400a6e32
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
setne al
and edi, 0x10
shr edi, 4
and dil, al
mov rcx, rsi
call fcn.14002c6a0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400574e0
mov eax, edi
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400b95a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400b95b3
cmp dword [0x1400fab58], ecx
jle 0x1400b95ba
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400b9600
test edi, edi
je 0x1400b95b3
cmp byte [rsi + rdi - 1], 0xa
je 0x1400b95b3
lea rcx, [0x1400c99a4]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400b9600

Function at 0x1400b9600
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400e3040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400b9677
mov dword [rsp + 0x34], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r15
mov ecx, dword [rsp + 0x34]
test eax, eax
cmovne eax, ecx
je 0x1400b9677
add rdi, rax
test ecx, ecx
jne 0x1400b963d
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400574e0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140002410
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov eax, 0x20
mov word [rsp + 0x68], ax
mov eax, 0x22
mov word [rsp + 0x6a], ax
lea rax, [0x1400045b0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140002558
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [0x1400090a0]
imul rax, rax, 0x20
lea rcx, [0x1400070c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [0x1400090a0]
inc eax
mov dword [0x1400090a0], eax
mov rax, qword [rsp + 0x50]
add rax, 0x70
mov ecx, 8
imul rcx, rcx, 0xe
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
lea rax, [0x1400012f0]
mov rcx, qword [rsp + 0x58]
xchg qword [rcx], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x60]
mov qword [0x1400070a8], rax
lea rax, [rsp + 0x78]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x78]
lea rcx, [0x140004320]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140002571
lfence
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x140004340]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140003000
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x98
mov eax, 0x20
mov word [rsp + 0x68], ax
mov eax, 0x22
mov word [rsp + 0x6a], ax
lea rax, [0x140004460]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByName]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x140003148
lea rax, [rsp + 0x78]
lea rcx, [rsp + 0x68]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov eax, dword [0x1400090a0]
imul rax, rax, 0x20
lea rcx, [0x1400070c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [0x1400090a0]
inc eax
mov dword [0x1400090a0], eax
mov rax, qword [rsp + 0x50]
add rax, 0x70
mov ecx, 8
imul rcx, rcx, 0xe
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
lea rax, [0x140001480]
mov rcx, qword [rsp + 0x58]
xchg qword [rcx], rax
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x60]
mov qword [0x140007090], rax
lea rax, [rsp + 0x78]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x78]
lea rcx, [0x140004320]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x140003161
lfence
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x68]
lea rcx, [0x140004340]
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x98
pop rdi
pop rsi
ret
Function at 0x140003490
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x1400034f1
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14000358e
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x45474150
je 0x14000354a
lfence
mov rax, qword [rsp + 0x28]
mov r8d, 5
lea rdx, [0x140004610]
mov rcx, rax
call fcn.140003bd0
test eax, eax
jne 0x140003589
lfence
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.1400033e0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140003589
jmp 0x14000358e
jmp 0x1400034e7
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1400035a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xc0000004
je 0x140003602
mov rax, qword [rsp + 0x38]
jmp 0x140003709
mov eax, dword [rsp + 0x24]
mov r8d, 0x6e556353
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x14000362d
mov rax, qword [rsp + 0x38]
jmp 0x140003709
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140003669
lfence
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
jmp 0x140003709
mov dword [rsp + 0x20], 0
jmp 0x14000367d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x1400036f7
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rdi, rcx
lea rsi, [rdx + rax + 8]
mov ecx, 0x128
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x68]
call fcn.1400037a0
mov rdx, qword [rsp + 0x1a0]
mov rcx, rax
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1400036f2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x1a8], 0
je 0x1400036f0
mov rax, qword [rsp + 0x1a8]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
jmp 0x1400036f7
jmp 0x140003673
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140003af0
add rsp, 0x188
pop rdi
pop rsi
ret

Function at 0x140003730
Capabilities:
Hash data using fnv

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x140003748
xor eax, eax
jmp 0x140003799
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
xor eax, 0x4b9ace2f
imul eax, eax, 0x1000193
mov dword [rsp + 4], eax
mov dword [rsp], 1
jmp 0x140003770
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x140003795
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
imul eax, eax, 0x1000193
mov dword [rsp + 4], eax
jmp 0x140003768
mov eax, dword [rsp + 4]
add rsp, 0x18
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x141adc430]
mov dword [rax], 1
mov rax, qword [0x141adc440]
mov dword [rax], 1
mov rax, qword [0x141adc450]
mov dword [rax], 1
mov rax, qword [0x141adc3e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400038e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140004ca0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140004ca0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400045b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x141ae20c8]
test eax, eax
je 0x14000464a
lea rax, [0x141ae20a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x141ae20d0]
mov qword [rbp - 8], rax
jmp 0x14000462e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140004622
cmp qword [rbp - 0x10], 0
je 0x140004622
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400045e8
lea rax, [0x141ae20a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000464b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140004750
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140004778
mov eax, 0
jmp 0x1400047c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400047a1
mov eax, 0
jmp 0x1400047c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400047c1
mov eax, 0
jmp 0x1400047c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400047cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000484a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140004841
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140004841
mov rax, qword [rbp - 8]
jmp 0x14000485f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140004814
mov eax, 0
add rsp, 0x20
pop rbp
ret