joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, rdx
lea r9, [rcx + 0xb0]
mov rsi, rcx
test r8d, r8d
je 0x140001e99
dec rdi
shr rdi, 4
inc rdi
nop dword [rax]
nop word [rax + rax]
mov rax, rbx
sub r9, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140001e70
mov rdx, rsi
mov rcx, rbx
call fcn.140001900
mov r9, rbx
add rbx, 0x10
sub rdi, 1
jne 0x140001e60
movups xmm0, xmmword [r9]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movups xmmword [rsi + 0xb0], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001ec0
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x140001f54
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov rbx, rdx
mov rdi, rcx
mov esi, r8d
sub rdi, rdx
mov rbp, rcx
add rdi, 0xb0
dec rsi
shr rsi, 4
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
mov rdx, rbp
mov rcx, rbx
call fcn.140001c00
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001f20
sub rdi, 0x10
movups xmmword [rbp + 0xb0], xmm0
sub rsi, 1
jne 0x140001f00
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x140006320
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
xor ecx, ecx
call qword [0x14002a110]
test rax, rax
jne 0x140006338
mov rcx, rax
jmp 0x140006369
mov ecx, 0x5a4d
cmp word [rax], cx
je 0x140006348
xor eax, eax
mov ecx, eax
jmp 0x140006369
movsxd rcx, dword [rax + 0x3c]
cmp ecx, 0x400
jle 0x14000635a
xor eax, eax
mov ecx, eax
jmp 0x140006369
add rcx, rax
xor eax, eax
cmp dword [rcx], 0x4550
cmovne rcx, rax
movzx r11d, word [rcx + 6]
lea rbx, [rcx + 0x108]
mov r10d, dword [rcx + 0x54]
mov edx, eax
cmp r11d, 8
jb 0x140006430
mov ecx, 0xfffffff8
mov r8d, r11d
and r8, rcx
xorps xmm5, xmm5
lea rcx, [rbx + 0x60]
xorps xmm4, xmm4
mov r9, rax
nop dword [rax]
movd xmm1, dword [rcx + 0x28]
add edx, 8
movd xmm0, dword [rcx - 0x28]
add r9, 8
movd xmm2, dword [rcx]
movd xmm3, dword [rcx - 0x50]
lea rcx, [rcx + 0x140]
punpckldq xmm3, xmm0
movd xmm0, dword [rcx - 0xc8]
punpckldq xmm2, xmm1
movd xmm1, dword [rcx - 0x78]
punpcklqdq xmm3, xmm2
movd xmm2, dword [rcx - 0xa0]
paddd xmm3, xmm5
punpckldq xmm2, xmm1
movdqa xmm5, xmm3
movd xmm3, dword [rcx - 0xf0]
punpckldq xmm3, xmm0
punpcklqdq xmm3, xmm2
paddd xmm3, xmm4
movdqa xmm4, xmm3
cmp r9, r8
jl 0x1400063a0
paddd xmm4, xmm5
movdqa xmm0, xmm4
psrldq xmm0, 8
paddd xmm4, xmm0
movdqa xmm0, xmm4
psrldq xmm0, 4
paddd xmm4, xmm0
movd ecx, xmm4
add r10d, ecx
movsxd r9, edx
mov r8d, eax
cmp r9, r11
jge 0x14000649a
mov rcx, r11
sub rcx, r9
cmp rcx, 2
jl 0x140006480
lea rcx, [r9*4 + 7]
add rcx, r9
lea rdx, [rbx + rcx*8]
mov rcx, r11
sub rcx, r9
sub rcx, 2
shr rcx, 1
inc rcx
lea r9, [r9 + rcx*2]
nop word [rax + rax]
add eax, dword [rdx - 0x28]
add r8d, dword [rdx]
lea rdx, [rdx + 0x50]
sub rcx, 1
jne 0x140006470
cmp r9, r11
jge 0x14000648e
lea rcx, [r9 + r9*4]
add r10d, dword [rbx + rcx*8 + 0x10]
add eax, r8d
add eax, r10d
add rsp, 0x20
pop rbx
ret
mov eax, r10d
add rsp, 0x20
pop rbx
ret

Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec
Function at 0x5f0ea0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x5f0ead
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5f0ebd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5f0ea5
lea eax, [rcx + 1]
jmp 0x5f0ecb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5f0ede
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5f0ec4
sub eax, 3
jb 0x5f0efe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5f0f4d
sar eax, 1
movsxd rbp, eax
jb 0x5f0f34
jmp 0x5f0f0c
add ebx, ebx
jne 0x5f0f0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5f0f34
inc ecx
add ebx, ebx
jne 0x5f0f1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5f0f34
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5f0f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5f0f1c
add ecx, 2
jmp 0x5f0f39
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005f0e62
jmp 0x5f0ead
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xbec00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5f0f9d
cmp rsi, rcx
jae 0x5f0fa5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5f0f84
cmp al, 0x8f
ja 0x5f0f84
cmp byte [rsi - 2], 0xf
je 0x5f0f8a
sub al, 0xe8
cmp al, 1
ja 0x5f0f6e
cmp rsi, rcx
jae 0x5f0fa5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5f0f74
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5f0fa5
lodsb al, byte [rsi]
jmp 0x5f0f84
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1ea000]
mov eax, dword [rdi]
or eax, eax
je 0x5f1002
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1f1000]
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 0x5f0fb2
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 0x5f0ffc
mov qword [rbx], rax
add rbx, 8
jmp 0x5f0fd2
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 0x5f103c
cmp al, 0xef
ja 0x5f102e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5f100e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5f101d
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
mov byte [fcn.005f10bb], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.005f10bb
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5f10ab
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140027e40
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b8c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b8c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f90
cmp rax, 0xffffffffffffffff
je 0x140027f90
xor edi, edi
test rbp, rbp
jle 0x140027f3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dec8
mov rbx, rax
test rax, rax
jne 0x140027ec8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027f31
mov edx, 0x8000
mov ecx, r14d
call fcn.140015978
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c5a0
cmp eax, 0xffffffff
je 0x140027f11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ed8
mov edx, r15d
mov ecx, r14d
call fcn.140015978
jmp 0x140027f31
cmp byte [rsi + 0x38], dil
je 0x140027f28
cmp dword [rsi + 0x34], 5
jne 0x140027f28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027f31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019f88
jmp 0x140027fa4
jns 0x140027fa4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b8c4
cmp rax, 0xffffffffffffffff
jne 0x140027f5c
cmp byte [rsi + 0x30], dil
je 0x140027fa4
mov edi, dword [rsi + 0x2c]
jmp 0x140027fa4
mov ecx, r14d
call fcn.14001706c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027fa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027fa4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f9d
mov eax, dword [rsi + 0x2c]
jmp 0x140027fa2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b8c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140e094ab
Capabilities:
Encode data using xor

Disassembly:
pushfq
add qword [rsp + 8], 0xffffffffffa7bcdb
call fcn.1409b5f46
jns 0x140e09504
jl 0x140e09513
add eax, edi
invalid
ficom word [rdx - 0x74]
je 0x140e0955e
xlatb
invalid
or ch, byte [rbx]
sal eax, 0x35
invalid
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14000a8d0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14000a8e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140008940
jmp 0x14000123c
mov rax, qword [0x14000a8e0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14000a8e0]
mov dword [rax], 1
mov rax, qword [0x14000a930]
mov rdx, rax
mov rax, qword [0x14000a920]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x14000f024], 1
mov rax, qword [0x14000a8e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14000a910]
mov rdx, rax
mov rax, qword [0x14000a900]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x14000a8e0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14000a8d0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14000a820]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14000a820]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400021f8
mov rax, qword [0x14000a970]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14000a8c0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.1400019f0
mov eax, dword [0x14000f004]
lea rdx, [0x14000f008]
mov ecx, eax
call fcn.14000147c
call fcn.140001787
mov rax, qword [0x14000a850]
mov rax, qword [rax]
mov rdx, qword [0x14000f010]
mov qword [rax], rdx
mov rcx, qword [0x14000f010]
mov rdx, qword [0x14000f008]
mov eax, dword [0x14000f004]
mov r8, rcx
mov ecx, eax
call fcn.140008de0
mov dword [0x14000f01c], eax
mov eax, dword [0x14000f020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000f01c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x14000f024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14000f01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000a880]
mov dword [rax], 1
mov rax, qword [0x14000a890]
mov dword [rax], 1
mov rax, qword [0x14000a8a0]
mov dword [rax], 1
mov rax, qword [0x14000a840]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140008730
call sub.ucrtbase.dll_abort
nop

Function at 0x1400026d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f168]
test eax, eax
je 0x14000276a
lea rax, [0x14000f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f170]
mov qword [rbp - 8], rax
jmp 0x14000274e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002742
cmp qword [rbp - 0x10], 0
je 0x140002742
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002708
lea rax, [0x14000f140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000276b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140008c60
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via indirect call
Execute shellcode via windows callback function
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor r8d, r8d
mov r9d, 0x20019
lea rdx, str.SoftwaremeowApp
mov rcx, 0xffffffff80000001
lea rdi, str.secret
lea rax, [rsp + 0x38]
mov dword [rsp + 0x34], 0
lea rbp, [rsp + 0x34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rcx, str.successfully_open_reg_key:__n
test eax, eax
lea rax, str.failed_to_open_reg_key_:__n
cmovne rcx, rax
call fcn.140008d90
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x38]
mov rsi, qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], 0
call rsi
lea rcx, str.successfully_get_binary_data_size:__n
test eax, eax
lea rax, str.failed_to_query_data_size_:__n
cmovne rcx, rax
call fcn.140008d90
mov edx, dword [rsp + 0x34]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rbx, rax
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call rsi
lea rcx, str.successfully_get_binary_data:__n
test eax, eax
lea rax, str.failed_to_query_data_:__n
cmovne rcx, rax
call fcn.140008d90
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001674
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x1400130d0]
lea rsi, [0x140000000]
movsxd r11, edx
xor edi, edi
dec r11
mov r10, rcx
mov r9, qword [rsi + r8*8 + 0x13040]
inc r8d
test r11, r11
jle 0x1400016d6
mov rax, r9
sub r10, r9
mov rbx, r11
mov cl, byte [r10 + rax]
mov edx, 0xf
xor cl, byte [rdx + rsi + 0xda88]
sub rdx, 1
jns 0x1400016be
mov byte [rax], cl
inc rax
sub rbx, 1
jne 0x1400016b5
mov rbx, qword [rsp + 8]
cmp r8d, 0xf
mov rsi, qword [rsp + 0x10]
mov rax, r9
cmovge r8d, edi
mov byte [r11 + r9], dil
mov rdi, qword [rsp + 0x18]
mov dword [0x1400130d0], r8d
ret

Function at 0x1400016fc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
mov r9, rcx
mov rbp, rdx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov ebx, dword [r8 + 0x1c]
mov edi, dword [r8 + 0x24]
add rbx, rcx
mov r10d, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x18]
add r10, rcx
xor ecx, ecx
test esi, esi
je 0x140001774
mov edx, dword [r10]
mov rax, rbp
add rdx, r9
sub rdx, rbp
movzx r8d, byte [rax]
movzx r11d, byte [rax + rdx]
sub r8d, r11d
jne 0x140001765
inc rax
test r11d, r11d
jne 0x14000174f
test r8d, r8d
je 0x14000178b
inc ecx
add r10, 4
cmp ecx, esi
jb 0x140001743
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rdi + rcx*2]
mov eax, dword [rbx + rcx*4]
add rax, r9
jmp 0x140001776

Function at 0x140001798
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movsxd r8, dword [0x1400130d0]
lea r14, [0x140000000]
movsxd rdi, edx
xor esi, esi
mov r10, rcx
mov r9, qword [r14 + r8*8 + 0x13040]
inc r8d
lea eax, [rdi - 1]
test eax, eax
jle 0x140001804
mov rcx, r9
mov r11d, eax
movzx edx, byte [r10]
mov ebx, 0xf
movzx eax, byte [rbx + r14 + 0xda88]
xor dx, ax
sub rbx, 1
jns 0x1400017e2
mov word [rcx], dx
inc r10
add rcx, 2
sub r11, 1
jne 0x1400017d9
mov rbx, qword [rsp + 8]
cmp r8d, 0xf
mov r14, qword [rsp + 0x20]
mov rax, r9
cmovge r8d, esi
mov word [r9 + rdi*2 - 2], si
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov dword [0x1400130d0], r8d
ret
Function at 0x140003de4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140003e15
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140003e88
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140003e2c
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003e2e
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003e82
test ecx, ecx
jle 0x140003e62
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x140003e82
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003e82
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003ea4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140003ec9
xor eax, eax
jmp 0x140003fc4
cmp qword [rcx + 0x68], 0
je 0x140003edb
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x140003fc4
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x140003ef2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003ef4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003f24
cmp rax, rdi
mov rbx, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebx
mov rcx, rsi
add r14, rbx
sub rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov r8, rbp
cmp qword [rsi + 0x80], 0
je 0x140003fbe
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140003f5f
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
mov rbx, r8
cmp r8, r15
jbe 0x140003f98
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbp, rax
add r14, rax
mov rbx, rbp
cmp rax, r15
jne 0x140003fd5
cmp rbp, r15
ja 0x140003f6d
mov r8, rbx
test rbx, rbx
je 0x140003fbe
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rdi, r8
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
sub rdi, rbp
jmp 0x140003fc1