joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140188970
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401ec1f8]
test ecx, ecx
je 0x140188a86
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1401889a2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140188a80
mov ecx, dword [0x1401ec1f8]
test ecx, ecx
je 0x140188aa8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140188ac5
mov rdi, rax
test rax, rax
jne 0x140188a2c
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsp + 0x20], rax
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140188ae4
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1401ec1f8]
test ecx, ecx
je 0x140188ad1
dec ecx
mov rdx, rdi
call fcn.1401e94ec
test rsi, rsi
je 0x140188a46
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140188a48
mov rax, qword [rsi + 8]
jmp 0x140188a48
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140188a80
test rcx, rcx
je 0x140188a80
lock dec qword [rcx]
jne 0x140188a80
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140188ac7
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140188994
jmp 0x1401889a2
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1401889c1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
jmp 0x140188a24
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140188b10
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401ec218]
test ecx, ecx
je 0x140188b43
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140188b5c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x140188b5c
add rcx, 0x10
jmp 0x140188c59
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140188b30
mov ecx, dword [0x1401ec218]
test ecx, ecx
je 0x140188c3a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140188c57
mov rdi, rax
test rax, rax
jne 0x140188bd2
mov rax, qword [str.1__]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140188c76
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401ec218]
test ecx, ecx
je 0x140188c63
dec ecx
mov rdx, rdi
call fcn.1401e94ec
test rsi, rsi
je 0x140188bef
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x140188c24
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 0x140188c1f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140188c24
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x140188c59
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140188b7b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
jmp 0x140188bca
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1401d0370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401d03ea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401d03e0
cmp r11, r10
ja 0x1401d0483
cmp r10, rdx
ja 0x1401d0497
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401d03e2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401d03c0
jmp 0x1401d0457
ja 0x1401d03ea
mov r11, r10
cmp rax, r8
jne 0x1401d0392
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401d045b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1401d0430
mov r8, r10
sub ecx, r9d
jns 0x1401d044e
jmp 0x1401d045d
cmp r10, rdx
je 0x1401d0469
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1401d045d
xor al, 1
cmp r8, rdx
jne 0x1401d0410
jmp 0x1401d045d
xor eax, eax
jmp 0x1401d045d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14022e0c1]
lea r8, [0x140230430]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x140230448]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x140230448]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1401eae80
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 0x1401eaef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1402662c4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1401eb0a0
mov rax, qword [0x1402662c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1401eaf3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1401eafc7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1401eaf20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1401eb0fd
mov rax, qword [0x1402662c8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402662c8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401eb0e2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401eafc0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1401eb050
add dword [0x1402662c4], 1
cmp ebx, 8
jae 0x1401eaff8
test bl, 4
jne 0x1401eb0b0
test ebx, ebx
je 0x1401eafe9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1401eb0d0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1401eafe9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1401eb02a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
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 rdi, qword [0x1402662c8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401eafc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1401eaf47
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1401eafe9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1401eafe9
mov rax, qword [0x1402662c8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1401eb610
Capabilities:
Get thread local storage value

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

Function at 0x1401eb890
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1401eb8a0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1401eb8b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1401eb8f5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1401eb8ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1401eb8f7
add rax, 0x28
cmp rax, r9
jne 0x1401eb8d8
xor eax, eax
ret

Function at 0x1401eb9a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x14023cb00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1401eba19
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1401eba19
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1401eba16
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1401eba0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1401eba19
add r8, 0x28
cmp r8, r9
jne 0x1401eb9f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1401ebb00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14023cb00]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1401ebb6f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1401ebb6f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1401ebb6d
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 0x1401ebb64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1401ebb78
add rax, 0x28
cmp rax, r9
jne 0x1401ebb50
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1401ebb90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x14023cb00]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1401ebc08
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1401ebc08
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1401ebc08
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1401ebc08
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1401ebbfc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1401ebc10
add rdx, 0x28
cmp rdx, r10
jne 0x1401ebbe8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1401ebc20
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1401ebc2e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1401ebc05
test r8d, r8d
jg 0x1401ebc18
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x14000234c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rcx, [rsp + 0x58]
call fcn.140001a44
lea rcx, [rsp + 0x58]
call fcn.140002b90
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0x10], 0
jne 0x1400023c4
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.140001704
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140002ed4
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400023b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x58]
call fcn.1400041b0
mov rbx, qword [rsp + 0x58]
and dword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
jne 0x1400023e8
call fcn.140003c1c
mov edi, eax
jmp 0x140002402
mov edx, dword [rsp + 0x50]
mov r8, rsi
mov rcx, rdi
call fcn.140002430
mov rcx, rsi
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000241c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140003d28
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.14000144c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140003e00
mov rax, qword [rax]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rax, 0x18
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140003dd8
test eax, eax
js 0x140003df5
mov rax, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x140003d99
mov edx, edi
mov rcx, rbx
call fcn.140001d9c
mov rax, qword [rbx]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140003db4
mov eax, ebp
jmp 0x140003dc1
movsxd rdx, dword [rcx - 0xc]
call fcn.140009850
test eax, eax
js 0x140003df5
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140003df5
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x140003ddd
call fcn.140003c1c
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001200
int3
mov ecx, 0x80004005
call fcn.140001200
int3
Function at 0x1400046dc
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
lea rdx, [rsp + 0x50]
mov rdi, rcx
call fcn.1400048c4
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], 0
je 0x1400047ba
lea rbp, str.LoggingSettings
mov r9, rbx
mov rcx, rbp
lea rdx, str.EnableLogging
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.ShowTime
test eax, eax
mov r8d, 1
mov rcx, rbp
setne al
mov byte [rdi + 0x90], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToFile
test eax, eax
mov rcx, rbp
setne al
xor r8d, r8d
mov byte [rdi + 0x92], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToOutputDebug
test eax, eax
mov rcx, rbp
setne al
xor r8d, r8d
mov byte [rdi + 0x93], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.AppendToFile
test eax, eax
mov r8d, 1
mov rcx, rbp
setne al
mov byte [rdi + 0x94], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x1400047d3
mov byte [rdi + 0x90], 1
mov al, 1
mov word [rdi + 0x92], 1
mov byte [rdi + 0x94], 0
mov byte [rdi + 0x95], al
cmp byte [rdi + 0x91], 0
je 0x1400047e9
mov byte [rdi + 0x92], 1
mov byte [rdi], 1
lea rax, str.LC_UTIL
mov dword [rdi + 4], 7
xor r14d, r14d
mov r15, qword [r14 + rax]
test r15, r15
je 0x140004875
movsxd r12, dword [r14 + rax + 8]
cmp r12d, 9
ja 0x140004875
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov ebp, 1
call fcn.1400048c4
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0x10], 0
je 0x140004846
mov r9, rbx
lea rcx, str.LoggingLevel
mov r8d, ebp
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebp, eax
test ebp, ebp
mov dword [rdi + r12*8 + 4], ebp
lea rdx, [rbx - 0x18]
setne cl
or eax, 0xffffffff
mov byte [rdi + r12*8], cl
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000486e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, str.LC_UTIL
add r14, 0x10
cmp r14, 0x90
jb 0x1400047fd
call fcn.14000433c
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov qword [rdi + 0x98], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400048b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140004a38
Capabilities:
Open clipboard
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x140028038]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov esi, r9d
mov edi, ecx
cmp ecx, 0x80000003
jne 0x140004a90
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.140005520
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x802
call fcn.140006a00
mov rbx, qword [0x14002a8b8]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400017f8
mov r9, qword [rsp + 0x40]
lea rax, str.baselogging.cc
mov dword [rsp + 0x38], esi
lea rdx, str.Exception__x_in__s__s__u_r_n_r_n_hs:_d_r_n
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
and dword [rsp + 0x28], 0
mov r8d, edi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004b08
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140004b2d
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140004b68
mov r9d, 0x250012
lea r8, str.Exception
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x140004b5c
cmp eax, 1
jne 0x140004b52
int3
mov eax, 1
jmp 0x140004a6b
or ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140004b68
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rsi, rcx
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [rbx + 1]
mov ecx, 0x2002
movsxd rdi, eax
add rdi, rdi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140004bb8
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.1400065f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rbx
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
jne 0x140004bdd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.USER32.dll_CloseClipboard]
Function at 0x140004da4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetDefaultDllDirectories
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004dd7
mov ecx, 0x800
call rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x30]
mov rbx, rax
call fcn.1400021b0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14000234c
mov ebx, eax
test eax, eax
js 0x140004e96
lea rdx, str.user
lea rcx, [rsp + 0x20]
call fcn.140001a44
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.140002828
mov rdx, qword [rsp + 0x20]
test al, al
sete dil
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004e46
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, str.unregister
lea rcx, [rsp + 0x28]
call fcn.140001a44
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x30]
call fcn.140002828
mov rdx, qword [rsp + 0x28]
test al, al
sete bl
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004e8a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov dl, bl
mov cl, dil
call fcn.140004ce0
mov ebx, eax
lea rcx, [rsp + 0x30]
call fcn.1400022c8
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140010188
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140019760], eax
call fcn.140010b30
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140019760], 0
jne case.default.0x1400101de
mov ecx, 1
call fcn.140010b30
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rsp
xor eax, 0x17872bf6
adc ebx, esp
xor eax, 0x63af5955
xchg esp, eax
jrcxz 0x14002b046
sar byte [rbx + riz*8], 0x94
sbb esi, dword [rax - 0x5f]
xchg edi, eax
invalid
movabs eax, dword [0x144be0f3e9638f97]
js 0x14002b0a3
add esi, dword [rdi]
and dword [rdx], esp
pop rax
rcl byte [rsp + rsi*8 - 0x59755d83]
sbb byte [rsi + 0x52], ah
jmp [rdi - 0x64250302]
out dx, eax
lodsd eax, dword [rsi]
mov dl, 0xac
mov eax, 0x4dd0e63c
and byte [rax], bh
invalid