joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001160
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x14000a048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
je 0x1400011b9
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x1400011b9
cmp rdi, rax
jne 0x1400011a0
mov rdi, qword [0x14000a050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x1400011d3
mov ecx, 0x1f
call fcn.140008300
jmp 0x1400011fa
cmp dword [rdi], 0
je 0x1400011e1
mov byte [0x14000c148], 1
jmp 0x1400011fa
mov dword [rdi], 1
mov rcx, qword [0x14000a068]
mov rdx, qword [0x14000a070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x14000121a
mov rcx, qword [0x14000a058]
mov rdx, qword [0x14000a060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, 1
je 0x140001224
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x14000a010]
mov rax, qword [rax]
test rax, rax
je 0x140001243
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call qword [0x14000e008]
call fcn.140007a50
lea rcx, [0x140008000]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x14000a040]
mov qword [rcx], rax
lea rcx, [0x140001390]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140007a40
movsxd rdi, dword [0x14000c134]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x1400012d2
mov ebx, edi
mov r14, qword [0x14000c138]
xor r15d, r15d
nop dword [rax + rax]
mov rcx, qword [r14 + r15*8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rdi, [rax + 1]
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r15*8], rax
mov rdx, qword [r14 + r15*8]
mov rcx, rax
mov r8, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
inc r15
cmp rbx, r15
jne 0x1400012a0
jmp 0x1400012d4
xor ebx, ebx
mov qword [rsi + rbx*8], 0
mov qword [0x14000c138], rsi
call fcn.140007890
mov rax, qword [0x14000c140]
mov rcx, qword [0x14000a018]
mov rcx, qword [rcx]
mov qword [rcx], rax
mov ecx, dword [0x14000c134]
mov rdx, qword [0x14000c138]
mov r8, qword [0x14000c140]
call fcn.1400076e0
mov dword [0x14000c14c], eax
cmp dword [0x14000c12c], 0
je 0x140001344
cmp byte [0x14000c148], 0
jne 0x140001338
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000c14c]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3

Function at 0x140006d30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
inc rax
dec rax
nop
xchg rcx, rcx
nop
nop
nop
inc rax
dec rax
nop
nop
nop
call fcn.140006d70
test eax, eax
jne 0x140006d5a
xor eax, eax
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140007f30
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140008ac0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000887c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000887c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000887c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000887c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140008868
add rax, 0x28
dec edx
je 0x14000887c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140008860
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140008860
jmp 0x14000887e
xor eax, eax
ret

Function at 0x140008880
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x1400088b5
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x1400088b5
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x1400088b5
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x140008930
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000895c
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000895c
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000895e
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009780]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140009790]
mov dword [rax], 1
mov rax, qword [0x1400097a0]
mov dword [rax], 1
mov rax, qword [0x140009720]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009770]
mov dword [0x14000d020], 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 [0x140009850]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140009830]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400096d0]
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
lea rcx, [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 0x140001581
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x70], 0x68
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x18]
mov rax, qword [rax]
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x40], rdx
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
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
jne 0x14000166f
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.CreateProcess_failed___d_._n
call sym.printf
mov r9d, 0
lea r8, str.rd_C:__s__q
lea rdx, str.Listen_here_you_little_shit
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
call rax
mov eax, 1
jmp 0x1400016b2
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0xe0
pop rbp
ret
Function at 0x140001980
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1400019f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000d0a4]
mov r12, rcx
test ebx, ebx
jle 0x140001b20
mov rax, qword [0x14000d0a8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001a3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001ac3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001a20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001b42
mov rax, qword [0x14000d0a8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000d0a8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001abc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ad0
add dword [0x14000d0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000d0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001a47
mov rax, qword [0x14000d0a8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002000
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14000d100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x140002054
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000204b
test r12, r12
je 0x14000204b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002030
lea rcx, [0x14000d100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002270
Capabilities:
Parse pe header

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

Function at 0x1400022a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400022ec
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400022e3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400022ee
add rax, 0x28
cmp rax, r9
jne 0x1400022d0
xor eax, eax
ret

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002380
mov rdx, qword [0x140009720]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000236e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000236e
cmp word [rax + 0x18], 0x20b
jne 0x14000236e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002380
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002359
add r12, 0x28
cmp r12, rsi
je 0x140002380
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002350
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140009720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002405
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023fc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023b0
add rax, 0x28
cmp rax, r9
jne 0x1400023e8
xor eax, eax
ret

Function at 0x140002410
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009720]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002430
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002438
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002430
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x140002450
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009720]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002470
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002478
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002470
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400024b8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024af
test rcx, rcx
je 0x140002470
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400024a0
xor eax, eax
ret

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009720]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024e0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024e8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

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

Disassembly:
mov rax, qword [0x140009720]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002520
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002528
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002520
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002520
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002578
add rax, 0x28
cmp r9, rax
jne 0x140002550
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140009720]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025b2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400025b2
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000260d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002620
add rdx, 0x28
cmp r10, rdx
jne 0x1400025f8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000262f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000263f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002616
test ecx, ecx
jg 0x140002628
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140001000
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0xe338fad6
call fcn.14000172c
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140001080
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x37853f20
call fcn.14000172c
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x1400015b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, dword [rcx + 0x3c]
mov r9, rcx
mov rbp, rdx
mov r8d, dword [r15 + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov r11d, dword [r8 + 0x20]
add rsi, rcx
mov r14d, dword [r8 + 0x24]
add r11, rcx
add r14, rcx
xor ecx, ecx
cmp rdx, 0x10000
jae 0x14000162c
mov r10d, dword [r8 + 0x10]
movzx edx, bp
cmp edx, r10d
jb 0x140001725
mov ecx, dword [r8 + 0x14]
add ecx, r10d
cmp edx, ecx
jae 0x140001725
sub edx, r10d
mov ecx, dword [rsi + rdx*4]
jmp 0x14000166d
xor eax, eax
cmp dword [r8 + 0x18], eax
jbe 0x140001670
mov r10d, dword [r11]
mov rdx, rbp
add r10, r9
sub r10, rbp
movzx ebx, byte [rdx]
movzx edi, byte [rdx + r10]
sub ebx, edi
jne 0x140001653
inc rdx
test edi, edi
jne 0x140001640
test ebx, ebx
je 0x140001665
inc eax
add r11, 4
cmp eax, dword [r8 + 0x18]
jb 0x140001634
jmp 0x140001670
movzx ecx, word [r14 + rax*2]
mov ecx, dword [rsi + rcx*4]
add rcx, r9
cmp rcx, r8
jb 0x140001709
mov eax, dword [r15 + r9 + 0x8c]
lea rdx, [rax + rax*4]
lea rax, [r8 + rdx*8]
cmp rcx, rax
jae 0x140001709
call sub.api_ms_win_crt_string_l1_1_0.dll__strdup
mov rbx, rax
test rax, rax
je 0x140001725
mov edx, 0x2e
mov rcx, rax
call fcn.140001960
mov rdi, rax
mov byte [rax], 0
mov rax, qword [0x140007068]
test rax, rax
jne 0x1400016e5
lea rcx, str.KERNEL32.DLL
call fcn.140001554
mov rcx, rax
lea rdx, [0x1400043f0]
call fcn.1400015b8
mov qword [0x140007068], rax
test rax, rax
je 0x140001725
mov rcx, rbx
call rax
mov rcx, rbx
mov rsi, rax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
test rsi, rsi
je 0x140001725
lea rdx, [rdi + 1]
mov rcx, rsi
call fcn.1400015b8
mov rcx, rax
mov rax, rcx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x14000170c

Function at 0x140001770
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8, rcx
mov eax, 0x479a4d5e
cmp byte [rcx], r9b
je 0x14000179a
movzx ecx, word [rcx]
mov edx, eax
ror edx, 8
inc r9d
add edx, ecx
mov ecx, r9d
add rcx, r8
xor eax, edx
cmp byte [rcx], 0
jne 0x140001780
ret
Function at 0x14000179c
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp dword [0x1400077c0], 0
jne 0x14000193a
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x18]
mov r8, qword [rcx + 0x10]
mov rax, qword [r8 + 0x30]
test rax, rax
je 0x14000195c
mov r9d, 0x20202020
mov rdi, rax
movsxd rax, dword [rax + 0x3c]
mov ecx, dword [rax + rdi + 0x88]
test ecx, ecx
je 0x14000181f
lea rdx, [rdi + rcx]
mov ecx, dword [rdx + 0xc]
mov eax, dword [rcx + rdi]
or eax, r9d
cmp eax, 0x6c64746e
jne 0x14000181f
mov eax, dword [rcx + rdi + 4]
or eax, r9d
cmp eax, 0x6c642e6c
je 0x14000182b
mov r8, qword [r8]
mov rax, qword [r8 + 0x30]
test rax, rax
jne 0x1400017eb
test rdx, rdx
je 0x14000195c
mov r15d, dword [rdx + 0x1c]
mov r14d, dword [rdx + 0x20]
add r15, rdi
mov r12d, dword [rdx + 0x24]
add r14, rdi
mov ebp, dword [rdx + 0x18]
add r12, rdi
xor esi, esi
lea eax, [rbp - 1]
mov ecx, dword [r14 + rax*4]
mov ebp, eax
add rcx, rdi
mov r13d, eax
mov eax, 0x775a
cmp word [rcx], ax
jne 0x1400018a3
mov ebx, esi
add rbx, rbx
call fcn.140001770
lea rcx, [0x1400077c0]
inc esi
mov dword [rcx + rbx*8 + 8], eax
movzx eax, word [r12 + r13*2]
lea r13, [0x1400077c0]
mov eax, dword [r15 + rax*4]
and qword [r13 + rbx*8 + 0x10], 0
mov dword [r13 + rbx*8 + 0xc], eax
cmp esi, 0x1f4
je 0x1400018ae
jmp 0x1400018aa
lea r13, [0x1400077c0]
test ebp, ebp
jne 0x14000184e
xor r8d, r8d
mov dword [0x1400077c0], esi
lea eax, [rsi - 1]
test eax, eax
je 0x14000193a
mov eax, esi
xor ecx, ecx
sub eax, r8d
cmp eax, 1
je 0x14000192f
lea r11d, [rcx + 1]
mov r10d, ecx
add r10, r10
mov r9d, r11d
add r9, r9
mov edi, dword [r13 + r10*8 + 0xc]
mov ebx, dword [r13 + r9*8 + 0xc]
cmp edi, ebx
jbe 0x140001920
mov eax, dword [r13 + r9*8 + 8]
mov edx, dword [r13 + r10*8 + 8]
mov rcx, qword [r13 + r10*8 + 0x10]
mov dword [r13 + r10*8 + 8], eax
mov rax, qword [r13 + r9*8 + 0x10]
mov qword [r13 + r10*8 + 0x10], rax
mov dword [r13 + r10*8 + 0xc], ebx
mov dword [r13 + r9*8 + 8], edx
mov dword [r13 + r9*8 + 0xc], edi
mov qword [r13 + r9*8 + 0x10], rcx
mov esi, dword [0x1400077c0]
mov eax, esi
mov ecx, r11d
sub eax, r8d
dec eax
cmp r11d, eax
jb 0x1400018ca
inc r8d
lea eax, [rsi - 1]
cmp r8d, eax
jb 0x1400018be
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x14000193f

Function at 0x140002118
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140003928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400312e4
Capabilities:
Parse pe header

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

Function at 0x140033280
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400333d4

Function at 0x140034b80
Capabilities:
Parse pe header

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