joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006a6c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rcx, [0x140002ff8]
xor edx, edx
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x140006ad4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003020]
lea rcx, [0x140003080]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
call fcn.14000b738
jmp 0x140006b49
lea rdx, [0x140003700]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
jne 0x140006b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140003020]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
jmp 0x140006b34
mov rcx, rax
call qword [fcn.140004970]
call rdi
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140006b40
cmp eax, 0x80070490
je 0x140006b40
mov r8d, eax
lea rdx, [0x140003720]
lea rcx, [0x140003080]
call fcn.14000b738
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, [rsp + 0x20]
lea rcx, [0x140002b08]
mov r8d, 0x27
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x140006b7d
lea rdx, [0x140003130]
lea rcx, [0x140003180]
call fcn.14000b738
jmp 0x140006c7b
mov edi, 0x104
lea r8, [0x140003868]
lea rcx, [rsp + 0x70]
mov edx, edi
call fcn.140004fec
mov ebx, eax
test eax, eax
js 0x140006c65
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140004f08
mov ebx, eax
test eax, eax
js 0x140006c65
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x140006bf3
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x140003790]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000b738
test ebx, ebx
js 0x140006c65
lea r8, [0x140003310]
lea rcx, [rsp + 0x70]
mov rdx, rdi
call fcn.140004fec
mov ebx, eax
test eax, eax
js 0x140006c65
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.140004f08
mov ebx, eax
test eax, eax
js 0x140006c65
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, 0xfffffffd
je 0x140006c61
movzx ebx, ax
lea rdx, [rsp + 0x70]
lea rcx, [0x140003790]
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r8d, ebx
call fcn.14000b738
test ebx, ebx
jns 0x140006c7b
lea rdx, [0x140003800]
lea rcx, [0x140003080]
mov r8d, ebx
call fcn.14000b738
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x140006ca4
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 9], 0
mov rdi, rdx
xor edx, edx
mov ebx, ecx
lea rcx, [rbp - 1]
lea r8d, [rdx + 0x1c]
call fcn.140015ac0
and dword [rbp + 0x37], 0
and qword [rbp + 0x3f], 0
lea rcx, str.Internet_Explorer_ETW_Collector_Service
lea rax, str.IEEtwCollectorService
mov qword [rbp + 0x27], rcx
lea rcx, str.ETW_Collector_Service_for_Internet_Explorer._When_running__this_service_collects_real_time_ETW_events_and_processes_them.
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x2f], rcx
lea rcx, [rbp - 9]
mov qword [0x14001a5f0], rcx
cmp ebx, 1
jle 0x140006e08
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c20]
call fcn.14000b598
test eax, eax
jne 0x140006d42
lea rcx, [rbp - 9]
call fcn.14000628c
jmp 0x140006e2b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c30]
call fcn.14000b598
test eax, eax
jne 0x140006d64
lea rcx, [rbp - 9]
call fcn.1400064cc
jmp 0x140006e2b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c48]
call fcn.14000b598
test eax, eax
jne 0x140006d86
lea rcx, [rbp - 9]
call fcn.140006574
jmp 0x140006e2b
mov rcx, qword [rdi + 8]
lea rdx, [0x140002c58]
call fcn.14000b598
test eax, eax
jne 0x140006e04
lea r8d, [rax + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x140006e2b
mov rdx, qword [rbp + 0x1f]
mov r8d, 0x14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140006df9
lea rdx, [rbp - 0x29]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140006df0
cmp dword [rbp - 0x25], 1
jne 0x140006df0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006e2b
mov rax, qword [rbp + 0x1f]
and qword [rbp - 0x19], 0
and qword [rbp - 0x11], 0
mov qword [rbp - 0x29], rax
lea rax, [0x140006030]
lea rcx, [rbp - 0x29]
mov qword [rbp - 0x21], rax
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14000b200
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000899c
Capabilities:
Check if file exists
Create directory
Get file attributes
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x290
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rsi, qword [rsp + 0x2e0]
mov rdi, r9
xor r14d, r14d
mov rbp, r8
mov r9, rdx
mov ebx, 0x80070057
test rdi, rdi
je 0x1400089de
mov word [rdi], r14w
test rdx, rdx
je 0x140008ae9
mov eax, 0x7ffffffe
mov r8, rdx
mov edx, r14d
mov ecx, eax
cmp word [r8], r14w
je 0x140008a03
add r8, 2
dec rcx
jne 0x1400089f4
test rcx, rcx
jne 0x140008a0f
mov edx, ebx
mov rax, r14
jmp 0x140008a12
sub rax, rcx
mov ebx, edx
test edx, edx
jne 0x140008ae9
test rax, rax
je 0x140008ae9
lea rdx, [rsp + 0x70]
mov r8d, 0x104
mov rcx, r9
mov ebx, 0x8000ffff
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140008ae9
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140008ad5
test al, 0x10
je 0x140008ad5
lea rdx, [rsp + 0x20]
mov r8d, 0x27
mov rcx, rbp
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea r8, [0x140003914]
lea rcx, [rsp + 0x70]
call fcn.140004f08
mov ebx, eax
test eax, eax
js 0x140008ae9
lea r8, [rsp + 0x22]
lea rcx, [rsp + 0x70]
mov word [rsp + 0x6a], r14w
call fcn.140004f08
mov ebx, eax
test eax, eax
js 0x140008ae9
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140008ad5
lea rcx, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140008ad5
mov rdx, qword [rsi]
lea r8, [rsp + 0x70]
mov rcx, rdi
call fcn.140004fec
mov ebx, eax
jmp 0x140008ae9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b200
add rsp, 0x290
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000a3ec
Capabilities:
Create thread
Delete file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15d, r8d
mov r12d, edx
mov rdi, qword [rcx]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14000a599
mov r13d, edx
and r13d, 1
and r12d, 2
lea rdx, [rbx + 0x10]
lea rcx, [rbp - 0x18]
call fcn.140009488
nop
lea rdx, [rbx + 0x20]
lea rcx, [rbp - 0x28]
call fcn.140009488
mov r14, qword [rbp - 0x18]
test r13d, r13d
je 0x14000a474
test r15d, r15d
jne 0x14000a466
mov rcx, r14
call fcn.14000aaa0
jmp 0x14000a474
cmp r15d, 1
jne 0x14000a474
mov rcx, r14
call fcn.14000ac90
test r12d, r12d
je 0x14000a4fe
test r15d, r15d
jne 0x14000a4af
mov rsi, qword [rbp - 0x28]
mov qword [rsi + 0x18], r14
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], r15d
mov r9, rsi
lea r8, [0x1400049a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 0x30], rax
jmp 0x14000a4fe
cmp r15d, 1
jne 0x14000a4ea
mov rsi, qword [rbp - 0x28]
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14000a4fe
call fcn.14000ac90
or edx, 0xffffffff
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsi + 0x30], 0
and qword [rsi + 0x18], 0
jmp 0x14000a4fe
cmp r15d, 2
jne 0x14000a4fe
mov rax, qword [rbp - 0x28]
mov rcx, qword [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000a546
lock dec dword [rcx + 8]
jne 0x14000a546
mov r14, qword [rbp - 0x20]
mov rax, qword [r14]
mov rsi, qword [rax]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r14
call rsi
lock dec dword [r14 + 0xc]
jne 0x14000a546
mov r14, qword [rbp - 0x20]
mov rax, qword [r14]
mov rsi, qword [rax + 8]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r14
call rsi
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000a58d
lock dec dword [rcx + 8]
jne 0x14000a58d
mov r14, qword [rbp - 0x10]
mov rax, qword [r14]
mov rsi, qword [rax]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r14
call rsi
lock dec dword [r14 + 0xc]
jne 0x14000a58d
mov r14, qword [rbp - 0x10]
mov rax, qword [r14]
mov rsi, qword [rax + 8]
mov rcx, rsi
call qword [fcn.140004970]
mov rcx, r14
call rsi
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14000a433
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret

Function at 0x14000a5c0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
lea edx, [rdi + 2]
mov r8d, edx
call fcn.14000a3ec
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x14000a601
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14000a601
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000afbc
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000affc
mov eax, 0xff
jmp 0x14000b1a7
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000b018
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x140019cc8], r9d
mov dword [0x140019cd0], ecx
mov dword [0x140019cd4], edx
mov dword [0x140019cd8], eax
mov dword [0x140019ccc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000b08f
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000b08f
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000b08f
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000b091
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000b091
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000cd74
test eax, eax
jne 0x14000b0c7
cmp dword [0x14001971c], 2
je 0x14000b0b3
call fcn.14000cb58
mov ecx, 0x1c
call fcn.14000cba4
mov ecx, 0xff
call fcn.14000c770
call fcn.14000c63c
test eax, eax
jne 0x14000b0f3
cmp dword [0x14001971c], 2
je 0x14000b0de
call fcn.14000cb58
mov ecx, 0x10
call fcn.14000cba4
mov ecx, 0xff
call fcn.14000c770
nop
call fcn.14000cde8
test eax, eax
jns 0x14000b106
mov ecx, 0x1b
call fcn.14000c78c
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001b8d0], rax
call fcn.14000d588
mov qword [0x140019720], rax
call fcn.14000d084
test eax, eax
jns 0x14000b131
mov ecx, 8
call fcn.14000c78c
call fcn.14000d364
test eax, eax
jns 0x14000b144
mov ecx, 9
call fcn.14000c78c
mov ecx, edi
call fcn.14000c7fc
test eax, eax
je 0x14000b156
mov ecx, eax
call fcn.14000c78c
mov r8, qword [0x140019cb8]
mov qword [0x140019ce8], r8
mov rdx, qword [0x140019cb0]
mov ecx, dword [0x140019cac]
call fcn.140006ca4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000b187
mov ecx, eax
call fcn.14000cb48
call fcn.14000c7e8
jmp 0x14000b1a5
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14000b200
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.1400ae000
add rsp, 0x28
jmp 0x14000afbc

Function at 0x14000bcdc
Capabilities:
Terminate process

Disassembly:
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 edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000cba4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
xor edx, edx
mov r8, r14
cmp ecx, dword [r8]
je 0x14000cbdb
inc edx
add r8, 0x10
movsxd rax, edx
cmp rax, 0x17
jb 0x14000cbc7
movsxd rbx, edx
cmp rbx, 0x17
jae 0x14000cd55
mov ebp, 3
mov ecx, ebp
call fcn.14001038c
cmp eax, 1
je 0x14000cd16
mov ecx, ebp
call fcn.14001038c
test eax, eax
jne 0x14000cc15
cmp dword [section..data], 1
je 0x14000cd16
cmp edi, 0xfc
je 0x14000cd55
lea rdi, [0x140019cf0]
mov ebp, 0x314
lea r8, [0x140001a88]
mov rcx, rdi
mov edx, ebp
call fcn.14000d6bc
test eax, eax
je 0x14000cc57
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000e5a0
lea rdx, [0x140019d09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x140019e0d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000cca8
lea r8, [0x140001aa8]
lea rcx, [0x140019d09]
mov edx, 0x2fb
call fcn.14000d6bc
test eax, eax
je 0x14000cca8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000e5a0
lea r8, [0x140001ac0]
mov rdx, rbp
mov rcx, rdi
call fcn.1400102fc
test eax, eax
je 0x14000ccd3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000e5a0
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.1400102fc
test eax, eax
je 0x14000ccff
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000e5a0
lea rdx, [0x140001ac8]
mov r8d, 0x12010
mov rcx, rdi
call fcn.1400103e4
jmp 0x14000cd55
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000cd55
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000cd37
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14000e5a0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000e61d
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000e63d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001af0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000b200
add rsp, 0x540
pop rbx
ret
Function at 0x1400103e4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140018060]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, r8d
mov r12, rdx
mov r15, rcx
call fcn.14000c344
xor esi, esi
cmp qword [0x14001a4c8], rsi
mov rbx, rax
jne 0x1400104f7
lea rcx, [0x140001b58]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140010602
lea rdx, [0x140001b70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010602
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001b80]
mov rcx, rdi
mov qword [0x14001a4c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001b90]
mov rcx, rdi
mov qword [0x14001a4d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140001ba8]
mov rcx, rdi
mov qword [0x14001a4d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov rcx, rax
mov qword [0x14001a4e8], rax
test rax, rax
je 0x1400104ee
lea rdx, [0x140001bc8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001a4e0], rax
jmp 0x1400104fe
mov rax, qword [0x14001a4e0]
jmp 0x140010505
mov rax, qword [0x14001a4e0]
mov rcx, qword [0x14001a4e8]
cmp rax, rbx
je 0x14001057f
cmp rcx, rbx
je 0x14001057f
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001a4e8]
mov rdi, rax
call sub.KERNEL32.dll_DecodePointer
mov rbp, rax
test rdi, rdi
je 0x14001057f
test rax, rax
je 0x14001057f
mov rcx, rdi
call qword [fcn.140004970]
call rdi
mov rdi, rax
test rax, rax
je 0x140010578
mov rcx, rbp
call qword [fcn.140004970]
mov r9d, 0xc
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea edx, [r9 - 0xb]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
je 0x140010578
test byte [rsp + 0x40], 1
jne 0x14001057f
bts r14d, 0x15
jmp 0x1400105d5
mov rcx, qword [0x14001a4d0]
cmp rcx, rbx
je 0x1400105d5
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
test rax, rax
je 0x1400105d5
mov rcx, rax
call qword [fcn.140004970]
call rdi
mov rsi, rax
test rax, rax
je 0x1400105d5
mov rcx, qword [0x14001a4d8]
cmp rcx, rbx
je 0x1400105d5
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
test rax, rax
je 0x1400105d5
mov rcx, rax
call qword [fcn.140004970]
mov rcx, rsi
call rbx
mov rsi, rax
mov rcx, qword [0x14001a4c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
test rax, rax
je 0x140010602
mov rcx, rax
call qword [fcn.140004970]
mov r9d, r14d
mov r8, r12
mov rdx, r15
mov rcx, rsi
call rbx
jmp 0x140010604
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000b200
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012068
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x140018060]
xor rax, rbp
mov qword [rbp + 0x68], rax
and dword [rbp], 0
mov eax, dword [rsp]
sub rsp, 0x10
lea r14, [rsp + 0x20]
mov eax, dword [r14]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001216b
mov r15, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1400120f6
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x14001216b
mov eax, edx
not eax
and ecx, eax
je 0x140012111
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x14001216b
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r14
lea rax, [r15 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x14001216b
mov r9d, 4
mov r8d, 0x1000
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14001216b
lea r9, [rbp + 4]
mov r8d, 0x104
mov edx, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001216b
mov eax, 1
jmp 0x14001216d
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.14000b200
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r15
pop r14
pop rbp
ret
Function at 0x114c0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x60], 0
mov qword [rsp + 0xc0], 0
mov edx, 0x200
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x11520
mov dword [rsp + 0x60], 1
jmp 0x1172f
mov r8d, 0x200
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call fcn.0001f460
mov r11d, 0x5c
mov rax, qword [rsp + 0xc0]
mov word [rax], r11w
mov ecx, 0x3f
mov rax, qword [rsp + 0xc0]
mov word [rax + 2], cx
mov ecx, 0x3f
mov rax, qword [rsp + 0xc0]
mov word [rax + 4], cx
mov ecx, 0x5c
mov rax, qword [rsp + 0xc0]
mov word [rax + 6], cx
mov dword [rsp + 0xd0], 0
jmp 0x11598
mov eax, dword [rsp + 0xd0]
add eax, 1
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0xc8
jae 0x115ec
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0xf0]
movsx dx, byte [rax + rcx]
mov eax, dword [rsp + 0xd0]
add eax, 4
mov ecx, eax
mov rax, qword [rsp + 0xc0]
mov word [rax + rcx*2], dx
mov ecx, dword [rsp + 0xd0]
mov rax, qword [rsp + 0xf0]
movsx eax, byte [rax + rcx]
test eax, eax
jne 0x115ea
jmp 0x115ec
jmp 0x11587
mov rdx, qword [rsp + 0xc0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x90], 0x30
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0x40
lea rax, [rsp + 0x80]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x90]
mov edx, 0x40000000
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x116b0
jmp 0x1172f
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov r11d, dword [rsp + 0x70]
mov dword [rsp + 0x60], r11d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
je 0x11725
jmp 0x1172f
xor eax, eax
test eax, eax
jne 0x114f3
cmp qword [rsp + 0xc0], 0
je 0x1174a
xor edx, edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0xc0], 0
mov eax, dword [rsp + 0x60]
add rsp, 0xe8
ret