joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a6c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x1016f1b4]
test eax, eax
je 0x100a6d19
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100a6ca8
cmp dword [eax + 4], 0
je 0x100a6ca8
add eax, 8
jmp 0x100a6d16
mov eax, dword [0x1016f1b4]
test eax, eax
je 0x100a6d28
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100a6d14
test eax, eax
jne 0x100a6cfb
movzx eax, byte [0x10237124]
xor ecx, ecx
mov edx, 0x10
call dbg.process_heap_alloc
test eax, eax
je 0x100a6d49
mov dword [eax], 0x1016f1b4
mov dword [eax + 4], 0
mov ecx, dword [0x1016f1b4]
test ecx, ecx
je 0x100a6d37
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 0x100a6d16
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x1016f1b4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a6c92
mov ecx, 0x1016f1b4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100a6cb2
mov ecx, 0x1016f1b4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100a6cf0
mov ecx, 4
mov edx, 0x10
call dbg.handle_alloc_error
nop dword [eax + eax]
Function at 0x100a8e40
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 0x100a8eb0
jmp 0x100a8e9e
jbe 0x100a8f28
cmp esi, 0x201
jae 0x100a8eb0
mov dword [ebp - 0x24], 0x200
lea edi, [ebp - 0x448]
mov ebx, esi
jmp 0x100a8eda
mov ebx, dword [ebp - 0x28]
sub esi, ebx
je 0x100a8ece
mov edx, ebx
lea ecx, [ebp - 0x18]
push esi
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h761d50fc4b4e3c20
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 0x100a8efb
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x100a8f7f
cmp esi, ebx
jne 0x100a8e90
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x100a8f9c
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100a8e9e
jmp 0x100a8eb0
mov edx, dword [ebp - 0x24]
cmp esi, edx
ja 0x100a8fb5
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 0x100a8f74
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 0x100a8f67
jmp 0x100a8f74
mov edx, 0x28
mov ecx, 0x101d00e6
push 0x101ce968
call dbg.panic
add esp, 4
jmp 0x100a8fc4
mov ecx, esi
push 0x101ce958
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x100acad0
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 0x100acb34
mov esi, dword [esp + 0x14]
jmp 0x100acb41
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp al, 4
jne 0x100acbb1
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 0x100acb9f
cmp byte [esp + 0x20], 3
jne 0x100acba6
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 0x100acb8d
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 0x100acba6
cmp dword [esp + 0x54], 0
je 0x100acbef
mov dword [edi], 0
jmp 0x100acc96
cmp al, 3
jne 0x100acbe4
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 0x100acbd8
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 0x100acc9c
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 0xc], eax
je 0x100acc21
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 0x100acc8b
mov eax, dword [esp + 0x18]
jmp 0x100acc23
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 0x100acc7a
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 0x100acc7a
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 0x100acc96
mov dword [edi], 0
push dword [esp + 8]
call sub.kernel32.dll_CloseHandle
jmp 0x100acc96
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
Function at 0x100bafa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x100
mov edi, dword [edx + 0x1c]
mov dword [esp + 0x78], ecx
test edi, edi
je 0x100bc184
mov ebx, dword [edx + 0x14]
mov dword [esp + 0x14], edx
mov esi, 0xffffffff
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ecx, ebx
mov edx, ebx
mov dword [esp + 0x48], ebx
neg cl
shr edx, 0x10
shl cl, 3
shr esi, cl
test cl, 0x20
mov ecx, 0xffffffff
mov eax, esi
cmove esi, ecx
mov ecx, 0
cmovne eax, ecx
cmp dx, 5
mov edx, dword [esp + 0x14]
mov dword [esp + 0x70], esi
mov dword [esp + 0x4c], eax
sbb esi, 0
mov dword [esp + 0x9c], esi
movzx eax, byte [edx + 0x20]
mov ecx, dword [edx + 4]
mov esi, dword [edx + 0x18]
mov byte [esp + 0x24], al
call 0x100bb073
pop eax
mov dword [esp + 0x60], eax
mov eax, dword [edx]
mov dword [esp + 0x74], eax
movzx eax, bl
movzx ebx, byte [esp + 0x24]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
test bl, bl
mov dword [esp + 8], esi
mov dword [esp + 0x68], ecx
je 0x100bb180
lea ecx, [edi - 1]
lea eax, [esi + 1]
mov dword [esp + 0x3c], edi
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov dword [esp + 0x18], ecx
xor ecx, ecx
movzx edx, byte [esi]
cmp edx, 7
ja 0x100bc517
mov dword [esp + 0x10], eax
mov eax, dword [edx*4 + 0x100bc890]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], 8
mov ebx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], 0
mov edi, edx
add eax, dword [esp + 0x60]
jmp eax
movzx eax, byte [esp + 0x48]
dec eax
cmp eax, 7
ja 0x100bc468
mov eax, dword [eax*4 + 0x100bc910]
add eax, dword [esp + 0x60]
jmp eax
mov eax, dword [esp + 0x78]
mov dword [eax + 4], 0
mov dword [eax], 0
jmp 0x100bc5a4
mov edx, dword [esp + 0x48]
xor esi, esi
mov byte [esp + 0xc], 0x17
movzx edx, dl
jmp 0x100bc4ab
shld esi, edx, 8
xor edi, edi
mov ebx, eax
mov dword [esp + 0x20], esi
mov esi, edx
shr esi, 8
jmp 0x100bc557
mov byte [esp + 0xc], 0x30
mov edx, dword [esp + 0x48]
xor edi, edi
jmp 0x100bc557
movzx eax, dl
shl esi, 0x10
movzx edx, byte [esp + 0xc]
shl ecx, 8
shl eax, 8
or eax, esi
mov esi, dword [esp + 0x14]
or edx, eax
movzx eax, bl
mov ebx, dword [esp + 0x78]
or eax, ecx
mov dword [esi + 0x18], str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srccharmethods.rs__
mov dword [esi + 0x1c], 0
mov esi, dword [esp + 0x20]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x10], eax
mov dword [ebx + 4], 0
mov dword [ebx], 2
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c78e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x450
mov esi, ecx
lea ecx, [esp + 0x4c]
push dword [ebp + 8]
call dbg.inner
add esp, 4
mov eax, dword [esp + 0x4c]
cmp eax, 0x80000000
jne 0x100c791f
lea ecx, [esp + 0x4c]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov dword [esi], 0x80000000
jmp 0x100c7ad6
mov ecx, dword [esp + 0x50]
mov ebx, 0x200
mov dword [esp], 0
mov dword [esp + 4], 2
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 2
mov dword [esp + 0x10], ecx
cmp ebx, 0x201
jae 0x100c7990
jmp 0x100c797e
jbe 0x100c7a15
cmp ebx, 0x201
jae 0x100c7990
mov dword [esp + 0x1c], 0x200
lea esi, [esp + 0x4c]
mov edi, ebx
jmp 0x100c79c0
mov edi, dword [esp + 0x20]
sub ebx, edi
je 0x100c79b0
mov edx, edi
mov ecx, esp
push ebx
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h761d50fc4b4e3c20
add esp, 4
mov edi, dword [esp]
mov eax, dword [esp + 4]
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 8], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
push 0
call sub.kernel32.dll_SetLastError
push edi
push esi
push dword [esp + 0x18]
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x100c79e5
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x100c7a6c
cmp ebx, edi
jne 0x100c7970
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x100c7af5
lea ebx, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x100c797e
jmp 0x100c7990
mov edx, dword [esp + 0x1c]
cmp ebx, edx
ja 0x100c7b0e
mov edx, esi
lea ecx, [esp + 0x3c]
push ebx
call dbg.from_wide
add esp, 4
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
movq xmm0, qword [esp + 0x44]
cmp dword [esp], 0
je 0x100c7a5e
mov ecx, dword [esp + 4]
mov edx, 2
movdqa xmmword [esp + 0x20], xmm0
call sym.___rust_dealloc
movdqa xmm0, xmmword [esp + 0x20]
cmp esi, 0x80000000
jne 0x100c7ade
movd edi, xmm0
jmp 0x100c7a89
call sub.kernel32.dll_GetLastError
cmp dword [esp], 0
mov edi, eax
je 0x100c7a87
mov ecx, dword [esp + 4]
mov edx, 2
call sym.___rust_dealloc
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp bl, 3
mov dword [eax], 0x80000000
jne 0x100c7ac1
mov ebx, dword [edi + 4]
mov esi, dword [edi]
mov eax, dword [ebx]
push esi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x100c7ab5
mov edx, dword [ebx + 8]
mov ecx, esi
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
cmp dword [esp + 0x14], 0
je 0x100c7ad6
mov ecx, dword [esp + 0x10]
mov edx, 2
call sym.___rust_dealloc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [eax], esi
mov dword [eax + 4], ebx
movq qword [eax + 8], xmm0
cmp dword [esp + 0x14], 0
jne 0x100c7ac8
jmp 0x100c7ad6
mov edx, 0x28
mov ecx, 0x101d00e6
push 0x101ce968
call dbg.panic
add esp, 4
jmp 0x100c7b1d
mov ecx, ebx
push 0x101ce958
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x100c9430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
xorps xmm0, xmm0
mov edi, edx
call 0x100c9443
pop ebx
mov dword [ebp - 0x1c], ecx
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
lea esi, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push esi
call dbg.read
add esp, 4
movzx eax, byte [ebp - 0x14]
cmp al, 4
jne 0x100c94aa
mov esi, dword [ebp - 0x10]
cmp esi, 0x21
jae 0x100c9566
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, esi
jb 0x100c9551
mov eax, dword [edi + 4]
add eax, ebx
push esi
lea ecx, [ebp - 0x40]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add ebx, esi
mov dword [edi + 8], ebx
mov dword [eax + 4], esi
mov byte [eax], 4
jmp 0x100c9549
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
jmp 0x100c94df
movzx eax, al
mov eax, dword [eax*4 + 0x100c95a0]
add eax, ebx
jmp eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, ebx
push esi
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov ebx, dword [edi + 8]
jmp 0x100c9484
mov ecx, esi
mov edx, 0x20
push 0x101cd370
call dbg.slice_end_index_len_fail
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], eax
je 0x100c958a
mov edx, dword [edi + 8]
mov ecx, ebx
call sym.___rust_dealloc
mov ecx, esi
mov edx, 4
call sym.___rust_dealloc
push dword [ebp - 0x18]
call sym.__Unwind_Resume
nop
cli
add byte [eax], al
add byte [edx + 0x7d000000], ch
add byte [eax], al
add byte [ebp + 0x55000000], bh
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
call 0x100c95c7
pop esi
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov eax, edx
sub eax, edi
jb 0x100c968d
mov ebx, dword [ecx]
add ebx, edi
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ebx
call dbg.synchronous_read
add esp, 8
movzx eax, byte [ebp - 0x18]
cmp eax, 4
jne 0x100c960b
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edi
mov eax, dword [ecx + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [ecx + 0xc], edi
jmp 0x100c9671
add esi, dword [eax*4 + 0x100c96c0]
jmp esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x100c9685
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x101cbfc8
call dbg.slice_start_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], eax
je 0x100c96ac
mov edx, dword [ebx + 8]
mov ecx, esi
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
push dword [ebp - 0x10]
call sym.__Unwind_Resume
dec ebp
add byte [eax], al
add byte [edx + 0x5b000000], ah
add byte [eax], al
add byte [eax], ch
add byte [eax], al
Function at 0x100c95b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
xorps xmm0, xmm0
mov edi, edx
call 0x100c9443
pop ebx
mov dword [ebp - 0x1c], ecx
movups xmmword [ebp - 0x30], xmm0
movups xmmword [ebp - 0x40], xmm0
lea esi, [ebp - 0x40]
lea ecx, [ebp - 0x14]
push esi
call dbg.read
add esp, 4
movzx eax, byte [ebp - 0x14]
cmp al, 4
jne 0x100c94aa
mov esi, dword [ebp - 0x10]
cmp esi, 0x21
jae 0x100c9566
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, esi
jb 0x100c9551
mov eax, dword [edi + 4]
add eax, ebx
push esi
lea ecx, [ebp - 0x40]
push ecx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
add ebx, esi
mov dword [edi + 8], ebx
mov dword [eax + 4], esi
mov byte [eax], 4
jmp 0x100c9549
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
jmp 0x100c94df
movzx eax, al
mov eax, dword [eax*4 + 0x100c95a0]
add eax, ebx
jmp eax
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, ebx
push esi
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov ebx, dword [edi + 8]
jmp 0x100c9484
mov ecx, esi
mov edx, 0x20
push 0x101cd370
call dbg.slice_end_index_len_fail
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], eax
je 0x100c958a
mov edx, dword [edi + 8]
mov ecx, ebx
call sym.___rust_dealloc
mov ecx, esi
mov edx, 4
call sym.___rust_dealloc
push dword [ebp - 0x18]
call sym.__Unwind_Resume
nop
cli
add byte [eax], al
add byte [edx + 0x7d000000], ch
add byte [eax], al
add byte [ebp + 0x55000000], bh
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
call 0x100c95c7
pop esi
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov eax, edx
sub eax, edi
jb 0x100c968d
mov ebx, dword [ecx]
add ebx, edi
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
push eax
push ebx
call dbg.synchronous_read
add esp, 8
movzx eax, byte [ebp - 0x18]
cmp eax, 4
jne 0x100c960b
add edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], edi
mov eax, dword [ecx + 0xc]
cmp eax, edi
cmova edi, eax
mov dword [ecx + 0xc], edi
jmp 0x100c9671
add esi, dword [eax*4 + 0x100c96c0]
jmp esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x100c9685
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x101cbfc8
call dbg.slice_start_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], eax
je 0x100c96ac
mov edx, dword [ebx + 8]
mov ecx, esi
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
push dword [ebp - 0x10]
call sym.__Unwind_Resume
dec ebp
add byte [eax], al
add byte [edx + 0x5b000000], ah
add byte [eax], al
add byte [eax], ch
add byte [eax], al
Function at 0x100c96d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
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 - 0x10], 0
mov dword [ebp - 0x14], 0x103
lea edx, [ebp - 0x14]
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x100c9718
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x100c9728
mov dword [esi + 4], 0
jmp 0x100c9739
cmp eax, 0x103
je 0x100c9751
test eax, eax
js 0x100c9743
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x34
pop esi
pop edi
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x100c973c
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x101ce180
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x30], 0
push eax
push ecx
push edx
call dbg.write_fmt<std::sys::pal::windows::stdio::Stderr>
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call dbg.drop_in_place<core::option::Option<std::io::error::Error>>
mov ecx, 7
int 0x29
ud2

Function at 0x100cab70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, ecx
lea ecx, [ebp - 0x24]
push dword [ebp + 8]
call dbg.inner
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x100cabc4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x100cabd1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
push 0
push edi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
je 0x100cabe9
mov byte [esi], 4
test ebx, ebx
jne 0x100cabf8
jmp 0x100cabc9
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x100cabc9
mov ecx, edi
mov edx, 2
call sym.___rust_dealloc
jmp 0x100cabc9
Function at 0x100cbfc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, ecx
test ecx, ecx
jne 0x100cbfd7
movzx eax, byte [0x10237075]
test al, al
je 0x100cbff4
mov byte [0x10237075], 1
call sym.std::io::stdio::OUTPUT_CAPTURE::__getit::he9a33f44f6d1c60f
test eax, eax
je 0x100cbff8
mov ecx, dword [eax]
mov dword [eax], esi
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebp
ret
xor ecx, ecx
jmp 0x100cbfeb
test esi, esi
je 0x100cc008
lock dec dword [esi]
jne 0x100cc008
mov ecx, esi
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
lea eax, [ebp - 9]
mov ecx, 0x101cfda8
mov edx, 0x46
push 0x101cd2fc
push 0x101cc314
push eax
call sym.core::result::unwrap_failed::hb9c5ac622931d85d
mov edi, eax
test esi, esi
je 0x100cc037
lock dec dword [esi]
jne 0x100cc037
mov ecx, esi
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
push edi
call sym.__Unwind_Resume
nop dword [eax]

Function at 0x100cc040
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 [0x1016f1e4]
test eax, eax
je 0x100cc115
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100cc06e
cmp dword [eax + 4], 0
je 0x100cc06e
add eax, 8
jmp 0x100cc10f
mov eax, dword [0x1016f1e4]
test eax, eax
je 0x100cc124
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100cc10d
test eax, eax
jne 0x100cc0dd
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x1016f1e4
movzx eax, byte [0x10237124]
xor ecx, ecx
mov edx, 0xc
call dbg.process_heap_alloc
test eax, eax
je 0x100cc145
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x10]
movsd qword [eax], xmm0
mov ecx, dword [0x1016f1e4]
test ecx, ecx
je 0x100cc133
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 0x100cc10f
test ecx, ecx
je 0x100cc10f
lock dec dword [ecx]
jne 0x100cc10f
mov esi, eax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov eax, esi
jmp 0x100cc10f
xor eax, eax
add esp, 0xc
pop esi
pop ebp
ret
mov ecx, 0x1016f1e4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100cc055
mov ecx, 0x1016f1e4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100cc07c
mov ecx, 0x1016f1e4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100cc0d2
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2