joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050fbd
Capabilities:
Get geographical location

Disassembly:
jmp 0x1400cc130
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x140122c68]
mov rbp, rcx
lea r8, [0x140122c60]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.1400cb650
test rax, rax
je 0x1400cc190
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14014f030]
jmp 0x1400cc1aa
xor edx, edx
mov rcx, rbp
call fcn.1400506b2
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140050fd6
Capabilities:
Terminate process

Disassembly:
jmp 0x140072228
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140051080
Capabilities:
Get process image filename

Disassembly:
jmp 0x1400570d0
push rbp
push rdi
sub rsp, 0x508
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xd6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x14014d0d2]
call fcn.1400529c1
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x54], 0
lea rcx, str.ntdll.dll
call fcn.140051ff3
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.140052593
mov qword [rbp + 0x78], rax
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [rbp + 0x78]
call fcn.14004f2ad
mov qword [rbp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rbp + 0x54]
mov qword [rsp + 0x20], rcx
mov r9d, 0x30
lea r8, [rbp + 8]
xor edx, edx
mov rcx, rax
call qword [rbp + 0x98]
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0xb4], eax
mov r8d, dword [rbp + 0xb4]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rbp + 0x230]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rbp + 0x100]
mov rcx, qword [rbp + 0xd8]
call fcn.140051fdf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x104
lea rdx, [rbp + 0x230]
mov rcx, rax
call fcn.140051fdf
mov rcx, qword [rbp + 0x78]
call fcn.140052034
lea rdx, [rbp + 0x230]
lea rcx, [rbp + 0x100]
call fcn.140052f6b
test eax, eax
jne 0x140057227
mov dword [rbp + 0x4c4], 1
jmp 0x140057231
mov dword [rbp + 0x4c4], 0
mov eax, dword [rbp + 0x4c4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400fa270]
call fcn.140051f80
mov eax, edi
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x4d8]
pop rdi
pop rbp
ret
Function at 0x14005117f
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008dc7c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14008d9d8
Function at 0x1400516e8
Capabilities:
Clear file content

Disassembly:
jmp 0x1400eed68
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14004f95b
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004f95b
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400eeeb8
cmp rax, 0xffffffffffffffff
je 0x1400eeeb8
xor edi, edi
test rbp, rbp
jle 0x1400eee63
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005240d
mov rbx, rax
test rax, rax
jne 0x1400eedf0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400eee59
mov edx, 0x8000
mov ecx, r14d
call fcn.14005190e
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140052098
cmp eax, 0xffffffff
je 0x1400eee39
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400eee00
mov edx, r15d
mov ecx, r14d
call fcn.14005190e
jmp 0x1400eee59
cmp byte [rsi + 0x38], dil
je 0x1400eee50
cmp dword [rsi + 0x34], 5
jne 0x1400eee50
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400eee59
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004f1bd
jmp 0x1400eeecc
jns 0x1400eeecc
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004f95b
cmp rax, 0xffffffffffffffff
jne 0x1400eee84
cmp byte [rsi + 0x30], dil
je 0x1400eeecc
mov edi, dword [rsi + 0x2c]
jmp 0x1400eeecc
mov ecx, r14d
call fcn.140052bd3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400eeecc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400eeecc
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400eeec5
mov eax, dword [rsi + 0x2c]
jmp 0x1400eeeca
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004f95b
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140051760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14005afb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14014d34c]
call fcn.1400529c1
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x14005affb
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x14005affb
mov dword [rbp + 0xd4], 1
jmp 0x14005b005
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14005177e
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400bbe7c
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1400bbe96
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.1400525b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140051ea4
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140068640
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, [0x14014dff1]
call fcn.1400529c1
mov dword [rbp + 8], 8
lea rax, [rbp + 0xc]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 8
lea rdx, [rbp + 8]
mov ecx, 0x67
call fcn.140051a85
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x1400686c3
mov edx, dword [rbp + 0x24]
lea rcx, str.____Failed_to_query_code_integrity_status:__08X_n
call fcn.140050b35
mov eax, dword [rbp + 0xc]
and eax, 3
cmp eax, 1
jne 0x1400686da
mov dword [rbp + 0xf4], 1
jmp 0x1400686e4
mov dword [rbp + 0xf4], 0
movzx eax, byte [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14010ec90]
call fcn.140051f80
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140051fdf
Capabilities:
Get process image filename

Disassembly:
jmp 0x140070df6
jmp qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameA]
Function at 0x140052665
Capabilities:
Load ntoskrnl

Disassembly:
jmp 0x14006beb0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14014e5be]
call fcn.1400529c1
call fcn.1400506a8
mov qword [rbp + 8], rax
mov qword [rbp + 0x28], 0
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x14006bf2d
mov rdx, qword [rbp + 0x160]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
sub rax, qword [rbp + 0x48]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x1400526bf
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140081bd4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14011ffd8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x14011ffd0]
call fcn.14008164c
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140081c14
call qword [0x14014f020]
jmp 0x140081c1a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400527be
Capabilities:
Disable driver code integrity

Disassembly:
jmp 0x1400683e0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14014df19]
call fcn.1400529c1
call fcn.14004f618
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 8]
call fcn.140050ed2
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14006841f
xor eax, eax
jmp 0x140068461
lea rdx, str.g_CiOptions
mov rcx, qword [rbp + 0x28]
call fcn.140052278
mov qword [0x14013c500], rax
lea rdx, str.CiValidateImageHeader
mov rcx, qword [rbp + 0x28]
call fcn.140052278
mov qword [0x14013c508], rax
mov edx, dword [rbp + 0x120]
mov rcx, qword [rbp + 0x28]
call fcn.140052d0e
call fcn.14005203e
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400528a4
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008dc6c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14008d9d8
Function at 0x140052d0e
Capabilities:
Delete file

Disassembly:
jmp 0x14006e260
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x14014e9d5]
call fcn.1400529c1
mov rax, qword [rbp + 0xe0]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.dbghelp.dll_SymUnloadModule64]
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.dbghelp.dll_SymCleanup]
cmp dword [rbp + 0xe8], 0
je 0x14006e2c9
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call fcn.14005049b
mov rax, qword [rbp + 0xe0]
mov qword [rax], 0
mov rcx, qword [rbp + 0xe0]
call fcn.14005049b
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x14005b030
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14013a908]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x14014d34c]
call fcn.1400529c1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14005b0bc
xor eax, eax
jmp 0x14005b12a
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov ecx, eax
call fcn.140051210
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005b10b
mov eax, dword [rbp + 0x24]
cmp dword [rbp + 0x64], eax
je 0x14005b11c
mov rcx, qword [rbp + 0x48]
call fcn.14005049b
mov qword [rbp + 0x48], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140104e40]
call fcn.140051f80
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140050bd0
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x14006cf20
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x14013a8f0]
call fcn.140052566
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400e1c40
Capabilities:
Get file size

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

Function at 0x1400ea2fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14013e460]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400ea353
cmp word [rdx], r13w
jne 0x1400ea353
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ea358
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ea47d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ea49e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ea391
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ea3b8
cmp r9, r8
jae 0x1400ea3c8
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400ea372
jmp 0x1400ea47d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ea472
cmp dword [rsp + 0x80], esi
je 0x1400ea472
lea r8, [0x14013e460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ea44a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ea41a
mov word [rbx], r13w
jmp 0x1400ea47a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400ea427
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ea47a
cmp word [rsp + 0x70], r13w
jne 0x1400ea457
cmp rbx, r14
je 0x1400ea414
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004f95b
cmp word [rsp + 0x70], r13w
je 0x1400ea47d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14013e460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ea477
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ea47d
Function at 0x140004c20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140044010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004c4d
xor eax, eax
jmp 0x140004d93
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004c87
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004c87
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140004d93
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004d86
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004cca
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004cd9
movsx ecx, dil
jmp 0x140004d2d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
js 0x140004d86
cmp eax, 1
jle 0x140004d47
cmp eax, 3
jne 0x140004d86
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14000f908
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140004d8b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004d74
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140010930
cmp rsi, rax
jne 0x140004d86
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140004d8b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006510
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000f8e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000f710
Function at 0x180001850
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180042010]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor edi, edi
lea rcx, [0x180036650]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180001a28
lea rdx, str.D3D11CreateDeviceAndSwapChain
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x180001a28
mov dword [rsp + 0x48], edi
lea r9, [rsp + 0x48]
lea edx, [rdi + 0xb]
lea r8d, [rdi + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rbx], 0x48c48b48
mov dword [rbx + 4], 0x48085889
mov word [rbx + 8], 0x7089
mov byte [rbx + 0xa], 0x10
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x48]
lea edx, [rdi + 0xb]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov ecx, 3
call fcn.180031160
test eax, eax
je 0x1800019fd
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov r8d, 0xf
lea rdx, str.Couldnt_render
lea rcx, [rsp + 0x50]
call fcn.180001df0
nop
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180001c10
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.180001af0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180001989
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001984
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800019ef
call fcn.180033d94
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
xor r9d, r9d
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1800018f0
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800019e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800019f6
call fcn.180033d94
jmp 0x1800018f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp dword [0x180042bd8], 0
je 0x180001a28
mov rax, qword [0x180042bd0]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.180032730
test eax, eax
jne 0x180001a28
lea edx, [rax + 1]
mov rcx, rbx
call fcn.180032a90
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.180033d30
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x180002550
Capabilities:
Log keystrokes via polling

Disassembly:
push r12
sub rsp, 0x30
movss xmm1, dword [0x18003be00]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov rbp, r9
mov qword [rsp + 0x50], rsi
mov rsi, r8
mov qword [rsp + 0x58], rdi
mov rdi, rdx
mov qword [rsp + 0x28], r14
mov r14, rcx
mov ecx, 0xb
call fcn.1800113b0
mov rbx, qword [0x180042ae8]
xor edx, edx
mov rcx, r14
mov rax, qword [rbx + 0x1a18]
mov byte [rax + 0x80], 1
mov r8, qword [rbx + 0x1a18]
movsxd rax, dword [r8 + 0xc0]
mov r8, qword [r8 + 0xc8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.180006a90
cmp dword [rbx + 0x1a60], eax
jne 0x1800025d4
mov dword [rbx + 0x1a64], eax
cmp dword [rbx + 0x1a9c], eax
jne 0x1800025e3
mov byte [rbx + 0x1aa0], 1
cmp byte [rdi], 0
lea r12, [0x180000000]
mov ecx, eax
jne 0x180002626
call fcn.180011610
movsxd rcx, dword [rsi]
mov rdx, rbp
mov rcx, qword [r12 + rcx*8 + 0x36e30]
call fcn.180029260
test al, al
je 0x180002610
mov byte [rdi], 1
mov r9, qword [0x180042ae8]
mov rax, qword [r9 + 0x1a18]
dec dword [rax + 0xc0]
jmp 0x1800026a4
mov qword [rsp + 0x20], r15
call fcn.180011610
mov rdx, rbp
lea rcx, [0x180036a64]
call fcn.180029260
mov rax, qword [0x180042ae8]
mov rcx, qword [rax + 0x1a18]
dec dword [rcx + 0xc0]
mov ecx, 0x3c
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x180036b90]
lea r15, [0x180036e28]
nop dword [rax]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rbx]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x18000268f
mov eax, dword [rbx]
mov dword [rsi], eax
mov byte [rdi], 0
add rbx, 4
cmp rbx, r15
jne 0x180002670
mov r15, qword [rsp + 0x20]
mov r9, qword [0x180042ae8]
movss xmm1, dword [0x18003be5c]
xorps xmm0, xmm0
call fcn.180011b50
mov r8, qword [r9 + 0x1a18]
mov rcx, r14
movss xmm0, dword [rbp + 4]
mulss xmm0, dword [0x18003bd78]
movss xmm4, dword [r8 + 0xd4]
subss xmm4, dword [r8 + 0x14]
addss xmm4, dword [r8 + 0x58]
mov byte [r8 + 0x80], 1
mov rax, qword [r9 + 0x1a18]
addss xmm4, xmm0
movss xmm0, dword [rax + 0xec]
movss xmm1, dword [rax + 0x14]
subss xmm1, dword [rax + 0x58]
addss xmm1, xmm4
maxss xmm0, xmm1
movss dword [rax + 0xd4], xmm1
movss dword [rax + 0xec], xmm0
call fcn.1800289f0
mov rcx, qword [0x180042ae8]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
movsxd rax, dword [rcx + 0x1b40]
mov r8, qword [rcx + 0x1b48]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rdx, [rax + rax*2]
movsxd rax, dword [r8 + rdx*4 - 0xc]
lea rax, [rax + rax*2]
cmp dword [r12 + rax*4 + 0x37360], 8
mov r9d, dword [r12 + rax*4 + 0x37368]
jne 0x1800027b6
mov eax, dword [r12 + rax*4 + 0x37364]
cmp eax, 1
jne 0x180002797
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1558], eax
dec dword [rcx + 0x1b40]
add rsp, 0x30
pop r12
ret
cmp eax, 2
jne 0x1800027b6
mov eax, dword [r8 + rdx*4 - 8]
mov dword [r9 + rcx + 0x1558], eax
mov eax, dword [r8 + rdx*4 - 4]
mov dword [r9 + rcx + 0x155c], eax
dec dword [rcx + 0x1b40]
add rsp, 0x30
pop r12
ret