joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b330
Capabilities:
Hijack thread execution

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
test rax, rax
mov rbx, rax
je 0x41b3fa
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x41b3fa
lea rbp, [rsp + 0x20]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x41b3fa
lea rdi, [rbx + 0x38]
mov rcx, rdi
call sym.pthread_mutex_lock
call sym.__pthread_self_lite
xor edx, edx
test rax, rax
je 0x41b396
mov rdx, qword [rax + 0x1d8]
cmp rsi, rdx
movzx eax, byte [rbx + 0x40]
je 0x41b3e4
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
je 0x41b410
test al, 3
jne 0x41b3ec
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x007f73f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41b3ce
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 3
je 0x41b4a5
mov rcx, rdi
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x41b3d6
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop rdi
pop rbp
ret
test al, 0xc
jne 0x41b3ec
test al, 0xf
jne 0x41b3fa
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41b3ce
mov rcx, qword [rbx + 0x28]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, rbp
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
movzx eax, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock add dword [0x007f73f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41b48e
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rdi
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x41b3ce
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x007f73f8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41b4c5
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x41b3ce
and eax, 0xfffffffe
mov rcx, rdi
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
nop
nop word [rax + rax]
Function at 0x41b500
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov esi, edx
lea rcx, [0x007c9178]
call sym.pthread_mutex_lock
mov rcx, rbx
call sym.__pthread_get_pointer
test rax, rax
je 0x41b571
cmp qword [rax + 0x1d8], rbx
jne 0x41b571
test byte [rax + 0x40], 0xc
jne 0x41b571
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x41b571
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x41b571
lea rcx, [0x007c9178]
call sym.pthread_mutex_unlock
test esi, esi
je 0x41b590
sub esi, 2
cmp esi, 0x15
ja 0x41b594
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp sym.pthread_cancel
lea rcx, [0x007c9178]
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x28
pop rbx
pop rsi
ret
xor eax, eax
jmp 0x41b582
mov eax, 0x16
jmp 0x41b582
Function at 0x41b810
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
test rax, rax
mov rbx, rax
je 0x41b998
test rbp, rbp
je 0x41b84b
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x41b8c0
test rsi, rsi
je 0x41b8b0
mov ecx, 0x14
call r14
cmp esi, 4
je 0x41b8c0
add rsi, 1
jmp 0x41b87f
xor ecx, ecx
call r12
jmp 0x41b8a9
lea rsi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x41b97d
xor edx, edx
test r13, r13
je 0x41b91d
mov eax, dword [r13]
mov edx, dword [r13 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x41ba50
mov eax, dword [r13 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [sym.pthread_create_wrapper]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rdi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x41b9b0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x41b95c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x38]
call sym.pthread_mutex_destroy
mov rcx, rsi
call sym.replace_spin_keys.constprop.10
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test rbp, rbp
je 0x41b98a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x41ba40
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x41b9e0
add edx, 0xd
cmp eax, 0xffffffff
jl 0x41b9e0
cmp eax, 0xe
mov edx, 0xf
jle 0x41ba70
nop word cs:[rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x41ba20
mov qword [rbx + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41ba06
mov rcx, rbx
call sym.push_pthread_mem.part.2
jmp 0x41b998
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x41b91d
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x41b9e0
Function at 0x41eb50
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 sym.fread
test rax, rax
jle 0x41eb81
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x41f740
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x007cc1b0], 0
jne 0x41f810
mov byte [0x007cc1b0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x41f84d
mov rbx, qword [rax + 8]
cmp byte [rbx], 0x2a
je 0x41f83a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x2c], 0xffffffff
lea r9, [rsp + 0x2c]
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [sym.__acrt_iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov edx, 1
mov r9, rax
call sym.fwrite
cmp dword [rsp + 0x2c], 0
mov ecx, 2
je 0x41f801
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x007ce8d1]
mov r9, rax
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x41f843
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x41f7d4
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
add rbx, 1
jmp 0x41f776
mov rcx, rdi
call sym.free
jmp 0x41f7fc
mov ecx, 2
call qword [sym.__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
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x41f8df
call sym.__cxa_begin_catch
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 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 0x41f872
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x41f872

Function at 0x46ec00
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
jmp 0x46ec28
call r12
cmp dword [rax], 4
jne 0x46ec46
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x46ec20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x480320
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rbx, rcx
lea rdx, str.mt19937
mov rcx, rsi
call method.std::string.compare_char_const__const
mov ecx, 0x1571
test eax, eax
jne 0x480385
mov dword [rbx], ecx
mov edx, 1
jmp 0x480354
mov ecx, dword [rbx + rdx*4 - 4]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
add rdx, 1
cmp rdx, 0x270
jne 0x480350
mov qword [rbx + 0x9c0], 0x270
add rsp, 0x38
pop rbx
pop rsi
ret
mov rsi, qword [rsi]
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
call sym.strtoul
cmp byte [rsi], 0
mov ecx, eax
je 0x4803a9
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x480344
lea rcx, str.random_device::random_device_const_std::string_
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4a3380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x2fc5598d0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc55a2d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc57c108]
test eax, eax
je 0x2fc55a36a
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc57c110]
mov qword [rbp - 8], rax
jmp 0x2fc55a34e
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 0x2fc55a342
cmp qword [rbp - 0x10], 0
je 0x2fc55a342
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 0x2fc55a308
lea rax, [0x2fc57c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55a36b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc55a470
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc55a498
mov eax, 0
jmp 0x2fc55a4e6
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 0x2fc55a4c1
mov eax, 0
jmp 0x2fc55a4e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc55a4e1
mov eax, 0
jmp 0x2fc55a4e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55a4ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55a56a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc55a561
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc55a561
mov rax, qword [rbp - 8]
jmp 0x2fc55a57f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc55a534
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140e2e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e2e1df
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 0x140e2e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2e06f
add dl, dl
jne 0x140e2e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2e0f6
xor eax, eax
add dl, dl
jne 0x140e2e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e2e1ad
add dl, dl
jne 0x140e2e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e2e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e2e07e
mov eax, 1
add dl, dl
jne 0x140e2e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e2e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2e0fb
sub eax, ebx
mov ebx, 1
jne 0x140e2e14c
mov ecx, 1
add dl, dl
jne 0x140e2e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e2e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e2e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e2e15d
cmp eax, 0x7d00
jae 0x140e2e19b
cmp eax, 0x500
jb 0x140e2e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2e07e
cmp eax, 0x7f
ja 0x140e2e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e2e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e2e1d2
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 0x140e2e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc573a10
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc574412
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc596108]
test eax, eax
je 0x2fc5744aa
lea rax, [0x2fc5960e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc596110]
mov qword [rbp - 8], rax
jmp 0x2fc57448e
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 0x2fc574482
cmp qword [rbp - 0x10], 0
je 0x2fc574482
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 0x2fc574448
lea rax, [0x2fc5960e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc5744ab
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc5745b0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc5745d8
mov eax, 0
jmp 0x2fc574626
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 0x2fc574601
mov eax, 0
jmp 0x2fc574626
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc574621
mov eax, 0
jmp 0x2fc574626
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc57462c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc5746aa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc5746a1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc5746a1
mov rax, qword [rbp - 8]
jmp 0x2fc5746bf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc574674
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1406f6d69
Capabilities:
Check http status code

Disassembly:
js 0x140780c16
out dx, eax
scasd eax, dword [rdi]
xchg dl, ah
add eax, 0x145b0cc5
test ecx, ecx
add byte [rax], al
add byte [rbx + 0x74], dh
jb 0x1406f6df5
jo 0x1406f6df2
add byte [rax], al
add byte [rax], al
add dword [rax], eax
add byte [rax], al
sub byte [rsp + 0x10], sil
test sil, r13b
jo 0x140db846c
jbe fcn.1407192df
call fcn.140da60ec
add byte [rax], al
add dword [rax], eax
add byte [rax], al
mov r12b, byte [rsp + 0x16]
add byte [rax], al
add byte [rdx + rcx*4 + 0x64], al
and al, 0x16
lea r12, [r15*8 + 0x4784388c]
push r14
movzx r15w, byte [rsp + 0x1a]
jle 0x140d044e3
test qword [rsp + 0x18], r15
je 0x1406f6e29
movabs r14, 0x10dc4a0c1b96179b
jb 0x140d07cfb
call fcn.140d97635
xor byte [rsi + 0x5b], bh
invalid
or r15w, 0x45cc
mov r15, qword [rsp + 0x18]
call fcn.140cda695
mov rbp, qword [rsp + 0x30]
mov qword [rsp + 0x30], 0xffffffff982127ef
mov r15, r12
or r12, r15
cmovb r15d, dword [rsp + 3]
push r9
setbe r15b
mov r9, qword [rsp + 8]
test r9d, r12d
call 0x1406f6df8
hlt
movabs r15, 0x174c6f2a1b917fc4
mov r12, rbp
movabs rbp, 0x16892b1679ef3113
call fcn.140d044dd

Function at 0x140709f72
Capabilities:
Encode data using xor

Disassembly:
neg r12w
lea r12, [r12 + 0x73df537a]
mov r12, qword [rsp + 0x28]
mov qword [rsp + 0x28], 0x1a083e40
push rdi
movabs rdi, 0x25f17eac178a35f4
test di, 0x2e78
seto dil
lea rdi, [rdi*2 + 0x19b51fd]
test edi, 0x34ee7689
seta dil
push r15
push r8
movabs r8, 0x2f5257324af813a9
mov r15, rdi
add r15w, 0x39ce
not r15w
setl r15b
push rsi
cmovb r8d, edi
mov rsi, r15
and rsi, 0x6d20ff1
push rdi
add qword [rsp + 0x28], 0x574154
push rbx
mov r8, rdi
or dil, sil
mov r8, qword [rsp + 0x18]
test r15, r15
not byte [rsp + 8]
lea r15, [rsi + r15*8 + 0x359e78aa]
mov rbx, r15
setb sil
mov dil, 0x51
mov rsi, r15
cmp r15, rdi
not ebx
not bl
cmovne rbx, rdi
xor dil, sil
not rbx
je fcn.140709f72
test word [rsp + 0xd], r15w

Function at 0x14070ea36
Capabilities:
Encode data using xor

Disassembly:
or dword [rsp + 0x18], 0x6c69117f
setle byte [rsp + 0x18]
and word [rsp + 0x18], r8w
sub r8b, 0x7e
jb 0x140781e1a
popfq
popfq
jge 0x14070e9f1
in eax, dx
jno 0x14070ea7f
and byte [rax], dh
cmp dword [eax + 0x51], 0xffffff99
xor byte [rdi - 0x7d], ah
js 0x14070eaa9
cdq
mov ch, 0xe4
clc
cmp bl, dl
xor bl, byte [rdi + 8]
sar al, cl
pop rcx
pop rbp
pop rbx
fistp word [rsi - 0x3d]
jrcxz 0x14070ea53
ret 0xdd50
push rdi
loop 0x14070ea4c
invalid
and al, 0x30
invalid
rcr bl, cl
pop rsi
test byte [rbp + 0x61], dh
invalid
ja 0x14070eb1c
ja 0x14070ead5
wait
lahf
xchg ecx, eax
invalid
je 0x14070ea89
xor byte [rbx + 0x2c891ac3], ah
sub al, 0x35
pop rsp
test cl, dl
lea ecx, es:[rdx]
test ebx, esp
ja 0x14070eadf
jne 0x14070ea9c
cmpsd dword [rsi], dword [rdi]
not byte [ebp + 0x3fe642a4]
lahf
or dh, byte [rdi - 0x1c]
test rax, 0xffffffffb8c78124
push rsi
mov ch, byte [rbx + 0x856d415]
xchg ecx, eax
sbb al, 0x44
test eax, 0x2b4d3c41
test eax, 0x2da5cba6
test eax, 0xaba73e03
push rsi
xchg esp, eax
or dword [rbx], edx
fst qword [rsi + 0x46]
iretd
iretd