joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a3020
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
sub rsp, 0xa0
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
test rcx, rcx
je 0x1800a3231
mov rax, qword [rcx]
lea rdx, [rbp]
xor esi, esi
mov qword [rbp], rsi
mov rax, qword [rax + 0x130]
call qword [0x1800da508]
mov r8, qword [rbp]
test r8, r8
je 0x1800a3231
mov r8, qword [r8 + 8]
movabs rdi, 0xcbf29ce484222325
mov rbx, rdi
mov rax, r8
cmp byte [r8], sil
je 0x1800a309a
inc rax
cmp byte [rax], sil
jne 0x1800a3092
movabs r14, 0x100000001b3
mov rdx, rsi
sub rax, r8
je 0x1800a30c4
nop dword [rax]
movsx rcx, byte [r8 + rdx]
inc rdx
xor rbx, rcx
imul rbx, r14
cmp rdx, rax
jb 0x1800a30b0
movabs rax, 0x84703df0c3d09148
movabs rcx, 0x48307d37848b3d2e
mov qword [rbp], rax
movabs r15, 0xe1095c9c9383d20b
mov rax, qword [rbp]
movabs r12, 0x492b8cadbd534914
mov qword [rbp + 0x40], rax
movabs rax, 0x2544fed9d33c0a66
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0x5064fdde1fed2599
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
movabs rax, 0x5064fdde1f9f40f5
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x30], rax
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp + 0x38], rax
vmovdqu ymm0, ymmword [rbp + 0x20]
vpxor ymm1, ymm0, ymmword [rbp + 0x40]
vmovq rax, xmm1
vmovdqu ymmword [rbp + 0x40], ymm1
test al, al
jne 0x1800a318a
mov rax, rdi
vzeroupper
jmp 0x1800a31a1
movsx rdx, al
lea rcx, [rbp + 0x41]
xor rdx, rdi
imul rdx, r14
vzeroupper
call fcn.18005f770
cmp rbx, rax
jne 0x1800a31b0
mov eax, 1
jmp 0x1800a3233
movabs rax, 0x847d32fdffd38d48
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x20], rax
movabs rax, 0x492b8cadbd670a70
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x28], rax
mov qword [rbp], r15
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
mov qword [rbp], r12
mov rax, qword [rbp]
movdqa xmm0, xmmword [rbp + 0x20]
mov qword [rbp + 0x48], rax
xorps xmm0, xmmword [rbp + 0x40]
movq rax, xmm0
movdqa xmmword [rbp + 0x20], xmm0
test al, al
je 0x1800a3222
movsx rdx, al
lea rcx, [rbp + 0x21]
xor rdx, rdi
imul rdx, r14
call fcn.18005f770
mov rdi, rax
mov eax, 4
cmp rbx, rdi
cmove esi, eax
mov eax, esi
jmp 0x1800a3233
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800a6090
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14, rdx
movabs rax, 0x666666666666666
cmp qword [0x180188ec0], rax
je 0x1800a62f2
lea rax, [0x180188eb8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x28], rax
mov ecx, dword [rbx]
mov dword [rax + 0x10], ecx
movups xmm0, xmmword [rbx + 8]
movups xmmword [rax + 0x18], xmm0
movzx edi, byte [rax + 0x10]
movabs rax, 0xcbf29ce484222325
xor rdi, rax
movabs rcx, 0x100000001b3
imul rdi, rcx
movzx eax, byte [rsi + 0x11]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [rsi + 0x12]
xor rdi, rax
imul rdi, rcx
movzx eax, byte [rsi + 0x13]
xor rdi, rax
imul rdi, rcx
mov r9, qword [0x180188ec0]
lea rcx, [r9 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x1800a6166
cvtsi2ss xmm0, rcx
jmp 0x1800a617b
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rbx, qword [0x180188ee8]
xorps xmm2, xmm2
test rbx, rbx
js 0x1800a6191
cvtsi2ss xmm2, rbx
jmp 0x1800a61a9
mov rcx, rbx
shr rcx, 1
mov rax, rbx
and eax, 1
or rcx, rax
cvtsi2ss xmm2, rcx
addss xmm2, xmm2
movaps xmm1, xmm0
divss xmm1, xmm2
movss xmm3, dword [0x180188eb0]
comiss xmm1, xmm3
jbe 0x1800a622c
divss xmm0, xmm3
call fcn.1800cd2b4
xor ecx, ecx
movss xmm1, dword [0x180111338]
comiss xmm0, xmm1
jb 0x1800a61eb
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x1800a61eb
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x1800a621d
cmp rbx, 0x200
jae 0x1800a621a
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x1800a621d
mov rbx, rcx
mov rdx, rbx
call fcn.1800a6300
mov r9, qword [0x180188ec0]
mov rdx, rdi
and rdx, qword [0x180188ee0]
add rdx, rdx
mov r8, qword [0x180188ec8]
mov rax, qword [r8 + rdx*8 + 8]
mov rcx, qword [0x180188eb8]
cmp rax, rcx
je 0x1800a6271
mov r8, qword [r8 + rdx*8]
mov ecx, dword [rsi + 0x10]
cmp ecx, dword [rax + 0x10]
je 0x1800a626e
nop dword [rax]
cmp rax, r8
je 0x1800a62ba
mov rax, qword [rax + 8]
cmp ecx, dword [rax + 0x10]
jne 0x1800a6260
mov rcx, qword [rax]
mov qword [rsp + 0x28], 0
mov rdx, qword [rcx + 8]
inc r9
mov qword [0x180188ec0], r9
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
mov rax, qword [0x180188ec8]
and rdi, qword [0x180188ee0]
add rdi, rdi
mov r8, qword [rax + rdi*8]
cmp r8, qword [0x180188eb8]
jne 0x1800a62bf
mov qword [rax + rdi*8], rsi
jmp 0x1800a62d1
mov rcx, rax
jmp 0x1800a6271
cmp r8, rcx
jne 0x1800a62ca
mov qword [rax + rdi*8], rsi
jmp 0x1800a62d6
cmp qword [rax + rdi*8 + 8], rdx
jne 0x1800a62d6
mov qword [rax + rdi*8 + 8], rsi
mov qword [r14], rsi
mov rax, r14
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
lea rcx, str.unordered_map_set_too_long
call fcn.1800acea4
int3
Function at 0x1800a6300
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1800a64c3
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [0x180188eb8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [0x180188ec8]
call fcn.1800755d0
lea rax, [rdi - 1]
mov qword [0x180188ee0], rax
mov qword [0x180188ee8], rdi
lea rax, [0x180188eb0]
mov qword [rsp + 0x30], rax
mov rax, qword [0x180188eb8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1800a6484
movabs rsi, 0xcbf29ce484222325
movabs rdi, 0x100000001b3
nop word [rax + rax]
mov rcx, qword [rcx]
movzx r11d, byte [rax + 0x10]
xor r11, rsi
imul r11, rdi
movzx edx, byte [rax + 0x11]
xor r11, rdx
imul r11, rdi
movzx edx, byte [rax + 0x12]
xor r11, rdx
imul r11, rdi
movzx edx, byte [rax + 0x13]
xor r11, rdx
imul r11, rdi
and r11, qword [0x180188ee0]
shl r11, 4
add r11, qword [0x180188ec8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1800a6403
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x1800a6478
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x1800a6440
mov r10, qword [rdx]
cmp r10, rax
je 0x1800a643a
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x1800a6478
cmp r9, rdx
je 0x1800a6454
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x1800a649d
cmp r9, rdx
jne 0x1800a6445
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x1800a63b0
mov qword [rsp + 0x30], 0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x1800a6478
lea rcx, str.invalid_hash_bucket_count
call fcn.1800acea4
int3
Function at 0x1800cc710
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800cc738
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800cc738
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
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 processes

Disassembly:
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0xffffffffffffffff
jne 0x140001582
mov eax, 0xffffffff
jmp 0x140001622
lea rdx, [rbp - 0x60]
mov eax, 0
mov ecx, 0x26
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x60], 0x130
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32First
test eax, eax
setne al
test al, al
je 0x14000160a
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0x100]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x1400015ec
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x58]
jmp 0x140001622
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd8]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
je 0x14000160a
jmp 0x1400015b9
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0xfffffffd
add rsp, 0x168
pop rdi
pop rbp
ret
Function at 0x1400016bf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push rbp
sub rsp, 0x510
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x4a0], ecx
mov qword [rbp + 0x4a8], rdx
mov qword [rbp + 0x4b0], r8
mov dword [rbp + 0x4b8], r9d
mov eax, dword [rbp + 0x4a0]
mov ecx, eax
call sym.BuscarThread_unsigned_long_
mov qword [rbp + 0x488], rax
cmp qword [rbp + 0x488], 0
jne 0x140001712
mov eax, 1
jmp 0x140001873
mov edx, dword [rbp + 0x4b8]
mov rax, qword [rbp + 0x4a8]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1020
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x480], rax
cmp qword [rbp + 0x480], 0
jne 0x14000176f
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 2
jmp 0x140001873
mov r8d, dword [rbp + 0x4b8]
mov rcx, qword [rbp + 0x4b0]
mov rdx, qword [rbp + 0x480]
mov rax, qword [rbp + 0x4a8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x1400017f2
mov rdx, qword [rbp + 0x480]
mov rax, qword [rbp + 0x4a8]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 3
jmp 0x140001873
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SuspendThread]
call rax
mov dword [rbp - 0x20], 0x10000b
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
mov rax, qword [rbp + 0x480]
mov qword [rbp + 0xa8], rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0x488]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x510
pop rbp
ret

Function at 0x140001bd0
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 0x140001c40
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 0x140001d70
mov rax, qword [0x1400110b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001c8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001d13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001c70
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140001d92
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 0x140001d77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001d20
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 0x140001d0c
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 0x140001c97
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 0x140002250
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 0x1400022a4
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 0x14000229b
test r12, r12
je 0x14000229b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002280
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400024e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400024f0
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 0x14000253c
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 0x140002533
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000253e
add rax, 0x28
cmp rax, r9
jne 0x140002520
xor eax, eax
ret

Function at 0x140002540
Capabilities:
Parse pe header

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

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

Function at 0x140002660
Capabilities:
Parse pe header

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

Function at 0x1400026a0
Capabilities:
Parse pe header

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

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

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

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

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

Disassembly:
mov r11, qword [0x14000e5a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002802
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002810
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002802
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002802
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002802
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 0x14000285d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002870
add rdx, 0x28
cmp r10, rdx
jne 0x140002848
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000287f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000288f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002866
test ecx, ecx
jg 0x140002878
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x140003f00
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 0x140003f90
cmp qword [rax + 0x30], 0
jne 0x140003fb0
lea rbx, [0x14000d1a8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140003f60
cmp qword [rax + 0x30], 0
jne 0x140003f80
lea rdx, [0x14000d1a8]
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 0x140003f42
test rax, rax
jne 0x140003f80
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140003f50
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003f20
test rax, rax
jne 0x140003fb0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140003f2b