joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400344c0
Capabilities:
Get thread local storage value
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1400cc978]
mov rbx, rcx
mov rcx, rdi
mov esi, edx
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x140034538
cmp qword [rax + 0x1d8], rbx
jne 0x140034538
test byte [rax + 0x40], 0xc
jne 0x140034538
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140034538
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140034538
mov rcx, rdi
call sym.pthread_mutex_unlock
test esi, esi
je 0x140034550
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140034558
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp sym.pthread_cancel
mov rcx, rdi
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor eax, eax
jmp 0x140034545
mov eax, 0x16
jmp 0x140034545

Function at 0x1400346f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140034760
cmp esi, 1
ja 0x14003476d
lea rbp, [rbx + 0x38]
mov rcx, rbp
call sym.pthread_mutex_lock
test rdi, rdi
je 0x140034734
mov eax, dword [rbx + 0x44]
and eax, 1
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffe
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, rbp
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x140034716
mov eax, 0x16
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140034780
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
mov rdi, rdx
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400347f8
mov ebp, esi
and ebp, 0xfffffffd
jne 0x140034805
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
test rdi, rdi
je 0x1400347c8
mov eax, dword [rbx + 0x44]
and eax, 2
mov dword [rdi], eax
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 0x1d8]
and eax, 0xfffffffd
or eax, esi
mov dword [rbx + 0x44], eax
call sym.test_cancel_locked
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call sym.__pthread_self_lite.part.0
mov rbx, rax
test rax, rax
jne 0x1400347a8
mov ebp, 0x16
mov eax, ebp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140034ab0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400da910]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rdi, rdx
test rcx, rcx
je 0x140034be0
lea r12, [0x1400cc978]
mov rcx, r12
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rcx, r12
mov rbx, rax
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140034be0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140034be0
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140034be0
test byte [rbx + 0x44], 4
jne 0x140034c00
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034c20
cmp rsi, qword [rax + 0x1d8]
je 0x140034c50
mov eax, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test eax, eax
je 0x140034b6f
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140034b7e
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140034b92
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x140034c38
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140034c5c
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140034c10
xor eax, eax
jmp 0x140034be5
mov eax, 3
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x140034c57
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, 0x16
jmp 0x140034be5
mov rcx, rbx
call sym.push_pthread_mem.part.0
xor eax, eax
jmp 0x140034be5
call sym.__pthread_self_lite.part.0
test rax, rax
jne 0x140034b4a
jmp 0x140034b57
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140034bb7
mov eax, 0x24
jmp 0x140034be5
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140034c70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [0x1400da910]
lea r12, [0x1400cc978]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
xor eax, eax
mov rsi, rcx
mov rcx, r12
mov rdi, rdx
call sym.pthread_mutex_lock
mov rcx, rsi
call sym.__pthread_get_pointer
mov rbx, rax
test rax, rax
je 0x140034db0
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x140034db0
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x140034db0
test byte [rbx + 0x44], 4
jne 0x140034dc0
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x1400cc988]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034df0
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
je 0x140034e30
mov edx, dword [rbx + 0xbc]
mov rcx, qword [rbx + 0x28]
test edx, edx
jne 0x140034d2b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140034dd0
mov rcx, qword [rbx + 0x28]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140034d3f
call rsi
mov qword [rbx + 0x30], 0
test rdi, rdi
je 0x140034e08
mov rax, qword [rbx + 8]
lea rcx, [rbx + 0x38]
mov qword [rdi], rax
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140034e47
cmp qword [rbx + 0x1d0], 0
mov qword [rbx + 0x68], 0xffffffffffffffff
je 0x140034e20
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x140034e42
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 3
jmp 0x140034d92
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x16
jmp 0x140034d92
mov eax, dword [rbx + 0xbc]
test eax, eax
jne 0x140034d27
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x10
jmp 0x140034d92
call sym.__pthread_self_lite.part.0
xor edx, edx
test rax, rax
jne 0x140034cf9
jmp 0x140034d00
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
lea rcx, [rbx + 0x68]
jmp 0x140034d64
mov rcx, rbx
call sym.push_pthread_mem.part.0
jmp 0x140034d88
mov rcx, r12
call sym.pthread_mutex_unlock
mov eax, 0x24
jmp 0x140034d92
call dbg.__stack_chk_fail
call sym.replace_spin_keys.part.0
nop
nop dword [rax]
Function at 0x140039020
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400cca60], 0
jne 0x140039126
mov byte [0x1400cca60], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400390fc
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 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 [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sub.msvcrt.dll_fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400390ed
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400d79b1]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400390e8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x1400390b7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sub.msvcrt.dll_fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x1400391bb
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 sub.msvcrt.dll_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 0x140039121
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140039121

Function at 0x140040b90
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x140040bb8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x140040c00
cdqe
add rsi, rax
sub rbx, rax
jne 0x140040bd0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140040c0c
call rbp
cmp dword [rax], 4
je 0x140040bd0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14004a1c0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
xor edx, edx
lea rcx, [0x1400cca20]
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
call sym.pthread_mutex_init
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400cca38], 0
movups xmmword [0x1400cca28], 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 0x14004a275
jmp 0x14004a31f
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x14004a2d0
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x14004a260
cmp qword [rbx + 7], r12
jne 0x14004a260
cmp byte [rbx + 0xf], 0x2e
jne 0x14004a260
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x14004a2bb
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x14004a2c5
cmp byte [rbx + rsi], 0x3d
je 0x14004a355
add rbp, 0x18
cmp rbp, r13
jne 0x14004a29f
jmp 0x14004a260
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 [0x1400cca38], rbx
jne 0x14004a32f
lea rcx, [sym.__tcf_0]
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp dbg.atexit
mov qword [0x1400cca38], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400cca30], rax
test rax, rax
je 0x14004a38c
xor edx, edx
mov qword [0x1400cca28], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x14004a307
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x14004a37c
test dl, dl
jne 0x14004a260
test eax, eax
js 0x14004a260
mov dword [rbp + 0x10], eax
jmp 0x14004a260
xor ecx, ecx
mov qword [0x1400cca38], rcx
jmp 0x14004a307
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x14135d058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14135d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14135d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14135d06f
add dl, dl
jne 0x14135d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14135d0f6
xor eax, eax
add dl, dl
jne 0x14135d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14135d1ad
add dl, dl
jne 0x14135d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14135d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14135d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14135d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14135d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14135d07e
mov eax, 1
add dl, dl
jne 0x14135d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14135d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14135d0fb
sub eax, ebx
mov ebx, 1
jne 0x14135d14c
mov ecx, 1
add dl, dl
jne 0x14135d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14135d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14135d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14135d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14135d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14135d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14135d15d
cmp eax, 0x7d00
jae 0x14135d19b
cmp eax, 0x500
jb 0x14135d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14135d07e
cmp eax, 0x7f
ja 0x14135d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14135d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14135d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14135d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x141220058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1412201df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141220089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14122006f
add dl, dl
jne 0x141220096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412200f6
xor eax, eax
add dl, dl
jne 0x1412200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412201ad
add dl, dl
jne 0x1412200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14122007e
mov eax, 1
add dl, dl
jne 0x141220106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141220113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412200fb
sub eax, ebx
mov ebx, 1
jne 0x14122014c
mov ecx, 1
add dl, dl
jne 0x14122012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14122013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141220123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141220168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141220175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14122015d
cmp eax, 0x7d00
jae 0x14122019b
cmp eax, 0x500
jb 0x141220196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122007e
cmp eax, 0x7f
ja 0x14122019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14122007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412201d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14122007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140010220
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140054a30]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x10], 0
je 0x1400102ae
mov eax, dword [rsp]
shr eax, 8
mov ecx, dword [rsp]
and ecx, 0xff
mov rdx, qword [rsp + 8]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x18]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov eax, dword [rsp + 4]
mov dword [rsp], eax
jmp 0x140010252
mov eax, dword [rsp]
not eax
add rsp, 0x28
ret

Function at 0x1400102c0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov eax, dword [rsp + 0x40]
not eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
lea rax, [0x140054a30]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x38], 0
je 0x1400103c4
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x38]
dec rax
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x18], 0
je 0x1400103bf
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 2], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 2]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
cmp eax, 0x23
jne 0x140010394
cmp qword [rsp + 0x38], 2
jb 0x140010394
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140010394
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x140010394
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp + 1]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x140010307
jmp 0x140010456
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
mov byte [rsp + 3], al
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
movzx eax, byte [rsp + 3]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x140010456
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14001042c
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001042c
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14001042c
mov eax, dword [rsp + 0x40]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rsp + 0x10]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1400103c4
mov eax, dword [rsp + 4]
not eax
add rsp, 0x28
ret
Function at 0x140041bf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140041c16
mov dword [rsp + 0x20], 1
jmp 0x140041c1e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400480e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140048460
nop
lea rax, [0x140048070]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.140048060
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140048165
lea rcx, [rsp + 0x30]
call fcn.14004dc60
jmp 0x14004817c
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, [rsp + 0x30]
call fcn.140048f60
add rsp, 0x58
ret

Function at 0x14004aef0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov dword [rsp + 0x40], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x14004af3b
mov dword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x290]
call fcn.140048f30
mov eax, dword [rsp + 0x28]
jmp 0x14004affb
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x290]
call fcn.14004d050
test eax, eax
jne 0x14004af86
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x290]
call fcn.140048f30
mov eax, dword [rsp + 0x2c]
jmp 0x14004affb
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x14004afd7
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsp + 0x290]
call fcn.14004d050
test eax, eax
jne 0x14004afd5
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x290]
call fcn.140048f30
mov eax, dword [rsp + 0x30]
jmp 0x14004affb
jmp 0x14004af86
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x290]
call fcn.140048f30
mov eax, dword [rsp + 0x34]
add rsp, 0x288
ret
Function at 0x14004d2b0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 1
test eax, eax
je 0x14004d2ef
movzx eax, byte [0x1400704d0]
test eax, eax
jne 0x14004d2dc
mov dword [rsp + 0x20], 1
jmp 0x14004d2e4
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov byte [0x1400704d0], al
movzx eax, byte [0x1400704d0]
test eax, eax
je 0x14004d369
mov r8d, 0x22
xor edx, edx
lea rcx, [0x14006d1d4]
call fcn.140005970
movss xmm2, dword [0x140068208]
movss xmm1, dword [0x140068200]
lea rcx, [rsp + 0x24]
call fcn.1400040d0
xor r8d, r8d
mov rdx, rax
lea rcx, str.haha
call fcn.14001e9f0
call fcn.1400469c0
lea rdx, [0x1400704d1]
lea rcx, str.Enable_it
call fcn.140044570
movzx eax, byte [0x1400704d1]
test eax, eax
je 0x14004d364
mov byte [0x140070824], 0
call fcn.14000bfb0
add rsp, 0x38
ret

Function at 0x14004d370
Capabilities:
Enumerate gui resources

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140047460
lea rdx, [rsp + 0x30]
lea rcx, [0x140047320]
call qword [sym.imp.USER32.dll_EnumWindows]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14004d3cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x14004d3cc
cmp qword [rsp + 0x30], 0
je 0x14004d3cc
mov rax, qword [rsp + 0x30]
jmp 0x14004d3ce
xor eax, eax
add rsp, 0x48
ret