joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b9b30
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 0x100bad14
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 0x100b9c03
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 0x100b9d10
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 0x100bb0a7
mov dword [esp + 0x10], eax
mov eax, dword [edx*4 + 0x100bb420]
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 0x100baff8
mov eax, dword [eax*4 + 0x100bb4a0]
add eax, dword [esp + 0x60]
jmp eax
mov eax, dword [esp + 0x78]
mov dword [eax + 4], 0
mov dword [eax], 0
jmp 0x100bb134
mov edx, dword [esp + 0x48]
xor esi, esi
mov byte [esp + 0xc], 0x17
movzx edx, dl
jmp 0x100bb03b
shld esi, edx, 8
xor edi, edi
mov ebx, eax
mov dword [esp + 0x20], esi
mov esi, edx
shr esi, 8
jmp 0x100bb0e7
mov byte [esp + 0xc], 0x30
mov edx, dword [esp + 0x48]
xor edi, edi
jmp 0x100bb0e7
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_g
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 0x100c63d0
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 0x100c640f
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 0x100c65c6
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 0x100c6480
jmp 0x100c646e
jbe 0x100c6505
cmp ebx, 0x201
jae 0x100c6480
mov dword [esp + 0x1c], 0x200
lea esi, [esp + 0x4c]
mov edi, ebx
jmp 0x100c64b0
mov edi, dword [esp + 0x20]
sub ebx, edi
je 0x100c64a0
mov edx, edi
mov ecx, esp
push ebx
call dbg.do_reserve_and_handle<u16, alloc::alloc::Global>
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 0x100c64d5
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x100c655c
cmp ebx, edi
jne 0x100c6460
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x100c65e5
lea ebx, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x100c646e
jmp 0x100c6480
mov edx, dword [esp + 0x1c]
cmp ebx, edx
ja 0x100c65fe
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 0x100c654e
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 0x100c65ce
movd edi, xmm0
jmp 0x100c6579
call sub.kernel32.dll_GetLastError
cmp dword [esp], 0
mov edi, eax
je 0x100c6577
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 0x100c65b1
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 0x100c65a5
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 0x100c65c6
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 0x100c65b8
jmp 0x100c65c6
mov edx, 0x28
mov ecx, 0x101c07e6
push 0x101bf108
call dbg.panic
add esp, 4
jmp 0x100c660d
mov ecx, ebx
push 0x101bf0f8
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x100c7cf0
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 0x100c7d03
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 0x100c7d6a
mov esi, dword [ebp - 0x10]
cmp esi, 0x21
jae 0x100c7e26
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, esi
jb 0x100c7e11
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 0x100c7e09
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
jmp 0x100c7d9f
movzx eax, al
mov eax, dword [eax*4 + 0x100c7e60]
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 0x100c7d44
mov ecx, esi
mov edx, 0x20
push 0x101bde70
call dbg.slice_end_index_len_fail
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], eax
je 0x100c7e4a
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 0x100c7e87
pop esi
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov eax, edx
sub eax, edi
jb 0x100c7f4d
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 0x100c7ecb
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 0x100c7f31
add esi, dword [eax*4 + 0x100c7f80]
jmp esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x100c7f45
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x101bcf74
call dbg.slice_start_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], eax
je 0x100c7f6c
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 0x100c7e70
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 0x100c7d03
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 0x100c7d6a
mov esi, dword [ebp - 0x10]
cmp esi, 0x21
jae 0x100c7e26
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, esi
jb 0x100c7e11
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 0x100c7e09
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], ebx
jmp 0x100c7d9f
movzx eax, al
mov eax, dword [eax*4 + 0x100c7e60]
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 0x100c7d44
mov ecx, esi
mov edx, 0x20
push 0x101bde70
call dbg.slice_end_index_len_fail
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], eax
je 0x100c7e4a
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 0x100c7e87
pop esi
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov eax, edx
sub eax, edi
jb 0x100c7f4d
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 0x100c7ecb
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 0x100c7f31
add esi, dword [eax*4 + 0x100c7f80]
jmp esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x100c7f45
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
push 0x101bcf74
call dbg.slice_start_index_len_fail
cmp dword [ebx + 4], 0
mov dword [ebp - 0x10], eax
je 0x100c7f6c
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 0x100c7f90
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 0x100c7fd8
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x100c7fe8
mov dword [esi + 4], 0
jmp 0x100c7ff9
cmp eax, 0x103
je 0x100c8011
test eax, eax
js 0x100c8003
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 0x100c7ffc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x101beb00
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 0x100c92b0
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 0x100c92ff
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call dbg.get_long_path
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x100c930c
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 0x100c9324
mov byte [esi], 4
test ebx, ebx
jne 0x100c9333
jmp 0x100c9304
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x100c9304
mov ecx, edi
mov edx, 2
call sym.___rust_dealloc
jmp 0x100c9304
Function at 0x100ca6f0
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 0x100ca707
movzx eax, byte [0x10226071]
test al, al
je 0x100ca724
mov byte [0x10226071], 1
call sym.std::io::stdio::OUTPUT_CAPTURE::__getit::he9a33f44f6d1c60f
test eax, eax
je 0x100ca728
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 0x100ca71b
test esi, esi
je 0x100ca738
lock dec dword [esi]
jne 0x100ca738
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, 0x101c04a8
mov edx, 0x46
push 0x101bddfc
push 0x101bd2c0
push eax
call sym.core::result::unwrap_failed::hb9c5ac622931d85d
mov edi, eax
test esi, esi
je 0x100ca767
lock dec dword [esi]
jne 0x100ca767
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 0x100ca770
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 [0x101631e4]
test eax, eax
je 0x100ca845
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100ca79e
cmp dword [eax + 4], 0
je 0x100ca79e
add eax, 8
jmp 0x100ca83f
mov eax, dword [0x101631e4]
test eax, eax
je 0x100ca854
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100ca83d
test eax, eax
jne 0x100ca80d
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0x101631e4
movzx eax, byte [0x10226114]
xor ecx, ecx
mov edx, 0xc
call dbg.process_heap_alloc
test eax, eax
je 0x100ca875
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
movsd xmm0, qword [ebp - 0x10]
movsd qword [eax], xmm0
mov ecx, dword [0x101631e4]
test ecx, ecx
je 0x100ca863
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 0x100ca83f
test ecx, ecx
je 0x100ca83f
lock dec dword [ecx]
jne 0x100ca83f
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 0x100ca83f
xor eax, eax
add esp, 0xc
pop esi
pop ebp
ret
mov ecx, 0x101631e4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100ca785
mov ecx, 0x101631e4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100ca7ac
mov ecx, 0x101631e4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100ca802
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x100cac00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b0
movzx eax, word [edx + 8]
mov edi, dword [edx]
mov ebx, dword [edx + 4]
mov esi, ecx
mov word [ebp - 0xe], ax
mov eax, dword [0x102260cc]
cmp eax, 3
jne 0x100cadba
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x1c], eax
ja 0x100cadc4
lea eax, [ebp - 0x1bc]
push ebx
push edi
mov edi, eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1bc], 0
ja 0x100cac78
xor edx, edx
cmp byte [ebp + edx - 0x1bc], 0
je 0x100cad2f
inc edx
cmp eax, edx
jne 0x100cac60
jmp 0x100cad81
lea ecx, [ebp - 0x1b9]
and ecx, 0xfffffffc
sub ecx, edi
je 0x100cacaf
xor edx, edx
nop word [eax + eax]
cmp byte [ebp + edx - 0x1bc], 0
je 0x100cad2f
inc edx
cmp ecx, edx
jne 0x100cac90
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
cmp ecx, edx
jbe 0x100cacb5
jmp 0x100cad01
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
movdqa xmm0, xmmword [0x101665a0]
movdqa xmm1, xmmword [0x101665b0]
nop word cs:[eax + eax]
nop
movq xmm2, qword [ebp + ecx - 0x1bc]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd esi, xmm2
or esi, edi
jne 0x100cad01
add ecx, 8
cmp ecx, edx
jbe 0x100cacd0
mov esi, dword [ebp - 0x14]
sub eax, ecx
je 0x100cad81
lea edi, [ebp + ecx - 0x1bc]
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x100cad2d
inc edx
cmp eax, edx
jne 0x100cad20
jmp 0x100cad81
add edx, ecx
cmp edx, ebx
jne 0x100cad81
pxor xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x3c]
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x34], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1bc]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x100cada3
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x100cad98
mov eax, dword [0x101be210]
mov ecx, dword [0x101be214]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
add esp, 0x1b0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x100cad98
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 0x100cac29
lea eax, [ebp - 0x1c]
mov ecx, esi
mov edx, edi
push eax
push ebx
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost>
add esp, 8
jmp 0x100cad98
Function at 0x100cb290
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call dbg.spec_new_impl
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x100cb2fc
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x100cb31d
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
jmp 0x100cb334
mov ecx, dword [0x101be210]
mov edx, dword [0x101be214]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x100cb349
mov ecx, dword [ebp - 0x1c]
jmp 0x100cb33f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax]
movzx eax, word [eax]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x100cb349
mov ecx, edi
mov edx, 1
call sym.___rust_dealloc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100cb360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x100cb3b4
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x100cb3be
mov dword [esi], 0x100e6e8c
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
mov ecx, 0x101be11c
call dbg.unwrap_failed
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x101bff98
push 0x101beb30
push eax
call dbg.assert_failed<i32, i32>
nop dword [eax + eax]

Function at 0x100cb7b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x10226114]
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov edx, 8
call dbg.process_heap_alloc
test eax, eax
je 0x100cb840
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push dbg.thread_start
push ebx
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x100cb800
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100cb838
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x100cb821
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x100ce3b0
Capabilities:
Set file attributes

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 0x100ce3ff
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
call dbg.get_long_path
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x100ce40c
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 dword [ebp + 0xc]
push edi
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x100ce425
mov byte [esi], 4
test ebx, ebx
jne 0x100ce434
jmp 0x100ce404
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x100ce404
mov ecx, edi
mov edx, 2
call sym.___rust_dealloc
jmp 0x100ce404