joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400019d0
Capabilities:
Execute command
Set console window title

Disassembly:
sub rsp, 0x28
lea rcx, str.FivemInjector_discord.gg_aorist
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Made_By_kenyje____discord.gg_aorist__nWaiting_for_FiveM...._n
call fcn.140001b20
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001a00
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.fivem_found___click_any_key_to_inject_n
call fcn.140001b20
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400011c0
xor eax, eax
add rsp, 0x28
ret

Function at 0x140002860
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400028aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400028aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400028aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400028aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400028aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400028ac
xor al, al
add rsp, 0x28
ret
Function at 0x14000b710
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14000b7b0
jmp 0x14000b79f
jae 0x14000b86f
cmp r8, 0x201
jae 0x14000b7b0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b807
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000b7df
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002d5d0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14000b830
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000b8db
mov r8d, r13d
cmp r12, r8
jne 0x14000b790
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b90f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000b79f
jmp 0x14000b7b0
cmp r14, r8
jb 0x14000b929
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d190
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14000b8c4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003c80
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000b8af
jmp 0x14000b8c4
lea rcx, [0x14007b530]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002e2f0
jmp 0x14000b93e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002e640
ud2
Function at 0x140015170
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007d398]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400151a8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400151ff
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14001520c
xor edx, edx
xor eax, eax
jmp 0x140015236
cmp eax, 0x103
je 0x140015240
test eax, eax
js 0x14001521f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015236
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007d3f8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cff0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006200
mov ecx, 7
int 0x29
ud2

Function at 0x140015290
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14007d398]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400152c8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140015326
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140015353
test eax, eax
js 0x140015332
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140015349
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x14007d3f8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000cff0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140006200
mov ecx, 7
int 0x29
ud2
Function at 0x14002b390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002b41a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002b410
cmp r11, r10
ja 0x14002b496
cmp r10, rdx
ja 0x14002b4a8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002b412
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002b3f0
jmp 0x14002b477
ja 0x14002b41a
mov r11, r10
cmp rax, r8
jne 0x14002b3b7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002b47b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002b450
mov r8, r10
sub ecx, r9d
jns 0x14002b46e
jmp 0x14002b47d
cmp r10, rdx
je 0x14002b48a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002b47d
xor al, 1
cmp r8, rdx
jne 0x14002b430
jmp 0x14002b47d
xor eax, eax
jmp 0x14002b47d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002e1f0
lea r8, str.__n_b_
mov rcx, r11
mov rdx, r10
call fcn.14002e650
lea r8, str.__n_b_
mov rcx, r10
call fcn.14002e640
int3

Function at 0x14002cd64
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000e6f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000e700]
mov dword [rax], 1
mov rax, qword [0x14000e710]
mov dword [rax], 1
mov rax, qword [0x14000e6e0]
mov dword [rax], 1
mov rax, qword [0x14000e5a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000e6d0]
mov dword [0x140011020], 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 [0x14000e690]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000e670]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000e550]
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 0x140001540
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0xe8], 0
mov qword [rbp + 0xd0], 0
mov dword [rbp + 0xbc], 0
mov qword [rbp + 0xc8], 0
mov ecx, 0x1000
call sym.malloc
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0
jne 0x1400015a8
mov eax, 0
jmp 0x1400017b6
lea rdx, [rbp + 0xbc]
mov rax, qword [rbp + 0xd0]
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call sym.EnumProcesses
test eax, eax
je 0x1400017a0
mov eax, dword [rbp + 0xbc]
shr eax, 2
mov eax, eax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
shl rax, 2
mov rcx, rax
call sym.malloc
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x14000161d
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.free
mov eax, 0
jmp 0x1400017b6
mov qword [rbp + 0xe0], 0
mov qword [rbp + 0xd8], 0
jmp 0x14000177b
movabs rax, 0x6e776f6e6b6e753c
mov edx, 0x3e
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x1e
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov rax, qword [rbp + 0xd8]
lea rdx, [rax*4]
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov eax, dword [rax]
mov r8d, eax
mov edx, 0
mov ecx, 0x410
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xc0], 0
je 0x140001773
lea rcx, [rbp + 0xac]
lea rdx, [rbp + 0xb0]
mov rax, qword [rbp + 0xc0]
mov r9, rcx
mov r8d, 8
mov rcx, rax
call sym.EnumProcessModules
test eax, eax
je 0x140001760
mov rdx, qword [rbp + 0xb0]
lea rcx, [rbp - 0x60]
mov rax, qword [rbp + 0xc0]
mov r9d, 0x104
mov r8, rcx
mov rcx, rax
call sym.GetModuleBaseNameA
lea rax, [rbp - 0x60]
lea rdx, str.powershell.exe
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x140001760
mov rax, qword [rbp + 0xd8]
lea rdx, [rax*4]
mov rax, qword [rbp + 0xd0]
lea rcx, [rdx + rax]
mov rax, qword [rbp + 0xe0]
lea rdx, [rax + 1]
mov qword [rbp + 0xe0], rdx
lea rdx, [rax*4]
mov rax, qword [rbp + 0xe8]
add rdx, rax
mov eax, dword [rcx]
mov dword [rdx], eax
mov rax, qword [rbp + 0xc0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
add qword [rbp + 0xd8], 1
mov rax, qword [rbp + 0xd8]
cmp rax, qword [rbp + 0xc8]
jb 0x140001638
mov rax, qword [rbp + 0x110]
mov rdx, qword [rbp + 0xe0]
mov qword [rax], rdx
mov rax, qword [rbp + 0xd0]
mov rcx, rax
call sym.free
mov rax, qword [rbp + 0xe8]
add rsp, 0x178
pop rdi
pop rbp
ret
Function at 0x140001912
Capabilities:
Enumerate process modules

Disassembly:
push rbp
sub rsp, 0x260
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], rcx
mov dword [rbp + 0x1f8], edx
mov eax, dword [rbp + 0x1f8]
mov edx, eax
mov ecx, 8
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp qword [rbp + 0x1d8], 0xffffffffffffffff
jne 0x14000195c
mov eax, 0
jmp 0x1400019f0
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sym.Module32First
test eax, eax
je 0x1400019d8
lea rax, [rbp - 0x60]
add rax, 0x30
lea rdx, str.amsi.dll
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__stricmp]
call rax
test eax, eax
jne 0x1400019c1
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x48]
mov rdx, rax
mov rcx, qword [rbp + 0x1f0]
call sym.getAmsiScanBufferAddress
jmp 0x1400019f0
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
call sym.Module32Next
test eax, eax
jne 0x14000197a
mov rax, qword [rbp + 0x1d8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x260
pop rbp
ret

Function at 0x140001df0
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 0x140001e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400110b4]
mov r12, rcx
test ebx, ebx
jle 0x140001f90
mov rax, qword [0x1400110b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001eac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001f33
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001e90
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001fb2
mov rax, qword [0x1400110b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400110b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001f97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f2c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f40
add dword [0x1400110b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400110b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140001eb7
mov rax, qword [0x1400110b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x1400024c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400024bb
test r12, r12
je 0x1400024bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024a0
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400026f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002700
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002710
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 0x14000275c
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 0x140002753
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000275e
add rax, 0x28
cmp rax, r9
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x1400027f0
mov rdx, qword [0x14000e5a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x1400027de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400027de
cmp word [rax + 0x18], 0x20b
jne 0x1400027de
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x1400027f0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400027c9
add r12, 0x28
cmp r12, rsi
je 0x1400027f0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400027c0
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 0x140002800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000e5a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002875
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 0x14000286c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002820
add rax, 0x28
cmp rax, r9
jne 0x140002858
xor eax, eax
ret

Function at 0x140002880
Capabilities:
Parse pe header

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

Function at 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000e5a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400028e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400028e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400028e0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002928
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000291f
test rcx, rcx
je 0x1400028e0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002910
xor eax, eax
ret
Function at 0x140002930
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x14000e5a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002990
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002998
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002990
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002990
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 0x1400029d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400029e8
add rax, 0x28
cmp r9, rax
jne 0x1400029c0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x14000e5a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a22
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002a22
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 0x140002a7d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002a90
add rdx, 0x28
cmp r10, rdx
jne 0x140002a68
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002a9f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002aaf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a86
test ecx, ecx
jg 0x140002a98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140004120
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000e620]
mov rax, qword [rsi]
test rax, rax
je 0x1400041b0
cmp qword [rax + 0x30], 0
jne 0x1400041d0
lea rbx, [0x14000d098]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004180
cmp qword [rax + 0x30], 0
jne 0x1400041a0
lea rdx, [0x14000d098]
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 0x140004162
test rax, rax
jne 0x1400041a0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004170
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004140
test rax, rax
jne 0x1400041d0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000414b