joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001de00
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x2a0
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rcx, qword [0x1800a75a0]
mov qword [rsp + 0x2b0], rsi
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [0x1800a75b0]
mov rdx, qword [0x1800a75a8]
lea r8d, [rsi + 1]
inc ecx
mov r9d, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [0x1800a75a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1800a75a8]
mov qword [0x1800a75a0], rsi
call fcn.180053a94
lea rax, [rsp + 0x58]
lea rdx, str.SoftwareMalwarebytesAnti_ExploitOfficeMacroSettingsBackup
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [0x1800a75a8], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001dfb4
mov qword [rsp + 0x2b8], rdi
mov ebx, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x50], rsi
nop dword [rax]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov edx, ebx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x70], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
test eax, eax
jne 0x18001df93
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18001df93
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 4]
mov dword [rsp + 0x48], eax
mov eax, 1
lea rdx, str.VBAWarnings
xchg dword [0x1800a7598], eax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, esi
xchg dword [0x1800a7598], eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp edi, 0x103
jne 0x18001ded0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2b8]
lea rax, [rsp + 0x68]
lea rdx, str.SoftwareMalwarebytesAnti_Exploit
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rsi, qword [rsp + 0x2b0]
mov ebx, eax
test eax, eax
jne 0x18001e008
mov rcx, qword [rsp + 0x68]
lea rdx, str.OfficeMacroSettingsBackup
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x2a0
pop rbx
ret
Function at 0x180021e20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x38], rsp
mov ecx, dword [0x1800a7a04]
inc ecx
mov dword [0x1800a7a04], ecx
mov eax, dword [0x1800a7a00]
test eax, eax
jle 0x180021e7d
dec eax
mov dword [0x1800a7a00], eax
xor r12d, r12d
mov dword [rsp + 0x34], r12d
lea rdx, [0x180021e76]
mov rcx, rsp
call fcn.180057580
nop
nop
nop
xor eax, eax
jmp 0x1800220ba
mov eax, 2
mov edx, 0x1e
cmp ecx, 0x12c
cmovg eax, edx
mov dword [0x1800a7a00], eax
xor r12d, r12d
mov edi, r12d
mov dword [rsp + 0x30], r12d
lea r13, str.hsmgr.exe
nop dword [rax + rax]
cmp edi, 4
jge 0x18002200d
cmp dword [0x1800a4264], 1
jne 0x18002200d
movsxd rax, edi
lea r15, [rax*8]
mov rcx, qword [r15 + r13]
call fcn.18000bad0
test eax, eax
je 0x180022002
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [rax + 0x1e]
mov qword [rsp + 0x70], r12
mov ecx, 0x1000a
call fcn.180053ad4
mov r14, rax
mov ecx, 0x2000a
call fcn.180053ad4
mov rbx, rax
test r14, r14
je 0x180021fcf
test rax, rax
je 0x180021fcf
mov dword [rsp + 0x20], edi
mov r9, qword [r15 + r13]
lea r8, [0x18008ea68]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x180021fb8
mov word [rbx + 0x1fffe], r12w
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
call fcn.180053398
lea r8, [rax + 1]
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.180054798
test eax, eax
je 0x180021f8f
mov r8d, esi
mov rdx, rbx
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
lea r9, str.KillUnWantedProcesses
mov edx, 0x3a2
mov r8d, 3
lea rcx, str...ProtectionNA.cpp
call fcn.180001b40
jmp 0x180021fe8
mov edx, esi
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x180021fe2
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r14, r14
je 0x180021ff5
mov rcx, r14
call fcn.180053a94
test rbx, rbx
je 0x180022002
mov rcx, rbx
call fcn.180053a94
inc edi
mov dword [rsp + 0x30], edi
jmp 0x180021eb0
nop
xor eax, eax
jmp 0x1800220ba
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180022860
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800a2de8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180022908
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1800228bf
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x60
pop rbx
ret
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
neg ebx
mov qword [rsp + 0x44], rax
sbb eax, eax
lea r8, [rsp + 0x40]
and eax, 2
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x4c], eax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180052be0
add rsp, 0x60
pop rbx
ret
Function at 0x18002d720
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x18002d7c0
cmp dword [rcx], 0x1234abcd
jne 0x18002d7c0
mov edx, 0x5c
mov rcx, rbx
mov qword [rsp + 0x40], rsi
call fcn.1800540e8
mov rsi, rax
test rax, rax
jne 0x18002d764
mov rsi, rbx
jmp 0x18002d768
add rsi, 2
xor ebx, ebx
cmp dword [rdi + 0x6270], ebx
jle 0x18002d799
movsxd rax, ebx
mov rdx, rsi
imul rcx, rax, 0x208
add rcx, qword [rdi + 0x6278]
call fcn.180052ca8
test eax, eax
je 0x18002d7ab
inc ebx
cmp ebx, dword [rdi + 0x6270]
jl 0x18002d772
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18002d7f9
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rbx + 8]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x18002d85b
lea r9, str.IsFileInGlobalPool
lea rcx, str...ServerIpcNA.cpp
mov edx, 0x7ee
mov r8d, 1
mov dword [rsp + 0x28], 8
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, 8
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, 8
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov rbx, qword [rsp + 0x48]
mov eax, 8
add rsp, 0x30
pop rdi
ret
Function at 0x18002d8a0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], rsp
mov rax, rdx
mov rsi, qword [0x1800a6d10]
xor ebx, ebx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x48], rbx
test rsi, rsi
je 0x18002d972
cmp dword [rsi], 0x1234abcd
jne 0x18002d972
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rdi, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x18002d919
mov dword [rsp + 0x38], ebx
lea rdx, [0x18002d914]
mov rcx, rsp
call fcn.180057580
nop
nop
nop
jmp 0x18002db5d
mov dword [rsp + 0x34], ebx
cmp ebx, dword [rsp + 0x60]
jge 0x18002d95f
movsxd rdx, ebx
mov rdx, qword [rdi + rdx*8]
mov rcx, rsi
call fcn.18002d720
cmp eax, 1
jne 0x18002d95b
lea eax, [rbx + 1]
mov dword [rsp + 0x30], eax
lea rdx, [0x18002d952]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x18002db5f
inc ebx
jmp 0x18002d919
test rdi, rdi
je 0x18002d96d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18002db5d
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18002d99f
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x18002da11
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x18002d9eb
mov byte [rbx + 0xffff], 0
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rbx
lea r9, str.IsArgumentInGlobalPool
mov edx, 0x80d
mov r8d, 1
lea rcx, str...ServerIpcNA.cpp
call fcn.180001b40
jmp 0x18002da09
mov edx, 8
lea rcx, str.Error__d_in_swprintf_s_n
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov dword [rsp + 0x3c], 8
lea rdx, [0x18002da2d]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
nop
nop
nop
mov eax, 8
jmp 0x18002db5f
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180035120
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x1800352e2
cmp dword [rcx], 0x1234abcd
jne 0x1800352e2
test r8, r8
je 0x1800352e2
mov qword [rsp + 0x58], rbp
xor ebp, ebp
mov ebx, ebp
cmp dword [rcx + 0x4238], ebx
jle 0x1800351a4
nop word [rax + rax]
movsxd rax, ebx
mov rdx, rsi
imul rcx, rax, 0x420
mov rax, qword [rdi + 0x4240]
add rax, 0x208
add rcx, rax
call fcn.180052ca8
test eax, eax
je 0x180035276
inc ebx
cmp ebx, dword [rdi + 0x4238]
jl 0x180035170
mov ecx, 0x1000a
mov qword [rsp + 0x50], rbp
call fcn.180053ad4
mov ecx, 0x2000a
mov rdi, rax
call fcn.180053ad4
mov rbx, rax
test rdi, rdi
je 0x1800352a8
test rax, rax
je 0x1800352a8
lea r8, [0x18008890c]
mov r9, rsi
mov edx, 0xffff
mov rcx, rax
call fcn.180053a4c
test eax, eax
jle 0x18003528e
mov rdx, 0xfffffffffffffffe
mov rcx, rbx
mov word [rbx + 0x1fffe], bp
call fcn.180053398
lea rcx, [rsp + 0x50]
mov r9, rbx
lea r8, [rax + 1]
mov rdx, rdi
mov qword [rsp + 0x20], 0xffffffffffffffff
call fcn.180054798
test eax, eax
je 0x180035249
lea rcx, str.wcstombs_s_error_in_log_file:__s____d_n
mov r8d, 9
mov rdx, rbx
call fcn.180053f50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, str._GetAppIndex
lea rcx, str...Triggers.cpp
mov edx, 0xa9
mov r8d, 1
mov dword [rsp + 0x28], 9
mov qword [rsp + 0x20], rdi
call fcn.180001b40
jmp 0x1800352c1
mov dword [r14], ebx
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, 9
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
jmp 0x1800352bb
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rdi, rdi
je 0x1800352ce
mov rcx, rdi
call fcn.180053a94
test rbx, rbx
je 0x1800352db
mov rcx, rbx
call fcn.180053a94
mov eax, 9
jmp 0x18003527b
mov ecx, 0x1000a
call fcn.180053ad4
mov rbx, rax
test rax, rax
jne 0x18003531e
lea rcx, str.Memory_allocation_error_in_log_file_n
call fcn.180053f50
lea rcx, str.Memory_allocation_error_in_log_file_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [rbx + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
lea r8, [0x180088a64]
mov edx, 0xffff
mov rcx, rax
call fcn.180053a70
test eax, eax
jle 0x180035383
lea r9, str._GetAppIndex
lea rcx, str...Triggers.cpp
mov edx, 0x9e
mov r8d, 1
mov dword [rsp + 0x28], 8
mov byte [rbx + 0xffff], 0
mov qword [rsp + 0x20], rbx
call fcn.180001b40
mov rcx, rbx
call fcn.180053a94
mov eax, 8
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
lea rcx, str.Error__d_in_swprintf_s_n
mov edx, 8
call fcn.180053f50
lea rcx, str.Error_in_swprintf_s_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call fcn.180053a94
mov rbx, qword [rsp + 0x60]
mov eax, 8
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180037bc0
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1c8
mov r9b, 1
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1d0]
call fcn.1800394e0
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x180037c36
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x64
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180037c20
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x20]
add rsp, 0x1c8
ret

Function at 0x180039a50
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180039ab7
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x34], eax
jne 0x180039aa0
mov byte [rsp + 0x30], 1
jmp 0x180039ab5
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x34]
lea rcx, str.ReadFromPipe:_Error_reading_from_pipe:_Number_read_was__d__requested_was__d_n
call fcn.180038890
jmp 0x180039ac3
lea rcx, str.ReadFromPipe:_Error_reading_from_pipe:_ReadFile_returned_False_n
call fcn.180038890
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x18003a370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x40], rsp
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18003d650
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18003a517
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x38], rax
mov r8d, 0x8000
mov rdx, qword [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x18003a3ee
mov dword [rsp + 0x24], 0
lea rdx, [0x18003a51e]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
mov r9b, 1
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18003d650
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18003a50c
mov r8d, 0x8000
mov rdx, qword [rsp + 0x38]
mov rcx, qword [0x1800a5160]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x18003a44b
mov dword [rsp + 0x28], 0
lea rdx, [0x18003a524]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
mov r9b, 1
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18003d650
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18003a50c
mov rdx, qword [rsp + 0x38]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x18003a4a0
mov dword [rsp + 0x2c], 0
lea rdx, [0x18003a52a]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18003d650
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x18003a50c
mov edx, 0x8000
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x18003a4f1
mov dword [rsp + 0x30], 0
lea rdx, [0x18003a530]
mov rcx, qword [rsp + 0x40]
call fcn.180057580
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.18003d650
mov byte [rsp + 0x20], al
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, byte [rsp + 0x20]
jmp 0x18003a534
add rsp, 0x58
ret
Function at 0x18003a540
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x48], 0
je 0x18003a60b
mov r9d, 2
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.18003da10
test eax, eax
je 0x18003a60b
movzx eax, word [rsp + 0x24]
cmp eax, 0x5a4d
jne 0x18003a60b
mov rax, qword [rsp + 0x48]
add rax, 0x3c
mov r9d, 4
lea r8, [rsp + 0x2c]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18003da10
test eax, eax
je 0x18003a60b
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov r9d, 0xf8
mov r8, qword [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18003da10
test eax, eax
je 0x18003a60b
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
jne 0x18003a60b
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
jne 0x18003a60b
mov dword [rsp + 0x28], 1
jmp 0x18003a613
mov dword [rsp + 0x28], 0
movzx eax, byte [rsp + 0x28]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18003a640
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x78]
mov rcx, qword [rsp + 0x58]
mov qword [rcx], rax
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18003a650
Capabilities:
Check os version

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov eax, eax
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp eax, 6
jl 0x18003a689
xor eax, eax
jmp 0x18003a6fc
cmp dword [rsp + 0x260], 0
je 0x18003a6c7
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x250]
call fcn.18003f4f0
test rax, rax
jne 0x18003a6b7
mov dword [rsp + 0x24], 1
jmp 0x18003a6bf
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x24]
jmp 0x18003a6fc
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x250]
call fcn.18003f290
test rax, rax
jne 0x18003a6f0
mov dword [rsp + 0x20], 1
jmp 0x18003a6f8
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x248
ret
Function at 0x18003d650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x248
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x268]
test eax, eax
je 0x18003d694
cmp qword [rsp + 0x260], 0
je 0x18003d694
mov rcx, qword [rsp + 0x260]
call fcn.18003d9a0
mov r8, qword [rsp + 0x250]
mov rdx, qword [rsp + 0x260]
lea rcx, [rsp + 0x30]
call fcn.18003d8e0
lea rcx, [rsp + 0x30]
call fcn.18005754c
cmp rax, 6
jbe 0x18003d71e
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x30]
cmp eax, 0x3a
je 0x18003d6f7
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x30]
cmp eax, 0x5c
jne 0x18003d71e
mov eax, 2
imul rax, rax, 1
movzx eax, word [rsp + rax + 0x30]
cmp eax, 0x5c
jne 0x18003d71e
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18003d71e
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x258]
call fcn.18004d6f0
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x248
ret

Function at 0x18003eec0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov dword [rsp + 0x34], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x18003efd6
mov rcx, qword [rsp + 0x90]
call fcn.180041750
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x58], 0x1c
cmp dword [rsp + 0x30], 0
je 0x18003efcb
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18003efcb
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x64], eax
jne 0x18003efb4
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x48
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18003efb2
mov rcx, qword [rsp + 0x48]
call fcn.18003f970
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x50], 0
je 0x18003efb2
mov rax, qword [rsp + 0x50]
add rax, 0x30
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x40]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18003efb2
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x34], eax
jmp 0x18003efcb
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18003ef2c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x34]
add rsp, 0x88
ret