joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001df0
Capabilities:
Parse pe header

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

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
lea r9, str._J_ms8m
mov r8d, 3
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400036d0
Capabilities:
Create thread
Enumerate processes
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x190
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
nop dword [rax + rax]
mov esi, r15d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000376b
mov dword [rsp + 0x50], 0x130
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x14000376b
lea rdx, str.SoTGame.exe
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140003767
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x14000373d
mov esi, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x1e
call qword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x140003710
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400037c3
mov rcx, qword [rdi]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rcx + r8], r15b
jne 0x1400037d0
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
cmp qword [rdi + 0x18], 0x10
jb 0x140003810
mov rcx, qword [rdi]
nop
inc rbx
cmp byte [rcx + rbx], r15b
jne 0x140003800
mov r8, rcx
jmp 0x14000381c
inc rbx
cmp byte [rdi + rbx], r15b
jne 0x140003810
mov r8, rdi
mov qword [rsp + 0x20], r15
mov r9, rbx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
mov r9, r14
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x14000386f
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14000387e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400038b4
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400038af
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400038f0
mov rcx, r8
call fcn.14000619c
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140005ef0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400069c0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a9f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000aa00]
mov dword [rax], 1
mov rax, qword [0x14000aa10]
mov dword [rax], 1
mov rax, qword [0x14000a9e0]
mov dword [rax], 1
mov rax, qword [0x14000a8a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000a9d0]
mov dword [0x14000d020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000a990]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a970]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a850]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140002300
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140002370
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000d0b4]
mov r12, rcx
test ebx, ebx
jle 0x1400024a0
mov rax, qword [0x14000d0b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400023bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140002445
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400023a0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400024c2
mov rax, qword [0x14000d0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000243e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002450
add dword [0x14000d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000243e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400023c8
mov rax, qword [0x14000d0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002990
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000d120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d100]
test rbx, rbx
je 0x1400029ec
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400029e3
test r12, r12
je 0x1400029e3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029c8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002c20
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002c38
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002c40
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002c50
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002c95
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x140002c8c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002c97
add rax, 0x28
cmp rax, r9
jne 0x140002c78
xor eax, eax
ret

Function at 0x140002ca0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002d30
mov rdx, qword [0x14000a8a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002d1e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002d1e
cmp word [rax + 0x18], 0x20b
jne 0x140002d1e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002d30
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002d09
add r12, 0x28
cmp r12, rsi
je 0x140002d30
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002d00
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002d40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a8a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002db5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002dac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d60
add rax, 0x28
cmp rax, r9
jne 0x140002d98
xor eax, eax
ret

Function at 0x140002dc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a8a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002de0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002de8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002de0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002e00
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a8a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002e20
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002e28
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e20
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002e68
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e5f
test rcx, rcx
je 0x140002e20
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002e50
xor eax, eax
ret
Function at 0x140002e70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a8a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e90
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e98
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002eb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a8a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ed0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ed8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ed0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002ed0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002f1c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002f30
add rdx, 0x28
cmp rdx, r9
jne 0x140002f08
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002f40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000a8a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f62
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002f62
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002fbd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002fd0
add rdx, 0x28
cmp r10, rdx
jne 0x140002fa8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002fdf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002fef
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002fc6
test ecx, ecx
jg 0x140002fd8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004a40
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004a74
xor eax, eax
jmp 0x140004c6c
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x140004aa4
xor eax, eax
jmp 0x140004c6c
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x140004ac6
mov rax, qword [rsp + 0x40]
add rax, 0x88
mov qword [rsp + 0x58], rax
jmp 0x140004ad4
mov rax, qword [rsp + 0x40]
add rax, 0x78
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x2c], eax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
dec eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jl 0x140004c04
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
sar eax, 1
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x98]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jge 0x140004bed
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x28], eax
jmp 0x140004c02
cmp dword [rsp + 0x34], 0
jle 0x140004c00
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140004c02
jmp 0x140004c04
jmp 0x140004b8f
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jl 0x140004c1c
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jl 0x140004c20
xor eax, eax
jmp 0x140004c6c
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x30], eax
jb 0x140004c5a
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x2c]
add ecx, eax
mov eax, ecx
cmp dword [rsp + 0x30], eax
jae 0x140004c5a
xor eax, eax
jmp 0x140004c6c
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
add rsp, 0x88
ret
Function at 0x140005340
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x268
mov rax, qword [0x1406a2180]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdx, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x270]
call fcn.140005460
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCreateRegistryKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000539c
mov eax, dword [rsp + 0x30]
jmp 0x140005429
mov dword [rsp + 0x34], 1
mov rdx, qword [rsp + 0x278]
lea rcx, [rsp + 0x40]
call fcn.1400052e0
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, str.ImagePath
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400053f2
mov eax, dword [rsp + 0x30]
jmp 0x140005429
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, str.Type
mov rdx, qword [rsp + 0x270]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401ba160
add rsp, 0x268
ret
Function at 0x140005540
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x198
mov rax, qword [0x1406a2180]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x1b8]
mov qword [rax], 0
mov dword [rsp + 0x180], 0
lea r9, [rsp + 0x180]
xor r8d, r8d
xor edx, edx
mov ecx, ntohl
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xc0000004
je 0x1400055ae
mov eax, dword [rsp + 0x20]
jmp 0x1400056d7
mov eax, dword [rsp + 0x180]
shl rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword gs:[0x30]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x38]
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x180]
shl eax, 1
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x28]
mov ecx, ntohl
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jge 0x14000562b
jmp 0x1400056ab
mov dword [rsp + 0x24], 0
jmp 0x14000563f
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x1400056ab
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x28]
mov rdi, rcx
lea rsi, [rdx + rax + 8]
mov ecx, 0x128
rep movsb byte [rdi], byte [rsi]
movzx eax, word [rsp + 0x76]
lea rax, [rsp + rax + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x1b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1400056a9
mov rax, qword [rsp + 0x1b8]
mov rcx, qword [rsp + 0x60]
mov qword [rax], rcx
mov dword [rsp + 0x20], 0
jmp 0x1400056ab
jmp 0x140005635
mov rax, qword gs:[0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x60]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.1401ba160
add rsp, 0x198
pop rdi
pop rsi
ret

Function at 0x140005700
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1406a2180]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rsp + 0x2c]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x28]
mov ecx, 0x67
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jge 0x140005762
mov edx, dword [rsp + 0x24]
lea rcx, str.Failed_to_query_code_integrity_status:__08X_n
call fcn.140004f70
mov eax, dword [rsp + 0x2c]
and eax, 3
cmp eax, 1
jne 0x140005775
mov byte [rsp + 0x20], 1
jmp 0x14000577a
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ba160
add rsp, 0x40
pop rdi
ret
Function at 0x1400057a0
Capabilities:
Install driver

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1406a2180]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtLoadDriver]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ba160
add rsp, 0x48
ret
Function at 0x140006010
Capabilities:
Unload driver

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1406a2180]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_NtUnloadDriver]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ba160
add rsp, 0x48
ret