joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018d10
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 0x140018d6b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140018d6b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x140018d89
cmp eax, 0x42
jne 0x140018d6b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140018e36
cmp byte [r8 + r11], 0x5f
jne 0x140018e36
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140018e9a
mov rcx, rsi
xor edx, edx
call dbg.print_path
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
vzeroupper
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call dbg.print_path
test al, al
jne 0x140018f1e
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140018dc5
lea rdx, [0x140065ec3]
mov r8d, 1
call dbg.pad
test al, al
jne 0x140018f1e
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140018d7a
xor r14d, r14d
lea rbx, [0x140066231]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140018df4
cmp byte [rax + rcx], 0x45
je 0x140018f47
sub r14, 1
jb 0x140018e19
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140018e19
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x140018f1e
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x140018f1e
mov rax, qword [rsi]
test rax, rax
jne 0x140018de0
jmp 0x140018d7a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x140018ee5
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x140018e8e
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140018e78
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140018e6b
add dl, 0xa9
jmp 0x140018e76
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140018ee5
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140018ee5
movzx edx, bl
add rax, rdx
jae 0x140018e40
jmp 0x140018ee5
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140018ee5
cmp rax, rcx
jae 0x140018ee2
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140018f26
cmp qword [rsi + 0x20], 0
je 0x140018f40
vmovups ymm0, ymmword [rsi]
vmovups ymmword [rsp + 0x20], ymm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
vzeroupper
call dbg.print_path_maybe_open_generics
vmovups ymm0, ymmword [rsp + 0x20]
vmovups ymmword [rsi], ymm0
jmp 0x140018d7c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140018f35
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, [0x140066210]
test r9b, r9b
cmovne rdx, rax
call dbg.pad
test al, al
je 0x140018f35
mov dil, 2
jmp 0x140018d7a
mov dil, 1
xor r9d, r9d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x140018ef0
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140018d7a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140018d7a
Function at 0x14001b040
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov esi, ecx
call sym.rustsecp256k1_v0_9_2_context_preallocated_size
mov rdi, rax
add rdi, 0x10
movabs rax, 0x7ffffffffffffff1
cmp rdi, rax
jae 0x14001b0bf
movzx eax, byte [0x140181040]
mov rcx, qword [0x140181128]
test rcx, rcx
jne 0x14001b08a
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14001b0b0
mov rcx, rax
mov qword [0x140181128], rax
xor edx, edx
mov r8, rdi
call fcn.1400430c4
test rax, rax
je 0x14001b0b0
mov qword [rax], rdi
add rax, 0x10
mov rcx, rax
mov edx, esi
add rsp, 0x38
pop rdi
pop rsi
jmp sym.rustsecp256k1_v0_9_2_context_preallocated_create
mov ecx, 0x10
mov rdx, rdi
call dbg.handle_alloc_error
ud2
lea rax, [0x1400666d0]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value
lea r9, sym.core::ptr::drop_in_place_aead::Error_::h9e5191360067d7b6
lea r8, [rsp + 0x37]
mov edx, 0x2b
call dbg.unwrap_failed
ud2
Function at 0x14001b9d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx eax, byte [0x140181130]
test al, al
je 0x14001bb6f
test edx, edx
je 0x14001b9f7
cmp edx, 3
jne 0x14001bb6f
mov rbx, qword [0x140181138]
test rbx, rbx
je 0x14001bb6f
xor r14d, r14d
jmp 0x14001ba19
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001ba4d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001bbba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001ba10
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140043014
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14001ba10
test r14b, 1
je 0x14001bb6f
mov rbx, qword [0x140181138]
test rbx, rbx
je 0x14001bb6f
xor r14d, r14d
jmp 0x14001ba79
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001baad
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001bbba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001ba70
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140043014
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14001ba70
test r14b, 1
je 0x14001bb6f
mov rbx, qword [0x140181138]
test rbx, rbx
je 0x14001bb6f
xor r14d, r14d
jmp 0x14001bad9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001bb0d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001bbba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001bad0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140043014
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14001bad0
test r14b, 1
je 0x14001bb6f
mov rbx, qword [0x140181138]
test rbx, rbx
je 0x14001bb6f
xor r14d, r14d
jmp 0x14001bb39
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001bb69
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001bbba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001bb30
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140043014
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14001bb30
test r14b, 1
jne 0x14001bb7b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x140181138]
jmp 0x14001bb88
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001bb6f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14001bbba
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14001bb84
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140043014
mov rcx, rdi
call r14
jmp 0x14001bb84
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x14001cca0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001cd25
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 0x14001cd66
cmp dword [rsp + 0x2c], 0
je 0x14001cd4a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x14001cd80
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x140181138]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x140181138], rsi
jne 0x14001cd00
mov byte [0x140181130], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001cd5c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x14001cdce
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001cd4f
mov edi, dword [rsp + 0x28]
jmp 0x14001cd5c
mov edi, dword [rsi + 0x18]
jmp 0x14001cd5a
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.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
vxorps xmm0, xmm0, xmm0
vmovups 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.called__Option::unwrap____on_a__None__value_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112librarycore_srcio_borrowed_buf.rs_rustc_82e1608dfa6e0b5569232559e3d385fea5a93112library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call dbg.assert_failed<u32, u32>
ud2
Function at 0x14001d180
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001d1b0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001d1c9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14001d1c9
add rdi, 0x10
jmp 0x14001d288
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001d19d
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001d269
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001d286
mov rsi, rax
test rax, rax
jne 0x14001d238
movzx eax, byte [0x140181040]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001d2a2
mov rsi, rax
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140060098]
test ecx, ecx
je 0x14001d292
dec ecx
mov rdx, rsi
call fcn.140043014
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x14001d288
test rcx, rcx
je 0x14001d288
lock dec qword [rcx]
jne 0x14001d288
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x14001d288
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001d1e8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x14001d230
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2

Function at 0x14001d810
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rdi, qword [rcx]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14001d838
dec ecx
mov edx, 1
call fcn.140043014
cmp qword [rsi + 8], 0
jne 0x14001d853
jmp 0x14001d86b
mov rcx, rdi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140043014
cmp qword [rsi + 8], 0
je 0x14001d86b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14001d86b
lock dec qword [rax]
jne 0x14001d86b
mov rcx, qword [rsi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov edx, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14001d883
dec ecx
jmp 0x14001d88d
mov rcx, rdi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140043014
Function at 0x14001df80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400600b8]
test ecx, ecx
je 0x14001e020
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001dfa9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001e01a
mov ecx, dword [0x1400600b8]
test ecx, ecx
je 0x14001e042
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001e05f
mov rsi, rax
test rax, rax
jne 0x14001e014
movzx eax, byte [0x140181040]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001e07a
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x1400600b8]
test ecx, ecx
je 0x14001e06a
dec ecx
mov rdx, rsi
call fcn.140043014
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14001e061
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001dfa0
jmp 0x14001dfa9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001dfc8
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x14001e00c
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2

Function at 0x14001e600
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
vmovups xmm0, xmmword [0x140068b70]
vmovaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x14001e675
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001e6ab
test eax, eax
js 0x14001e686
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001e69e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call sym.std::io::Write::write_fmt::h9c6f8a47e53199c5
mov rcx, rax
call sym.core::ptr::drop_in_place_core::result::Result____std::io::error::Error__::h0f798feb3c43cb64
mov ecx, 7
int 0x29
ud2
Function at 0x14001f2f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001f31d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001f336
cmp qword [rax + 8], 0
je 0x14001f336
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001f30c
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001f3bb
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001f3d8
mov rsi, rax
test rax, rax
jne 0x14001f39d
movzx eax, byte [0x140181040]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14001f3f0
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140060078]
test ecx, ecx
je 0x14001f3e0
dec ecx
mov rdx, rsi
call fcn.140043014
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__usize__bool___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001f351
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call dbg.init
mov ecx, eax
jmp 0x14001f395
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x14001f470
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 0x14001f487
dec ecx
jmp 0x14001f491
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140043014
mov edx, 8
mov rcx, rdi
call sym.__rust_dealloc
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x14001f4b3
dec ecx
jmp 0x14001f4bd
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140043014
Function at 0x140022960
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 rsi, rcx
mov dword [rsp + 0x40], 0
vxorps xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 7
mov qword [rsp + 0x5c], 0
mov word [rsp + 0x64], 0
mov byte [rsp + 0x60], 1
lea r8, [rsp + 0x40]
mov rcx, rdx
mov rdx, rax
call dbg.open
mov rdi, rdx
test rax, rax
je 0x1400229d1
mov rcx, rdi
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
jmp 0x140022b5a
vxorps xmm0, xmm0, xmm0
vmovups ymmword [rsp + 0x54], ymm0
vmovups ymmword [rsp + 0x40], ymm0
lea rdx, [rsp + 0x40]
mov rcx, rdi
vzeroupper
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x140022a82
test byte [rsp + 0x41], 4
je 0x140022a2b
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x140022a82
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x140022ab6
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, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x140022b39
mov rbx, qword [rsp + 0x40]
jmp 0x140022ab8
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, rax
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14004316c
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 0x140022b28
mov r14, rax
shl r12, 0x20
or r12, r15
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 fcn.14004316c
test r15, r15
je 0x140022b28
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x140022b52
mov qword [rsi], 0
mov rcx, rbx
call fcn.14004316c
jmp 0x140022b52
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
lea rcx, [rax + 2]
call dbg.drop_in_place<std::io::error::Error>
mov qword [rsi], 0
mov rcx, rdi
call fcn.14004316c
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140043b80
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 0x140043bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140181204]
mov r12, rcx
test ebx, ebx
jle 0x140043d20
mov rax, qword [0x140181208]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140043c3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140043cc5
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140043c20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140043d42
mov rax, qword [0x140181208]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140181208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140043d27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140043cbe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140043cd0
add dword [0x140181204], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140181208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140043cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140043c48
mov rax, qword [0x140181208]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400442c0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140181260]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140181240]
test rbx, rbx
je 0x14004431c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140044313
test r12, r12
je 0x140044313
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400442f8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]