joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f050
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 0x14000f0ab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000f0ab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000f0c6
cmp eax, 0x42
jne 0x14000f0ab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000f176
cmp byte [r9 + r11], 0x5f
jne 0x14000f176
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000f1de
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 0x14000f271
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f102
lea rdx, [0x14003f8bb]
mov r8d, 1
call dbg.pad
test al, al
jne 0x14000f271
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000f0ba
xor r14d, r14d
lea rbx, [0x14003fc70]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000f134
cmp byte [rax + rcx], 0x45
je 0x14000f29a
sub r14, 1
jb 0x14000f159
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f159
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x14000f271
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x14000f271
mov rax, qword [rsi]
test rax, rax
jne 0x14000f120
jmp 0x14000f0ba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000f238
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000f1d2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000f1bc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000f1ab
add dl, 0xa9
jmp 0x14000f1ba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000f238
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000f238
movzx edx, bl
add rax, rdx
jae 0x14000f180
jmp 0x14000f238
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000f238
cmp rax, rcx
jae 0x14000f235
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000f279
cmp qword [rsi + 0x20], 0
je 0x14000f293
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 0x14000f0bc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000f288
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003fc30]
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 0x14000f288
mov dil, 2
jmp 0x14000f0ba
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14000f243
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000f0ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000f0ba
Function at 0x140011940
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 [0x1400490e8]
test al, al
je 0x140011adf
cmp edx, 3
je 0x140011967
test edx, edx
jne 0x140011adf
mov rbx, qword [0x1400490f0]
test rbx, rbx
je 0x140011adf
xor r14d, r14d
jmp 0x140011989
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400119bd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140011b2a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011980
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038f2c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140011980
test r14b, 1
je 0x140011adf
mov rbx, qword [0x1400490f0]
test rbx, rbx
je 0x140011adf
xor r14d, r14d
jmp 0x1400119e9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140011a1d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140011b2a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400119e0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038f2c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400119e0
test r14b, 1
je 0x140011adf
mov rbx, qword [0x1400490f0]
test rbx, rbx
je 0x140011adf
xor r14d, r14d
jmp 0x140011a49
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140011a7d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140011b2a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011a40
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038f2c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140011a40
test r14b, 1
je 0x140011adf
mov rbx, qword [0x1400490f0]
test rbx, rbx
je 0x140011adf
xor r14d, r14d
jmp 0x140011aa9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140011ad9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x140011b2a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011aa0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038f2c
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140011aa0
test r14b, 1
jne 0x140011aeb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1400490f0]
jmp 0x140011af8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140011adf
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x140011b2a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140011af4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038f2c
mov rcx, rdi
call r14
jmp 0x140011af4
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 0x1400128c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov ecx, dword [0x14003b078]
test ecx, ecx
je 0x1400128f0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140012909
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140012909
add rdi, 0x10
jmp 0x1400129fd
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 0x1400128dd
mov ecx, dword [0x14003b078]
test ecx, ecx
je 0x1400129de
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400129fb
mov rsi, rax
test rax, rax
jne 0x1400129ae
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 [0x140049030]
mov rcx, qword [0x1400490e0]
test rcx, rcx
jne 0x140012970
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140012a17
mov rcx, rax
mov qword [0x1400490e0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140012a17
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 [0x14003b078]
test ecx, ecx
je 0x140012a07
dec ecx
mov rdx, rsi
call fcn.140038f2c
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 0x1400129fd
test rcx, rcx
je 0x1400129fd
lock dec qword [rcx]
jne 0x1400129fd
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x1400129fd
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 0x140012928
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 0x1400129a6
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x140012c90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140012d15
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 0x140012d56
cmp dword [rsp + 0x2c], 0
je 0x140012d3a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140012d70
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400490f0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400490f0], rsi
jne 0x140012cf0
mov byte [0x1400490e8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140012d4c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x140012dbc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140012d3f
mov edi, dword [rsp + 0x28]
jmp 0x140012d4c
mov edi, dword [rsi + 0x18]
jmp 0x140012d4a
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_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
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.called__Option::unwrap____on_a__None__value_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_srccollections_btree_navigate.rsinvalid_args
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 0x140013340
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 0x140013359
dec ecx
jmp 0x140013363
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140038f2c
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x140013391
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140013391
lock dec qword [rax]
jne 0x140013391
mov rcx, qword [rdi + 0x18]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, rdi
call fcn.140038fc4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400133ad
dec ecx
jmp 0x1400133b7
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140038f2c
Function at 0x140014a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003b058]
test ecx, ecx
je 0x140014a3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140014a56
cmp qword [rax + 8], 0
je 0x140014a56
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 0x140014a2c
mov ecx, dword [0x14003b058]
test ecx, ecx
je 0x140014b01
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140014b1e
mov rsi, rax
test rax, rax
jne 0x140014ae3
movzx eax, byte [0x140049030]
mov rcx, qword [0x1400490e0]
test rcx, rcx
jne 0x140014aa8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140014b36
mov rcx, rax
mov qword [0x1400490e0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140014b36
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 [0x14003b058]
test ecx, ecx
je 0x140014b26
dec ecx
mov rdx, rsi
call fcn.140038f2c
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 0x140014a75
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 0x140014adb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x140014bb0
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 0x140014bc7
dec ecx
jmp 0x140014bd1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140038f2c
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, rdi
call fcn.140038fc4
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140014bf7
dec ecx
jmp 0x140014c01
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140038f2c

Function at 0x1400176c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
movzx r11d, byte [rdx + 0x38]
cmp r11b, 1
ja 0x140017728
movzx r10d, byte [rdx + 0x10]
movzx r8d, byte [rdx + 0x3a]
xor eax, eax
movzx r9d, r10b
test r8b, r8b
jne 0x140017876
cmp r10b, 5
jb 0x140017876
mov r10, qword [rdx]
mov rax, qword [rdx + 8]
xor esi, esi
test r11b, r11b
jne 0x140017718
cmp r9b, 6
je 0x140017718
mov esi, 2
cmp rax, 2
jb 0x140017928
cmp rsi, rax
jne 0x140017839
xor eax, eax
jmp 0x140017876
xor eax, eax
xor r8d, r8d
xor r10d, r10d
add rax, r10
lea r8, [0x140041110]
mov ecx, 2
mov rdx, rax
call dbg.slice_start_index_len_fail
ud2
Function at 0x140017ba0
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 0x140017c63
mov eax, esi
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x140017c57
test rax, rax
je 0x140017c57
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 0x140017c46
cmp qword [r14 + 0x10], 0x11
jb 0x140017c35
mov rbx, qword [rbx - 8]
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, rbx
call fcn.140038fc4
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, rsi
call fcn.140038fc4
mov qword [rdi], 0
jmp 0x140017dd7
lea rcx, [rsp + 0x40]
mov rdx, rsi
call dbg.file_attr
cmp dword [rsp + 0x40], 2
jne 0x140017cf5
mov rax, qword [rsp + 0x48]
mov ecx, eax
and ecx, 3
lea rdx, [rcx - 2]
cmp rdx, 2
jb 0x140017cd6
test rcx, rcx
je 0x140017cd6
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 0x140017cc5
cmp qword [r15 + 0x10], 0x11
jb 0x140017cb4
mov r14, qword [r14 - 8]
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, r14
call fcn.140038fc4
mov rcx, qword [0x1400490e0]
xor edx, edx
mov r8, rbx
call fcn.140038fc4
mov qword [rdi], 0
mov rcx, rsi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14003908c
mov r12, qword [rsp + 0x78]
test rsi, rsi
je 0x140017d47
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 0x140017dc3
mov rbx, qword [rsp + 0x40]
jmp 0x140017d49
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 0x140017db2
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 fcn.14003908c
test r15, r15
je 0x140017db2
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r12
mov qword [rdi], 1
jmp 0x140017dcf
mov qword [rdi], 0
mov rcx, rbx
call fcn.14003908c
jmp 0x140017dcf
call sub.KERNEL32.dll_GetLastError
mov qword [rdi], 0
mov rcx, rsi
call fcn.14003908c
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140033c90
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140041e98]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups 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_NtReadFile
cmp eax, 0x103
jne 0x140033cfa
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140033d09
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140033d40
cmp eax, 0x103
je 0x140033d4a
test eax, eax
js 0x140033d26
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140033d40
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 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
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call dbg.write_fmt<std::sys::windows::stdio::Stderr>
mov rcx, rax
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2
Function at 0x140039b10
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 0x140039b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400491f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140039d30
mov rax, qword [0x1400491f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140039bcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140039c57
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140039bb0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140039d8d
mov rax, qword [0x1400491f8]
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 [0x1400491f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140039d72
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140039c50
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140039ce0
add dword [0x1400491f4], 1
cmp ebx, 8
jae 0x140039c88
test bl, 4
jne 0x140039d40
test ebx, ebx
je 0x140039c79
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140039d60
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 0x140039c79
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 0x140039cba
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 [0x1400491f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140039c50
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 0x140039bd7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140039c79
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140039c79
mov rax, qword [0x1400491f8]
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 0x14003a2a0
Capabilities:
Get thread local storage value

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

Function at 0x14003a520
Capabilities:
Parse pe header

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

Function at 0x14003a540
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 0x14003a585
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 0x14003a57c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x14003a587
add rax, 0x28
cmp rax, r9
jne 0x14003a568
xor eax, eax
ret

Function at 0x14003a630
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140042f00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14003a6a9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14003a6a9
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 0x14003a6a6
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 0x14003a69d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14003a6a9
add r8, 0x28
cmp r8, r9
jne 0x14003a688
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14003a790
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140042f00]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14003a7ff
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14003a7ff
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 0x14003a7fd
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 0x14003a7f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003a808
add rax, 0x28
cmp rax, r9
jne 0x14003a7e0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret