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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x466e1b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x466e1b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x466e36
cmp eax, 0x42
jne 0x466e1b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x466ee6
cmp byte [r9 + r11], 0x5f
jne 0x466ee6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x466f4e
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
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call dbg.print_path
test al, al
jne 0x466fe1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x466e72
lea rdx, [0x004b2cbb]
mov r8d, 1
call dbg.pad
test al, al
jne 0x466fe1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x466e2a
xor r14d, r14d
lea rbx, [0x004b3070]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x466ea4
cmp byte [rax + rcx], 0x45
je 0x46700a
sub r14, 1
jb 0x466ec9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x466ec9
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x466fe1
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x466fe1
mov rax, qword [rsi]
test rax, rax
jne 0x466e90
jmp 0x466e2a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x466fa8
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x466f42
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x466f2c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x466f1b
add dl, 0xa9
jmp 0x466f2a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x466fa8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x466fa8
movzx edx, bl
add rax, rdx
jae 0x466ef0
jmp 0x466fa8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x466fa8
cmp rax, rcx
jae 0x466fa5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x466fe9
cmp qword [rsi + 0x20], 0
je 0x467003
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 dbg.print_path_maybe_open_generics
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x466e2c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x466ff8
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x004b3030]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call dbg.pad
test al, al
je 0x466ff8
mov dil, 2
jmp 0x466e2a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x466fb3
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x466e2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x466e2a
Function at 0x4696b0
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 [0x004c6118]
test al, al
je 0x46984f
cmp edx, 3
je 0x4696d7
test edx, edx
jne 0x46984f
mov rbx, qword [0x004c6120]
test rbx, rbx
je 0x46984f
xor r14d, r14d
jmp 0x4696f9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x46972d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x46989a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x4696f0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.0049e2ac
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x4696f0
test r14b, 1
je 0x46984f
mov rbx, qword [0x004c6120]
test rbx, rbx
je 0x46984f
xor r14d, r14d
jmp 0x469759
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x46978d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x46989a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x469750
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.0049e2ac
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x469750
test r14b, 1
je 0x46984f
mov rbx, qword [0x004c6120]
test rbx, rbx
je 0x46984f
xor r14d, r14d
jmp 0x4697b9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x4697ed
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x46989a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x4697b0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.0049e2ac
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x4697b0
test r14b, 1
je 0x46984f
mov rbx, qword [0x004c6120]
test rbx, rbx
je 0x46984f
xor r14d, r14d
jmp 0x469819
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x469849
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x46989a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x469810
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.0049e2ac
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x469810
test r14b, 1
jne 0x46985b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x004c6120]
jmp 0x469868
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x46984f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x46989a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x469864
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.0049e2ac
mov rcx, rdi
call r14
jmp 0x469864
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
lea r8, str.library_std_src_syswindows_thread_local_key.rs
mov edx, 0x2b
call dbg.panic
ud2
Function at 0x46a560
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x004a1078]
test ecx, ecx
je 0x46a590
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x46a5a9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x46a5a9
add rdi, 0x10
jmp 0x46a69d
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x46a57d
mov ecx, dword [0x004a1078]
test ecx, ecx
je 0x46a67e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46a69b
mov rsi, rax
test rax, rax
jne 0x46a64e
mov qword [rsp + 0x30], 0
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rsp + 0x28], rax
movzx eax, byte [0x004c619c]
mov rcx, qword [0x004c6110]
test rcx, rcx
jne 0x46a610
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x46a6b7
mov rcx, rax
mov qword [0x004c6110], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x46a6b7
mov rsi, rax
movups xmm0, xmmword [rsp + 0x28]
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x004a1078]
test ecx, ecx
je 0x46a6a7
dec ecx
mov rdx, rsi
call fcn.0049e2ac
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x46a69d
test rcx, rcx
je 0x46a69d
lock dec qword [rcx]
jne 0x46a69d
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x46a69d
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x46a5c8
xor edi, edi
mov rax, rdi
add rsp, 0x48
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call dbg.init
mov ecx, eax
jmp 0x46a646
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x46a910
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x46a995
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 0x46a9d6
cmp dword [rsp + 0x2c], 0
je 0x46a9ba
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x46a9f0
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x004c6120]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004c6120], rsi
jne 0x46a970
mov byte [0x004c6118], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x46a9cc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x46aa3c
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x46a9bf
mov edi, dword [rsp + 0x28]
jmp 0x46a9cc
mov edi, dword [rsi + 0x18]
jmp 0x46a9ca
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 0x46afc0
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 0x46afd9
dec ecx
jmp 0x46afe3
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.0049e2ac
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x46b011
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x46b011
lock dec qword [rax]
jne 0x46b011
mov rcx, qword [rdi + 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, rdi
call fcn.0049e354
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x46b02d
dec ecx
jmp 0x46b037
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.0049e2ac
Function at 0x46b480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004a1098]
test ecx, ecx
je 0x46b546
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x46b4ad
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x46b540
mov ecx, dword [0x004a1098]
test ecx, ecx
je 0x46b568
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46b585
mov rsi, rax
test rax, rax
jne 0x46b53a
movzx eax, byte [0x004c619c]
mov rcx, qword [0x004c6110]
test rcx, rcx
jne 0x46b4ff
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x46b5a0
mov rcx, rax
mov qword [0x004c6110], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x46b5a0
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 [0x004a1098]
test ecx, ecx
je 0x46b590
dec ecx
mov rdx, rsi
call fcn.0049e2ac
mov word [rsi + 8], 1
add rsi, 9
jmp 0x46b587
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 0x46b4a0
jmp 0x46b4ad
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 0x46b4cc
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 0x46b532
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x46c4d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004a1058]
test ecx, ecx
je 0x46c4fd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x46c516
cmp qword [rax + 8], 0
je 0x46c516
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 0x46c4ec
mov ecx, dword [0x004a1058]
test ecx, ecx
je 0x46c5c1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x46c5de
mov rsi, rax
test rax, rax
jne 0x46c5a3
movzx eax, byte [0x004c619c]
mov rcx, qword [0x004c6110]
test rcx, rcx
jne 0x46c568
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x46c5f6
mov rcx, rax
mov qword [0x004c6110], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x46c5f6
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 [0x004a1058]
test ecx, ecx
je 0x46c5e6
dec ecx
mov rdx, rsi
call fcn.0049e2ac
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 0x46c535
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 0x46c59b
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x46c670
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 0x46c687
dec ecx
jmp 0x46c691
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.0049e2ac
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, rdi
call fcn.0049e354
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x46c6b7
dec ecx
jmp 0x46c6c1
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.0049e2ac
Function at 0x46f6f0
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 0x46f7b3
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x46f7a7
test rax, rax
je 0x46f7a7
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 0x46f796
cmp qword [r14 + 0x10], 0x11
jb 0x46f785
mov rbx, qword [rbx - 8]
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, rbx
call fcn.0049e354
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, rsi
call fcn.0049e354
mov qword [rdi], 0
jmp 0x46f927
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x46f845
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x46f826
test rcx, rcx
je 0x46f826
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 0x46f815
cmp qword [r15 + 0x10], 0x11
jb 0x46f804
mov r14, qword [r14 - 8]
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, r14
call fcn.0049e354
mov rcx, qword [0x004c6110]
xor edx, edx
mov r8, rbx
call fcn.0049e354
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 0x46f897
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 0x46f913
mov rbx, qword [rsp + 0x40]
jmp 0x46f899
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 0x46f902
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 0x46f902
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x46f91f
mov qword [rdi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x46f91f
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 0x48c350
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call dbg.inner
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x48c400
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
call dbg.get_long_path
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x48c400
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x48c3d4
test rsi, rsi
je 0x48c3fe
mov rcx, qword [0x004c6110]
xor esi, esi
xor edx, edx
mov r8, rdi
call fcn.0049e354
jmp 0x48c400
call sub.KERNEL32.dll_GetLastError
xor esi, esi
Function at 0x496ca0
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 0x496ce1
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
lea rcx, [rdx + 1]
cmp word [rax + rdx*2 + 2], 0
mov rdx, rcx
jne 0x496cd0
jmp 0x496ce1
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 0x496d32
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 0x496ec6
mov r14, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x40], xmm0
movzx eax, byte [0x004c619c]
mov rcx, qword [0x004c6110]
test rcx, rcx
jne 0x496d71
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x496edd
mov rcx, rax
mov qword [0x004c6110], rax
mov r8d, pe_nt_image_headers64
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x496edd
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 0x496e67
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 0x496ea6
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 0x496e45
lea rcx, [rsp + 0x20]
mov rdx, rbx
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h4e7d1b4b93c100b8
jmp 0x496e40
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 0x49f0a0
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 0x49f110
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004c67b4]
mov r12, rcx
test ebx, ebx
jle 0x49f230
mov rax, qword [0x004c67b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x49f15c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x49f1df
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x49f140
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x49f252
mov rax, qword [0x004c67b8]
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 [0x004c67b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x49f237
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x49f1d8
sub eax, 4
and eax, 0xfffffffb
jne 0x49f1e8
add dword [0x004c67b4], 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 [0x004c67b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x49f1d8
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 0x49f167
mov rax, qword [0x004c67b8]
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 0x49f9e0
Capabilities:
Get thread local storage value

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