joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180071f80
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1800922fc], 0
je 0x180071f9d
mov eax, dword [0x1800922fc]
jmp 0x180072063
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180071fb0
xor eax, eax
jmp 0x180072063
mov ecx, 0x10
call fcn.180073858
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18007201e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180072003
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180073850
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1800922fc], eax
mov qword [0x180092300], 0
mov eax, dword [rsp + 0x20]
jmp 0x180072063
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180072038
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180071fd9
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180092308]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180092308], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1800735ec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180073626
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18007362b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180073674
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180077a30]
cmp byte [rcx + rax], 0
je 0x180073674
dec r8
sub rdx, 1
jne 0x18007365a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14002d740]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14002d750]
mov dword [rax], 1
mov rax, qword [0x14002d760]
mov dword [rax], 1
mov rax, qword [0x14002d6e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14002d730]
mov dword [0x140031020], 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 [0x14002d840]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14002d820]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14002d690]
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 0x140001850
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 0x1400018c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400310b4]
mov r12, rcx
test ebx, ebx
jle 0x1400019f0
mov rax, qword [0x1400310b8]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x14000190b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001995
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400018f0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001a12
mov rax, qword [0x1400310b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400310b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000198e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019a0
add dword [0x1400310b4], 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 [0x1400310b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000198e
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 0x140001918
mov rax, qword [0x1400310b8]
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 0x140001f90
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140031120]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140031100]
test rbx, rbx
je 0x140001fec
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140001fe3
test r12, r12
je 0x140001fe3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fc8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002238
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002240
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002250
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 0x140002295
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x14000228c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002297
add rax, 0x28
cmp rax, r9
jne 0x140002278
xor eax, eax
ret

Function at 0x1400022a0
Capabilities:
Parse pe header

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

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

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002d6e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400023e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400023e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400023e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002400
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14002d6e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002420
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002428
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002420
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002468
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000245f
test rcx, rcx
je 0x140002420
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002450
xor eax, eax
ret
Function at 0x140002470
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14002d6e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024d0
sub rcx, rdx
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400024d0
lea eax, [r8 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop dword [rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000251c
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002530
add rdx, 0x28
cmp rdx, r9
jne 0x140002508
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14002d6e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002562
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002570
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002562
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002562
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002562
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 0x1400025bd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025d0
add rdx, 0x28
cmp r10, rdx
jne 0x1400025a8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025df
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025ef
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025c6
test ecx, ecx
jg 0x1400025d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140007b90
Capabilities:
Encode data using xor

Disassembly:
shl rcx, 4
xor eax, eax
and ecx, 0xff0
add r8, rcx
lea r9, [rdx + rax]
lea r10, [rax + r8]
xor ecx, ecx
mov r11b, byte [r10 + rcx]
inc rcx
xor byte [r9], r11b
inc r9
cmp rcx, 4
jne 0x140007ba9
add rax, 4
cmp rax, 0x10
jne 0x140007b9f
ret
Function at 0x140007d20
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
lea rax, [rdx + r8]
mov rbp, rsp
push r15
push r14
push r13
push r12
lea r12, str.cw
push rdi
mov dil, 0x1b
push rsi
mov rsi, rdx
push rbx
mov rbx, rcx
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x28], rax
mov eax, 0x10
cmp qword [rsp + 0x28], rsi
je 0x140007f30
cmp eax, 0x10
jne 0x140007f1d
lea rdx, [rsp + 0x30]
mov r8, rbx
xor ecx, ecx
mov r14d, 1
movups xmm0, xmmword [rbx + 0xf0]
lea r13, [rsp + 0x34]
movaps xmmword [rsp + 0x30], xmm0
call sym.AddRoundKey
lea rdx, [rsp + 0x30]
mov rcx, rdx
mov rax, rcx
xor r8d, r8d
movzx r9d, byte [rax]
inc r8d
add rax, 4
mov r9b, byte [r12 + r9]
mov byte [rax - 4], r9b
cmp r8b, 4
jne 0x140007d9d
inc rcx
cmp r13, rcx
jne 0x140007d97
mov cl, byte [rsp + 0x35]
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x31], cl
mov cl, byte [rsp + 0x39]
mov byte [rsp + 0x35], cl
mov cl, byte [rsp + 0x3d]
mov byte [rsp + 0x3d], al
mov al, byte [rsp + 0x32]
mov byte [rsp + 0x39], cl
mov cl, byte [rsp + 0x3a]
mov byte [rsp + 0x3a], al
mov al, byte [rsp + 0x36]
mov byte [rsp + 0x32], cl
mov cl, byte [rsp + 0x3e]
mov byte [rsp + 0x3e], al
mov al, byte [rsp + 0x33]
mov byte [rsp + 0x36], cl
mov cl, byte [rsp + 0x3f]
mov byte [rsp + 0x33], cl
mov cl, byte [rsp + 0x3b]
mov byte [rsp + 0x3f], cl
mov cl, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov byte [rsp + 0x3b], cl
cmp r14d, 0xe
je 0x140007ee2
lea r11, [rdx + 0x10]
mov cl, byte [rdx]
mov r9b, byte [rdx + 1]
add rdx, 4
mov r8b, byte [rdx - 2]
xor r8b, byte [rdx - 1]
xor r9d, ecx
mov r15d, ecx
xor cl, byte [rdx - 1]
mov eax, r9d
mov r10d, r9d
add r9d, r9d
shr al, 7
xor r10d, r8d
imul eax, edi
xor r15d, r10d
xor r15d, eax
xor r9d, r15d
mov r15b, byte [rdx - 3]
xor r15b, byte [rdx - 2]
mov eax, r15d
mov byte [rdx - 4], r9b
mov r9b, byte [rdx - 3]
add r15d, r15d
shr al, 7
imul eax, edi
xor r9d, r10d
xor r9d, eax
mov eax, r8d
add r8d, r8d
shr al, 7
xor r15d, r9d
mov r9b, byte [rdx - 2]
imul eax, edi
mov byte [rdx - 3], r15b
xor r9d, r10d
xor r10b, byte [rdx - 1]
xor r9d, eax
mov eax, ecx
add ecx, ecx
shr al, 7
xor r8d, r9d
imul eax, edi
mov byte [rdx - 2], r8b
mov r8d, r10d
xor eax, r8d
xor ecx, eax
mov byte [rdx - 1], cl
cmp r11, rdx
jne 0x140007e2c
mov ecx, r14d
lea rdx, [rsp + 0x30]
mov r8, rbx
inc r14d
call sym.AddRoundKey
jmp 0x140007d8f
mov r8, rbx
mov ecx, 0xe
call sym.AddRoundKey
mov eax, 0xf
mov dl, byte [rbx + rax + 0xf0]
cmp dl, 0xff
jne 0x140007f10
mov byte [rbx + rax + 0xf0], 0
sub rax, 1
jae 0x140007ef4
jmp 0x140007f1b
cdqe
inc edx
mov byte [rbx + rax + 0xf0], dl
xor eax, eax
movsxd rdx, eax
inc eax
mov dl, byte [rsp + rdx + 0x30]
xor byte [rsi], dl
inc rsi
jmp 0x140007d55
lea rsp, [rbp - 0x38]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140007fc0
Capabilities:
Print debug messages

Disassembly:
push r15
xor eax, eax
lea r9, str.Start_reading_anon_pipe
mov r8d, 0x3f3
push r14
lea r14, str.AnonPipesRead
push r13
push r12
push rbp
mov rbp, rcx
mov ecx, 0xfc
push rdi
push rsi
push rbx
sub rsp, 0x458
lea rdi, [rsp + 0x60]
mov dword [rsp + 0x4a8], edx
mov rdx, r14
rep stosd dword [rdi], eax
lea rcx, [0x14002b990]
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x4c], 0
call sym.printf.constprop.0_1
mov r9, qword [rbp]
lea rcx, str._DEBUG::_s::_d__AnonPipes__StdOutRead____x_n
mov rdx, r14
mov r8d, 0x3f4
call sym.DbgPrint
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140008057
call sym.SysNtClose
mov qword [rbp + 8], 0
mov r12, qword [0x14002d650]
xor edx, edx
mov ecx, 0x40
xor ebx, ebx
lea r13, [rsp + 0x50]
mov rax, qword [r12]
call qword [rax + 0x3a8]
mov r15, rax
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
mov rax, qword [r12]
mov r9, qword [rsp + 0x38]
mov r8d, 0x400
mov rdx, r13
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp]
call qword [rax + 0x398]
mov r9d, dword [rsp + 0x4c]
mov rdx, r14
mov r8d, 0x3ff
lea rcx, str._DEBUG::_s::_d__dwRead____d_n
mov dword [rsp + 0x34], eax
call sym.DbgPrint
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140008113
lea edx, [rbx + rax]
mov rax, qword [r12]
mov rcx, r15
mov r8d, 2
mov rbx, rdx
mov rsi, r13
call qword [rax + 0x3b8]
mov ecx, dword [rsp + 0x4c]
mov r15, rax
mov eax, ebx
sub eax, ecx
add rax, r15
mov rdi, rax
xor eax, eax
rep movsb byte [rdi], byte [rsi]
mov rdi, r13
mov ecx, dword [rsp + 0x4c]
rep stosb byte [rdi], al
cmp dword [rsp + 0x34], 1
je 0x140008083
test ebx, ebx
je 0x140008141
mov edx, dword [rsp + 0x4a8]
mov ecx, 0x5a
call sym.PackageCreateWithRequestID
mov r8d, ebx
mov rdx, r15
mov r13, rax
mov rcx, rax
call sym.PackageAddBytes
mov rcx, r13
call sym.PackageTransmit
test r15, r15
je 0x14000815c
mov ecx, ebx
mov rdi, r15
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [r12]
mov rcx, r15
call qword [rax + 0x3b0]
add rsp, 0x458
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008170
Capabilities:
Print debug messages

Disassembly:
push r13
lea r9, str.No_key_was_provided
mov r8d, 0x24f
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400081aa
mov r13, rcx
mov rsi, rdx
call sym.StringLengthA
test rax, rax
jne 0x1400081bf
lea r9, str.The_key_is_too_short
mov r8d, 0x257
lea rdx, str.BeaconAddValue
lea rcx, [0x140029d49]
call sym.printf.constprop.0_2
jmp 0x1400081e3
cmp rax, 0x1ff
jbe 0x1400081eb
mov r9, r13
mov r8d, 0x25d
lea rdx, str.BeaconAddValue
lea rcx, str._DEBUG::_s::_d__The_key__s_is_too_long_n
call sym.DbgPrint
xor r12d, r12d
jmp 0x140008281
mov rdi, qword [0x14002d650]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x932]
test rbx, rbx
je 0x14000823a
mov rdx, r13
mov rcx, rbx
call sym.StringCompareA
mov r12d, eax
test eax, eax
jne 0x140008231
mov r9, r13
mov r8d, 0x266
lea rdx, str.BeaconAddValue
lea rcx, str._DEBUG::_s::_d__The_key__s_already_exists_n
call sym.DbgPrint
jmp 0x140008281
mov rbx, qword [rbx + 0x208]
jmp 0x1400081fc
mov rax, qword [rdi]
mov edx, 0x210
mov ecx, 0x40
call qword [rax + 0x3a8]
mov rdx, r13
mov qword [rax + 0x200], rsi
mov rcx, rax
mov r12, rax
call sym.StringCopyA
mov rax, qword [rdi]
mov rdx, qword [rax + 0x932]
mov qword [r12 + 0x208], rdx
mov qword [rax + 0x932], r12
mov r12d, 1
add rsp, 0x20
mov eax, r12d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret

Function at 0x140008290
Capabilities:
Print debug messages

Disassembly:
push rbx
mov rbx, rcx
sub rsp, 0x20
mov rcx, qword [rcx]
call sym.SysNtClose
test eax, eax
jne 0x1400082b2
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp sym.SysNtClose
add rsp, 0x20
pop rbx
ret

Function at 0x1400089c0
Capabilities:
Print debug messages

Disassembly:
push r14
mov r9d, ecx
mov r14d, ecx
lea rcx, str._DEBUG::_s::_d__BeaconOutput___d___p___d___n
push r13
mov r13, rdx
push r12
push rbx
mov ebx, r8d
sub rsp, 0x48
mov dword [rsp + 0x28], r8d
mov r8d, 0x133
mov qword [rsp + 0x20], rdx
lea rdx, str.BeaconOutput
call sym.DbgPrint
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0x3c]
mov dword [rsp + 0x3c], 0
call sym.GetRequestIDForCallingObjectFile
test eax, eax
je 0x140008a25
mov edx, dword [rsp + 0x3c]
mov ecx, 0x5e
call sym.PackageCreateWithRequestID
jmp 0x140008a2f
mov ecx, 0x5e
call sym.PackageCreate
mov r12, rax
mov edx, r14d
mov rcx, rax
call sym.PackageAddInt32
mov rcx, r12
movsxd r8, ebx
mov rdx, r13
call sym.PackageAddBytes
add rsp, 0x48
mov rcx, r12
pop rbx
pop r12
pop r13
pop r14
jmp sym.PackageTransmit
Function at 0x140008a60
Capabilities:
Print debug messages

Disassembly:
push r15
mov r15d, ecx
push r14
lea r14, str.BeaconPrintf
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
test rdx, rdx
mov qword [rsp + 0xb0], r8
mov rcx, qword [rsp + 0x98]
mov r8d, 0x104
mov qword [rsp + 0xb8], r9
lea r9, str.Format_string_cant_be_NULL
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x44], 0
je 0x140008b5f
mov rdi, rdx
lea rdx, [rsp + 0x44]
call sym.GetRequestIDForCallingObjectFile
test eax, eax
je 0x140008ada
mov edx, dword [rsp + 0x44]
mov ecx, 0x5e
call sym.PackageCreateWithRequestID
jmp 0x140008ae4
mov ecx, 0x5e
call sym.PackageCreate
mov rbp, qword [0x14002d650]
mov r13, rax
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0xb0]
mov r8, rdi
mov rax, qword [rbp]
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x38], r9
call qword [rax + 0x658]
mov r9, qword [rsp + 0x38]
test eax, eax
mov esi, eax
jns 0x140008b2b
lea r9, str.Failed_to_calculate_final_string_length
mov r8d, 0x111
jmp 0x140008b5f
lea edx, [rax + 1]
mov rax, qword [rbp]
mov qword [rsp + 0x38], r9
mov ecx, 0x40
movsxd rdx, edx
call qword [rax + 0x3a8]
mov r9, qword [rsp + 0x38]
test rax, rax
mov r12, rax
jne 0x140008b73
lea r9, str.Failed_to_allocate_CallbackOutput
mov r8d, 0x118
mov rdx, r14
lea rcx, [0x140029d49]
call sym.printf.constprop.0_2
jmp 0x140008c00
mov rax, qword [rbp]
movsxd rbx, esi
mov r8, rdi
mov rcx, r12
mov rdx, rbx
call qword [rax + 0x658]
test eax, eax
jns 0x140008bab
lea r9, str.Failed_to_format_string
mov r8d, 0x11e
mov rdx, r14
lea rcx, [0x140029d49]
call sym.printf.constprop.0_2
jmp 0x140008be9
mov qword [rsp + 0x20], r12
mov r9d, esi
mov r8d, 0x127
mov rdx, r14
lea rcx, str._DEBUG::_s::_d__CallbackOutput__d_:__n_s_n
call sym.DbgPrint
mov edx, r15d
mov rcx, r13
call sym.PackageAddInt32
mov rcx, r13
mov r8, rbx
mov rdx, r12
call sym.PackageAddBytes
mov rcx, r13
call sym.PackageTransmit
mov rdi, r12
mov rcx, rbx
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rbp]
mov rcx, r12
call qword [rax + 0x3b0]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140008e60
Capabilities:
Print debug messages

Disassembly:
push rdi
mov r8, rcx
xor eax, eax
mov ecx, 0xa
sub rdx, r8
add rsp, 0xffffffffffffff80
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x48], r8
lea r9, [rsp + 0x48]
rep stosd dword [rdi], eax
movsxd rax, dword [r8 + 0x3c]
mov qword [rsp + 0x38], rdx
or rcx, 0xffffffffffffffff
mov edx, 2
mov dword [rsp + 0x34], 0
mov eax, dword [r8 + rax + 0x50]
mov dword [rsp + 0x28], 0x28
mov r8d, 1
mov qword [rsp + 0x40], 1
add rax, 0xfff
mov dword [rsp + 0x58], 1
and rax, 0xfffffffffffff000
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
call sym.SysNtSetInformationVirtualMemory
test eax, eax
jns 0x140008f15
mov r9d, eax
mov r8d, 0x505
lea rdx, str.CfgAddressAdd
lea rcx, str._DEBUG::_s::_d__NtSetInformationVirtualMemory_Failed____p
call sym.DbgPrint
sub rsp, 0xffffffffffffff80
pop rdi
ret