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

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x55e084]
test eax, eax
je 0x4fa4e3
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4fa465
cmp byte [eax + 4], 0
mov esi, eax
jne 0x4fa4db
mov eax, dword [0x55e084]
test eax, eax
je 0x4fa501
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4fa51a
mov esi, eax
test eax, eax
jne 0x4fa4d5
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x4fa4aa
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4fa52d
mov dword [0x5da100], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4fa52d
mov dword [eax], 0x55e084
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e084]
test eax, eax
je 0x4fa521
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x55e084
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4fa45d
jmp 0x4fa465
mov ecx, 0x55e084
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4fa482
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x55e084
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x4fa4ce
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
ud2

Function at 0x4fb260
Capabilities:
Write 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_NtWriteFile
cmp eax, 0x103
jne 0x4fb2af
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0x103
je 0x4fb2d1
test eax, eax
js 0x4fb2bd
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov al, 4
jmp 0x4fb2c8
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
add esp, 0x34
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x5bba88
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::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 0x4fb890
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x55e064]
test eax, eax
je 0x4fb8b5
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x4fb8ca
cmp dword [eax + 4], 0
je 0x4fb8ca
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x55e064
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4fb8a9
mov eax, dword [0x55e064]
test eax, eax
je 0x4fb949
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x4fb95e
mov esi, eax
test eax, eax
jne 0x4fb931
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x4fb903
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4fb96f
mov dword [0x5da100], eax
push 0x10
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4fb96f
mov dword [eax], 0x55e064
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e064]
test eax, eax
je 0x4fb963
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
pop ebp
ret
mov ecx, 0x55e064
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x4fb8df
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x55e064
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x4fb92a
mov ecx, 4
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x4fd060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x430
mov ebx, 0x200
xor edi, edi
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x20], 0
cmp ebx, 0x201
jae 0x4fd0e0
jmp 0x4fd0c1
mov edi, dword [ebp - 0x10]
jbe 0x4fd169
cmp ebx, 0x201
jae 0x4fd0e0
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x43c]
mov dword [ebp - 0x1c], 0x200
mov edi, ebx
jmp 0x4fd111
mov eax, dword [ebp - 0x20]
sub ebx, edi
sub eax, edi
cmp eax, ebx
jae 0x4fd102
mov edx, edi
lea ecx, [ebp - 0x2c]
push ebx
call dbg.do_reserve_and_handle<core::mem::maybe_uninit::MaybeUninit<u16>, alloc::alloc::Global>
add esp, 4
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
push 0
call sub.kernel32.dll_SetLastError
push esi
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x4fd132
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4fd1b3
cmp ebx, edi
jne 0x4fd0b0
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4fd1ce
lea ebx, [edi + edi]
test edi, edi
mov edi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x4fd0c1
jmp 0x4fd0e0
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
ja 0x4fd1e7
mov edx, esi
lea ecx, [ebp - 0x3c]
push ebx
call dbg.from_wide
add esp, 4
movsd xmm0, qword [ebp - 0x3c]
mov eax, dword [ebp - 0x18]
movsd xmm1, qword [ebp - 0x34]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test edi, edi
je 0x4fd1a8
push dword [ebp - 0x14]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
add esp, 0x430
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x10]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
test edi, edi
jne 0x4fd198
jmp 0x4fd1a8
mov edx, 0x28
mov ecx, str.internal_error:_entered_unreachable_codeC:UsersTEST.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rayon_core_1.11.0_srcjob.rs
push 0x5bc2ac
call dbg.panic
add esp, 4
jmp 0x4fd1f6
mov ecx, ebx
push 0x5bc2bc
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x4fedd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x4fedee
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x4fee05
test edx, edx
jne 0x4fee2e
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x4fee18
test edx, edx
jne 0x4fee22
mov ecx, edi
call dbg.include_cur_dir
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x4fee8f
jmp 0x4fee3b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x4fee8f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x4fee8f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x4fefa4]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
add ecx, eax
cmp edx, ecx
jb 0x4fef92
mov esi, edi
mov edi, dword [edi]
cmp edx, ecx
mov ebx, edi
lea ebx, [edi + ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jne 0x4feec6
movzx eax, byte [esi + 8]
mov byte [ebp - 0xd], al
mov ebx, dword [ebp - 0x14]
xor eax, eax
jmp 0x4fef32
movzx ebx, byte [esi + 8]
cmp bl, 3
mov byte [ebp - 0xd], bl
jae 0x4feeef
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub eax, edx
lea esi, [edx + esi - 1]
nop
cmp byte [esi], 0x5c
je 0x4fef81
dec esi
inc eax
jne 0x4feee0
jmp 0x4feebf
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
sub eax, edx
lea edi, [edx + esi - 1]
nop
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x4fef1b
cmp esi, 0x5c
je 0x4fef1b
dec edi
inc eax
jne 0x4fef00
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
xor eax, eax
jmp 0x4fef32
mov edx, dword [ebp - 0x1c]
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jb 0x4fef8b
mov ebx, dword [ebp - 0x18]
mov eax, 1
add ebx, ecx
sub edx, ecx
je 0x4fef56
mov cl, 9
cmp edx, 2
je 0x4fef5a
cmp edx, 1
jne 0x4fef69
cmp byte [ebx], 0x2e
jne 0x4fef69
xor ecx, ecx
cmp byte [ebp - 0xd], 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x4fef69
mov cl, 0xa
jmp 0x4fef69
cmp byte [ebx], 0x2e
jne 0x4fef69
cmp byte [ebx + 1], 0x2e
sete cl
xor cl, 9
mov esi, dword [ebp - 0x20]
add eax, edx
mov dword [esi], eax
mov byte [esi + 4], cl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jae 0x4fef28
push 0x5baf14
jmp 0x4fef97
push 0x5baf04
call dbg.slice_start_index_len_fail
add esp, 4
ud2
Function at 0x4ff1a0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
movaps xmm0, xmmword [0x560540]
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 0x18], 0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
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 0x4ff200
mov esi, dword [esp + 0x14]
jmp 0x4ff21b
movzx eax, byte [esp + 0x10]
mov esi, dword [esp + 0x14]
cmp eax, 3
je 0x4ff2dd
cmp eax, 4
jne 0x4ff31d
lea edi, [esp + 0x18]
mov edx, esi
mov ecx, edi
call dbg.file_attr
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x4ff28d
cmp byte [esp + 0x20], 3
jne 0x4ff2d2
mov eax, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov ebx, dword [eax + 4]
mov edi, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [ebx]
push edi
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x4ff276
cmp dword [ebx + 8], 9
jb 0x4ff268
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
push dword [esp + 8]
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov ebx, dword [esp + 4]
jmp 0x4ff2d2
cmp dword [esp + 0x54], 0
jne 0x4ff2d2
mov eax, dword [esp + 0x50]
test esi, esi
mov dword [esp + 8], eax
je 0x4ff325
mov dword [esp + 0x18], 0
call sub.kernel32.dll_GetCurrentProcess
push 2
push 0
push 0
push edi
push eax
push esi
push eax
call sub.kernel32.dll_DuplicateHandle
test eax, eax
je 0x4ff393
mov eax, dword [esp + 0x18]
mov dword [esp + 4], ebx
jmp 0x4ff32b
mov dword [ebx], 0
jmp 0x4ff39e
mov edi, dword [esi + 4]
mov dword [esp + 4], ebx
mov ebx, dword [esi]
mov eax, dword [edi]
push ebx
call eax
add esp, 4
cmp dword [edi + 4], 0
je 0x4ff30b
cmp dword [edi + 8], 9
jb 0x4ff2fd
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
push esi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
mov ebx, dword [esp + 4]
mov dword [ebx], 0
jmp 0x4ff3a4
mov dword [esp + 4], ebx
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x20], eax
push eax
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x4ff37e
mov edi, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
push edi
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4ff37e
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax], 1
jmp 0x4ff39e
mov eax, dword [esp + 4]
mov dword [eax], 0
push dword [esp + 0xc]
call sub.kernel32.dll_CloseHandle
jmp 0x4ff39e
call sub.kernel32.dll_GetLastError
mov dword [ebx], 0
push esi
call sub.kernel32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x51d470
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 0x51d4b8
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x14]
cmp eax, 0xc0000011
jne 0x51d4c8
mov dword [esi + 4], 0
jmp 0x51d4d9
cmp eax, 0x103
je 0x51d4f1
test eax, eax
js 0x51d4e3
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 0x51d4dc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x3c], 0x5bba88
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::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 0x51ff40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x55e0b4]
test eax, eax
je 0x51ff6a
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x51ff7f
cmp dword [eax + 4], 0
mov edi, eax
je 0x51ff7f
add edi, 8
jmp 0x520037
mov ecx, 0x55e0b4
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x51ff5a
mov eax, dword [0x55e0b4]
test eax, eax
je 0x52001c
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x520035
mov esi, eax
test eax, eax
jne 0x51fff2
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x51ffc4
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x520049
mov dword [0x5da100], eax
push 0xc
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x520049
mov dword [eax], 0x55e0b4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e0b4]
test eax, eax
je 0x52003d
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov ecx, dword [esi + 8]
cmp dword [esi + 4], 0
lea edi, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], 0
je 0x520037
test ecx, ecx
je 0x520037
lock dec dword [ecx]
jne 0x520037
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>>
jmp 0x520037
mov ecx, 0x55e0b4
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x51ff9c
xor edi, edi
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov ecx, 0x55e0b4
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x51ffeb
mov ecx, 4
mov edx, 0xc
call dbg.handle_alloc_error
ud2
Function at 0x526550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call dbg.inner
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
test edx, edx
je 0x5265b2
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call dbg.from_wide_to_user_path
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x5265bf
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5265d5
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x5265cd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi], 0
je 0x5265cd
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
jmp 0x5265cd
Function at 0x527c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
mov ebx, edx
mov esi, ecx
test eax, eax
jne 0x527cbd
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x527d53
mov dword [0x5da100], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x527d53
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 0x527cfd
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x527d4b
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 0x527d32
cmp dword [ebx + 8], 9
jae 0x527d1e
mov eax, dword [ebp - 0x10]
jmp 0x527d24
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
push edi
push 0
push dword [0x5da100]
call sub.kernel32.dll_HeapFree
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 ecx, 4
mov edx, 8
call dbg.handle_alloc_error
ud2
Function at 0x528250
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.0055c020
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push dbg.callback
push eax
push 0x1000
push ebx
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x528376
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x5282ae
cmp dword [ebp - 0x18], 0
jne 0x528385
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x528385
cmp ebx, 0x1000
ja 0x5283af
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x52839c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push dbg.callback
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x52837d
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x528320
cmp dword [ebp - 0x18], 0
jne 0x528382
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x5282e0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push dbg.callback
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
jne 0x5282ae
call sub.kernel32.dll_GetLastError
jmp 0x528385
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, ebx
mov ecx, edi
push 0x5bbcd4
call dbg.slice_index_order_fail
add esp, 4
jmp 0x5283c3
mov edx, 0x1000
mov ecx, ebx
push 0x5bbcd4
call dbg.slice_end_index_len_fail
add esp, 4
ud2

Function at 0x528410
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x528455
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x5bbdfc
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::hf47b077536b8d29b
mov dword [esp + 0x34], 1
lea ecx, [esp + 0x28]
mov edx, 0x5bbe28
call dbg.panic_fmt
ud2
Function at 0x52a090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x52a164
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x52a0bd
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x52a131
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x52a14d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x52a0f7
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x52a114
jmp 0x52a108
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x52a10f
cmp eax, 0x6d
jne 0x52a126
mov word [esi], 4
jmp 0x52a11e
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x52a11e
mov edx, eax
mov ecx, ebx
push 0x10
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x52a0c8
mov ecx, ebx
push 1
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x52a0c8
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call dbg.assert_failed<std::sys::windows::pipe::State, std::sys::windows::pipe::State>
ud2

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x55e094]
test eax, eax
je 0x52a903
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x52a885
cmp byte [eax + 4], 0
mov esi, eax
jne 0x52a8fb
mov eax, dword [0x55e094]
test eax, eax
je 0x52a921
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x52a93a
mov esi, eax
test eax, eax
jne 0x52a8f5
movzx eax, byte [0x5da16c]
mov eax, dword [0x5da100]
test eax, eax
jne 0x52a8ca
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x52a94d
mov dword [0x5da100], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x52a94d
mov dword [eax], 0x55e094
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0x55e094]
test eax, eax
je 0x52a941
dec eax
push esi
push eax
call sub.kernel32.dll_TlsSetValue
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x55e094
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x52a87d
jmp 0x52a885
mov ecx, 0x55e094
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x52a8a2
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, 0x55e094
call sym.std::sys::windows::thread_local_key::StaticKey::init::he0afa17cd17428ff
jmp 0x52a8ee
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
ud2