joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Check for foreground window switch
Enumerate processes
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x2990]
mov eax, 0x2a90
call fcn.140001f80
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2980], rax
xor edx, edx
lea rcx, [rbp + 0x1980]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x2180]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
nop dword [rax]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x800
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x400
lea rdx, [rbp + 0x180]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
xor edx, edx
lea rcx, [rbp + 0x980]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x400
lea rdx, [rbp + 0x980]
mov rcx, rbx
call qword [sym.imp.USER32.dll_RealGetWindowClassW]
mov r8d, 0x400
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x1980]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
jne 0x14000116d
mov r8d, 0x400
lea rdx, [rbp + 0x980]
lea rcx, [rbp + 0x2180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
test eax, eax
je 0x140001276
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor edx, edx
mov edi, eax
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rbp + 0x1180]
mov r8d, 0x800
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
cmp rbx, 0xffffffffffffffff
je 0x14000120a
xor edx, edx
mov dword [rsp + 0x40], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000120a
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x48], eax
je 0x1400011ef
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400011d1
jmp 0x14000120a
mov r9d, 0x400
lea r8, [rsp + 0x6c]
mov edx, r9d
lea rcx, [rbp + 0x1180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edx, dword [rsp + 0x30]
lea rax, [rbp + 0x980]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1180]
lea rax, [rbp + 0x180]
mov r8d, edi
lea rcx, str._d:_d__ls__Title:_ls_Class:_ls_n
mov qword [rsp + 0x20], rax
call fcn.140001010
mov r9d, 0x400
lea r8, [rbp + 0x180]
mov edx, r9d
lea rcx, [rbp + 0x1980]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9d, 0x400
lea r8, [rbp + 0x980]
mov edx, r9d
lea rcx, [rbp + 0x2180]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400010d0
Function at 0x140001b60
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x140007020]
jne 0x1400027ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1400027c6
repz ret
ror rcx, 0x10
jmp 0x140002bd8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400073c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400074b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140002c5d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400073c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140002c7f
mov rax, qword [rsp + 0x88]
mov qword [0x1400074b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140007458], rax
mov rax, qword [0x1400074b8]
mov qword [0x140007330], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140007440], rax
mov dword [0x140007320], 0xc0000409
mov dword [0x140007324], 1
mov rax, qword [0x140007020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140007028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400073b8], eax
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400043b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400073b8], 0
jne 0x140002d06
mov ecx, 1
call sub.MSVCR100.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001178
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x60
xor esi, esi
lea rax, [r11 + 0x10]
mov qword [r11 - 0x48], rax
lea r9, [0x14000ca88]
lea rax, [r11 + 0x20]
mov dword [r11 + 0x18], esi
mov qword [r11 - 0x50], rax
lea rdx, str.SYSTEMSetup
mov qword [r11 - 0x58], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
mov edi, 1
mov qword [r11 + 0x20], rsi
mov dword [r11 + 0x10], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x14000121b
mov rcx, qword [rsp + 0xa8]
lea r9d, [rdi + 3]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SetupType
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xa8]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r15, [0x14000af58]
lea r12, str.base_ntsetup_setupplatformdeploymentexe_setupplatform.cpp
test ebx, ebx
je 0x1400012aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.SetupType
mov ecx, 0x2000000
lea r8, str.pDisableSetupTypeRun
mov dword [rsp + 0x20], eax
lea rdx, str._hs:_Failed_to_reset__s_in_setup_key._hr__0x_X
call fcn.1400010e0
mov dword [rsp + 0x50], esi
lea r8, [0x14000af18]
mov qword [rsp + 0x48], rsi
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x30
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov edi, esi
mov word [rsp + 0x90], si
lea rcx, [rsp + 0x90]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x1400012be
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea r8, str.CmdLine
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.140006b64
test eax, eax
jne 0x14000136a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.WDSCORE.dll_CurrentIP]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CmdLine
mov ecx, 0x2000000
lea r8, str.pDisableSetupTypeRun
mov dword [rsp + 0x20], eax
lea rdx, str._hs:_Failed_to_reset__s_in_setup_key._hr__0x_X
call fcn.1400010e0
mov dword [rsp + 0x50], esi
lea r8, [0x14000af18]
mov qword [rsp + 0x48], rsi
mov rcx, rax
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 0x37
call qword [sym.imp.WDSCORE.dll_WdsSetupLogMessageW]
mov edi, esi
mov eax, edi
add rsp, 0x60
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001664
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140012728]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
xor ebx, ebx
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x140001730
mov rcx, rdi
call qword [sym.imp.unbcl.dll_public:_unsigned_short_int_const____ptr64___cdecl_UnBCL::String::get_CString_void_const___ptr64]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x20], 0x104
lea rdx, [0x14000b0d0]
lea rcx, str.Parameters
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x140001730
cmp word [rsp + 0x30], bx
je 0x140001730
lea edi, [rbx + 1]
mov r8d, edi
lea rdx, str.TRUE
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
test eax, eax
je 0x14000172e
mov r8d, edi
lea rdx, [0x14000b0b0]
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
test eax, eax
je 0x14000172e
mov r8d, edi
lea rdx, [0x14000b0c4]
lea rcx, [rsp + 0x30]
call qword [sym.imp.unbcl.dll_public:_static_int___cdecl_UnBCL::String::Compare_unsigned_short_int_const____ptr64__unsigned_short_int_const____ptr64__int_]
test eax, eax
jne 0x140001730
mov ebx, edi
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140008670
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140006b64
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, qword [rsp + 0x90]
xor ebx, ebx
mov ebp, r9d
mov r14, r8
test rsi, rsi
je 0x140006c26
lea rax, [r11 + 0x10]
mov qword [r11 + 8], rbx
mov qword [r11 - 0x28], rax
lea r9, [0x14000ca88]
lea rax, [r11 + 8]
mov dword [rsp + 0x78], ebx
mov qword [r11 - 0x30], rax
lea rdx, str.SYSTEMSetup
mov qword [r11 - 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test eax, eax
jne 0x140006c15
mov eax, dword [rsp + 0x98]
mov r9d, ebp
mov rcx, qword [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r14
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
sete bl
mov eax, ebx
jmp 0x140006c33
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140006ebc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x140006fa4
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x140006fa4
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x140006f43
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x140006f37
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140006f7c
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140006f22
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x140006fa4
cmp dword [0x140012e88], 0
jne 0x140006f85
mov dword [0x140012e88], 1
test eax, eax
js 0x140006f70
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.140006e1c
jmp 0x140006f87
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x140006f4d
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006faa
lea ecx, [rax + 0x19]
int 0x29
jmp 0x140006faa
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140007470
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r8
push rbp
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xe0
xor eax, eax
lea r8, [0x14000ca88]
mov qword [rbp - 0x59], rax
lea rdx, str._s_s_s
mov qword [rbp - 0x51], rax
lea rcx, [rbp + 0x67]
mov qword [rbp - 0x49], rax
xor r14d, r14d
lea rax, str._windir__system32cmd.exe
mov qword [rbp + 0x67], r14
mov r9, r8
mov qword [rsp + 0x20], rax
mov edi, r14d
call fcn.1400079c4
mov ebx, eax
test eax, eax
js 0x1400075aa
mov rcx, qword [rbp + 0x67]
call fcn.14000763c
mov rdi, rax
mov r15d, 0x80070000
test rax, rax
je 0x1400074f4
cmp r14w, word [rax]
jne 0x140007521
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14000751c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
jmp 0x140007521
mov ebx, 0x80004005
test ebx, ebx
js 0x1400075aa
xor edx, edx
lea rcx, [rbp - 0x35]
lea r8d, [rdx + 0x64]
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x59]
mov dword [rbp - 0x39], 0x68
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rdx, rdi
mov qword [rsp + 0x38], r14
xor ecx, ecx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400075aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, r15d
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400075a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
jmp 0x1400075aa
mov ebx, 0x80004005
mov rcx, qword [rbp - 0x51]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400075be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x59]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400075d2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x67], r14
je 0x1400075ed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x67]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140007606
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
movzx ecx, bx
test ebx, ebx
cmovns ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
not ebx
lea r11, [rsp + 0xe0]
mov rdi, qword [r11 + 0x28]
shr ebx, 0x1f
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000763c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebp, ebp
xor r8d, r8d
xor edx, edx
mov ebx, ebp
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x1400076bc
mov ebx, edi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
lea edx, [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400076bc
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400076a2
cmp bp, word [rbx]
jne 0x1400076bc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
cmovne rbx, rbp
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
je 0x140007753
cmp bx, word [rcx]
je 0x140007753
call fcn.140007b00
mov rsi, rax
test rax, rax
je 0x14000773f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007721
and eax, 0x10
sete bl
neg eax
sbb edi, edi
and edi, 2
jmp 0x140007729
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140007747
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x140007760
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400083d0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140012e70], rbx
je 0x140008437
cmp rax, rbx
jne 0x14000842a
mov ebx, 1
mov esi, ebx
jmp 0x14000843c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000840f
mov ebx, 1
mov eax, dword [0x140012e78]
cmp eax, ebx
jne 0x140008454
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x1400084c0
mov eax, dword [0x140012e78]
test eax, eax
jne 0x1400084b5
mov dword [0x140012e78], ebx
lea r15, [0x14000ad48]
lea rdi, [0x14000ad30]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400084a7
test eax, eax
jne 0x1400084ab
cmp qword [rdi], r14
je 0x14000849c
mov rax, qword [rdi]
mov rcx, qword [0x14000ad10]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000847e
test eax, eax
je 0x1400084bb
mov eax, 0xff
jmp 0x140008616
mov dword [0x140012744], ebx
mov edi, 0x1f
mov eax, dword [0x140012e78]
cmp eax, ebx
jne 0x1400084e7
lea rdx, [0x14000ad28]
lea rcx, [0x14000ad18]
call sub.msvcrt.dll__initterm
mov dword [0x140012e78], 2
test esi, esi
jne 0x1400084f5
mov rax, r14
xchg qword [0x140012e70], rax
cmp qword [0x140012e80], r14
je 0x140008528
lea rcx, [0x140012e80]
call fcn.1400088a0
test eax, eax
je 0x140008528
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140012e80]
mov r9, qword [0x14000ad10]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140008541
mov eax, 0xff
jmp 0x140008616
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400085c7
test ax, ax
je 0x14000855c
test edx, edx
jne 0x1400085c7
sub ax, bx
cmp ax, di
ja 0x140008572
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000855c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000175c
mov dword [0x140012740], eax
cmp dword [0x140012760], r14d
jne 0x1400085b0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140012744], r14d
jne 0x1400085c5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140012740]
jmp 0x140008616
cmp ax, 0x22
jne 0x1400085db
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000854a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400b8000
add rsp, 0x28
jmp 0x1400083d0
Function at 0x14000879c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400087e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400087e0
cmp dword [rcx + 0x3c], edx
jl 0x1400087e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400087e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400087e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140eaad9c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140eaada6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140eaadcf
pop rbp
sub rbp, 0x33
sub rbp, 0xeaad9c
sub rsp, 0x20
jmp 0x140eaadee
mov rax, 0xeaad9c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x144fdbe9
xor byte [rax], dl
inc rax
dec rcx
jne 0x140eaae0d
jmp 0x140eaae24
movabs eax, dword [0xe9e9e9d560620060]
movabs eax, dword [0xe8a1e9e9e8e12868]
add byte [rcx - 0x161ed6d2], ah
jmp 0x16c19502a

Function at 0x140016650
Capabilities:
Encode data using xor

Disassembly:
sub dword [rdi + 0x65a07789], esp
invalid
adc al, 0xac
sub al, byte [rax + rdi + 0x56]
sub esi, 0xae997ff3
int 0x4d
jg 0x140016629
loope 0x1400166c3
fisub word [rsp + rsi]
loopne 0x14001669c
sub rsi, qword [r8 - 0x79f7f3f5]
push rdx
invalid
and eax, 0x84640399
xlatb
add esp, dword [rsp + rax*4 - 0x29]
cwde
movabs eax, dword [0x8925e058490feaac]
adc al, 5
insb byte [rdi], dx
pop rbp
xor dword [rdi], esi
jge 0x14001669a
invalid
jb 0x14001673c
sub bl, bh
ror ecx, 1
in al, 0xf1
add dword [rdx - 0x15143fce], 0x9441491
cmc
cmp dword [rax + 0xd], ecx
or dword [rcx + 0x2c18c321], ebp
invalid
sahf
mov edi, 0x6a107b89
clc
pop rbx
invalid
Function at 0x1400020f0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rcx, [rbp + 0xf]
call fcn.140001be0
mov rdi, rax
lea rcx, [rbp - 0x31]
call fcn.1400016d0
mov rbx, rax
lea rcx, [rbp - 0x51]
call fcn.1400011c0
nop
mov r9, rbx
mov r8, rax
lea rcx, [rbp - 0x11]
call fcn.140002650
nop
mov r9, rdi
lea r8, [rbp - 0x11]
lea rcx, [rbp + 0x2f]
call fcn.140002650
nop
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140002197
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002191
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002191
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400028ac
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1400021d5
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400028ac
mov qword [rbp - 0x41], 0
mov qword [rbp - 0x39], 0xf
mov byte [rbp - 0x51], 0
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x140002227
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002222
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002222
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400028ac
mov qword [rbp - 0x21], 0
mov qword [rbp - 0x19], 0xf
mov byte [rbp - 0x31], 0
mov rdx, qword [rbp + 0x27]
cmp rdx, 0x10
jb 0x140002279
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002274
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002274
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400028ac
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rcx, qword [rbp + 0x2f]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x1400022cb
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400028ac
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140002850
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret