joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e04c0
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
sub edx, 0xffffff80
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x53
push edx
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x4e04ec
mov edi, 0x80000000
jmp 0x4e0534
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 8]
mov dword [ebp - 0x10], eax
test edi, edi
js 0x4e0544
mov eax, dword [eax + 4]
je 0x4e051c
mov dword [ebp - 0x18], eax
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, edi
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x4e054b
mov ebx, eax
mov eax, dword [ebp - 0x18]
jmp 0x4e0521
mov ebx, 1
push edi
push eax
push ebx
call sym._memcpy
add esp, 0xc
push dword [ebp - 0x10]
call sub.crypt32.dll_CertFreeCertificateContext
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::h3a7a441d4f300da6
jmp 0x4e0557
mov ecx, 1
mov edx, edi
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
ud2
Function at 0x4e23d0
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
add edx, 0x128
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x53
push edx
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x4e23ff
mov edi, 0x80000000
jmp 0x4e2447
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 8]
mov dword [ebp - 0x10], eax
test edi, edi
js 0x4e2457
mov eax, dword [eax + 4]
je 0x4e242f
mov dword [ebp - 0x18], eax
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, edi
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x4e245e
mov ebx, eax
mov eax, dword [ebp - 0x18]
jmp 0x4e2434
mov ebx, 1
push edi
push eax
push ebx
call sym._memcpy
add esp, 0xc
push dword [ebp - 0x10]
call sub.crypt32.dll_CertFreeCertificateContext
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::h3a7a441d4f300da6
jmp 0x4e246a
mov ecx, 1
mov edx, edi
call sym.alloc::raw_vec::handle_error::he63c9115d026ec98
ud2
Function at 0x501700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [ebp + 0x14]
call 0x501711
pop eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x5017ef
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x1c]
jmp 0x501748
test ebx, ebx
je 0x5017ef
mov ecx, edi
mov edx, 0xfffffff4
push dword [ebp + 0xc]
push ebx
push esi
call sym.std::sys::pal::windows::stdio::write::h6e4cbff5b149a0cd
add esp, 0xc
movzx eax, byte [ebp - 0x1c]
cmp eax, 4
jne 0x501780
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5017f7
mov eax, ebx
sub eax, ecx
jb 0x501814
add esi, ecx
mov ebx, eax
jmp 0x501740
mov eax, dword [eax*4 + 0x50185c]
add eax, dword [ebp - 0x20]
jmp eax
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x50180c
mov edi, 0x5b6bb0
jmp 0x501801
mov eax, dword [ebp + 8]
movsd xmm0, qword [edi]
movsd qword [eax], xmm0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
push 0x5b1ad8
call sym.core::slice::index::slice_start_index_len_fail::hb6088e54b0b075d5
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp dword [edx + 4], 0
je 0x501848
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 9
jb 0x50183a
mov ecx, dword [ecx - 4]
push ecx
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push esi
call sym.__Unwind_Resume
lock add byte [eax], al
add byte [ebx], bh
add byte [eax], al
adc al, 0
add byte [eax], al
add dword [eax], 0
add byte [edi], cl
pop ds
inc eax
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push ebx
Function at 0x501b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov edi, edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x103
lea edx, [ebp - 0x18]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x501b80
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x18]
cmp eax, 0x103
je 0x501ba0
test eax, eax
js 0x501b8b
mov eax, dword [ebp - 0x14]
mov bl, 4
jmp 0x501b93
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov byte [esi], bl
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], 0x5b27c8
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x40]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2c], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h170a2f7748b08546
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h16720b9b670a121b
mov ecx, 7
int 0x29
ud2
Function at 0x5027a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
test edx, edx
je 0x5027d0
mov eax, dword [ecx + 8]
mov esi, eax
sub esi, edx
jb 0x5027d4
mov dword [ecx + 8], 0
je 0x5027d0
mov eax, dword [ecx + 4]
add edx, eax
push esi
push edx
push eax
mov edi, ecx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [edi + 8], esi
pop esi
pop edi
pop ebp
ret
mov ecx, edx
mov edx, eax
push 0x5b0f4c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
nop word cs:[eax + eax]
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x5750a0]
mov edi, ecx
test esi, esi
je 0x502896
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x50288e
je 0x50283e
test edi, edi
je 0x502842
mov eax, dword [edi]
xor ecx, ecx
mov ebx, 0
mov dword [edi], 0
or eax, dword [edi + 4]
mov dword [edi + 4], 0
je 0x50283a
mov ecx, dword [edi + 0xc]
mov ebx, dword [edi + 8]
mov edi, ecx
jmp 0x502846
xor eax, eax
jmp 0x50288e
xor ebx, ebx
xor edi, edi
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 0x10
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x5028b3
mov dword [eax], ebx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x50288b
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5750a0
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x502813
jmp 0x50288e
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x5028d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x5750b0]
test esi, esi
je 0x502956
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x50294e
je 0x50294c
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 8
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x50296f
mov dword [eax], 0
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x502947
mov eax, dword [edi]
test eax, eax
je 0x502939
lock dec dword [eax]
jne 0x502939
mov ecx, dword [edi]
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h19d68d7e22e18a44
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
jmp 0x50294e
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5750b0
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x5028ed
jmp 0x50294e
mov ecx, 4
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
nop
Function at 0x502a60
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x502ade
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x30], eax
jne 0x502b18
cmp dword [ebp - 0x14], 0
je 0x502aff
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x502b35
mov edi, eax
mov eax, dword [entry1]
mov eax, dword [0x5e1124]
nop word cs:[eax + eax]
nop
mov dword [esi + 8], eax
lock cmpxchg dword [0x5e1124], esi
jne 0x502ac0
mov eax, edi
inc eax
mov dword [esi], eax
push 0
push 0
push ebx
call sub.kernel32.dll_InitOnceComplete
jmp 0x502b0e
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x502b6f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x502b03
mov edi, dword [ebp - 0x10]
jmp 0x502b0e
mov edi, dword [esi]
jmp 0x502b0d
mov edi, eax
push dword [ebp - 0x10]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov edx, 0x5b2974
push 0x5b3198
push eax
call sym.core::panicking::assert_failed::h6a7846da8fea5b10
push 0
push 4
push ebx
call sub.kernel32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x5b3188
mov dword [ebp - 0x2c], 0x5b3158
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
call sym.core::panicking::panic_fmt::hced28cb7137b21e1
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x5b3158
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call sym.core::panicking::assert_failed::h28f16479b022faf2
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
lea edi, [ebp - 0x10]
lea edx, [ebp - 0xc]
xor ecx, ecx
push esi
push eax
push 0x5b0ac0
push edi
push 0x5b0ac0
call sym.core::panicking::assert_failed_inner::ha88f2a696e3dfa33
nop

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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 8
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0x5b31a8
lea esi, [ebp - 0xc]
lea edx, [ebp - 8]
mov ecx, 1
push 0x5b31ac
push eax
push 0x5b0ab0
push esi
push 0x5b0ab0
call sym.core::panicking::assert_failed_inner::ha88f2a696e3dfa33
nop word cs:[eax + eax]
nop
Function at 0x502c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x502c27
test eax, eax
jne 0x502de1
mov esi, dword [0x5e1124]
mov dword [ebp - 0x10], 0
nop word cs:[eax + eax]
nop
test esi, esi
je 0x502c7a
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x502deb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x502c40
dec ebx
push ebx
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x502c40
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x502c40
test byte [ebp - 0x10], 1
je 0x502de1
mov esi, dword [0x5e1124]
mov dword [ebp - 0x10], 0
nop word cs:[eax + eax]
nop dword [eax + eax]
test esi, esi
je 0x502cda
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x502deb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x502ca0
dec ebx
push ebx
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x502ca0
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x502ca0
test byte [ebp - 0x10], 1
je 0x502de1
mov esi, dword [0x5e1124]
mov dword [ebp - 0x10], 0
nop word cs:[eax + eax]
nop dword [eax + eax]
test esi, esi
je 0x502d3a
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x502deb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x502d00
dec ebx
push ebx
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x502d00
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x502d00
test byte [ebp - 0x10], 1
je 0x502de1
mov esi, dword [0x5e1124]
mov dword [ebp - 0x10], 0
nop word cs:[eax + eax]
nop dword [eax + eax]
test esi, esi
je 0x502d96
mov ebx, dword [esi]
mov edi, dword [esi + 4]
test edi, edi
je 0x502deb
mov esi, dword [esi + 8]
test ebx, ebx
je 0x502d60
dec ebx
push ebx
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x502d60
push 0
push ebx
mov ebx, eax
call sub.kernel32.dll_TlsSetValue
push ebx
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x502d60
test byte [ebp - 0x10], 1
je 0x502de1
mov edi, dword [0x5e1124]
nop word cs:[eax + eax]
nop dword [eax]
test edi, edi
je 0x502de1
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x502deb
mov edi, dword [edi + 8]
test esi, esi
je 0x502db0
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x502db0
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x502db0
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, 0x5b31bc
call sym.core::option::unwrap_failed::h4002a2165d665d64
ud2
Function at 0x502fa0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [0x575080]
test esi, esi
je 0x503018
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x503010
je 0x50300e
movzx eax, byte [0x5e1184]
xor ecx, ecx
mov edx, 0xc
call sym.std::sys::alloc::windows::process_heap_alloc::hc2bfe060f1f208f4
test eax, eax
je 0x503031
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x503009
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x10]
jmp 0x503010
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x575080
call sym.std::sys::thread_local::key::windows::LazyKey::init::h0bd71fcfbfc5b9bd
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x502fbd
jmp 0x503010
mov ecx, 4
mov edx, 0xc
call sym.alloc::alloc::handle_alloc_error::h3ca6a9ac69c8e3db
Function at 0x504c90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov esi, 0x200
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 2
cmp esi, 0x201
jae 0x504d00
jmp 0x504cee
jbe 0x504d78
cmp esi, 0x201
jae 0x504d00
mov dword [ebp - 0x24], 0x200
lea edi, [ebp - 0x438]
mov ebx, esi
jmp 0x504d2e
mov ebx, dword [ebp - 0x28]
sub esi, ebx
je 0x504d22
mov edx, ebx
lea ecx, [ebp - 0x18]
push 2
push 2
push esi
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
push 0
call sub.kernel32.dll_SetLastError
push edi
push ebx
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
test eax, eax
jne 0x504d4b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x504dab
cmp esi, ebx
jne 0x504ce0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x504de1
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x504cee
jmp 0x504d00
mov edx, dword [ebp - 0x24]
cmp esi, edx
ja 0x504dfa
mov edx, edi
lea ecx, [ebp - 0x38]
push esi
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 4
cmp dword [ebp - 0x18], 0
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
je 0x504dd6
jmp 0x504dc6
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
je 0x504dd6
push dword [ebp - 0x14]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_code_usr_local_cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.41.1_src_runtime_blocking_schedule.rsP__
push 0x5b2f8c
call sym.core::panicking::panic::hf6244c8fb5815825
add esp, 4
jmp 0x504e09
mov ecx, esi
push 0x5b2f7c
call sym.core::slice::index::slice_end_index_len_fail::h31017dc9c470f2c8
add esp, 4
ud2

Function at 0x506c60
Capabilities:
Enumerate process modules
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push eax
call sym.std::panicking::panic_count::LOCAL_PANIC_COUNT::__u7b__u7b_closure_u7d__u7d_::h379e8ed523049a75
test eax, eax
je 0x506c78
cmp dword [eax], 0
sete al
add esp, 4
pop ebp
ret
lea eax, [ebp - 1]
mov ecx, str.cannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_std_src_threadlocal.rs
mov edx, 0x46
push 0x5b13dc
push 0x5b3a3c
push eax
call sym.core::result::unwrap_failed::h534a40e08cfe968a
nop word cs:[eax + eax]
nop
Function at 0x507170
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov eax, dword [ebp + 8]
mov edi, ecx
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 7
movsd qword [esp + 0x32], xmm0
movsd qword [esp + 0x2c], xmm0
mov byte [esp + 0x34], 1
lea esi, [esp + 0x18]
lea ecx, [esp + 0xc]
push esi
push eax
call sym.std::sys::pal::windows::fs::File::open::h2b59cc016f8293b2
add esp, 8
cmp byte [esp + 0xc], 4
jne 0x5071d4
mov esi, dword [esp + 0x10]
jmp 0x5071e5
movzx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp al, 4
jne 0x507269
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call sym.std::sys::pal::windows::fs::File::file_attr::h915ff0e60469b481
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x507257
cmp byte [esp + 0x20], 3
jne 0x50725e
mov eax, dword [esp + 0x24]
mov dword [esp + 8], edi
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x507223
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x507240
cmp dword [ebx + 8], 9
jb 0x507232
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push dword [esp + 4]
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov edi, dword [esp + 8]
jmp 0x50725e
cmp dword [esp + 0x54], 0
je 0x5072bf
mov dword [edi], 0
jmp 0x507363
cmp al, 3
jne 0x5072b4
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebx]
test eax, eax
je 0x507285
push dword [esp + 4]
call eax
add esp, 4
mov eax, dword [esp + 4]
cmp dword [ebx + 4], 0
je 0x5072a6
cmp dword [ebx + 8], 9
jb 0x507298
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5e1120]
call sub.kernel32.dll_HeapFree
mov dword [edi], 0
jmp 0x507369
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 4], eax
je 0x5072f1
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x507358
mov eax, dword [esp + 0x18]
jmp 0x5072f3
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x1c], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x507347
push dword [esp + 4]
push 0
push 0
push 4
push eax
mov dword [esp + 0x28], eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push dword [esp + 0x14]
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x507347
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x507363
mov dword [edi], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x507363
call sub.kernel32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret