joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100eebd0
Capabilities:
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdi, qword [sym.imp.msvcrt.dll__assert]
mov rsi, qword [0x10589df0]
mov rbp, rdi
mov rbx, rcx
mov r12d, edx
jmp 0x100eec7c
mov r8d, eax
add eax, dword [rbx + 0x14]
add r8, qword [rbx]
mov ecx, eax
movzx eax, byte [r8]
movzx edx, byte [r8 + 1]
mov r9, qword [rbx + 0x40]
xor edx, dword [rsi + rax*4]
movzx eax, byte [r8 + 2]
shl eax, 8
xor eax, edx
and eax, dword [rbx + 0x58]
and edx, 0x3ff
add eax, 0x400
lea rax, [r9 + rax*4]
mov r8d, dword [rax]
mov dword [r9 + rdx*4], ecx
mov dword [rax], ecx
mov rax, qword [rbx + 0x48]
mov edx, dword [rbx + 0x50]
mov dword [rax + rdx*4], r8d
mov eax, dword [rbx + 0x50]
add eax, 1
mov dword [rbx + 0x50], eax
cmp eax, dword [rbx + 0x54]
jne 0x100eec60
mov dword [rbx + 0x50], 0
mov eax, dword [rbx + 0x18]
add eax, 1
mov dword [rbx + 0x18], eax
cmp eax, dword [rbx + 0x24]
ja 0x100eecb8
add eax, dword [rbx + 0x14]
cmp eax, 0xffffffff
je 0x100eecd9
sub r12d, 1
je 0x100eeca7
mov edx, dword [rbx + 0x24]
mov eax, dword [rbx + 0x18]
mov ecx, edx
sub ecx, eax
cmp ecx, 2
ja 0x100eec00
add eax, 1
mov dword [rbx + 0x18], eax
cmp edx, eax
jb 0x100eed48
add dword [rbx + 0x28], 1
sub r12d, 1
jne 0x100eec7c
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0x9c
lea rdx, str.xz_5.2_src_liblzma_lz_lz_encoder_mf.c
lea rcx, str.mf__read_pos___mf__write_pos
call rdi
mov eax, dword [rbx + 0x18]
add eax, dword [rbx + 0x14]
cmp eax, 0xffffffff
jne 0x100eec76
mov ecx, dword [rbx + 0x54]
mov edx, dword [rbx + 0x6c]
not ecx
test edx, edx
je 0x100eed0a
mov r9, qword [rbx + 0x40]
xor eax, eax
nop dword [rax + rax]
mov edx, eax
lea r8, [r9 + rdx*4]
mov edx, dword [r8]
cmp ecx, edx
jae 0x100eed68
sub edx, ecx
add eax, 1
mov dword [r8], edx
cmp eax, dword [rbx + 0x6c]
jb 0x100eecf0
mov eax, dword [rbx + 0x70]
test eax, eax
je 0x100eed3a
mov r9, qword [rbx + 0x48]
xor eax, eax
nop word [rax + rax]
mov edx, eax
lea r8, [r9 + rdx*4]
mov edx, dword [r8]
cmp ecx, edx
jae 0x100eed80
sub edx, ecx
add eax, 1
mov dword [r8], edx
cmp eax, dword [rbx + 0x70]
jb 0x100eed20
sub dword [rbx + 0x14], ecx
jmp 0x100eec76
mov r8d, 0xb5
lea rdx, str.xz_5.2_src_liblzma_lz_lz_encoder_mf.c
lea rcx, str.mf__read_pos___mf__write_pos
call rbp
jmp 0x100eec9d
mov dword [r8], 0
add eax, 1
cmp dword [rbx + 0x6c], eax
ja 0x100eecf0
jmp 0x100eed0a
mov dword [r8], 0
add eax, 1
cmp dword [rbx + 0x70], eax
ja 0x100eed20
sub dword [rbx + 0x14], ecx
jmp 0x100eec76
Function at 0x100ef140
Capabilities:
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [sym.imp.msvcrt.dll__assert]
mov r12, qword [0x10589df0]
mov rdi, rsi
mov rbx, rcx
mov ebp, edx
jmp 0x100ef1ff
mov edx, eax
add eax, dword [rbx + 0x14]
add rdx, qword [rbx]
mov ecx, eax
movzx eax, byte [rdx]
movzx r9d, byte [rdx + 1]
mov r8, qword [rbx + 0x40]
xor r9d, dword [r12 + rax*4]
movzx eax, byte [rdx + 2]
movzx edx, byte [rdx + 3]
shl eax, 8
mov edx, dword [r12 + rdx*4]
xor eax, r9d
shl edx, 5
xor edx, eax
and edx, dword [rbx + 0x58]
movzx eax, ax
add edx, 0x10400
lea r10, [r8 + rdx*4]
mov edx, r9d
and edx, 0x3ff
mov r11d, dword [r10]
mov dword [r8 + rdx*4], ecx
mov dword [r8 + rax*4 + 0x1000], ecx
mov rax, qword [rbx + 0x48]
mov dword [r10], ecx
mov edx, dword [rbx + 0x50]
mov dword [rax + rdx*4], r11d
mov eax, dword [rbx + 0x50]
add eax, 1
mov dword [rbx + 0x50], eax
cmp eax, dword [rbx + 0x54]
jne 0x100ef1e4
mov dword [rbx + 0x50], 0
mov eax, dword [rbx + 0x18]
add eax, 1
mov dword [rbx + 0x18], eax
cmp eax, dword [rbx + 0x24]
ja 0x100ef238
add eax, dword [rbx + 0x14]
cmp eax, 0xffffffff
je 0x100ef259
sub ebp, 1
je 0x100ef229
mov edx, dword [rbx + 0x24]
mov eax, dword [rbx + 0x18]
mov ecx, edx
sub ecx, eax
cmp ecx, 3
ja 0x100ef168
add eax, 1
mov dword [rbx + 0x18], eax
cmp edx, eax
jb 0x100ef2c8
add dword [rbx + 0x28], 1
sub ebp, 1
jne 0x100ef1ff
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0x9c
lea rdx, str.xz_5.2_src_liblzma_lz_lz_encoder_mf.c
lea rcx, str.mf__read_pos___mf__write_pos
call rsi
mov eax, dword [rbx + 0x18]
add eax, dword [rbx + 0x14]
cmp eax, 0xffffffff
jne 0x100ef1fa
mov ecx, dword [rbx + 0x54]
mov edx, dword [rbx + 0x6c]
not ecx
test edx, edx
je 0x100ef28a
mov r9, qword [rbx + 0x40]
xor eax, eax
nop dword [rax + rax]
mov edx, eax
lea r8, [r9 + rdx*4]
mov edx, dword [r8]
cmp ecx, edx
jae 0x100ef2e8
sub edx, ecx
add eax, 1
mov dword [r8], edx
cmp eax, dword [rbx + 0x6c]
jb 0x100ef270
mov eax, dword [rbx + 0x70]
test eax, eax
je 0x100ef2ba
mov r9, qword [rbx + 0x48]
xor eax, eax
nop word [rax + rax]
mov edx, eax
lea r8, [r9 + rdx*4]
mov edx, dword [r8]
cmp ecx, edx
jae 0x100ef300
sub edx, ecx
add eax, 1
mov dword [r8], edx
cmp eax, dword [rbx + 0x70]
jb 0x100ef2a0
sub dword [rbx + 0x14], ecx
jmp 0x100ef1fa
mov r8d, 0xb5
lea rdx, str.xz_5.2_src_liblzma_lz_lz_encoder_mf.c
lea rcx, str.mf__read_pos___mf__write_pos
call rdi
jmp 0x100ef220
mov dword [r8], 0
add eax, 1
cmp dword [rbx + 0x6c], eax
ja 0x100ef270
jmp 0x100ef28a
mov dword [r8], 0
add eax, 1
cmp dword [rbx + 0x70], eax
ja 0x100ef2a0
sub dword [rbx + 0x14], ecx
jmp 0x100ef1fa
Function at 0x100f5170
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov r9, rcx
shl r9, 8
movdqu xmm0, xmmword [rax + r9]
mov r9, rcx
add rcx, 1
shl r9, 9
movups xmmword [rdx + r9], xmm0
cmp r8d, ecx
ja sym.lzma_lzma_optimum_normal.cold
mov rax, qword [r14 + 0x10590]
mov qword [r14 + 0x10c90], rax
mov rax, qword [r14 + 0x10598]
mov qword [r14 + 0x10c98], rax
jmp 0x100ed323
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.1401ac000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001eaa0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001eab0]
mov dword [rax], 1
mov rax, qword [0x14001eac0]
mov dword [rax], 1
mov rax, qword [0x14001ea90]
mov dword [rax], 1
mov rax, qword [0x14001e940]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14001ea80]
mov dword [0x140022020], 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 [0x14001ea40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001ea20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001e8f0]
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 0x140001583
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
lea rax, [rbp - 0xc]
mov r9, rax
mov r8d, 0x40
mov edx, 0xb2c4
lea rcx, [0x140012020]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x1400015e1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
mov ecx, 2
mov rax, qword [dbg.__acrt_iob_func]
call rax
mov r8d, ebx
lea rdx, str.Error_setting_memory_executable:__n
mov rcx, rax
call sym.fprintf
jmp 0x1400015f3
lea rax, [0x140012020]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
call rax
nop
add rsp, 0x38
pop rbx
pop rbp
ret

Function at 0x1400015fa
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call sym.launchSC
mov eax, 0
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400220b4]
mov r12, rcx
test ebx, ebx
jle 0x140001ab0
mov rax, qword [0x1400220b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400019cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001a53
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400019b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001ad2
mov rax, qword [0x1400220b8]
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 [0x1400220b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a4c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a60
add dword [0x1400220b4], 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 [0x1400220b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a4c
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 0x1400019d7
mov rax, qword [0x1400220b8]
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 0x140001f90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140022120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140022100]
test rbx, rbx
je 0x140001fe4
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 0x140001fdb
test r12, r12
je 0x140001fdb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fc0
lea rcx, [0x140022120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002200
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002218
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002220
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002230
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 0x14000227c
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 0x140002273
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000227e
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x14001e940]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002395
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 0x14000238c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002340
add rax, 0x28
cmp rax, r9
jne 0x140002378
xor eax, eax
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

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

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14001e940]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002400
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002408
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002400
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002448
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000243f
test rcx, rcx
je 0x140002400
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002430
xor eax, eax
ret
Function at 0x140002450
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x14001e940]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002542
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002550
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002542
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002542
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002542
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 0x14000259d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025b0
add rdx, 0x28
cmp r10, rdx
jne 0x140002588
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025bf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025cf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025a6
test ecx, ecx
jg 0x1400025b8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003c40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14001e9c0]
mov rax, qword [rsi]
test rax, rax
je 0x140003cd0
cmp qword [rax + 0x30], 0
jne 0x140003cf0
lea rbx, [0x14001d368]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003ca0
cmp qword [rax + 0x30], 0
jne 0x140003cc0
lea rdx, [0x14001d368]
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 0x140003c82
test rax, rax
jne 0x140003cc0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003c90
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003c60
test rax, rax
jne 0x140003cf0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003c6b
Function at 0x1400078c0
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14001e9c0]
mov rax, qword [rbx]
mov r12, rcx
mov esi, edx
test rax, rax
je 0x140007990
cmp qword [rax + 0x60], 0
jne 0x1400079b0
lea rcx, [0x14001d358]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_lock
mov rcx, r12
call sym.__pthread_get_pointer
test rax, rax
je 0x1400079c0
cmp qword [rax + 0x1d8], r12
jne 0x1400079c0
test byte [rax + 0x40], 0xc
jne 0x1400079c0
mov edx, dword [rax + 0xbc]
test edx, edx
jne 0x1400079c0
mov rax, qword [rax + 0x28]
sub rax, 1
cmp rax, 0xfffffffffffffffd
ja 0x1400079c0
mov rax, qword [rbx]
test rax, rax
je 0x140007a20
cmp qword [rax + 0x60], 0
jne 0x140007a40
lea rcx, [0x14001d358]
mov qword [rax + 0x60], rcx
call sym.pthread_mutex_unlock
test esi, esi
je 0x140007a50
lea edx, [rsi - 2]
cmp edx, 0x15
ja 0x140007a58
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 0x1400078eb
test rax, rax
jne 0x1400079b0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400078f6
mov rax, qword [rbx]
test rax, rax
je 0x1400079f0
cmp qword [rax + 0x60], 0
jne 0x140007a10
lea rcx, [0x14001d358]
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 0x1400079cf
test rax, rax
jne 0x140007a10
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x1400079da
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x60], 0
mov rax, qword [rbx]
je 0x14000795a
test rax, rax
jne 0x140007a40
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rcx, qword [rax + 0x60]
jmp 0x140007965
xor eax, eax
jmp 0x1400079e4
mov eax, 0x16
jmp 0x1400079e4