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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
call sym.nimDecRefIsLastCyclicDyn_5
test al, al
je 0x1400182c7
mov rcx, qword [rbx + 0x30]
call sym.nimDestroyAndDispose
mov rcx, qword [rbx + 0x38]
call sym.nimDecRefIsLastCyclicDyn_5
test al, al
je 0x1400182dd
mov rcx, qword [rbx + 0x38]
call sym.nimDestroyAndDispose
mov rcx, qword [rbx + 0x40]
call sym.nimDecRefIsLastCyclicDyn_5
test al, al
je 0x1400182f8
mov rcx, qword [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x20
pop rbx
ret

Function at 0x140019bb7
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140019bcb
test byte [rcx + 7], 0x40
jne 0x140019bcb
jmp sym.deallocShared
ret

Function at 0x14001a1d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400439f0]
call dbg.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x28
jmp sym.eqcopy___stdZtypedthreads_u171

Function at 0x14001c235
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
call sym.nimDecRefIsLastCyclicDyn_6
test al, al
je 0x14001c253
mov rcx, qword [rbx + 8]
call sym.nimDestroyAndDispose
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c267
test byte [rcx + 7], 0x40
jne 0x14001c267
call sym.deallocShared
movups xmm0, xmmword [rbx + 0x28]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call sym.eqdestroy___stdZassertions_u91
mov rcx, qword [rbx + 0x38]
call sym.nimDecRefIsLastCyclicDyn_6
test al, al
je 0x14001c295
mov rcx, qword [rbx + 0x38]
add rsp, 0x30
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x30
pop rbx
ret

Function at 0x14001cdfb
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x58
movups xmm0, xmmword [rdx]
lea r8, [rsp + 0x20]
mov rax, rcx
movaps xmmword [rsp + 0x20], xmm0
mov rdx, qword [rax + 0x100]
lea rcx, [rsp + 0x30]
call sym.formatError__mnpkgZinterpreter_u334
mov rcx, qword [0x140043a00]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
call dbg.__emutls_get_address
cmp byte [rax], 0
jne 0x14001ce5f
mov ecx, 2
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, [rsp + 0x40]
mov rcx, rax
call sym.writeLine__mnpkgZinterpreter_u417.constprop.0
test rbx, rbx
je 0x14001ce78
test byte [rbx + 7], 0x40
jne 0x14001ce78
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
jmp sym.deallocShared
add rsp, 0x58
pop rbx
pop rsi
ret

Function at 0x14001cfe0
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
mov rax, qword [rdx]
mov rsi, qword [rdx + 8]
test rax, rax
mov r8, rcx
jle 0x14001d03f
mov rcx, rax
add rcx, 1
jo 0x14001d01b
test rcx, rcx
jns 0x14001d022
mov ecx, 1
xor edx, edx
movabs r8, 0x7fffffffffffffff
shl rcx, 0x3f
pop rsi
pop rdi
jmp sym.raiseRangeErrorI
pop rsi
pop rdi
jmp sym.raiseOverflow
mov rdx, qword [r8]
add rsi, 8
mov r9, qword [r8 + 8]
lea rdx, [r9 + rdx + 8]
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
add rax, qword [r8]
jo 0x14001d01b
mov qword [r8], rax
pop rsi
pop rdi
ret
Function at 0x14001df0a
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
call sym.nimDecRefIsLastCyclicDyn_7
test al, al
je 0x14001df2d
mov rcx, qword [rbx + 8]
add rsp, 0x20
pop rbx
jmp sym.nimDestroyAndDispose
add rsp, 0x20
pop rbx
ret

Function at 0x14001df33
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x28], rcx
call sym.nimDecRefIsLastCyclicDyn_7
test al, al
je 0x14001df53
mov rcx, qword [rsp + 0x28]
add rsp, 0x38
jmp sym.nimDestroyAndDispose
add rsp, 0x38
ret

Function at 0x14001e84f
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
mov rax, qword [rdx]
mov rsi, qword [rdx + 8]
test rax, rax
mov r8, rcx
jle 0x14001e8ae
mov rcx, rax
add rcx, 1
jo 0x14001e88a
test rcx, rcx
jns 0x14001e891
mov ecx, 1
xor edx, edx
movabs r8, 0x7fffffffffffffff
shl rcx, 0x3f
pop rsi
pop rdi
jmp sym.raiseRangeErrorI
pop rsi
pop rdi
jmp sym.raiseOverflow
mov rdx, qword [r8]
add rsi, 8
mov r9, qword [r8 + 8]
lea rdx, [r9 + rdx + 8]
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
add rax, qword [r8]
jo 0x14001e88a
mov qword [r8], rax
pop rsi
pop rdi
ret

Function at 0x140026e22
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
lea r8, [0x1400410b0]
mov r9d, 1
lea rdi, [rsp + 0x40]
mov rdx, rcx
mov rcx, rdi
call sym.expect__mnpkgZutils_u169
mov rcx, qword [0x140043a00]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
call dbg.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x140026eed
test rsi, rsi
jg 0x140026e7d
lea rdx, [rsi - 1]
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x140026eed
mov rax, qword [rbp + 8]
movzx edx, byte [rax + 0x40]
test dl, 7
je 0x140026ec6
lea r12, [rsp + 0x30]
mov rcx, r12
call sym.dollar___mnpkgZparser_u52
mov rdx, qword [rsp + 0x38]
mov rcx, r12
mov rax, qword [rsp + 0x30]
movaps xmm0, xmmword [0x140041f30]
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x20]
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x20], rax
call sym.raiseFieldErrorStr
jmp 0x140026eed
mov rcx, qword [rax + 0x48]
cmp rcx, 0xffffffff80000000
jl 0x140026ee3
cmp rcx, 0x7fffffff
jle 0x140026ee8
mov ecx, 0x7fffffff
jmp 0x140026ee8
mov ecx, 0x80000000
call sym.exit
mov r12b, byte [rbx]
mov rcx, rdi
mov byte [rbx], 0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rbp
call sym.eqdestroy___mnpkgZparser_u510
cmp byte [rbx], 0
jne 0x140026f0d
mov byte [rbx], r12b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140029561
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x38
movups xmm0, xmmword [rcx + 0x38]
lea rsi, [rsp + 0x20]
mov rbx, rcx
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rsi
call sym.eqdestroy___system_u3732
movups xmm1, xmmword [rbx + 0x48]
mov rcx, rsi
movaps xmmword [rsp + 0x20], xmm1
call sym.eqdestroy___system_u3732
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x1400295a5
test byte [rcx + 7], 0x40
jne 0x1400295a5
call sym.deallocShared
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400295c2
test byte [rcx + 7], 0x40
jne 0x1400295c2
add rsp, 0x38
pop rbx
pop rsi
jmp sym.deallocShared
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x1400295cb
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
mov rbx, qword [rsp + 0xa0]
mov rbp, qword [rcx]
mov r12, qword [rcx + 8]
mov ecx, 0x20
mov r10, qword [r8]
mov rsi, rdx
mov r11, qword [r8 + 8]
mov r13d, r9d
lea rdx, [rbx + 8]
mov rdi, rdx
rep stosd dword [rdi], eax
lea rax, sym.rttiDestroy__pureZparseopt_u426
mov ecx, 8
mov qword [rbx], rax
lea rax, [rbx + 0x12]
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
lea rsi, [rsp + 0x30]
mov qword [rsp + 0x30], r10
lea rcx, [rbx + 0x38]
mov rdx, rsi
mov qword [rsp + 0x38], r11
call sym.eqsink___system_u3741
test rbp, rbp
mov byte [rbx + 0x11], r13b
jne 0x140029660
call sym.nosparamCount
mov rcx, qword [0x140043a00]
mov rdi, rax
call dbg.__emutls_get_address
cmp byte [rax], 0
mov rbp, rax
je 0x1400296d5
jmp 0x1400297d7
jns 0x140029673
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rbp
jmp 0x1400296e9
lea rdi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rbp
call sym.newSeq__stdZsyncio_u711
lea rcx, [rbx + 0x48]
mov rdx, rsi
xor esi, esi
call sym.eqsink___system_u3741
mov rdx, qword [rbx + 0x48]
cmp rdx, rsi
jg 0x1400296a5
dec rdx
mov rcx, rsi
jmp 0x14002978c
mov rdx, qword [rbx + 0x50]
mov rax, rsi
inc rsi
shl rax, 4
movups xmm0, xmmword [rax + r12 + 8]
lea rcx, [rdx + rax + 8]
mov rdx, rdi
movaps xmmword [rsp + 0x20], xmm0
call sym.eqcopy___stdZassertions_u30
cmp rbp, rsi
jne 0x140029691
jmp 0x14002979d
test rdi, rdi
jns 0x1400296fa
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.raiseRangeErrorI
mov rdx, rdi
mov rcx, rsi
call sym.newSeq__stdZsyncio_u711
lea rcx, [rbx + 0x48]
mov rdx, rsi
call sym.eqsink___system_u3741
call sym.nosparamCount
cmp byte [rbp], 0
mov r12, rax
jne 0x1400297d7
lea r13, [rsp + 0x20]
mov esi, 1
cmp rsi, r12
jg 0x14002979d
mov rdi, rsi
sub rdi, 1
jo 0x140029775
test rdi, rdi
mov rdx, qword [rbx + 0x48]
js 0x140029786
cmp rdx, rdi
jle 0x140029786
mov rdx, rsi
mov rcx, r13
call sym.nosparamStr
cmp byte [rbp], 0
jne 0x1400297d7
mov rax, qword [rbx + 0x50]
shl rdi, 4
mov rdx, r13
lea rcx, [rax + rdi + 8]
call sym.eqsink___stdZassertions_u36
add rsi, 1
jno 0x14002972d
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.raiseOverflow
dec rdx
mov rcx, rdi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.raiseIndexError2
movaps xmm1, xmmword [0x140042320]
lea rsi, [rsp + 0x20]
mov byte [rbx + 0x60], 0
lea rcx, [rbx + 0x68]
mov rdx, rsi
movaps xmmword [rsp + 0x20], xmm1
call sym.eqsink___stdZassertions_u36
movaps xmm2, xmmword [0x140042320]
lea rcx, [rbx + 0x78]
mov rdx, rsi
movaps xmmword [rsp + 0x20], xmm2
call sym.eqsink___stdZassertions_u36
nop
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x14002a9b4
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
mov rax, qword [rdx]
mov rsi, qword [rdx + 8]
test rax, rax
mov r8, rcx
jle 0x14002aa13
mov rcx, rax
add rcx, 1
jo 0x14002a9ef
test rcx, rcx
jns 0x14002a9f6
mov ecx, 1
xor edx, edx
movabs r8, 0x7fffffffffffffff
shl rcx, 0x3f
pop rsi
pop rdi
jmp sym.raiseRangeErrorI
pop rsi
pop rdi
jmp sym.raiseOverflow
mov rdx, qword [r8]
add rsi, 8
mov r9, qword [r8 + 8]
lea rdx, [r9 + rdx + 8]
mov rdi, rdx
rep movsb byte [rdi], byte [rsi]
add rax, qword [r8]
jo 0x14002a9ef
mov qword [r8], rax
pop rsi
pop rdi
ret

Function at 0x14002aa16
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1400439f0]
call dbg.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x28
jmp sym.eqcopy___stdZtypedthreads_u171
Function at 0x14002bd78
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatsstdatsexitprocsdotnim_Init000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatsstdatssynciodotnim_Init000
call sym.atmCatcatsUsersatsrunneradminatsdotchoosenimatstoolchainsatsnimminus2dot0dot0atslibatswindowsatswinleandotnim_Init000
call sym.atmmnpkgatsinterpreterdotnim_Init000
nop
add rsp, 0x28
jmp sym.atmmnpkgatsmetadotnim_Init000
Function at 0x14002c4f1
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sym.PreMain
nop
add rsp, 0x28
jmp sym.NimMainModule

Function at 0x14002c7d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14002c840
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14004f4a4]
test esi, esi
mov rbx, rcx
jle 0x14002c970
mov rax, qword [0x14004f4a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002c88b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14002c915
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14002c870
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x14002c992
mov rax, qword [0x14004f4a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14004f4a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002c977
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14002c90e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14002c920
add dword [0x14004f4a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14004f4a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002c90e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14002c898
mov rax, qword [0x14004f4a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14002cf00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004f500]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004f4e0]
test rbx, rbx
je 0x14002cf5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14002cf53
test rsi, rsi
je 0x14002cf53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002cf38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14002d170
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14002d188
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14002d190
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14002d1a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14002d1ed
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x14002d1e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14002d1ef
add rax, 0x28
cmp rax, r9
jne 0x14002d1d0
xor eax, eax
ret

Function at 0x14002d1f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14002d280
mov rdx, qword [0x140043990]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14002d26e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14002d26e
cmp word [rax + 0x18], 0x20b
jne 0x14002d26e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14002d280
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14002d259
add rbx, 0x28
cmp rbx, rdi
je 0x14002d280
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14002d250
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140043990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002d2b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002d2b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002d2b0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14002d30d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14002d304
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14002d2b0
add rax, 0x28
cmp rax, r9
jne 0x14002d2f0
xor eax, eax
ret
Function at 0x14002d310
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043990]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14002d32f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14002d338
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14002d32f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14002d350
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140043990]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14002d370
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14002d378
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14002d370
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x14002d3c0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14002d3b7
test rcx, rcx
je 0x14002d370
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14002d3a8
xor eax, eax
ret

Function at 0x14002d3d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140043990]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14002d3ef
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14002d3f8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140043990]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002d430
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002d438
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002d430
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x14002d430
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x14002d484
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14002d490
add rdx, 0x28
cmp r9, rdx
jne 0x14002d470
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140043990]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14002d4c2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14002d4d0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002d4c2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14002d4c2
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x14002d4c2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x14002d525
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14002d538
add rdx, 0x28
cmp rdx, r10
jne 0x14002d510
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14002d547
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14002d557
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14002d52e
test ecx, ecx
jg 0x14002d540
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140036a90
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14003cd68], eax
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x140036ab0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140036bba
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x140036b92
add rax, 1
cmp rax, 0x6b
je 0x140036baf
cmp byte [rcx + rax], 0
jne 0x140036b88
cmp eax, 0x6a
movsxd rdx, eax
je 0x140036baf
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x140036ba3

Function at 0x140036f30
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400500f0], 1
je 0x140036fa8
lea rdi, [0x1400500f0]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1400500f0]
test esi, esi
jne 0x140036fb8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x14003cd68], eax
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x1400500f0], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x140036fa8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x140036f88
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x140036f88
Function at 0x140036fe0
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x1400370f8
test rax, rax
je 0x1400370f8
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x140037106
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x14003cd68]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14003710c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
jmp sym.__pthread_self_lite.part.0.cold

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

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x14003cd68]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037140
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0