joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d28a0
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3980
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d32a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d333a
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d331e
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 0x2fc4d3312
cmp qword [rbp - 0x10], 0
je 0x2fc4d3312
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 0x2fc4d32d8
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d333b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3440
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 0x2fc4d3468
mov eax, 0
jmp 0x2fc4d34b6
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 0x2fc4d3491
mov eax, 0
jmp 0x2fc4d34b6
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 0x2fc4d34b1
mov eax, 0
jmp 0x2fc4d34b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d34bc
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 0x2fc4d353a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d3531
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 0x2fc4d3531
mov rax, qword [rbp - 8]
jmp 0x2fc4d354f
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 0x2fc4d3504
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4080
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5160
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4a82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4b1a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4afe
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 0x2fc4d4af2
cmp qword [rbp - 0x10], 0
je 0x2fc4d4af2
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 0x2fc4d4ab8
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4b1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4c20
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 0x2fc4d4c48
mov eax, 0
jmp 0x2fc4d4c96
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 0x2fc4d4c71
mov eax, 0
jmp 0x2fc4d4c96
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 0x2fc4d4c91
mov eax, 0
jmp 0x2fc4d4c96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4c9c
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 0x2fc4d4d1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4d11
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 0x2fc4d4d11
mov rax, qword [rbp - 8]
jmp 0x2fc4d4d2f
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 0x2fc4d4ce4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8680
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9760
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9082
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d911a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d90fe
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 0x2fc4d90f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d90f2
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 0x2fc4d90b8
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d911b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9220
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 0x2fc4d9248
mov eax, 0
jmp 0x2fc4d9296
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 0x2fc4d9271
mov eax, 0
jmp 0x2fc4d9296
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 0x2fc4d9291
mov eax, 0
jmp 0x2fc4d9296
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d929c
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 0x2fc4d931a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9311
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 0x2fc4d9311
mov rax, qword [rbp - 8]
jmp 0x2fc4d932f
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 0x2fc4d92e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180006090]
mov rdi, rcx
xor ebx, ebx
nop
test rax, rax
jne 0x180001090
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x30], 0x72657375
mov dword [rbp - 0x2c], 0x642e3233
mov word [rbp - 0x28], 0x6c6c
mov byte [rbp - 0x26], al
mov dword [rbp - 0x20], 0x6e616843
mov dword [rbp - 0x1c], 0x69576567
mov dword [rbp - 0x18], 0x776f646e
mov dword [rbp - 0x14], 0x7373654d
mov dword [rbp - 0x10], 0x46656761
mov dword [rbp - 0xc], 0x65746c69
mov dword [rbp - 8], 0x784572
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180006090], rax
test rax, rax
je 0x1800010a5
xor r9d, r9d
mov edx, ebx
mov rcx, rdi
lea r8d, [r9 + 1]
call rax
mov rax, qword [0x180006090]
inc ebx
cmp ebx, 0xc000
jb 0x180001020
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret

Function at 0x1800010d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov rax, rsp
push rbp
push rdi
lea rbp, [rax - 0x458]
sub rsp, 0x548
mov rdi, rcx
mov qword [0x180006098], rcx
dec edx
jne 0x180001286
test r8d, r8d
jne 0x180001281
mov qword [rax + 0x20], rsi
xor esi, esi
lea r8, [rbp + 0x468]
lea rcx, [rbp + 0x40]
mov edx, 0x100
mov qword [rax - 0x18], r14
mov byte [rbp + 0x468], sil
mov byte [rsp + 0x3a], sil
mov dword [rsp + 0x30], 0x435a5352
mov dword [rsp + 0x34], 0x51796346
mov word [rsp + 0x38], 0x786b
mov dword [rbp + 0x460], 0x64255f
call qword [sym.imp.msvcrt.dll_strcpy_s]
lea r8, [rsp + 0x30]
lea rcx, [rbp + 0x40]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_strcat_s]
lea r8, [rbp + 0x460]
lea rcx, [rbp + 0x40]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_strcat_s]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rbp + 0x40]
xor eax, 0x2694
lea rcx, [rbp + 0x140]
mov r8d, eax
call fcn.1800022e0
lea rcx, [rbp + 0x242]
xor edx, edx
mov r8d, 0x1fe
mov word [rbp + 0x240], si
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x240]
lea rcx, [rbp + 0x140]
call fcn.1800035a0
mov r14, rax
test rax, rax
je 0x180001272
mov rcx, rax
mov qword [rsp + 0x570], rbx
call fcn.1800034e0
mov rbx, rax
test rax, rax
je 0x180001245
mov ecx, dword [rax]
test ecx, ecx
jne 0x180001228
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x40], sil
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov r8d, 0x100
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x40]
mov dword [rbx], 1
call fcn.180004da0
jmp 0x18000123d
cmp ecx, 0xa
jne 0x18000123d
mov dword [rax], 1
call fcn.1800020a0
mov esi, 1
mov rcx, rbx
call fcn.180003540
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x570]
mov eax, esi
mov rsi, qword [rsp + 0x578]
mov r14, qword [rsp + 0x540]
add rsp, 0x548
pop rdi
pop rbp
ret
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
jmp 0x180001258
call fcn.1800020a0
mov eax, 1
add rsp, 0x548
pop rdi
pop rbp
ret
Function at 0x1800020a0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x378]
sub rsp, 0x478
xor esi, esi
lea r8, [rbp + 0x3a0]
lea rcx, [rsp + 0x70]
mov edx, 0x100
mov dword [rsp + 0x50], 0x435a5352
mov dword [rsp + 0x54], 0x51796346
mov ebx, esi
mov byte [rbp + 0x3a0], sil
mov word [rsp + 0x58], 0x786b
mov byte [rsp + 0x5a], sil
mov dword [rbp + 0x3a8], 0x64255f
call qword [sym.imp.msvcrt.dll_strcpy_s]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_strcat_s]
lea r8, [rbp + 0x3a8]
lea rcx, [rsp + 0x70]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_strcat_s]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x70]
xor eax, 0x2694
lea rcx, [rbp + 0x70]
mov r8d, eax
call fcn.1800022e0
lea rcx, [rbp + 0x172]
xor edx, edx
mov r8d, 0x1fe
mov word [rbp + 0x170], si
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x70]
call fcn.1800035a0
mov rdi, rax
test rax, rax
je 0x180002295
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 4
lea r8, [rbp + 0x3b8]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3b0]
mov rcx, rdi
mov qword [rbp + 0x3b0], rsi
mov qword [rbp + 0x3b8], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x28], rax
call fcn.180002bd0
test eax, eax
jns 0x1800021c8
mov ecx, eax
call fcn.180003260
jmp 0x1800021ee
mov rcx, qword [rbp + 0x3b8]
test rcx, rcx
je 0x1800021ee
mov eax, dword [rcx + 8]
mov ebx, dword [rcx + 4]
mov dword [0x180006058], eax
mov eax, dword [rcx + 0xc]
mov dword [0x18000605c], eax
call fcn.180003540
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x180002295
mov qword [0x180006050], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowUnicode]
mov edx, 0xfffffffc
mov rcx, rbx
test eax, eax
je 0x180002253
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
lea r8, [0x180001ff0]
mov edx, 0xfffffffc
mov rcx, rbx
mov qword [0x180006070], rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
jmp 0x180002275
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
lea r8, [0x180001ff0]
mov edx, 0xfffffffc
mov rcx, rbx
mov qword [0x180006070], rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
add rsp, 0x478
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp + 0x3b0]
lea r8, [0x180001b90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rbp + 0x3b0], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800022cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x478
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001000
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and dword [rax + 8], 0
lea r9, [rax + 8]
xor edx, edx
xor r8d, r8d
lea edi, [rdx + 0xb]
mov ecx, edi
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14000112e
mov edx, eax
xor ecx, ecx
mov r8d, 0x37126dd
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000112e
mov r14d, dword [rbx]
xor esi, esi
xor r15d, r15d
xor edi, edi
test r14d, r14d
je 0x1400010ae
mov eax, edi
lea rcx, [rbx + 0x30]
imul rbp, rax, 0x128
lea rdx, [0x140002040]
add rcx, rbp
call sub.ntoskrnl.exe_strcmp
test eax, eax
je 0x1400010a4
inc edi
cmp edi, r14d
jb 0x14000107b
jmp 0x1400010ae
mov rsi, qword [rbx + rbp + 0x18]
mov r15d, dword [rbx + rbp + 0x20]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rsi, rsi
je 0x14000112e
lea r9, [0x140002070]
mov rdx, r15
lea r8, [0x140002080]
mov rcx, rsi
call fcn.14000119c
mov rbx, rax
test rax, rax
je 0x14000112e
mov esi, dword [rax + 3]
mov r14d, 0x51313dd
mov r15d, 0x7d0
mov r8d, r14d
mov edx, r15d
mov ecx, 0x200
mov rbp, qword [rsi + rax + 7]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000112e
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140001e40
mov edx, r14d
mov qword [rsi + rbx + 7], rdi
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, 1
jmp 0x140001130
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400012e0
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85b3e12
mov rbx, rcx
jne 0x140001337
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001337
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001337
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001337
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000133c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret
Function at 0x140001344
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x85b3e12
mov rsi, rcx
je 0x140001368
mov eax, 0xc0000001
jmp 0x140001417
xor ebx, ebx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], ebx
lea rdx, [rsp + 0x30]
mov edi, ebx
lea ecx, [rbx + 0x42]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001415
test rdi, rdi
je 0x1400013a1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140001391
test rdi, rdi
je 0x140001415
mov r8d, dword [rdi]
test r8d, r8d
je 0x14000140a
lea rcx, [rdi + 8]
mov rdx, qword [rcx]
and rdx, 0xfffffffffffffffe
test byte [rcx], 1
je 0x1400013ff
cmp qword [rcx + 8], 0x200000
jne 0x1400013ff
cmp dword [rcx + 0x10], 0x546e6f43
je 0x140001427
inc ebx
add rcx, 0x18
cmp ebx, r8d
jb 0x1400013e0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rsi + 8]
mov qword [rax], rdx
jmp 0x140001415

Function at 0x140001430
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x85b3e12
mov rdi, rcx
jne 0x1400014f5
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400014f5
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400014f5
call fcn.14000150c
mov rcx, qword [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov rsi, qword [rdi + 0x18]
call fcn.14000174c
test rax, rax
je 0x1400014f5
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rdi + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rdi + 0x20], 0
movsxd r8, esi
je 0x1400014d8
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001904
jmp 0x1400014f1
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400014fa
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0xe0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.profiler.bat
mov edx, 0x104
lea rcx, [rsp + 0xe0]
call fcn.140004b40
xor eax, eax
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea r8d, [rax + 0x68]
call fcn.1400020d0
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400010f0
add rsp, 0x308
ret