joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dba0
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 0x14000dbfb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000dbfb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000dc16
cmp eax, 0x42
jne 0x14000dbfb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000dcc6
cmp byte [r9 + r11], 0x5f
jne 0x14000dcc6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000dd2e
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 0x14000ddc1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000dc52
lea rdx, [0x14003cbdb]
mov r8d, 1
call dbg.pad
test al, al
jne 0x14000ddc1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000dc0a
xor r14d, r14d
lea rbx, [0x14003cf90]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000dc84
cmp byte [rax + rcx], 0x45
je 0x14000ddea
sub r14, 1
jb 0x14000dca9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000dca9
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x14000ddc1
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x14000ddc1
mov rax, qword [rsi]
test rax, rax
jne 0x14000dc70
jmp 0x14000dc0a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000dd88
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000dd22
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000dd0c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000dcfb
add dl, 0xa9
jmp 0x14000dd0a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000dd88
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000dd88
movzx edx, bl
add rax, rdx
jae 0x14000dcd0
jmp 0x14000dd88
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000dd88
cmp rax, rcx
jae 0x14000dd85
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000ddc9
cmp qword [rsi + 0x20], 0
je 0x14000dde3
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 0x14000dc0c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ddd8
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003cf50]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call dbg.pad
test al, al
je 0x14000ddd8
mov dil, 2
jmp 0x14000dc0a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14000dd93
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000dc0a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000dc0a
Function at 0x140010640
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
cmp edx, 3
je 0x140010658
test edx, edx
jne 0x1400107cf
mov rbx, qword [0x1400460e8]
test rbx, rbx
je 0x1400107cf
xor r14d, r14d
jmp 0x140010679
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400106ad
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001081a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010670
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038394
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140010670
test r14b, 1
je 0x1400107cf
mov rbx, qword [0x1400460e8]
test rbx, rbx
je 0x1400107cf
xor r14d, r14d
jmp 0x1400106d9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001070d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001081a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400106d0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038394
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x1400106d0
test r14b, 1
je 0x1400107cf
mov rbx, qword [0x1400460e8]
test rbx, rbx
je 0x1400107cf
xor r14d, r14d
jmp 0x140010739
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001076d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001081a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010730
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038394
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140010730
test r14b, 1
je 0x1400107cf
mov rbx, qword [0x1400460e8]
test rbx, rbx
je 0x1400107cf
xor r14d, r14d
jmp 0x140010799
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400107c9
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x14001081a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010790
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038394
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140010790
test r14b, 1
jne 0x1400107db
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1400460e8]
jmp 0x1400107e8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x1400107cf
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x14001081a
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400107e4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140038394
mov rcx, rdi
call r14
jmp 0x1400107e4
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_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 0x140011430
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x140011460
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140011479
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140011479
add rdi, 0x10
jmp 0x140011559
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 0x14001144d
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x14001153a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140011557
mov rsi, rax
test rax, rax
jne 0x14001150a
movzx eax, byte [0x140046030]
mov rcx, qword [0x1400460e0]
test rcx, rcx
jne 0x1400114cb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140011573
mov rcx, rax
mov qword [0x1400460e0], rax
mov r8d, 0x20
xor edx, edx
call fcn.140038434
test rax, rax
je 0x140011573
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003a068]
test ecx, ecx
je 0x140011563
dec ecx
mov rdx, rsi
call fcn.140038394
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 0x140011559
test rcx, rcx
je 0x140011559
lock dec qword [rcx]
jne 0x140011559
call dbg.drop_slow<std::thread::Inner>
jmp 0x140011559
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 0x140011498
xor edi, edi
mov rax, rdi
add rsp, 0x28
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 0x140011502
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400117d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x14001184e
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 0x14001188f
cmp dword [rsp + 0x2c], 0
je 0x140011873
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400118a9
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400460e8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400460e8], rsi
jne 0x140011830
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x140011885
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400118f5
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x140011878
mov edi, dword [rsp + 0x28]
jmp 0x140011885
mov edi, dword [rsi + 0x18]
jmp 0x140011883
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_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
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_5680fa18feaa87f3ff04063800aec256c3d4b4belibrary_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
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 0x140011e80
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140011ea8
dec ecx
mov edx, 1
call fcn.140038394
cmp qword [rdi + 8], 0
jne 0x140011ec3
jmp 0x140011ed7
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140038394
cmp qword [rdi + 8], 0
je 0x140011ed7
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140011ed7
lock dec qword [rcx]
jne 0x140011ed7
call dbg.drop_slow<std::thread::Inner>
mov rcx, qword [0x1400460e0]
xor edx, edx
mov r8, rdi
call fcn.14003842c
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140011ef3
dec ecx
jmp 0x140011efd
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140038394
Function at 0x140012530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x1400125f6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14001255d
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x1400125f0
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x140012618
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140012635
mov rsi, rax
test rax, rax
jne 0x1400125ea
movzx eax, byte [0x140046030]
mov rcx, qword [0x1400460e0]
test rcx, rcx
jne 0x1400125af
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140012650
mov rcx, rax
mov qword [0x1400460e0], rax
mov r8d, 0x10
xor edx, edx
call fcn.140038434
test rax, rax
je 0x140012650
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14003a088]
test ecx, ecx
je 0x140012640
dec ecx
mov rdx, rsi
call fcn.140038394
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140012637
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140012550
jmp 0x14001255d
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001257c
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x1400125e2
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400139d0
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rsi, qword [rcx]
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400139e7
dec ecx
jmp 0x1400139f1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140038394
mov rcx, qword [0x1400460e0]
xor edx, edx
mov r8, rdi
call fcn.14003842c
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140013a17
dec ecx
jmp 0x140013a21
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140038394

Function at 0x140013b50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x140013b7d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x140013b96
cmp qword [rax + 8], 0
je 0x140013b96
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x140013b6c
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x140013c41
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140013c5e
mov rsi, rax
test rax, rax
jne 0x140013c23
movzx eax, byte [0x140046030]
mov rcx, qword [0x1400460e0]
test rcx, rcx
jne 0x140013be8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140013c76
mov rcx, rax
mov qword [0x1400460e0], rax
mov r8d, 0x20
xor edx, edx
call fcn.140038434
test rax, rax
je 0x140013c76
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14003a048]
test ecx, ecx
je 0x140013c66
dec ecx
mov rdx, rsi
call fcn.140038394
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_u8_
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140013bb5
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140013c1b
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x140016a30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140016a60
test ecx, ecx
jne 0x140016ab0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140016a6c
test ecx, ecx
jne 0x140016ab0
mov rcx, rdi
call dbg.include_cur_dir
movzx eax, al
test bpl, bpl
jne 0x140016ab7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140016aa3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140016c28]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140016aa3.2
xor eax, eax
test bpl, bpl
je 0x140016a7c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140016c09
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140016aea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140016b69
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140016b30
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140016b4b
inc rax
dec rdi
cmp rax, 1
jne 0x140016b10
jmp 0x140016b69
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140016b4b
cmp ebx, 0x5c
je 0x140016b4b
inc rax
dec rdi
cmp rax, 1
jne 0x140016b30
jmp 0x140016b69
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140016c17
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140016b93
mov al, 9
cmp rdx, 2
je 0x140016b97
cmp rdx, 1
jne 0x140016ba7
cmp byte [r8], 0x2e
jne 0x140016ba7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140016ba7
mov al, 0xa
jmp 0x140016ba7
cmp byte [r8], 0x2e
jne 0x140016ba7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140016aa3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140016aa3.2
mov ecx, 2
jmp case.0x140016aa3.2
lea r8, [0x14003e708]
call dbg.slice_start_index_len_fail
ud2
lea r8, [0x14003e720]
call dbg.slice_start_index_len_fail
ud2
Function at 0x140038ee0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140038f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400461e4]
mov rbx, rcx
test esi, esi
jle 0x140039080
mov rax, qword [0x1400461e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140038f9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140039025
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140038f80
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400390a2
mov rax, qword [0x1400461e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400461e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140039087
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003901e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140039030
add dword [0x1400461e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400461e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003901e
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 esi, esi
jmp 0x140038fa8
mov rax, qword [0x1400461e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140039630
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140046240]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140046220]
test rbx, rbx
je 0x14003968c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140039683
test eax, eax
jne 0x140039683
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140039668
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400398a0
Capabilities:
Parse pe header

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

Function at 0x1400398d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14003991d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140039914
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14003991f
add rax, 0x28
cmp rax, r9
jne 0x140039900
xor eax, eax
ret

Function at 0x140039920
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400399b0
mov rdx, qword [0x14003ff90]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14003999e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14003999e
cmp word [rax + 0x18], 0x20b
jne 0x14003999e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400399b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140039989
add rbx, 0x28
cmp rbx, rdi
je 0x1400399b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140039980
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14003ff90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400399e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400399e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400399e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140039a3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140039a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400399e0
add rax, 0x28
cmp rax, r9
jne 0x140039a20
xor eax, eax
ret

Function at 0x140039a40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14003ff90]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140039a5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140039a68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140039a5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret