joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d2ff6523
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
cmp qword [rbp + 0x18], 0
je 0x2d2ff6553
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_1
mov rdx, rax
jmp 0x2d2ff6558
mov edx, 0
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2d2ffd490
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp - 8], 0
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x18]
mov r9, qword [rbp + 0x10]
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rcx, qword [rbp + 0x10]
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret
Function at 0x2d3000c48
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rax, str.echoBinSafe
mov qword [rbp - 0x58], rax
lea rax, [0x2d30261c8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov word [rbp - 0x40], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.nimFrame_6
call sym.nimErrorFlag_6
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x50], 0xac5
lea rax, [0x2d3032100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x50], 0xd
lea rax, str.C:Users_roberDesktop_toolkitcodeXyrella_nimlib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov qword [rbp - 8], 0
mov qword [rbp - 0x50], 0xe
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jge 0x2d3000dd5
mov qword [rbp - 0x50], 0xac6
lea rax, [0x2d30261c8]
mov qword [rbp - 0x48], rax
cmp qword [rbp - 8], 0
js 0x2d3000d0c
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x18]
jl 0x2d3000d25
mov rax, qword [rbp + 0x18]
lea rdx, [rax - 1]
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.raiseIndexError2
jmp 0x2d3000e66
mov rax, qword [rbp - 8]
shl rax, 4
mov rdx, rax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rax + 8]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rdx
lea rax, [rbp - 0x80]
mov r8d, 0
mov rdx, rax
call sym.writeWindows__system_u9025
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x2d3000e65
mov qword [rbp - 0x50], 0x10
lea rax, str.C:Users_roberDesktop_toolkitcodeXyrella_nimlib_systemiterators.nim
mov qword [rbp - 0x48], rax
mov edx, 0
mov rax, qword [rbp - 8]
add rax, 1
jno 0x2d3000daa
mov edx, 1
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rax], rcx
mov rax, rdx
and eax, 1
test al, al
je 0x2d3000dc8
call sym.raiseOverflow
jmp 0x2d3000e66
mov rax, qword [rbp - 0x68]
mov qword [rbp - 8], rax
jmp 0x2d3000cda
nop
mov qword [rbp - 0x50], 0xae1
lea rax, [0x2d30261c8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x20], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 1
mov edx, 1
lea rax, [0x2d30269d1]
mov rcx, rax
call sym.fwrite
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 0xae2
mov dword [rbp - 0x24], 0
mov ecx, 1
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
call sym.fflush
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x50], 0xae6
lea rax, [0x2d3032100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2d3000e66
nop
call sym.popFrame_6
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x2d300de96
Capabilities:
Execute syscall

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, 0x5d4f29b3
call sym.SW2_GetSyscallNumber
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x2d300f870
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2d30101e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2d3032328]
test eax, eax
je 0x2d301027a
lea rax, [0x2d3032300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2d3032330]
mov qword [rbp - 8], rax
jmp 0x2d301025e
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 0x2d3010252
cmp qword [rbp - 0x10], 0
je 0x2d3010252
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 0x2d3010218
lea rax, [0x2d3032300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2d301027b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2d3010380
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 0x2d30103a8
mov eax, 0
jmp 0x2d30103f6
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 0x2d30103d1
mov eax, 0
jmp 0x2d30103f6
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 0x2d30103f1
mov eax, 0
jmp 0x2d30103f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2d30103fc
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 0x2d301047a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2d3010471
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 0x2d3010471
mov rax, qword [rbp - 8]
jmp 0x2d301048f
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 0x2d3010444
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x2d3017fa4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x2d30180ee
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x2d30180e1
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x2d3018097
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x2d30180ad
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x2d3018093
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x2d30180cc
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x2d30180ef
nop
add rsp, 0x90
pop rbp
ret
Function at 0x2d301910b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x2d3024530], eax
mov eax, dword [0x2d3024530]
cmp eax, 0xffffffff
jne 0x2d3019132
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x2d30192e5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x2d3032da0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x2d3024530]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2d3019338
mov rax, qword [rbp - 0x10]
jmp 0x2d3019498
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x2d3019354
cmp qword [rbp - 0x10], 0
jne 0x2d301935e
mov eax, 0
jmp 0x2d3019498
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x2d3019439
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x2d3024530]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x2d3019494
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x2d3019592
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x2d30195ff
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x2d3024530]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2d3019743
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x2d301969c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2d3019657
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x2d3024530]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x2d3019743
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2d30196d6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x2d3019743
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x2d3024530]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x2d301a385
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x2d3024540]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x2d3032da0]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x2d3024530]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x2d301a49a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x2d3024540]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x2d301a468
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x2d3024540]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x2d301a4a9
lea rax, [0x2d3024540]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x2d301a4e5
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x2d301a553
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x2d3024530]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x2d301a59d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x2d301a59d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x2d3024540]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x2d301a58f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x147d0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x288
lea rax, [rsp + 0x80]
mov rdx, rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov word [rsp + 0x32], 0x200
call qword [0x0005d918]
lea rdx, [0x000443c0]
lea rcx, [rsp + 0x30]
call qword [0x0005d900]
lea rdx, [rsp + 0x30]
lea rcx, [0x00044380]
call sub.ntoskrnl.exe_DbgPrint
xor ecx, ecx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rcx
lea rcx, [rsp + 0x2a0]
lea r8, [rsp + 0x40]
mov edx, 0x2000000
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x200
mov qword [rsp + 0x50], rax
call qword [0x0005dae0]
test eax, eax
jns 0x14879
lea rcx, [0x00044330]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
add rsp, 0x288
ret
lea rdx, [0x00044310]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x280], rbx
call qword [0x0005d8e8]
mov rax, qword [0x0005d928]
mov dword [rsp + 0x298], 0x14
test rax, rax
je 0x148be
mov edx, 0x14
mov r8d, 0x574452
xor ecx, ecx
call rax
mov rbx, rax
jmp 0x148ce
mov edx, 0x14
xor ecx, ecx
call qword [0x0005d920]
mov rbx, rax
test rbx, rbx
jne 0x14904
lea r9d, [rbx + 0x14]
lea r8, [0x00044030]
lea ecx, [rbx + 1]
mov edx, 0x100
mov dword [rsp + 0x20], 0x14
call fcn.00025960
lea rcx, [0x000442d0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1499c
xor eax, eax
lea rdx, [rsp + 0x70]
mov r9, rbx
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
lea rax, [rsp + 0x298]
mov dword [rbx + 4], 4
mov dword [rbx + 8], 4
mov rcx, qword [rsp + 0x2a0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x298]
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [0x0005dad8]
test eax, eax
js 0x1498e
mov ecx, dword [rbx + 0xc]
test ecx, ecx
je 0x1496e
mov rax, qword [0x0005c6b0]
mov dword [rax + 0xb820], 1
test ecx, ecx
lea rax, [0x000442c0]
lea rdx, [0x000442b0]
lea rcx, [0x00044270]
cmovne rdx, rax
call sub.ntoskrnl.exe_DbgPrint
mov edx, 0x574452
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x2a0]
call qword [0x0005dab8]
mov rbx, qword [rsp + 0x280]
add rsp, 0x288
ret
Function at 0x25bf0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x00049c60]
mov dword [rsp + 0x50], 0x30
mov rdi, rcx
mov qword [r11 - 0x68], rax
mov rax, qword [0x00049c68]
lea rcx, [r11 - 0x68]
mov qword [rcx + 8], rax
xor ebp, ebp
lea rax, [0x0005c4a0]
mov qword [r11 - 0x40], rbp
mov dword [rsp + 0x68], 0x200
lea r8, [r11 - 0x48]
lea rcx, [r11 + 0x20]
mov edx, 0x2000000
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x20], rbp
call qword [0x0005dae0]
test eax, eax
mov ebx, eax
jns 0x25c79
lea rcx, [0x00049c10]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov dword [rdi], ebp
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
mov ecx, 0x14
mov qword [rsp + 0xa0], rsi
mov dword [rsp + 0xa8], 0x14
call fcn.00014df0
test rax, rax
mov rsi, rax
jne 0x25cb4
lea rcx, [0x00049bd0]
call sub.ntoskrnl.exe_DbgPrint
mov ebx, 0xc000009a
jmp 0x25dbe
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov dword [rax + 4], 4
mov dword [rax + 8], 4
call qword [0x0005d8e8]
mov eax, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
lea r11, [rsp + 0xa8]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], r11
mov r9, rsi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [0x0005dad8]
cmp eax, 0xc0000034
mov ebx, eax
jne 0x25d6a
mov rcx, qword [rsp + 0xb8]
lea rax, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xb0], ebp
call qword [0x0005daf0]
test eax, eax
mov ebx, eax
jns 0x25d61
lea rdx, [rsp + 0x30]
lea rcx, [0x00049b70]
mov r8d, eax
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0xb0]
jmp 0x25d89
test eax, eax
jns 0x25d86
lea rdx, [rsp + 0x30]
lea rcx, [0x00049b10]
mov r8d, eax
call sub.ntoskrnl.exe_DbgPrint
mov dword [rdi], ebp
jmp 0x25d8b
mov eax, dword [rsi + 0xc]
mov dword [rdi], eax
mov rax, qword [0x0005c6b0]
lea rcx, [0x00049b00]
lea rdx, [0x00049af0]
cmp dword [rax + 0x10e8], ebp
cmovne rdx, rcx
lea rcx, [0x00049ab0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, rsi
call fcn.00011140
mov rcx, qword [rsp + 0xb8]
call qword [0x0005dab8]
mov rsi, qword [rsp + 0xa0]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbp
pop rbx
ret
Function at 0x25df0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
mov rax, qword [0x00049c60]
mov dword [rsp + 0x50], 0x30
lea rdx, [r11 - 0x58]
mov qword [rdx], rax
mov rax, qword [0x00049c68]
mov dword [r11 + 8], ecx
xor ecx, ecx
mov qword [rdx + 8], rax
lea rax, [0x0005c4a0]
mov qword [r11 - 0x30], rcx
mov dword [rsp + 0x68], 0x200
mov qword [r11 - 0x18], rcx
mov qword [r11 - 0x10], rcx
lea r8, [r11 - 0x38]
lea rcx, [r11 + 0x10]
mov edx, 0x2000000
mov qword [r11 - 0x28], rax
call qword [0x0005dae0]
test eax, eax
mov ebx, eax
jns 0x25e73
lea rcx, [0x00049cd0]
mov edx, eax
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
add rsp, 0x80
pop rbx
ret
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [0x0005d8e8]
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
lea rdx, [rsp + 0x40]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [0x0005daf0]
test eax, eax
mov ebx, eax
jns 0x25ece
lea rdx, [rsp + 0x30]
lea rcx, [0x00049c70]
mov r8d, eax
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x98]
call qword [0x0005dab8]
mov eax, ebx
add rsp, 0x80
pop rbx
ret
Function at 0x61008
Capabilities:
Print debug messages

Disassembly:
mov rax, qword [0x0005c488]
movabs r9, 0x2b992ddfa232
test rax, rax
je 0x61023
cmp rax, r9
jne 0x61052
lea r8, [0x0005c488]
movabs rax, 0xfffff78000000320
mov rax, qword [rax]
xor rax, r8
movabs r8, 0xffffffffffff
and rax, r8
cmove rax, r9
mov qword [0x0005c488], rax
not rax
mov qword [0x0005c490], rax
jmp 0x14e70
Function at 0x140014830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.140014ac0