joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082080
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x50
and qword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140082134
mov rcx, qword [rbp + 0x38]
lea r9, [rbp + 0x30]
and qword [rbp - 0x10], 0
lea r8, [rbp - 0x10]
and dword [rbp + 0x30], 0
call fcn.140082410
mov ebx, eax
test eax, eax
jne 0x140082134
and qword [rsp + 0x38], 0
lea r9, [rbp + 0x30]
and qword [rsp + 0x30], 0
xor edx, edx
and qword [rsp + 0x28], 0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140082127
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.140082080
movzx ebx, ax
mov rcx, qword [rbp - 0x10]
call fcn.14000f4cc
test ebx, ebx
je 0x1400820bf
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140082149
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
cmp ebx, 0x103
cmovne eax, ebx
test eax, eax
jne 0x140082172
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
test eax, eax
jle 0x14008217c
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbp
ret

Function at 0x1400824b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
lea rax, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov ebx, r8d
mov rax, qword [rsp + 0x60]
xor r8d, r8d
mov dword [r11 + 0x20], r9d
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x1400824fb
cmp dword [rsp + 0x50], ebx
lea eax, [rcx + 0x57]
cmovne ecx, eax
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14008250b
mov eax, dword [rsp + 0x58]
mov dword [rdx], eax
test ecx, ecx
jle 0x140082518
movzx ecx, cx
or ecx, 0x80070000
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x140082528
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
mov qword [r11 + 0x10], rdx
push rbx
sub rsp, 0x30
mov eax, dword [r9]
lea rdx, str.Order
mov rcx, qword [rcx + 0x10]
mov rbx, r9
mov dword [rsp + 0x48], eax
lea r9, [r11 + 0x18]
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], 7
mov qword [r11 - 0x10], rax
xor r8d, r8d
and qword [r11 - 0x18], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008258c
cmp dword [rsp + 0x50], 7
lea ecx, [rax + 0x57]
cmovne eax, ecx
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
test eax, eax
jle 0x140082596
movzx eax, ax
or eax, 0x80070000
add rsp, 0x30
pop rbx
ret
Function at 0x140082704
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
mov eax, dword [rcx + 0x14]
lea r9, [r11 + 8]
inc dword [rcx + 0x10]
mov rbx, rcx
mov r8, qword [rcx + 8]
mov edx, dword [rcx + 0x10]
mov rcx, qword [rcx]
mov dword [rsp + 0x50], eax
xor eax, eax
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ecx, eax
call fcn.140006a40
mov dword [rbx + 0x18], eax
add rsp, 0x40
pop rbx
ret

Function at 0x14008281c
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400ca7e0]
test rdx, rdx
jne 0x140082837
mov eax, 0x80070057
add rsp, 0x28
ret
mov eax, dword [rcx + 8]
test eax, eax
js 0x140082866
mov rcx, qword [rcx]
mov r8, rdx
mov edx, 4
call qword [sym.imp.CRYPTSP.dll_CryptGenRandom]
nop dword [rax + rax]
test eax, eax
je 0x140082861
xor eax, eax
add rsp, 0x28
ret
call fcn.140032c58
add rsp, 0x28
ret

Function at 0x1400828b4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx]
mov rbx, rcx
cmp rdx, 0xffffffffffffffff
je 0x1400828ed
test rdx, rdx
je 0x1400828ed
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadToken]
nop dword [rax + rax]
test eax, eax
jne 0x1400828ed
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_ExitProcess]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14000deac

Function at 0x140082a90
Capabilities:
Encode data using xor

Disassembly:
test r9d, r9d
je 0x140082ab5
mov r10d, r9d
movzx r9d, byte [r8]
mov eax, edx
xor r9, rax
shr edx, 8
movzx eax, r9b
inc r8
xor edx, dword [rcx + rax*4 + 4]
sub r10, 1
jne 0x140082a98
mov rax, qword [rsp + 0x28]
mov dword [rax], edx
xor eax, eax
ret

Function at 0x140082c5c
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rax + 0x10], 0
lea r8, [rax + 0x10]
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
je 0x140082c92
xor ebx, ebx
jmp 0x140082d0e
call fcn.14000aaf0
mov ebx, eax
test eax, eax
jns 0x140082d0e
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140082d0e
lea ecx, [rax + 1]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
lea rdx, [0x1400c9ef8]
cmovo rax, rcx
mov rcx, rax
call fcn.14000edf8
mov rdi, rax
test rax, rax
jne 0x140082cd9
mov ebx, 0x8007000e
jmp 0x140082d0e
lea r8, [rsp + 0x38]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.SspiCli.dll_GetUserNameExW]
nop dword [rax + rax]
test al, al
jne 0x140082d01
call fcn.14000aaf0
mov ebx, eax
test eax, eax
js 0x140082d0e
mov rdx, rdi
mov rcx, rsi
call fcn.14000acd0
mov ebx, eax
mov rcx, rdi
call fcn.14000df6c
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140085b7c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x1400c8cc4], 0xffffffff
jne 0x140085c2d
xor ebx, ebx
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x50], rbx
xor r8d, r8d
mov dword [0x1400c8cc4], ebx
lea rdx, [0x1400bdd80]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140085c2d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.PrintIsolationDefault
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140085c1c
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [0x1400c8cc4], ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [0x1400c8cc4]
add rsp, 0x30
pop rbx
ret

Function at 0x1400862bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140086363
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x58], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationOverrideCompat
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140086352
cmp dword [rsp + 0x58], 4
jne 0x140086352
cmp dword [rsp + 0x68], 1
sete bl
mov dword [rdi + 0x50], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400863a7
test byte [rcx + 0x1c], 2
je 0x1400863a7
cmp dword [rdi + 0x50], 1
lea rax, str.kOverrideCompatOFF
mov rcx, qword [rcx + 0x10]
lea r9, str.kOverrideCompatON
cmovne r9, rax
lea r8, [0x1400bdd68]
mov edx, 0xe
call fcn.14003304c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400864c4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrinters
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
xor ebx, ebx
test eax, eax
jne 0x140086565
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PrintDriverIsolationExecutionPolicy
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008654a
cmp dword [rsp + 0x60], ebx
je 0x14008654f
mov ebx, 1
mov dword [rdi + 0x4c], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x14008656c
mov dword [rdi + 0x4c], 1
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x1400865b0
test byte [rcx + 0x1c], 2
je 0x1400865b0
cmp dword [rdi + 0x4c], 1
lea rax, str.kExecuteInProc
mov rcx, qword [rcx + 0x10]
lea r9, str.kExecuteInSandbox
cmovne r9, rax
lea r8, [0x1400bdd68]
mov edx, 0xd
call fcn.14003304c
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14008a5f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x68], 0
lea rax, [r11 + 0x20]
and dword [rsp + 0x30], 0
lea r9, [r11 - 0x18]
mov rdi, r8
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14008a708
cmp dword [rsp + 0x30], 3
jne 0x14008a708
cmp dword [rsp + 0x68], 0x48
jbe 0x14008a708
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x14008a701
lea rcx, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14008a6ec
mov rcx, qword [rdi]
mov eax, dword [rsp + 0x68]
movzx edx, word [rcx + 0x44]
cmp edx, eax
ja 0x14008a6bb
movzx r8d, word [rcx + 0x46]
cmp r8d, eax
jae 0x14008a6bb
lea ecx, [r8 + rdx]
cmp eax, ecx
je 0x14008a739
mov ebx, 0xd
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14008a6ec
test byte [rcx + 0x1c], 4
je 0x14008a6ec
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 3]
lea r8, [0x1400abbb8]
call fcn.140016c5c
mov rcx, qword [rdi]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
and qword [rdi], 0
jmp 0x14008a739
mov ebx, 8
jmp 0x14008a739
mov ebx, 0xd
mov rcx, qword [0x1400c82a8]
lea rax, [0x1400c82a8]
cmp rcx, rax
je 0x14008a739
test byte [rcx + 0x1c], 4
je 0x14008a739
mov rcx, qword [rcx + 0x10]
lea edx, [rbx - 2]
lea r8, [0x1400abbb8]
call fcn.140016c5c
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x6d8b3590
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8d45e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8b3718
mov rax, qword [0x6d8d45e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8b35dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8b3665
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8b35c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8b374d
mov rax, qword [0x6d8d45e8]
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 [0x6d8d45e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8b3730
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8b365e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8b36c0
add dword [0x6d8d45e4], 1
cmp edi, 8
jae 0x6d8b3693
test dil, 4
jne 0x6d8b3704
test edi, edi
je 0x6d8b3688
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8b371f
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 0x6d8b3688
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 0x6d8b36ac
jmp 0x6d8b3688
add rsi, qword [0x6d8d45e8]
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 0x6d8b365e
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 0x6d8b3688
xor esi, esi
jmp 0x6d8b35e7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8b3688
mov rax, qword [0x6d8d45e8]
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 0x6d8b3ea0
Capabilities:
Get thread local storage value

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

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

Function at 0x6d8b4150
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 0x6d8b4191
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 0x6d8b4188
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8b4193
add rax, 0x28
cmp rax, r9
jne 0x6d8b4174
xor eax, eax
ret

Function at 0x6d8b4230
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d11f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8b429d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b429d
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 0x6d8b429d
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 0x6d8b4294
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b429f
add rax, 0x28
cmp rax, r9
jne 0x6d8b4280
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8b43a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8d11f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8b43c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b43b8
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 0x6d8b441d
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 0x6d8b4414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8b4424
add rax, 0x28
cmp rax, r9
jne 0x6d8b4400
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8b4440
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8d11f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8b44ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8b44ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8b44ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8b44ae
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 0x6d8b44a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8b44b5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8b4490
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8b44c8
jmp 0x6d8b44ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8b44d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8b44ae
test r9d, r9d
jg 0x6d8b44c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8b4840
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 0x9af0b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x9af0bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x9af0cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x9af0b5
lea eax, [rcx + 1]
jmp 0x9af0db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x9af0ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x9af0d4
sub eax, 3
jb 0x9af10e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x9af15d
sar eax, 1
movsxd rbp, eax
jb 0x9af144
jmp 0x9af11c
add ebx, ebx
jne 0x9af11a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9af144
inc ecx
add ebx, ebx
jne 0x9af12a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x9af144
call r11
adc ecx, ecx
add ebx, ebx
jne 0x9af13d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x9af12c
add ecx, 2
jmp 0x9af149
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.009af072
jmp 0x9af0bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x266800
mov dl, 0x5e
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9af1a9
cmp rsi, rcx
jae 0x9af1b1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9af190
cmp al, 0x8f
ja 0x9af190
cmp byte [rsi - 2], 0xf
je 0x9af196
sub al, 0xe8
cmp al, 1
ja 0x9af17a
cmp rsi, rcx
jae 0x9af1b1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9af180
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x9af1b1
lodsb al, byte [rsi]
jmp 0x9af190
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5a7000]
mov eax, dword [rdi]
or eax, eax
je 0x9af20e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x5af000]
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 0x9af1be
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 0x9af208
mov qword [rbx], rax
add rbx, 8
jmp 0x9af1de
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 0x9af252
cmp al, 0xef
ja 0x9af23a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x9af21a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x9af229
mov eax, dword [rdi]
add rdi, 4
jmp 0x9af229
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 + 0x1af]
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 0x9af2a6
sub rsp, 0xffffffffffffff80
jmp 0x468280
Function at 0x140003020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x1400031b3
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x1400031b3
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x1400030b9
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x1400031d7
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1400030cf
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x1400030cf
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x1400030e2
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x14000312d
mov r9d, eax
cmp eax, 0x800
jae 0x1400030fc
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x14000312d
cmp eax, 0x10000
jae 0x140003116
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x14000312d
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x1400031b3
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x140003151
cmp r10d, 3
jae 0x14000315d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14000318e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x140003170
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14000306e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x1400031c2

Function at 0x140004bf0
Capabilities:
Parse pe header

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