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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005770
cmp r11, r10
ja 0x1400057e6
cmp r10, rdx
ja 0x1400057fa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140005772
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005750
jmp 0x1400057d4
ja 0x14000577a
mov r11, r10
cmp rax, r8
jne 0x140005714
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x1400057b0
mov rdi, r8
sub ecx, edx
jns 0x1400057cb
jmp 0x1400057d6
cmp r8, rsi
je 0x14000580b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x1400057d6
xor al, 1
cmp rdi, rsi
jne 0x140005790
jmp 0x1400057d6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call dbg.panic
ud2

Function at 0x14000c0c0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae dbg.do_count_chars
cmp rax, rcx
je 0x14000c0e5
cmp rdx, 4
jae 0x14000c0e8
xor eax, eax
xor r8d, r8d
jmp 0x14000c180
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140038750]
movdqa xmm3, xmmword [0x140038760]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000c110
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c197
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c180
ret
Function at 0x14000d640
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 0x14000d69b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000d69b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000d6b6
cmp eax, 0x42
jne 0x14000d69b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000d766
cmp byte [r9 + r11], 0x5f
jne 0x14000d766
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000d7ce
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 0x14000d861
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d6f2
lea rdx, [0x14003b074]
mov r8d, 1
call dbg.pad
test al, al
jne 0x14000d861
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000d6aa
xor r14d, r14d
lea rbx, [0x14003b428]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000d724
cmp byte [rax + rcx], 0x45
je 0x14000d88a
sub r14, 1
jb 0x14000d749
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d749
mov r8d, 2
mov rdx, rbx
call dbg.pad
test al, al
jne 0x14000d861
mov rcx, rsi
call dbg.print_generic_arg
test al, al
jne 0x14000d861
mov rax, qword [rsi]
test rax, rax
jne 0x14000d710
jmp 0x14000d6aa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000d828
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000d7c2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000d7ac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000d79b
add dl, 0xa9
jmp 0x14000d7aa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000d828
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000d828
movzx edx, bl
add rax, rdx
jae 0x14000d770
jmp 0x14000d828
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000d828
cmp rax, rcx
jae 0x14000d825
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000d869
cmp qword [rsi + 0x20], 0
je 0x14000d883
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 0x14000d6ac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000d878
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14003b3e8]
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 0x14000d878
mov dil, 2
jmp 0x14000d6aa
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14000d833
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000d6aa
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000d6aa
Function at 0x14000ff00
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 [0x1400440e0]
test al, al
je 0x14001009f
test edx, edx
je 0x14000ff27
cmp edx, 3
jne 0x14001009f
mov rbx, qword [0x1400440e8]
test rbx, rbx
je 0x14001009f
xor r14d, r14d
jmp 0x14000ff49
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14000ff7d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400100ea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14000ff40
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140035474
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14000ff40
test r14b, 1
je 0x14001009f
mov rbx, qword [0x1400440e8]
test rbx, rbx
je 0x14001009f
xor r14d, r14d
jmp 0x14000ffa9
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14000ffdd
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400100ea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14000ffa0
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140035474
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x14000ffa0
test r14b, 1
je 0x14001009f
mov rbx, qword [0x1400440e8]
test rbx, rbx
je 0x14001009f
xor r14d, r14d
jmp 0x140010009
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001003d
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400100ea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010000
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140035474
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140010000
test r14b, 1
je 0x14001009f
mov rbx, qword [0x1400440e8]
test rbx, rbx
je 0x14001009f
xor r14d, r14d
jmp 0x140010069
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x140010099
mov esi, dword [rbx + 0x18]
mov r15, qword [rbx]
test r15, r15
je 0x1400100ea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x140010060
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140035474
mov rcx, rdi
call r15
mov r14b, 1
jmp 0x140010060
test r14b, 1
jne 0x1400100ab
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rbx, qword [0x1400440e8]
jmp 0x1400100b8
mov rbx, qword [rbx + 8]
test rbx, rbx
je 0x14001009f
mov esi, dword [rbx + 0x18]
mov r14, qword [rbx]
test r14, r14
je 0x1400100ea
dec esi
mov ecx, esi
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x1400100b4
mov rdi, rax
mov ecx, esi
xor edx, edx
call fcn.140035474
mov rcx, rdi
call r14
jmp 0x1400100b4
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_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 0x140010ec0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x140037068]
test ecx, ecx
je 0x140010ef0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140010f09
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140010f09
add rdi, 0x10
jmp 0x140010ffe
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 0x140010edd
mov ecx, dword [0x140037068]
test ecx, ecx
je 0x140010fdf
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140010ffc
mov rsi, rax
test rax, rax
jne 0x140010fae
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
mov qword [rsp + 0x20], rax
movzx eax, byte [0x140044160]
mov rcx, qword [0x1400440d8]
test rcx, rcx
jne 0x140010f70
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140011018
mov rcx, rax
mov qword [0x1400440d8], rax
mov r8d, 0x18
xor edx, edx
call fcn.140035514
test rax, rax
je 0x140011018
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x140037068]
test ecx, ecx
je 0x140011008
dec ecx
mov rdx, rsi
call fcn.140035474
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 0x140010ffe
test rcx, rcx
je 0x140010ffe
lock dec qword [rcx]
jne 0x140010ffe
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x140010ffe
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 0x140010f28
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_std::sys_common::thread_info::ThreadInfo_
call dbg.init
mov ecx, eax
jmp 0x140010fa6
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400112a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140011325
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 0x140011366
cmp dword [rsp + 0x2c], 0
je 0x14001134a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140011380
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x1400440e8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400440e8], rsi
jne 0x140011300
mov byte [0x1400440e0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14001135c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400113cc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001134f
mov edi, dword [rsp + 0x28]
jmp 0x14001135c
mov edi, dword [rsi + 0x18]
jmp 0x14001135a
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_a28077b28a02b92985b3a3faecf92813155f1ea1library_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_a28077b28a02b92985b3a3faecf92813155f1ea1library_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 0x140011950
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 0x140011969
dec ecx
jmp 0x140011973
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140035474
mov rdi, qword [rsp + 0x30]
cmp qword [rdi + 8], 0
je 0x1400119a1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400119a1
lock dec qword [rax]
jne 0x1400119a1
mov rcx, qword [rdi + 0x10]
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov rcx, qword [0x1400440d8]
xor edx, edx
mov r8, rdi
call fcn.14003550c
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x1400119bd
dec ecx
jmp 0x1400119c7
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140035474
Function at 0x140012bd0
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 0x140012be7
dec ecx
jmp 0x140012bf1
mov rcx, rsi
call dbg.init
mov ecx, eax
mov edx, 1
call fcn.140035474
mov rcx, qword [0x1400440d8]
xor edx, edx
mov r8, rdi
call fcn.14003550c
mov ecx, dword [rsi + 0x18]
test ecx, ecx
je 0x140012c17
dec ecx
jmp 0x140012c21
mov rcx, rsi
call dbg.init
mov ecx, eax
xor edx, edx
add rsp, 0x68
pop rdi
pop rsi
jmp fcn.140035474

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

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x140012e3d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140012e56
cmp qword [rax + 8], 0
je 0x140012e56
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, 2
jae 0x140012e2c
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x140012f01
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140012f1e
mov rsi, rax
test rax, rax
jne 0x140012ee3
movzx eax, byte [0x140044160]
mov rcx, qword [0x1400440d8]
test rcx, rcx
jne 0x140012ea8
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140012f36
mov rcx, rax
mov qword [0x1400440d8], rax
mov r8d, 0x20
xor edx, edx
call fcn.140035514
test rax, rax
je 0x140012f36
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140037048]
test ecx, ecx
je 0x140012f26
dec ecx
mov rdx, rsi
call fcn.140035474
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 0x140012e75
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x140012edb
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2

Function at 0x140015810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x14001587b
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x1400159d8
cmp r10b, 5
jb 0x1400159d8
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x14001586b
cmp r11b, 6
je 0x14001586b
mov esi, 2
cmp rdx, 2
jb 0x140015a82
cmp rsi, rdx
jne 0x140015998
xor edx, edx
jmp 0x1400159d8
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
lea r8, [0x14003c600]
mov ecx, 2
call dbg.slice_start_index_len_fail
ud2
Function at 0x140035fb0
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 0x140036020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400441f4]
mov rbx, rcx
test esi, esi
jle 0x140036150
mov rax, qword [0x1400441f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003606b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400360f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140036050
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140036172
mov rax, qword [0x1400441f8]
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 [0x1400441f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140036157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400360ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140036100
add dword [0x1400441f4], 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 [0x1400441f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400360ee
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 0x140036078
mov rax, qword [0x1400441f8]
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 0x140036700
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140044260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140044240]
test rbx, rbx
je 0x14003675c
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 0x140036753
test eax, eax
jne 0x140036753
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140036738
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 0x140036970
Capabilities:
Parse pe header

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

Function at 0x1400369a0
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 0x1400369ed
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 0x1400369e4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400369ef
add rax, 0x28
cmp rax, r9
jne 0x1400369d0
xor eax, eax
ret

Function at 0x1400369f0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140036a80
mov rdx, qword [0x14003def0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140036a6e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140036a6e
cmp word [rax + 0x18], 0x20b
jne 0x140036a6e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140036a80
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140036a59
add rbx, 0x28
cmp rbx, rdi
je 0x140036a80
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140036a50
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 0x140036a90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14003def0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140036ab0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140036ab8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140036ab0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140036b0d
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 0x140036b04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140036ab0
add rax, 0x28
cmp rax, r9
jne 0x140036af0
xor eax, eax
ret

Function at 0x140036b10
Capabilities:
Parse pe header

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