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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002c3c

Function at 0x140005188
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000c4d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003cb0
xor ebx, ebx
cmp qword [0x14000dab8], rbx
mov rdi, rax
jne 0x14000529b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140005372
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005372
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000dab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000dac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000dac8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000dad8], rax
test rax, rax
je 0x140005292
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000dad0], rax
jmp 0x1400052a2
mov rax, qword [0x14000dad0]
jmp 0x1400052a9
mov rax, qword [0x14000dad0]
mov r11, qword [0x14000dad8]
cmp rax, rdi
je 0x140005310
cmp r11, rdi
je 0x140005310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000dad8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140005310
test rax, rax
je 0x140005310
call rsi
test rax, rax
je 0x14000530a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000530a
test byte [rsp + 0x40], 1
jne 0x140005310
bts ebp, 0x15
jmp 0x140005350
mov rcx, qword [0x14000dac0]
cmp rcx, rdi
je 0x140005350
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005350
call rax
mov rbx, rax
test rax, rax
je 0x140005350
mov rcx, qword [0x14000dac8]
cmp rcx, rdi
je 0x140005350
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005350
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000dab8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005372
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140005374
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400055c0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000662f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c4d0]
jne 0x1400055da
rol rcx, 0x10
test cx, 0xffff
jne 0x1400055d6
repz ret
ror rcx, 0x10
jmp 0x140006588
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000dc10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000dd08]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000660d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000dc10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000662f
mov rax, qword [rsp + 0x88]
mov qword [0x14000dd08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000dca8], rax
mov rax, qword [0x14000dd08]
mov qword [0x14000db80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000dc90], rax
mov dword [0x14000db70], 0xc0000409
mov dword [0x14000db74], 1
mov rax, qword [0x14000c4d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c4d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000dc08], eax
mov ecx, 1
call fcn.14000646c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009c78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000dc08], 0
jne 0x1400066b6
mov ecx, 1
call fcn.14000646c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140002e00
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140002c70

Function at 0x1400051b8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14000c4d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140003ce4
xor ebx, ebx
cmp qword [0x14000dab8], rbx
mov rdi, rax
jne 0x1400052cb
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400053a2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400053a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000dab8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000dac0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14000dac8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14000dad8], rax
test rax, rax
je 0x1400052c2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14000dad0], rax
jmp 0x1400052d2
mov rax, qword [0x14000dad0]
jmp 0x1400052d9
mov rax, qword [0x14000dad0]
mov r11, qword [0x14000dad8]
cmp rax, rdi
je 0x140005340
cmp r11, rdi
je 0x140005340
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14000dad8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140005340
test rax, rax
je 0x140005340
call rsi
test rax, rax
je 0x14000533a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000533a
test byte [rsp + 0x40], 1
jne 0x140005340
bts ebp, 0x15
jmp 0x140005380
mov rcx, qword [0x14000dac0]
cmp rcx, rdi
je 0x140005380
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005380
call rax
mov rbx, rax
test rax, rax
je 0x140005380
mov rcx, qword [0x14000dac8]
cmp rcx, rdi
je 0x140005380
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140005380
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000dab8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400053a2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400053a4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400055f0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000665f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000c4d0]
jne 0x14000560a
rol rcx, 0x10
test cx, 0xffff
jne 0x140005606
repz ret
ror rcx, 0x10
jmp 0x1400065b8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000dc10]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14000dd08]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000663d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000dc10]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000665f
mov rax, qword [rsp + 0x88]
mov qword [0x14000dd08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000dca8], rax
mov rax, qword [0x14000dd08]
mov qword [0x14000db80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000dc90], rax
mov dword [0x14000db70], 0xc0000409
mov dword [0x14000db74], 1
mov rax, qword [0x14000c4d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000c4d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000dc08], eax
mov ecx, 1
call fcn.14000649c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140009c88]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000dc08], 0
jne 0x1400066e6
mov ecx, 1
call fcn.14000649c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001000
Capabilities:
Log keystrokes via polling
Set console window title

Disassembly:
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, str.discord:__erastar
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001140
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
nop word [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov cl, 0x61
mov dword [rsp + 0x20], 1
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, 0x28
lea rdx, [rsp + 0x20]
mov word [rsp + 0x28], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
lea ecx, [rax + 0xa]
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x48], xmm0
mov cl, 0x64
mov dword [rsp + 0x48], 1
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov r8d, 0x28
lea rdx, [rsp + 0x48]
mov word [rsp + 0x50], ax
lea ecx, [r8 - 0x27]
call qword [sym.imp.USER32.dll_SendInput]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x68], rax
movups xmmword [rsp + 0x58], xmm0
lea ecx, [rax + 0x2d]
mov dword [rsp + 0x48], 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140001040
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001370
add rsp, 0x88
ret

Function at 0x140001c38
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001c82
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001c82
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001c82
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001c82
cmp dword [rcx + 0x84], 0xe
jbe 0x140001c82
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c84
xor al, al
add rsp, 0x28
ret
Function at 0x14000363c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003686
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003686
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003686
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003686
cmp dword [rcx + 0x84], 0xe
jbe 0x140003686
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003688
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140013a80]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140013a90]
mov dword [rax], 1
mov rax, qword [0x140013aa0]
mov dword [rax], 1
mov rax, qword [0x140013a70]
mov dword [rax], 1
mov rax, qword [0x140013920]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140013a60]
mov dword [0x140017020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140013a20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140013a00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400138d0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400018b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400021d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000221c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002213
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000221e
add rax, 0x28
cmp rax, r9
jne 0x140002200
xor eax, eax
ret

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400022b0
mov rdx, qword [0x140013920]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000229e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000229e
cmp word [rax + 0x18], 0x20b
jne 0x14000229e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400022b0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002289
add r12, 0x28
cmp r12, rsi
je 0x1400022b0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002280
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x140013920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002335
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000232c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002318
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140013920]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002360
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002368
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002360
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140013920]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023a0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400023e8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400023df
test rcx, rcx
je 0x1400023a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400023d0
xor eax, eax
ret
Function at 0x1400023f0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x140013920]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002450
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002458
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002450
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002450
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002494
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024a8
add rax, 0x28
cmp r9, rax
jne 0x140002480
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140013920]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400024e2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024f0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024e2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400024e2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x1400024e2
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 0x14000253d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002550
add rdx, 0x28
cmp r10, rdx
jne 0x140002528
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000255f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000256f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002546
test ecx, ecx
jg 0x140002558
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003be0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400139a0]
mov rax, qword [rsi]
test rax, rax
je 0x140003c70
cmp qword [rax + 0x30], 0
jne 0x140003c90
lea rbx, [0x140012078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003c40
cmp qword [rax + 0x30], 0
jne 0x140003c60
lea rdx, [0x140012078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003c22
test rax, rax
jne 0x140003c60
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c30
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c00
test rax, rax
jne 0x140003c90
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c0b
Function at 0x140007860
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400139a0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007930
cmp qword [rax + 0x60], 0
jne 0x140007950
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x140007960
cmp qword [rax + 0x1d8], r12
jne 0x140007960
test byte [rax + 0x40], 0xc
jne 0x140007960
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x140007960
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x140007960
mov rax, qword [rbx]
test rax, rax
je 0x1400079c0
cmp qword [rax + 0x60], 0
jne 0x1400079e0
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x1400079f0
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x1400079f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
jmp sym.pthread_cancel
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000788b
test rax, rax
jne 0x140007950
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007896
mov rax, qword [rbx]
test rax, rax
je 0x140007990
cmp qword [rax + 0x60], 0
jne 0x1400079b0
lea rcx, [0x140012068]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
mov eax, 3
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rbx]
cmp qword [r8 + 0x60], 0
je 0x14000796f
test rax, rax
jne 0x1400079b0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x14000797a
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x1400078fa
test rax, rax
jne 0x1400079e0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007905
xor eax, eax
jmp 0x140007984
mov eax, 0x16
jmp 0x140007984