joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800078f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x30]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18002cbb0]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180007954
mov eax, 0xa
jmp 0x1800079e3
test esi, esi
je 0x180007976
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180007999
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180007999
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180007992
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180007999
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
movzx eax, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180007a00
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18002c258]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180007b2a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180007b21
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180007b04
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180007b04
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180007b04
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180007ac2
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18002c540]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180007b21
jmp 0x180007af7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180007af7
mov rcx, qword [0x18002c540]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180007b21
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180007a70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180007b83
cmp dword [rbx + 0xc], esi
jbe 0x180007b83
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180007b7c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180007ef0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180007b40
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180009120
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800080a0
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x18000810f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x1800080f8
mov qword [rsp + 0x38], rsi
mov rax, qword [rdi]
xor edx, edx
mov r8d, dword [rax + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800080ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1800080c0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18002c540]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800081d0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x180008210
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18002cba8]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000824e
cmp rsi, r14
jb 0x180008246
cmp rsi, r15
jae 0x180008246
cmp qword [rsi + 8], 0
jne 0x180008417
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180008231
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800082e2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800082d9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800082d9
cmp dword [rsp + 0x70], 0x10000
je 0x18000835b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800082d9
sub rbx, rbp
cmp rbx, r14
jae 0x1800082a0
test rsi, rsi
jne 0x1800083c0
cmp rdi, r15
ja 0x1800083ff
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800083ff
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800083ff
cmp dword [rsp + 0x70], 0x10000
je 0x180008391
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180008312
jmp 0x1800083ff
test rbx, rbx
je 0x1800082d9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800083c0
cmp rbx, r14
jae 0x180008280
jmp 0x1800082e2
test rdi, rdi
je 0x1800083ff
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800083c0
cmp rdi, r15
jbe 0x1800082f0
jmp 0x1800083ff
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800083d0
mov rax, qword [0x18002cba8]
mov qword [rsi], rax
mov qword [0x18002cba8], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x14001deb0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x14001df08
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rax], 0
xor eax, eax
add rsp, 0x78
ret
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
mov edx, 1
xor r8d, r8d
call sub.KERNEL32.dll_SetHandleInformation
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x50], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp rax, qword [rsp + 0x48]
setl al
and al, 1
cmp al, 0
je 0x14001e016
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x40]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x3c], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rax]
add rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x3c]
lea r9, [rsp + 0x5c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x5c], 0
setbe al
and al, 1
cmp al, 0
jne 0x14001dfcc
cmp dword [rsp + 0x38], 0
jne 0x14001e003
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x28]
mov eax, eax
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
mov eax, dword [rsp + 0x5c]
add rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
jmp 0x14001df48
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rax
mov qword [rcx], rdx
add rsp, 0x78
ret
Function at 0x140023c70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x80], rcx
cmp qword [rax + 8], 0
sete al
and al, 1
cmp al, 0
je 0x140023cbc
mov rax, qword [rsp + 0x38]
mov qword [rax], 0
xor eax, eax
add rsp, 0x88
ret
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x7c], 0
mov qword [rsp + 0x70], 0
mov rax, qword [rax + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x70]
cmp rax, qword [rsp + 0x68]
setl al
and al, 1
cmp al, 0
je 0x140023dcf
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
sub rcx, qword [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x60]
mov edx, ecx
mov ecx, 0x40000000
cmp edx, 0x40000000
cmovl ecx, edx
mov dword [rsp + 0x5c], ecx
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov r9, qword [rsp + 0x70]
mov qword [rsp + 0x30], r9
mov rax, qword [rax + 8]
lea rcx, str.C:_Program_Files_odinlang_core_os_file_windows.odin
mov edx, 0x5b
mov r8d, 0x30
mov qword [rsp + 0x20], rax
call fcn.1400021a0
mov rdx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
add rdx, rax
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x7c]
xor eax, eax
mov qword [rsp + 0x20], 0
call sub.KERNEL32.dll_WriteFile
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x7c], 0
setbe al
and al, 1
cmp al, 0
jne 0x140023d96
cmp dword [rsp + 0x58], 0
jne 0x140023dbc
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rsp + 0x38]
mov eax, eax
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x50]
mov qword [rcx], rdx
add rsp, 0x88
ret
mov eax, dword [rsp + 0x7c]
add rax, qword [rsp + 0x70]
mov qword [rsp + 0x70], rax
jmp 0x140023cdb
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
mov qword [rax], rcx
xor eax, eax
add rsp, 0x88
ret
Function at 0x140024860
Capabilities:
Get file size

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x38]
call sub.KERNEL32.dll_GetFileSizeEx
cmp eax, 0
jne 0x1400248a5
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdx
add rsp, 0x48
ret

Function at 0x140024ad0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x140024b9e
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Program_Files_odinlang_core_os_file_windows.odin
mov edx, 0xe5
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002de0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_ReadFile
cmp eax, 0
jne 0x140024ca6
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x140024d50
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0xd8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0xd0], rdx
mov qword [rsp + 0xc8], rax
mov rax, qword [rcx]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xc0], 0x40000000
setg al
and al, 1
cmp al, 0
je 0x140024e1e
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
mov qword [rax + 0x20], rcx
lea rcx, str.C:_Program_Files_odinlang_core_os_file_windows.odin
mov edx, 0xfd
mov r8d, 0xc
mov r9d, 0x40000000
call fcn.140002de0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], 0x40000000
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xc0], rcx
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x94], 0
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov rdx, rcx
shr rdx, 0x20
mov dword [rsp + 0x94], edx
mov dword [rsp + 0x90], ecx
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x90]
mov r9d, dword [rsp + 0x94]
mov r10, qword [rsp + 0x98]
mov qword [rsp + 0x78], r10
mov dword [rsp + 0x74], r9d
mov dword [rsp + 0x70], r8d
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xc0]
mov r8d, eax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call sub.KERNEL32.dll_WriteFile
cmp eax, 0
jne 0x140024f26
call sub.KERNEL32.dll_GetLastError
mov eax, eax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x28]
mov eax, dword [rsp + 0x54]
mov edx, eax
mov rax, qword [rsp + 0x48]
mov qword [rcx], rdx
add rsp, 0xd8
ret
Function at 0x1400872d0
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x50
mov qword [rsp], rdx
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov rcx, qword [rsp]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 8
movabs rdx, 0xcbf29ce484222325
add rcx, rdx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x18], 0
cmp qword [rsp + 0x20], 8
jge 0x140087383
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
movzx ecx, byte [rcx]
xor rax, rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x18]
add rax, 1
mov qword [rsp + 0x18], rax
jmp 0x140087322
movabs rax, 0x7fffffffffffffff
and rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x30], 0
sete cl
and cl, 1
movzx ecx, cl
or rax, rcx
add rsp, 0x50
ret

Function at 0x14008a3d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008a422
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008a422
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008a422
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008a422
cmp dword [rcx + 0x84], 0xe
jbe 0x14008a422
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14008a424
xor al, al
add rsp, 0x28
ret

Function at 0x14008eb5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008e94c
Function at 0x140091bc0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140091bf0
xor eax, eax
jmp 0x140091cb3
mov rbp, rbx
cmp word [rax], si
je 0x140091c15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140091bfc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140091bf8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140091b10
movsxd r14, eax
test eax, eax
jne 0x140091c53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140091be9
mov rcx, r14
call fcn.140092a74
mov rdi, rax
test rax, rax
jne 0x140091c6c
xor ecx, ecx
call fcn.1400901a0
jmp 0x140091c48
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140091b10
test eax, eax
jne 0x140091c9d
mov rcx, rdi
call fcn.1400901a0
jmp 0x140091ca7
xor ecx, ecx
call fcn.1400901a0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14009517c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140090c14
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140095206
cmp byte [rbp - 0x21], r15b
je 0x140095201
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14009523c
call fcn.140093294
test eax, eax
jne 0x140095228
cmp byte [rbp - 0x21], r15b
je 0x140095220
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14009523c
cmp byte [rbp - 0x21], r15b
je 0x140095239
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400901f0
test eax, eax
jne 0x1400952dc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140090c14
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14009527b
cmp byte [rbp - 0x21], r15b
je 0x1400952b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400952b0
call fcn.140093294
test eax, eax
jne 0x14009529c
cmp byte [rbp - 0x21], r15b
je 0x140095295
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400952b0
cmp byte [rbp - 0x21], r15b
je 0x1400952ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400901f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400952dc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400952df
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400952ed
mov rcx, rdi
call fcn.1400901a0
cmp byte [rbp + 0x3f], r15b
je 0x1400952fc
mov rcx, qword [rbp + 0x27]
call fcn.1400901a0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140098150
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140098178
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140098178
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140011226
Capabilities:
Check for peb beingdebugged flag

Disassembly:
jmp 0x140017260
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002e0f3]
call fcn.140011690
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, byte [rax + 2]
test eax, eax
je 0x14001729d
mov eax, 1
jmp 0x14001729f
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14001138e
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
jmp 0x140016fd0
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002e0f3]
call fcn.140011690
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0xbc]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
and eax, 0x70
test eax, eax
je 0x140017018
mov eax, 1
jmp 0x14001701a
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400113a2
Capabilities:
Terminate process

Disassembly:
jmp 0x14001af90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret