joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10099f88
Capabilities:
Get client handle via schannel
Get outbound credentials handle via credssp

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x20], 0
cmp dword [edx + 0xc], 0x80000000
xorps xmm0, xmm0
mov ebx, ecx
movsd qword [ebp - 0x28], xmm0
movsd qword [ebp - 0x30], xmm0
movsd qword [ebp - 0x38], xmm0
movsd qword [ebp - 0x40], xmm0
movsd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x54], 4
mov dword [ebp - 0x24], 0x400010
je 0x10099fde
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
cmp dword [edx + 0x18], 0x80000000
je 0x1009a008
mov eax, dword [edx + 0x20]
test eax, eax
je 0x1009a003
mov esi, dword [edx + 0x1c]
xor ecx, ecx
movzx edi, byte [esi]
inc esi
or ecx, dword [edi*4 + 0x101e6f24]
dec eax
jne 0x10099ff3
jmp 0x1009a005
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov esi, dword [edx + 8]
mov dword [ebp - 0x14], ebx
test esi, esi
je 0x1009a04f
cmp esi, 0x1fffffff
ja 0x1009a0d4
mov ebx, dword [edx + 4]
lea edx, [esi*4]
push 4
pop ecx
mov dword [ebp - 0x10], edx
call sym.__ZN63__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_8allocate17hf6ea05e3b69cdf8fE.863
test eax, eax
je 0x1009a0d9
mov edi, eax
xor eax, eax
mov ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
inc eax
cmp esi, eax
jne 0x1009a03f
mov ebx, dword [ebp - 0x14]
jmp 0x1009a054
xor esi, esi
push 4
pop edi
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x1c]
mov dword [eax + 4], esi
mov dword [eax + 8], edi
push 0
push ecx
push 0
push 0
push eax
push 0
push 2
push 0x101bac43
push 0
call sub.secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x1009a084
and dword [ebx], 0
mov dword [ebx + 4], eax
jmp 0x1009a0b9
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push 4
pop ecx
push 0x10
pop edx
push 0
call sym.__ZN5alloc5alloc6Global10alloc_impl17h85ddb242f3d613d2E.865
pop ecx
test eax, eax
je 0x1009a0e4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0xc], ebx
mov dword [edx + 4], eax
mov byte [edx], 4
test esi, esi
je 0x1009a0cc
shl esi, 2
push 4
pop edx
mov ecx, edi
push esi
call sym.__LT_alloc..alloc..Global_u20_as_u20_core..alloc..Allocator_GT_::deallocate::hcacc92fefce56ab3
pop eax
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.alloc::raw_vec::capacity_overflow::h5648a8ceafa88914
push 4
pop ecx
mov edx, dword [ebp - 0x10]
call dbg.handle_alloc_error
push 4
pop ecx
push 0x10
pop edx
call dbg.handle_alloc_error

Function at 0x1009a557
Capabilities:
Get remote cert context via schannel

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
lea eax, [ebp - 8]
mov esi, ecx
and dword [eax], 0
push eax
push 0x53
push edx
call sub.secur32.dll_QueryContextAttributesW
test eax, eax
je 0x1009a579
and dword [esi], 0
mov dword [esi + 4], eax
jmp 0x1009a582
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 4
pop esi
pop ebp
ret
Function at 0x1009b186
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [ebp + 8]
cmp edx, ecx
jbe 0x1009b196
add eax, ecx
pop ebp
ret
push dword [ebp + 0xc]
call dbg.panic_bounds_check
Function at 0x100a2dec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dl, 4
jne 0x100a2e5b
mov eax, dword [0x102260cc]
cmp eax, 3
jne 0x100a2f37
cmp word [edi], 0
push 2
pop eax
push 0x17
pop ebx
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x100a2e74
cmp word [edi], 0
je 0x100a2ec3
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [edi + 4]
lea eax, [edi + 0x14]
mov edx, edi
mov word [ebp - 0xe], 0x17
mov dword [ebp - 0x18], ecx
push 0x1c
pop ebx
mov ecx, ebx
jmp 0x100a2ed7
mov eax, edx
mov byte [esi], dl
shr edx, 0x18
shr eax, 8
mov byte [esi + 3], dl
mov word [esi + 1], ax
mov dword [esi + 4], edi
jmp 0x100a2f5f
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x100a2e8b
cmp eax, 0x2726
jne 0x100a2f50
push 1
push 0
push 0
push 0
push 2
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x100a2f30
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x100a2f41
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
jmp 0x100a2e35
lea eax, [edi + 2]
push 0x10
pop ecx
xorps xmm0, xmm0
mov edx, edi
mov word [ebp - 0xe], 2
push 6
pop ebx
movzx ebx, word [edx + ebx]
movzx edi, word [ebp - 0xe]
mov eax, dword [eax]
lea edx, [ebp - 0x34]
rol bx, 8
mov word [edx], di
mov word [edx + 2], bx
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x18]
movups xmmword [edx + 8], xmm0
mov dword [edx + 0x18], eax
push ecx
push edx
mov edi, dword [ebp - 0x14]
push edi
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
je 0x100a2f14
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x100a2f5f
call sub.ws2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
push edi
call sub.ws2_32.dll_closesocket
jmp 0x100a2f5f
call sub.ws2_32.dll_WSAGetLastError
jmp 0x100a2f50
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
jmp 0x100a2e0d
call sub.kernel32.dll_GetLastError
mov ebx, eax
push edi
call sub.ws2_32.dll_closesocket
mov eax, ebx
xor ecx, ecx
mov byte [esi], cl
and word [esi + 1], 0
mov byte [esi + 3], cl
mov dword [esi + 4], eax
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100a45f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
xchg dword [ecx], edx
mov eax, edx
and eax, 3
cmp eax, 2
mov dword [ebp - 0x10], eax
jne 0x100a4676
add edx, 0xfffffffe
je 0x100a4664
mov edi, dword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WakeByAddressSingle]
jmp 0x100a4626
test ebx, ebx
mov edx, ebx
je 0x100a4664
mov esi, dword [edx]
mov ebx, dword [edx + 4]
mov dword [edx], 0
test esi, esi
je 0x100a466c
mov byte [edx + 8], 1
mov al, 1
xchg byte [esi + 0x18], al
cmp al, 0xff
je 0x100a4650
lock dec dword [esi]
jne 0x100a4620
jmp 0x100a465b
lea eax, [esi + 0x18]
push eax
call edi
lock dec dword [esi]
jne 0x100a4620
mov ecx, esi
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
jmp 0x100a4620
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x101bf2fc
call dbg.unwrap_failed
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
mov edx, 0x101bf30c
push 0x101bf310
push eax
call dbg.assert_failed<usize, usize>
nop word cs:[eax + eax]
nop dword [eax]

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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xc
mov eax, dword [0x101631c4]
test eax, eax
je 0x100a4775
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a46ce
cmp dword [eax + 4], 0
je 0x100a46ce
add eax, 8
jmp 0x100a476f
mov eax, dword [0x101631c4]
test eax, eax
je 0x100a4784
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100a476d
test eax, eax
jne 0x100a473d
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x101631c4
movzx eax, byte [0x10226114]
xor ecx, ecx
mov edx, 0xc
call dbg.process_heap_alloc
test eax, eax
je 0x100a47a5
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x10]
movsd qword [eax], xmm0
mov ecx, dword [0x101631c4]
test ecx, ecx
je 0x100a4793
dec ecx
push eax
push ecx
mov esi, eax
call sub.kernel32.dll_TlsSetValue
mov eax, esi
mov edx, eax
add eax, 8
mov ecx, dword [edx + 8]
cmp dword [edx + 4], 0
mov dword [edx + 4], 1
mov dword [edx + 8], 0
je 0x100a476f
test ecx, ecx
je 0x100a476f
lock dec dword [ecx]
jne 0x100a476f
mov esi, eax
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov eax, esi
jmp 0x100a476f
xor eax, eax
add esp, 0xc
pop esi
pop ebp
ret
mov ecx, 0x101631c4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a46b5
mov ecx, 0x101631c4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a46dc
mov ecx, 0x101631c4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100a4732
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x100a4870
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x100a48db
mov eax, dword [dbg.on_tls_callback]
lea edi, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push edi
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x100a4915
cmp dword [ebp - 0x14], 0
je 0x100a48fc
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x100a4932
mov ebx, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x102260d4]
mov dword [esi + 8], eax
lock cmpxchg dword [0x102260d4], esi
jne 0x100a48c0
push 0
push 0
push edi
call sub.kernel32.dll_InitOnceComplete
mov eax, ebx
jmp 0x100a490d
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x100a496c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x100a4900
mov eax, dword [ebp - 0x10]
jmp 0x100a490d
mov eax, dword [esi]
jmp 0x100a490c
push dword [ebp - 0x10]
mov esi, eax
call sub.kernel32.dll_TlsFree
mov eax, esi
dec eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x101bec1c
push 0x101befd8
push eax
call dbg.assert_failed<i32, i32>
push 0
push 4
push edi
call sub.kernel32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x101befc8
mov dword [ebp - 0x2c], 0x101bef8c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs_g
mov dword [ebp - 0x20], 0
call dbg.panic_fmt
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x101bef8c
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs_g
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call dbg.assert_failed<u32, u32>
nop word [eax + eax]
Function at 0x100a4ac0
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 0x100a4ad7
test eax, eax
jne 0x100a4c38
mov edi, dword [0x102260d4]
test edi, edi
je 0x100a4c38
mov dword [ebp - 0x10], 0
jmp 0x100a4af7
mov edi, dword [edi + 8]
test edi, edi
je 0x100a4b26
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a4c77
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a4af0
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x100a4af0
test byte [ebp - 0x10], 1
je 0x100a4c38
mov edi, dword [0x102260d4]
test edi, edi
je 0x100a4c38
mov dword [ebp - 0x10], 0
jmp 0x100a4b57
mov edi, dword [edi + 8]
test edi, edi
je 0x100a4b86
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a4c77
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a4b50
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x100a4b50
test byte [ebp - 0x10], 1
je 0x100a4c38
mov edi, dword [0x102260d4]
test edi, edi
je 0x100a4c38
mov dword [ebp - 0x10], 0
jmp 0x100a4bb7
mov edi, dword [edi + 8]
test edi, edi
je 0x100a4be6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a4c77
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a4bb0
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x100a4bb0
test byte [ebp - 0x10], 1
je 0x100a4c38
mov edi, dword [0x102260d4]
test edi, edi
je 0x100a4c38
mov dword [ebp - 0x10], 0
jmp 0x100a4c07
mov edi, dword [edi + 8]
test edi, edi
je 0x100a4c32
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a4c77
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a4c00
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x100a4c00
test byte [ebp - 0x10], 1
jne 0x100a4c42
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x102260d4]
jmp 0x100a4c4d
mov edi, dword [edi + 8]
test edi, edi
je 0x100a4c38
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x100a4c77
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
test eax, eax
je 0x100a4c4a
push 0
push esi
mov esi, eax
call sub.kernel32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x100a4c4a
mov ecx, 0x101beffc
call dbg.unwrap_failed
ud2
Function at 0x100a4f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [edx + 8]
call 0x100a4d91
pop eax
mov dword [ebp - 0x20], eax
test ebx, ebx
je 0x100a4e79
mov dword [ebp - 0x18], ecx
lea eax, [edx + 0xd]
xor ecx, ecx
mov dword [ebp - 0x14], eax
jmp 0x100a4dcc
mov ebx, dword [edx + 8]
cmp ecx, ebx
jae 0x100a4e7e
mov byte [edx + 0xc], 1
sub ebx, ecx
mov esi, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [edx + 4]
add eax, ecx
mov edx, 0xfffffff5
lea ecx, [ebp - 0x28]
push dword [ebp - 0x14]
push ebx
push eax
call dbg.write
add esp, 0xc
movzx eax, byte [ebp - 0x28]
mov edi, dword [ebp - 0x24]
cmp al, 4
jne 0x100a4e20
mov eax, dword [ebp - 0x28]
mov edx, esi
mov byte [esi + 0xc], 0
movzx ecx, al
mov ecx, dword [ecx*4 + 0x100a4f38]
add ecx, dword [ebp - 0x20]
jmp ecx
test al, al
jne 0x100a4dfc
cmp edi, 6
jne 0x100a4dfc
mov edx, esi
mov edi, ebx
mov byte [esi + 0xc], 0
test edi, edi
je 0x100a4e9f
mov ecx, dword [ebp - 0x10]
add ecx, edi
jmp 0x100a4dc1
mov byte [ecx], 4
jmp 0x100a4ede
mov eax, dword [ebp - 0x18]
test ecx, ecx
mov byte [eax], 4
je 0x100a4ede
cmp ebx, ecx
jb 0x100a4ef0
mov dword [edx + 8], 0
jmp 0x100a4ede
mov eax, dword [ebp - 0x18]
mov byte [eax], 2
mov dword [eax + 4], 0x101bd9ec
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x100a4ede
mov eax, edx
mov edx, dword [edx + 8]
mov edi, edx
sub edi, ecx
jb 0x100a4ee6
mov dword [eax + 8], 0
je 0x100a4ede
mov edx, eax
mov eax, dword [eax + 4]
add ecx, eax
push edi
push ecx
push eax
mov esi, edx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x101e5a74
call dbg.slice_end_index_len_fail
mov edx, ebx
push 0x101e5a74
call dbg.slice_end_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x14], eax
je 0x100a4f10
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x1c]
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
jmp 0x100a4f21
mov edx, dword [ebp - 0x10]
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_std..io..buffered..bufwriter..BufWriter_LT_W_GT_..flush_buf..BufGuard_GT_::hf941ae27ec065d6f
push dword [ebp - 0x14]
call sym.__Unwind_Resume
call dbg.panic_in_cleanup
add al, 1
add byte [eax], al
sbb dword [eax], eax
add byte [eax], al
add dword [eax], 0
add byte [ebx - 0x60000000], ch
add byte [eax], al
add byte [edi], cl
pop ds
inc eax
add byte [ebp - 0x77], dl
push ebp
mov ebp, esp
push edi
push esi
test edx, edx
je 0x100a4f80
mov eax, dword [ecx + 8]
mov esi, eax
sub esi, edx
jb 0x100a4f84
mov dword [ecx + 8], 0
je 0x100a4f80
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 0x101e5a74
call dbg.slice_end_index_len_fail
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x100a5840
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x101631b4]
test eax, eax
je 0x100a58d9
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a5868
cmp dword [eax + 4], 0
je 0x100a5868
add eax, 8
jmp 0x100a58d6
mov eax, dword [0x101631b4]
test eax, eax
je 0x100a58e8
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100a58d4
test eax, eax
jne 0x100a58bb
movzx eax, byte [0x10226114]
xor ecx, ecx
mov edx, 0x10
call dbg.process_heap_alloc
test eax, eax
je 0x100a5909
mov dword [eax], 0x101631b4
mov dword [eax + 4], 0
mov ecx, dword [0x101631b4]
test ecx, ecx
je 0x100a58f7
dec ecx
push eax
push ecx
mov esi, eax
call sub.kernel32.dll_TlsSetValue
mov eax, esi
mov dword [eax + 4], 1
mov ecx, eax
add eax, 8
mov dword [ecx + 8], 0
mov byte [ecx + 0xc], 0
jmp 0x100a58d6
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x101631b4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a5852
mov ecx, 0x101631b4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a5872
mov ecx, 0x101631b4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100a58b0
mov ecx, 4
mov edx, 0x10
call dbg.handle_alloc_error
nop dword [eax + eax]
Function at 0x100a79d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
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 0x100a7a40
jmp 0x100a7a2e
jbe 0x100a7ab8
cmp esi, 0x201
jae 0x100a7a40
mov dword [ebp - 0x24], 0x200
lea edi, [ebp - 0x448]
mov ebx, esi
jmp 0x100a7a6a
mov ebx, dword [ebp - 0x28]
sub esi, ebx
je 0x100a7a5e
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
add esp, 4
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 0x100a7a8b
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x100a7b0f
cmp esi, ebx
jne 0x100a7a20
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x100a7b2c
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100a7a2e
jmp 0x100a7a40
mov edx, dword [ebp - 0x24]
cmp esi, edx
ja 0x100a7b45
mov edx, edi
lea ecx, [ebp - 0x38]
push esi
call dbg.from_wide
add esp, 4
movsd xmm0, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
movsd qword [ebp - 0x40], xmm1
movsd qword [ebp - 0x48], xmm0
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
cmp dword [ebp - 0x18], 0
je 0x100a7b04
mov ecx, dword [ebp - 0x14]
mov edx, 2
call sym.___rust_dealloc
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx], 0x80000000
cmp dword [ebp - 0x18], 0
jne 0x100a7af7
jmp 0x100a7b04
mov edx, 0x28
mov ecx, 0x101c07e6
push 0x101bf108
call dbg.panic
add esp, 4
jmp 0x100a7b54
mov ecx, esi
push 0x101bf0f8
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x100ab660
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
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 + 0x10]
push esi
push eax
call dbg.open
add esp, 8
cmp byte [esp + 0x10], 4
jne 0x100ab6c4
mov esi, dword [esp + 0x14]
jmp 0x100ab6d1
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x100ab741
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call dbg.file_attr
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x100ab72f
cmp byte [esp + 0x20], 3
jne 0x100ab736
mov ebx, dword [esp + 0x24]
mov dword [esp + 4], edi
mov edi, dword [ebx + 4]
mov ecx, dword [ebx]
mov eax, dword [edi]
mov dword [esp + 0xc], ecx
push ecx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x100ab71d
mov edx, dword [edi + 8]
mov ecx, dword [esp + 0xc]
call sym.___rust_dealloc
mov ecx, ebx
mov edx, 4
call sym.___rust_dealloc
mov edi, dword [esp + 4]
jmp 0x100ab736
cmp dword [esp + 0x54], 0
je 0x100ab77f
mov dword [edi], 0
jmp 0x100ab826
cmp al, 3
jne 0x100ab774
mov ebx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [ebx]
mov dword [esp + 4], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x100ab768
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 4]
call sym.___rust_dealloc
mov ecx, esi
mov edx, 4
call sym.___rust_dealloc
mov dword [edi], 0
jmp 0x100ab82c
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x100ab7b1
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 0x100ab81b
mov eax, dword [esp + 0x18]
jmp 0x100ab7b3
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 0x100ab80a
push dword [esp + 0xc]
push 0
push 0
push 4
push eax
mov dword [esp + 0x18], edi
mov edi, eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push edi
mov edi, dword [esp + 8]
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x100ab80a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x100ab826
mov dword [edi], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x100ab826
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