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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r12, qword [0x231ee3a80]
mov rbx, rcx
mov rcx, qword [r12]
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call sym.rwl_ref.isra.0
test eax, eax
je 0x23197bab0
mov rdx, qword [rsp + 0x38]
sub rdx, qword [r12]
jne 0x23197bbd9
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rsi, qword [rbx]
lea rdi, [rsi + 0x18]
mov rcx, rdi
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x23197bb01
lea r13, [rsi + 0x20]
mov rcx, r13
call sym.pthread_mutex_lock
mov ebp, eax
test eax, eax
jne 0x23197bbb0
mov edx, dword [rsi + 8]
test edx, edx
jne 0x23197bafc
mov edx, dword [rsi + 0x10]
mov eax, dword [rsi + 0xc]
test edx, edx
jle 0x23197baf8
sub eax, edx
mov dword [rsi + 0x10], 0
mov dword [rsi + 0xc], eax
test eax, eax
jg 0x23197bb30
lock add dword [rsi + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [r12]
jne 0x23197bbd9
mov edx, ebp
mov rcx, rbx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.rwl_unref
neg eax
mov qword [rsp + 0x28], rsi
lea r14, [rsi + 0x28]
mov dword [rsi + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x23197bb7f
mov eax, dword [rsi + 0x10]
test eax, eax
jns 0x23197bbc0
mov rdx, r13
mov rcx, r14
call sym.pthread_cond_wait
mov edi, eax
test eax, eax
je 0x23197bb78
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov ebp, edi
mov qword [rax], rdx
mov rcx, qword [rsp + 0x28]
call qword [rsp + 0x20]
jmp 0x23197bb01
mov rcx, rdi
call sym.pthread_mutex_unlock
jmp 0x23197bb01
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
mov dword [rsi + 0xc], 0
jmp 0x23197bafc
call dbg.__stack_chk_fail
nop
nop
Function at 0x23197bbe0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [0x231ee3a80]
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
mov rsi, rdx
test rcx, rcx
je 0x23197bcc8
test rdx, rdx
je 0x23197bcc8
call sym.rwl_ref.isra.0
test eax, eax
je 0x23197bc48
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rdi]
jne 0x23197bcfa
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rbx]
mov rdx, rsi
lea r12, [rbp + 0x18]
mov rcx, r12
call sym.pthread_mutex_timedlock
mov edx, eax
test eax, eax
jne 0x23197bcd8
lea r14, [rbp + 0x20]
mov rdx, rsi
mov rcx, r14
call sym.pthread_mutex_timedlock
mov r13d, eax
test eax, eax
jne 0x23197bce8
mov edx, dword [rbp + 8]
test edx, edx
jne 0x23197bc97
mov edx, dword [rbp + 0x10]
mov eax, dword [rbp + 0xc]
test edx, edx
jle 0x23197bc93
sub eax, edx
mov dword [rbp + 0x10], 0
mov dword [rbp + 0xc], eax
test eax, eax
jg 0x23197bd00
lock add dword [rbp + 8], 1
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
jne 0x23197bcfa
mov edx, r13d
mov rcx, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sym.rwl_unref
mov eax, 0x16
jmp 0x23197bc22
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x23197bca9
jmp 0x23197bcfa
mov rcx, r12
call sym.pthread_mutex_unlock
mov rax, qword [rsp + 0x38]
sub rax, qword [rdi]
je 0x23197bca6
call dbg.__stack_chk_fail
nop
neg eax
mov qword [rsp + 0x28], rbp
lea r15, [rbp + 0x28]
mov dword [rbp + 0x10], eax
lea rax, [sym.st_cancelwrite]
mov qword [rsp + 0x20], rax
call sym.pthread_getclean
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call sym.pthread_getclean
lea rdx, [rsp + 0x20]
mov qword [rax], rdx
lock or qword [rsp], 0
jmp 0x23197bd4d
test r12d, r12d
jne 0x23197bd65
mov r8, rsi
mov rdx, r14
mov rcx, r15
call sym.pthread_cond_timedwait
mov r12d, eax
mov eax, dword [rbp + 0x10]
test eax, eax
js 0x23197bd48
call sym.pthread_getclean
mov rdx, qword [rsp + 0x30]
mov qword [rax], rdx
test r12d, r12d
jne 0x23197bd88
mov dword [rbp + 0xc], 0
jmp 0x23197bc97
mov rcx, qword [rsp + 0x28]
mov r13d, r12d
call qword [rsp + 0x20]
jmp 0x23197bc9c

Function at 0x2319902a0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov edx, 0xffffffff
test rax, rax
jle 0x2319902cc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x231990d90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, qword [0x231ee3a80]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rax
xor eax, eax
cmp byte [0x231edcbd0], 0
jne 0x231990ebc
mov byte [0x231edcbd0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x231990e88
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x24]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x24], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbp, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x24]
mov ecx, 2
test edx, edx
je 0x231990e79
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x231edd5e1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x24]
test eax, eax
jne 0x231990e6a
mov rcx, rbp
call sym.free
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x231990eeb
call sym.__cxa_rethrow
call rsi
mov rcx, rbp
mov rdx, rax
call sym.fputs
jmp 0x231990e39
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
jne 0x231990eeb
call sym.abort
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
mov rax, qword [rsp + 0x28]
sub rax, qword [rdi]
je 0x231990eb7
call dbg.__stack_chk_fail
sub rdx, 1
mov rcx, rax
jne 0x231990f5b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x231990ead
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x231990ead

Function at 0x231a00310
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call method.std::__basic_file_char_.fd__
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x231a00360
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x231a00333
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x231a149d0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov r12, qword [0x231ee3a80]
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x231a14a20
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x231a14ab4
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp rax
mov rdi, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x231a14a80
cdqe
add rsi, rax
sub rbx, rax
jne 0x231a14a40
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x231a14ab4
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0xffffffff
jne 0x231a14aab
call rbp
mov r14, rbp
cmp dword [rax], 4
je 0x231a14a40
call r14
mov rdx, qword [rsp + 0x28]
sub rdx, qword [r12]
jne 0x231a14ab4
mov ecx, dword [rax]
lea rdx, str.random_device_could_not_be_read
call method.std._anonymous_namespace_::__throw_syserr_int__char_const_
mov r14, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jmp 0x231a14a8f
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x231a48890
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rsi, qword [0x231ee3a80]
lea rcx, [0x231eda3c0]
movabs rbp, 0x2e78786362696c67
movabs r13, 0x6c6f6f705f68652e
mov rdx, qword [rsi]
mov qword [rsp + 0x68], rdx
xor edx, edx
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x231eda3d8], 0
movups xmmword [0x231eda3c8], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x231a48955
jmp 0x231a48a17
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x231a489b8
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rbp
jne 0x231a48940
cmp qword [rbx + 7], r13
jne 0x231a48940
cmp byte [rbx + 0xf], 0x2e
jne 0x231a48940
add rbx, 0x10
lea r12, [rsp + 0x30]
lea r14, [rsp + 0x60]
mov rdi, qword [r12]
test rdi, rdi
je 0x231a4899c
mov rcx, qword [r12 + 8]
mov r8, rdi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x231a489a6
cmp byte [rbx + rdi], 0x3d
je 0x231a48a4d
add r12, 0x18
cmp r14, r12
jne 0x231a4897f
jmp 0x231a48940
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x231eda3d8], rbx
jne 0x231a48a27
mov rax, qword [rsp + 0x68]
sub rax, qword [rsi]
jne 0x231a48a94
lea rcx, [sym.__tcf_0]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp dbg.atexit
mov qword [0x231eda3d8], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x231eda3d0], rax
test rax, rax
je 0x231a48a86
xor edx, edx
mov qword [0x231eda3c8], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x231a489ef
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rdi + 1]
xor r8d, r8d
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x231a48a74
test dl, dl
jne 0x231a48940
test eax, eax
js 0x231a48940
mov dword [r12 + 0x10], eax
jmp 0x231a48940
xor ecx, ecx
mov qword [0x231eda3d8], rcx
jmp 0x231a489ef
call dbg.__stack_chk_fail
nop
nop
nop
nop
nop
nop
nop
Function at 0x7ff6988eb4e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xb0
mov rax, qword [0x7ff698902010]
xor rax, rsp
mov qword [rbp - 9], rax
mov r12, rdx
mov r14, rcx
mov rax, qword [rbp + 0x8f]
mov qword [rbp - 0x39], rax
xor esi, esi
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x29], rsi
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ff6988eb9a5
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x7ff6988eb9a5
mov eax, 0x20b
cmp word [rdi + 0x18], ax
je 0x7ff6988eb55d
lea rdx, str.____Image_is_not_64_bit
jmp 0x7ff6988eb9ac
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call 0x7ff698a0701d
int3
lea rdx, str.____Invalid_format_of_PE_image
mov rcx, qword [0x7ff6988f12a8]
call fcn.7ff6988e5ee0
lea rdx, [0x7ff6988e60c0]
mov rcx, rax
push rbp
call 0x7ff698ae2a00
xor eax, eax
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.7ff6988eebc0
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x7ff6988ec810
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x7ff698902010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x20], rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x7ff6988ec923
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x7ff6988ec923
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
xor edx, edx
mov qword [rsp + 0x50], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x7ff6988ec888
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x7ff6988ec930
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x48]
cmp rbx, rbp
jae 0x7ff6988ec911
mov r8d, dword [rbx + 4]
test r8d, r8d
je 0x7ff6988ec911
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [r8 - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, rdx
je 0x7ff6988ec8ea
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x48], rcx
jmp 0x7ff6988ec906
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.7ff6988ecf70
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x7ff6988ec8a0
mov rax, qword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x7ff6988ec930
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.7ff6988eebc0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x7ff69890c540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x7ff69890c56d
xor al, al
jmp 0x7ff69890c6cf
mov rax, qword [0x7ff69892c6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x7ff69892c6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x7ff69892c6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x7ff69892c6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x7ff69892c6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x7ff69892c6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x7ff69892c6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x7ff69892c6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x7ff69892c700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x7ff69890c6c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x7ff69890c619
mov r11d, 2
jmp 0x7ff69890c63d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x7ff69890c633
mov r11d, 1
jmp 0x7ff69890c63d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x7ff69890c6e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x7ff69890c682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x7ff69890c69a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x7ff69890c6aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x7ff69890c6b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x7ff69890c600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x7ff69890c6ca
Function at 0x1400054c8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x14021c510]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rdx, qword [rcx + 0x38]
lea r8, [0x1401e2318]
and qword [rbp + 8], 0
mov rbx, rcx
lea rcx, [rbp + 8]
call fcn.14016f350
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140005665
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.14016b29c
mov r9, qword [rbp + 8]
lea rcx, [0x140220180]
mov esi, 1
mov edx, esi
lea r8d, [rsi + 0xf]
call fcn.140170728
mov rax, qword [0x140220180]
cmp rax, qword [0x14021d110]
jne 0x14000565c
mov rax, qword [0x140220188]
cmp rax, qword [0x14021d118]
jne 0x14000565c
mov rcx, qword [rbp + 8]
lea edx, [rsi - 0x15]
mov r8d, esi
call fcn.14016b29c
mov r9, qword [rbp + 8]
lea r8d, [rsi + 3]
mov edx, esi
lea rcx, [rbp]
call fcn.140170728
cmp rax, 4
jne 0x14000565c
mov ecx, dword [rbp]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 8]
lea edx, [rsi - 5]
sub edx, eax
mov dword [rbp], eax
mov r8d, esi
call fcn.14016b29c
movsxd rdx, dword [rbp]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400055cb
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140168660
sub rsp, rcx
mov r9d, esi
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140073060
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rcx
mov rcx, rax
movsxd r8, dword [rbp]
mov r9, qword [rbp + 8]
call fcn.140170728
movsxd rcx, dword [rbp]
cmp rax, rcx
jne 0x14000565c
mov rcx, qword [rbx + 0x38]
lea rdx, str..msh
and qword [rbp + 0x10], 0
call fcn.140002618
mov rdx, rax
lea r8, [0x1401e2ba0]
lea rcx, [rbp + 0x10]
call fcn.14016f350
mov r9, qword [rbp + 0x10]
test r9, r9
je 0x14000565c
movsxd r8, dword [rbp]
mov rdx, rsi
mov rcx, rdi
call fcn.14016efd0
mov rcx, qword [rbp + 0x10]
call fcn.14016aee0
mov rcx, qword [rbp + 8]
call fcn.14016aee0
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140168070
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140005818
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14021c510]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, ecx
xor r9d, r9d
mov ecx, 0x760
xor r8d, r8d
xor edx, edx
call fcn.140073214
mov ecx, 0x18
mov rdi, rax
mov dword [rax + 0x56c], 4
call fcn.14007359c
mov rcx, rax
mov qword [rdi], rax
call fcn.140079734
or ebx, 0x18
mov qword [rdi + 0x30], rax
lea rcx, [rdi + 0x6c]
mov dword [rdi + 0x68], ebx
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x21]
mov ecx, edx
sub ecx, 0x80
je 0x1400058b0
cmp ecx, 0x7f
je 0x1400058a7
mov dword [rdi + 0x57c], edx
jmp 0x1400058ba
and dword [rdi + 0x57c], 0
jmp 0x1400058ba
mov dword [rdi + 0x57c], 3
mov rax, qword [rdi]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x574]
mov rax, rdi
cmove rcx, rdx
mov qword [rcx], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140168070
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400077c0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov ebx, edx
mov dil, cl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x14000784e
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, 1
movzx eax, dil
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], esi
cmp ebx, esi
jne 0x140007808
mov dword [rsp + 0x2c], 2
jmp 0x14000781f
cmp ebx, 3
jne 0x140007813
mov dword [rsp + 0x2c], ebx
jmp 0x14000781f
xor eax, eax
cmp ebx, 4
cmove eax, esi
mov dword [rsp + 0x2c], eax
and dword [rsp + 0x30], 0
xor edx, edx
movzx ecx, dil
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov word [rsp + 0x2a], ax
mov ecx, esi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140008a80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x14021fed0], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x140008afd
cmp edx, 2
jl 0x140008ae7
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x140008ae7
and qword [rsp + 0x28], 0
lea r8, [0x140007be8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140008ae7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14021fed0]
mov r8d, ebx
mov rdx, rdi
call fcn.14007aed4
mov eax, ebx
jmp 0x140008b22
xor esi, esi
jmp 0x140008b10
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x140001790]
call fcn.140008324
test eax, eax
jne 0x140008b01
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140009510
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x14000955e
cmp dword [0x14021fd3c], 1
jne 0x14000953a
cmp dword [0x14021d120], 0
jne 0x14000953a
xor eax, eax
jmp 0x1400095cd
and dword [0x14021fd38], 0
lea r9, [0x140001790]
mov dword [reloc.WS2_32.dll_accept], 1
mov qword [rsp + 0x20], rdi
call fcn.140009418
jmp 0x1400095cd
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.140073214
cmp dword [0x14021fd3c], 1
lea rcx, [0x140001790]
mov dword [0x14021fd68], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x1400095a9
cmp dword [0x14021d120], 0
jne 0x1400095a9
mov rcx, rax
call fcn.14016f3a8
jmp 0x140009533
and qword [rsp + 0x28], 0
lea r8, [fcn.140008ecc]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1400095d4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x14021fed0]
mov dword [0x14021d120], 1
test rbx, rbx
je 0x140009613
mov rcx, rbx
call fcn.140073198
test eax, eax
je 0x14000960b
mov rcx, qword [rbx + 0x48]
mov edx, 0x42b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
and qword [0x14021fed0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x1400097bc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r15
mov r10d, dword [0x14021fd84]
mov ebp, edx
mov r11d, dword [0x14021fd74]
mov eax, r10d
cdq
xor r13d, r13d
idiv r11d
mov r15, r8
mov r12d, ecx
mov r9d, r13d
mov ebx, edx
test edx, edx
je 0x140009807
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x14000980a
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x14021fd50]
test ebx, ebx
je 0x140009822
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x140009825
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x1400098b3
mov eax, dword [0x14021fd40]
cdq
idiv r11d
test edx, edx
je 0x14000984b
mov eax, r11d
sub eax, edx
add eax, dword [0x14021fd40]
jmp 0x140009851
mov eax, dword [0x14021fd40]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x14021fd90]
movsxd rdx, eax
mov eax, dword [0x14021fd90]
add rdx, r15
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
lea rcx, [rcx*4 + 3]
shr rcx, 2
cmp rdx, rax
cmova rcx, r13
test rcx, rcx
je 0x1400098ab
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x140009895
inc r8d
jmp 0x140009814
mov rbx, qword [rsp + 0x18]
mov eax, r9d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
pop r15
pop r13
ret