joyce8/EMBER2024-capa huggingface dataset:
Function at 0x536f20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x536fa5
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 0x536fe6
cmp dword [rsp + 0x2c], 0
je 0x536fca
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x537000
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00610120]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00610120], rsi
jne 0x536f80
mov byte [0x00610118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x536fdc
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x53704c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x536fcf
mov edi, dword [rsp + 0x28]
jmp 0x536fdc
mov edi, dword [rsi + 0x18]
jmp 0x536fda
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 rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
ud2
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.capacity_overflow
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 dbg.panic_fmt
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.capacity_overflow
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
ud2

Function at 0x5373a0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x30], rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x5373b9
dec ecx
jmp 0x5373c3
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.00573844
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x5373f1
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x5373f1
lock dec qword [rax]
jne 0x5373f1
mov rcx, qword [rdi + 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, rdi
call fcn.00573784
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x53740d
dec ecx
jmp 0x537417
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.00573844
Function at 0x537860
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x005760e0]
test ecx, ecx
je 0x537926
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x53788d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x537920
mov ecx, dword [0x005760e0]
test ecx, ecx
je 0x537948
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x537965
mov rsi, rax
test rax, rax
jne 0x53791a
movzx eax, byte [0x006101a4]
mov rcx, qword [0x00610110]
test rcx, rcx
jne 0x5378df
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x537980
mov rcx, rax
mov qword [0x00610110], rax
mov r8d, 0x10
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x537980
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x005760e0]
test ecx, ecx
je 0x537970
dec ecx
mov rdx, rsi
call fcn.00573844
mov word [rsi + 8], 1
add rsi, 9
jmp 0x537967
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x537880
jmp 0x53788d
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x5378ac
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x537912
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x5388b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x005760a0]
test ecx, ecx
je 0x5388dd
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x5388f6
cmp qword [rax + 8], 0
je 0x5388f6
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x5388cc
mov ecx, dword [0x005760a0]
test ecx, ecx
je 0x5389a1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x5389be
mov rsi, rax
test rax, rax
jne 0x538983
movzx eax, byte [0x006101a4]
mov rcx, qword [0x00610110]
test rcx, rcx
jne 0x538948
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x5389d6
mov rcx, rax
mov qword [0x00610110], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x5389d6
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x005760a0]
test ecx, ecx
je 0x5389c6
dec ecx
mov rdx, rsi
call fcn.00573844
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x538915
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x53897b
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x538a50
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x538a67
dec ecx
jmp 0x538a71
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.00573844
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, rdi
call fcn.00573784
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x538a97
dec ecx
jmp 0x538aa1
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.00573844
Function at 0x53ba00
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rax, r8
mov rdi, rcx
mov dword [rsp + 0x60], 0
mov word [rsp + 0x64], 0
mov dword [rsp + 0x40], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], 7
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rsi, rdx
test rax, rax
je 0x53bac3
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x53bab7
test rax, rax
je 0x53bab7
mov rax, rsi
dec rsi
mov rbx, qword [rax - 1]
mov r14, qword [rax + 7]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x53baa6
cmp qword [r14 + 0x10], 0x11
jb 0x53ba95
mov rbx, qword [rbx - 8]
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, rbx
call fcn.00573784
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, rsi
call fcn.00573784
mov qword [rdi], 0
jmp 0x53bc37
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x53bb55
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x53bb36
test rcx, rcx
je 0x53bb36
lea rbx, [rax - 1]
mov r14, qword [rax - 1]
mov r15, qword [rax + 7]
mov rcx, r14
call qword [r15]
cmp qword [r15 + 8], 0
je 0x53bb25
cmp qword [r15 + 0x10], 0x11
jb 0x53bb14
mov r14, qword [r14 - 8]
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, r14
call fcn.00573784
mov rcx, qword [0x00610110]
xor edx, edx
mov r8, rbx
call fcn.00573784
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.kernel32.dll_CloseHandle
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x53bba7
mov qword [rsp + 0x40], 0
call sub.kernel32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rsi
mov r8, rax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x53bc23
mov rbx, qword [rsp + 0x40]
jmp 0x53bba9
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.kernel32.dll_CreateFileMappingA
test rax, rax
je 0x53bc12
mov r14, rax
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.kernel32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.kernel32.dll_CloseHandle
test r15, r15
je 0x53bc12
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x53bc2f
mov qword [rdi], 0
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
jmp 0x53bc2f
call sub.kernel32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x55ab30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x55ab66
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [sym.__std::io::error::Error_as_core::fmt::Display_::fmt::h777c0ce01dc2e028]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call dbg.panic_fmt
ud2
Function at 0x55fcf0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x00576100]
test ecx, ecx
je 0x55fd1d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x55fd36
cmp qword [rax + 8], 0
je 0x55fd36
add rax, 0x10
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x55fd0c
mov ecx, dword [0x00576100]
test ecx, ecx
je 0x55fe1d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x55fe3a
mov rsi, rax
test rax, rax
jne 0x55fdcb
movzx eax, byte [0x006101a4]
mov rcx, qword [0x00610110]
test rcx, rcx
jne 0x55fd88
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x55fe55
mov rcx, rax
mov qword [0x00610110], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x55fe55
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00576100]
test ecx, ecx
je 0x55fe42
dec ecx
mov rdx, rsi
call fcn.00573844
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x55fdfb
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x55fe03
call dbg.fallback_rng
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x55fd55
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x55fdc3
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x56c0a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
mov rsi, rcx
call sub.kernel32.dll_GetCommandLineW
test rax, rax
je 0x56c0e1
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
lea rcx, [rdx + 1]
cmp word [rax + rdx*2 + 2], 0
mov rdx, rcx
jne 0x56c0d0
jmp 0x56c0e1
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xe8], rcx
mov byte [rsp + 0x143], 2
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0xe0]
call sym.__wild::argsiter::ArgsOs_as_core::iter::traits::iterator::Iterator_::next::hb1dd0dc8b5dbbdde
cmp byte [rsp + 0x78], 2
jne 0x56c132
mov qword [rsi], 8
xorps xmm0, xmm0
movups xmmword [rsi + 8], xmm0
lea rcx, [rsp + 0xe0]
call sym.core::ptr::drop_in_place_wild::argsiter::ArgsOs_::hedbf9039873f7c13
jmp 0x56c2c6
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [0x006101a4]
mov rcx, qword [0x00610110]
test rcx, rcx
jne 0x56c171
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x56c2dd
mov rcx, rax
mov qword [0x00610110], rax
mov r8d, pe_nt_image_headers64
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x56c2dd
mov rdi, rax
mov qword [rsp + 0x38], rsi
mov qword [rax], r14
mov qword [rax + 8], rbx
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 4
mov qword [rsp + 0x30], 1
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xc0], rax
movups xmm0, xmmword [rsp + 0x130]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rsp + 0x120]
movaps xmmword [rsp + 0xa0], xmm0
movups xmm0, xmmword [rsp + 0xe0]
movups xmm1, xmmword [rsp + 0xf0]
movups xmm2, xmmword [rsp + 0x100]
movups xmm3, xmmword [rsp + 0x110]
movaps xmmword [rsp + 0x90], xmm3
movaps xmmword [rsp + 0x80], xmm2
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov ebx, 1
mov esi, 0x30
lea r12, [rsp + 0x50]
lea r14, [rsp + 0x40]
lea r15, [rsp + 0x60]
jmp 0x56c267
mov rdi, qword [rsp + 0x20]
mov qword [rdi + rsi - 0x10], rbp
mov qword [rdi + rsi - 8], r13
movaps xmm0, xmmword [rsp + 0xd0]
movups xmmword [rdi + rsi], xmm0
inc rbx
mov qword [rsp + 0x30], rbx
add rsi, 0x20
mov rcx, r14
mov rdx, r15
call sym.__wild::argsiter::ArgsOs_as_core::iter::traits::iterator::Iterator_::next::hb1dd0dc8b5dbbdde
cmp byte [rsp + 0x58], 2
je 0x56c2a6
mov rbp, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xd0], xmm0
cmp rbx, qword [rsp + 0x28]
jne 0x56c245
lea rcx, [rsp + 0x20]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h4e7d1b4b93c100b8
jmp 0x56c240
lea rcx, [rsp + 0x60]
call sym.core::ptr::drop_in_place_wild::argsiter::ArgsOs_::hedbf9039873f7c13
mov rax, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov edx, pe_nt_image_headers64
call dbg.handle_alloc_error
ud2
Function at 0x5744b0
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 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call sym.__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 0x574520
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x006107b4]
mov r12, rcx
test ebx, ebx
jle 0x574640
mov rax, qword [0x006107b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x57456c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x5745ef
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x574550
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x574662
mov rax, qword [0x006107b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x006107b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x574647
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x5745e8
sub eax, 4
and eax, 0xfffffffb
jne 0x5745f8
add dword [0x006107b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rbx, qword [0x006107b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x5745e8
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 + rax]
xor ebx, ebx
jmp 0x574577
mov rax, qword [0x006107b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x574df0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00610aa0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00610a80]
test rbx, rbx
je 0x574e44
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 0x574e3b
test r12, r12
je 0x574e3b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x574e20
lea rcx, [0x00610aa0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x575060
Capabilities:
Parse pe header

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

Function at 0x575090
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 0x5750dc
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 0x5750d3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x5750de
add rax, 0x28
cmp rax, r9
jne 0x5750c0
xor eax, eax
ret

Function at 0x5750e0
Capabilities:
Parse pe header

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

Disassembly:
mov rdx, qword [0x005f78b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x5751a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x5751a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x5751a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x5751f5
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 0x5751ec
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x5751a0
add rax, 0x28
cmp rax, r9
jne 0x5751d8
xor eax, eax
ret

Function at 0x575200
Capabilities:
Parse pe header

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

Function at 0x575240
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x005f78b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x575260
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x575268
ret
cmp word [rdx + 0x18], 0x20b
jne 0x575260
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x5752a8
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x57529f
test rcx, rcx
je 0x575260
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x575290
xor eax, eax
ret
Function at 0x5752b0
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x005f78b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x5753a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x5753b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x5753a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x5753a2
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x5753a2
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 0x5753fd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x575410
add rdx, 0x28
cmp r10, rdx
jne 0x5753e8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x57541f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x57542f
mov edx, dword [rax + 0xc]
test edx, edx
je 0x575406
test ecx, ecx
jg 0x575418
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret