joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x140012fbb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140012fbb
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140012fd6
cmp eax, 0x42
jne 0x140012fbb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140013086
cmp byte [r8 + r11], 0x5f
jne 0x140013086
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1400130ee
mov rcx, rsi
xor edx, edx
call fcn.140011c60
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140011c60
test al, al
jne 0x140013181
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013012
lea rdx, [0x14013a33c]
mov r8d, 1
call fcn.140006410
test al, al
jne 0x140013181
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140012fca
xor r14d, r14d
lea rbx, [0x14013a6d9]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140013044
cmp byte [rax + rcx], 0x45
je 0x1400131a3
sub r14, 1
jb 0x140013069
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013069
mov r8d, 2
mov rdx, rbx
call fcn.140006410
test al, al
jne 0x140013181
mov rcx, rsi
call fcn.1400123e0
test al, al
jne 0x140013181
mov rax, qword [rsi]
test rax, rax
jne 0x140013030
jmp 0x140012fca
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140013148
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x1400130e2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1400130cc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1400130bb
add dl, 0xa9
jmp 0x1400130ca
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140013148
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140013148
movzx edx, bl
add rax, rdx
jae 0x140013090
jmp 0x140013148
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140013148
cmp rax, rcx
jae 0x140013145
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001319b
cmp qword [rsi + 0x20], 0
je 0x140013194
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140012f60
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140012fcc
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140013189
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim:_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x14013a6b8]
test r9b, r9b
cmovne rdx, rax
call fcn.140006410
test al, al
je 0x140013189
mov dil, 2
jmp 0x140012fca
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140012fca
mov dil, 1
xor r9d, r9d
jmp 0x14001314a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140012fca
Function at 0x14002b460
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x14002b4e0
jmp 0x14002b4cf
jae 0x14002b585
cmp r8, 0x201
jae 0x14002b4e0
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x14002b527
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x14002b507
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.140019bf0
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x14002b54c
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002b5e0
mov r8d, ebp
cmp r13, r8
jne 0x14002b4c0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002b60a
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x14002b4cf
jmp 0x14002b4e0
cmp r15, r8
jb 0x14002b624
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.14002c5b0
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rsi, qword [rsp + 0x28]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14002b5c9
mov rcx, qword [0x1401440e0]
xor edx, edx
mov r8, qword [rsp + 0x20]
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rdi, rdi
jne 0x14002b5b6
jmp 0x14002b5c9
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140005250
jmp 0x14002b639
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140007380
ud2
Function at 0x14002b670
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.140031d10
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x14002b6bf
lea rcx, [rsp + 0xb0]
call fcn.140015e50
mov qword [rsi], rdi
jmp 0x14002b8a3
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x14002b750
jmp 0x14002b72f
jae 0x14002b7f7
cmp r8, 0x201
jae 0x14002b750
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x14002b797
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14002b777
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.140019bf0
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.kernel32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x14002b7be
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x14002b836
mov r8d, r15d
cmp r12, r8
jne 0x14002b720
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x14002b8d5
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14002b72f
jmp 0x14002b750
cmp rdi, r8
jb 0x14002b8ef
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.14002c5b0
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x14002b857
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x14002b874
mov rcx, qword [0x1401440e0]
xor edx, edx
mov r8, qword [rsp + 0x28]
call sub.kernel32.dll_HeapFree
cmp qword [rsp + 0x60], rdi
jne 0x14002b8ba
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.140015e50
cmp qword [rsp + 0x40], 0
je 0x14002b8a3
mov rcx, qword [0x1401440e0]
xor edx, edx
mov r8, qword [rsp + 0x30]
call sub.kernel32.dll_HeapFree
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14002b890
jmp 0x14002b8a3
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140005250
jmp 0x14002b904
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140007380
ud2
Function at 0x140031990
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140031a15
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140031a56
cmp dword [rsp + 0x2c], 0
je 0x140031a3a
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140031a7c
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1401440f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1401440f0], rsi
jne 0x1400319f0
mov byte [0x1401440e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140031a4c
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140031ac6
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140031a3f
mov edi, dword [rsp + 0x28]
jmp 0x140031a4c
mov edi, dword [rsi + 0x18]
jmp 0x140031a4a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rdx, [0x14013dde8]
lea r9, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0x30]
call fcn.1400183a0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1400051a0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140018350
int3
Function at 0x140039450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003c080]
test ecx, ecx
je 0x140039510
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140039480
cmp qword [rax + 8], 0
je 0x140039480
add rax, 0x10
jmp 0x14003950a
mov ecx, dword [0x14003c080]
test ecx, ecx
je 0x140039523
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140039508
mov rsi, rax
test rax, rax
jne 0x1400394ee
mov rax, qword [0x14013e808]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call fcn.14002eb90
test rax, rax
je 0x140039546
mov rsi, rax
lea rax, [0x14003c068]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003c080]
test ecx, ecx
je 0x140039536
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x14003950a
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14003c068]
call fcn.140031990
mov ecx, eax
jmp 0x140039465
lea rcx, [0x14003c068]
call fcn.140031990
mov ecx, eax
jmp 0x140039490
lea rcx, [0x14003c068]
call fcn.140031990
mov ecx, eax
jmp 0x1400394e6
mov ecx, 8
mov edx, 0x20
call fcn.140004000
int3

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

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x14003964d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x14003958e
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14003963c
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x140039660
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140039642
mov rsi, rax
test rax, rax
jne 0x140039600
mov rax, qword [0x14013e808]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14002eb90
test rax, rax
je 0x140039686
mov rsi, rax
lea rax, [0x14003c088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003c0a0]
test ecx, ecx
je 0x140039673
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
test rcx, rcx
je 0x14003963c
test rax, rax
je 0x14003963c
lock dec qword [rax]
jne 0x14003963c
lea rcx, [rsp + 0x28]
call fcn.1400190d0
add rsi, 0x10
jmp 0x140039644
xor esi, esi
mov rax, rsi
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14003c088]
call fcn.140031990
mov ecx, eax
jmp 0x140039575
lea rcx, [0x14003c088]
call fcn.140031990
mov ecx, eax
jmp 0x14003959e
lea rcx, [0x14003c088]
call fcn.140031990
mov ecx, eax
jmp 0x1400395f8
mov ecx, 8
mov edx, 0x18
call fcn.140004000
int3
Function at 0x1400396a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14003c0e0]
test ecx, ecx
je 0x14003978d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400396ce
mov rsi, rax
cmp qword [rax + 8], 0
jne 0x14003977c
mov ecx, dword [0x14003c0e0]
test ecx, ecx
je 0x1400397a0
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140039782
mov rsi, rax
test rax, rax
jne 0x140039740
mov rax, qword [0x14013e808]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.14002eb90
test rax, rax
je 0x1400397c6
mov rsi, rax
lea rax, [0x14003c0c8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003c0e0]
test ecx, ecx
je 0x1400397b3
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
test rcx, rcx
je 0x14003977c
test rax, rax
je 0x14003977c
lock dec qword [rax]
jne 0x14003977c
lea rcx, [rsp + 0x28]
call fcn.140019130
add rsi, 0x10
jmp 0x140039784
xor esi, esi
mov rax, rsi
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14003c0c8]
call fcn.140031990
mov ecx, eax
jmp 0x1400396b5
lea rcx, [0x14003c0c8]
call fcn.140031990
mov ecx, eax
jmp 0x1400396de
lea rcx, [0x14003c0c8]
call fcn.140031990
mov ecx, eax
jmp 0x140039738
mov ecx, 8
mov edx, 0x18
call fcn.140004000
int3

Function at 0x14003a380
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 fcn.14003b140
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14003b140
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14003a3f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140144184]
mov rbx, rcx
test esi, esi
jle 0x14003a520
mov rax, qword [0x140144188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003a43b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003a4c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003a420
mov rcx, rbx
call fcn.14003ae60
mov rdi, rax
test rax, rax
je 0x14003a542
mov rax, qword [0x140144188]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14003afa0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140144188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003a527
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003a4be
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14003a4d0
add dword [0x140144184], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140144188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x14003a4be
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14003a380
nop dword [rax]
xor esi, esi
jmp 0x14003a448
mov rax, qword [0x140144188]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14003a380
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14003a380
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14003aad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401441e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401441c0]
test rbx, rbx
je 0x14003ab2c
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 rsi, rsi
je 0x14003ab23
test eax, eax
jne 0x14003ab23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003ab08
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 0x14003ae60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14013e720]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003ae80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003ae88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003ae80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003aedd
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]
mov rdx, r8
cmp rcx, r8
jb 0x14003aed4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003ae80
add rax, 0x28
cmp rax, r9
jne 0x14003aec0
xor eax, eax
ret

Function at 0x14003aee0
Capabilities:
Parse pe header

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

Function at 0x14003afa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14013e720]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003afbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003afc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001f40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400020a5
lea rsi, str.GTAProcess
nop dword [rax]
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140003410
mov r9, rax
cmp qword [rax + 0x18], 7
mov rcx, qword [rax + 0x10]
jbe 0x140001fc0
mov r9, qword [rax]
cmp rcx, 0xa
jb 0x140002044
lea r10, [rcx - 9]
mov rbx, r9
lea r10, [r9 + r10*2]
nop dword [rax]
nop word [rax + rax]
mov rax, r10
mov ecx, 0
sub rax, rbx
sar rax, 1
je 0x14000200c
cmp word [rbx], 0x47
je 0x140002009
cmp rax, 1
je 0x14000200c
add rbx, 2
dec rax
cmp word [rbx], 0x47
jne 0x140001ff6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x140002044
mov r8, rbx
mov edx, 0xa
sub r8, rsi
mov rcx, rsi
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14000203e
add rcx, 2
sub rdx, 1
jne 0x140002022
sub rbx, r9
sar rbx, 1
jmp 0x14000204b
add rbx, 2
jmp 0x140001fe0
mov rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140002089
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002084
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400020d5
call fcn.140003f80
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x1400020dc
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001fa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140003f60
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x1400020b0
Function at 0x140002d90
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002ded
lea rbx, [0x14005ad80]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002dd4
cmp r10, 2
jb 0x140002dd4
cmp byte [r9], r8b
jne 0x140002dd4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002db0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002e2f
lea rbx, [0x14005ad80]
cmp r8b, 0x23
jne 0x140002e13
cmp byte [r9], r8b
jne 0x140002e13
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002e00
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002ff0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x14000301f
mov r8d, 0x645
lea rdx, str.C:_binary_scem_acimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000302b
mov qword [rdi], 0
lea rdx, [0x140058c28]
mov rcx, rbx
call fcn.140002e40
mov rbx, rax
test rax, rax
jne 0x14000304d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140003124
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003124
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140003124
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003124
cmp rsi, 0xffffffffffffffff
je 0x140003124
mov rax, qword [0x14006aad0]
test rax, rax
je 0x1400030c1
inc dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140003124
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140003111
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14006aad0]
test rax, rax
je 0x140003106
dec dword [rax + 0x3b0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000312d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x14000311f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x14000312f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret