joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44aa80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
lea ebx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
push dword [edi]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x44aaca
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x6d
je 0x44aae4
cmp eax, 0x3e5
jne 0x44aaf4
mov dword [esi + 4], 0
jmp 0x44aabc
mov dword [esi + 4], 1
mov dword [esi + 8], 0
jmp 0x44aabc
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x44aabe

Function at 0x44ad50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x44adc6
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp]
cmp eax, 0xc0000011
jne 0x44add6
mov dword [esi + 4], 0
jmp 0x44ade8
cmp eax, 0x103
je 0x44ae04
test eax, eax
js 0x44adf3
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x44adeb
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x4c0e28
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x4c39a0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], str.capacity_overflow
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], sym.__LT_core..fmt..Arguments_u20_as_u20_core..fmt..Display_GT_::fmt::hf201150a942d16b5
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h91d10a514cbc00d4
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x44ae98
push esi
call sym.core::ptr::drop_in_place_LT_std..io..error..Error_GT_::h98a2cc1771703f8a
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x44aeb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
xor edx, edx
mov dword [esp + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov ebx, esp
test ecx, ecx
setne dl
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x1c], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x18]
cmove edx, ecx
mov ecx, dword [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x44af2d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp]
cmp eax, 0x103
je 0x44af54
test eax, eax
js 0x44af3d
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44af4c
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov dword [esi], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x44], 0x4c0e28
mov dword [esp + 0x48], 2
mov dword [esp + 0x3c], 0
lea esi, [esp + 0x34]
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x4c39a0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x20], str.capacity_overflow
mov byte [esp + 0xc], 0
mov dword [esp + 0x24], 0
lea ecx, [esp + 8]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], sym.__LT_core..fmt..Arguments_u20_as_u20_core..fmt..Display_GT_::fmt::hf201150a942d16b5
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x50], 1
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h91d10a514cbc00d4
add esp, 0xc
cmp byte [esp + 0x34], 4
je 0x44afe8
push esi
call sym.core::ptr::drop_in_place_LT_std..io..error..Error_GT_::h98a2cc1771703f8a
add esp, 4
mov ecx, 7
int 0x29
ud2

Function at 0x44b490
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, 0x17
cmp word [eax], 0
mov eax, 2
cmove ebx, eax
push 0x81
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x44b4cf
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44b540
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x44b4e2
cmp eax, 0x2739
jne 0x44b510
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x44b50b
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x44b51b
mov dword [esi + 4], edi
jmp 0x44b4ca
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x44b540
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
push edi
call sub.WS2_32.dll_closesocket
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44b950
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi + 4]
mov ebx, dword [edi + 8]
mov eax, ecx
sub eax, ebx
jb 0x44b9bf
cmp eax, 0x7fffffff
mov edx, 0x7fffffff
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmovb edx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push edx
push eax
push dword [ecx]
call sub.WS2_32.dll_recv
cmp eax, 0xffffffff
je 0x44b99e
add eax, ebx
mov dword [edi + 8], eax
mov ecx, dword [edi + 0xc]
cmp ecx, eax
cmova eax, ecx
mov dword [edi + 0xc], eax
jmp 0x44b9aa
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x44b9b4
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x44b9ad
push 0x4c1bcc
push ecx
push ebx
call sym.core::slice::index::slice_start_index_len_fail::h66d26830f9e36ca4
add esp, 0xc
ud2

Function at 0x44b9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x14]
lea ebx, [ebp - 0x10]
push 0
push 0
push edi
push ebx
push ecx
push eax
push dword [edx]
call sub.WS2_32.dll_WSARecv
test eax, eax
je 0x44ba21
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x44ba2c
mov dword [esi + 4], 0
jmp 0x44ba27
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44ba35
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44ba40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, 0x7fffffff
cmp eax, 0x7fffffff
cmovb edx, eax
push 2
push edx
push dword [ebp + 0x10]
push dword [ecx]
call sub.WS2_32.dll_recv
mov ecx, eax
cmp eax, 0xffffffff
jne 0x44ba7c
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
cmp eax, 0x274a
jne 0x44ba87
mov dword [esi + 4], ecx
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov ecx, eax
mov edx, eax
shr eax, 0x18
mov byte [esi], 0
shr ecx, 8
shl edx, 0x18
mov byte [esi + 7], al
mov dword [esi + 1], edx
mov word [esi + 5], cx
mov eax, esi
pop esi
pop ebp
ret
Function at 0x44bd80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
lea edi, [ebp - 0xc]
push 0
push 0
push 0
push edi
push ecx
push eax
push dword [edx]
call sub.WS2_32.dll_WSASend
cmp eax, 0xffffffff
je 0x44bdbc
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x44bdca
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebp
ret

Function at 0x44bde0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
xor eax, eax
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x18], 0x3b9aca00
je 0x44be72
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, edi
seto cl
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
setb al
or al, cl
je 0x44be28
xor edx, edx
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
jne 0x44be4c
jmp 0x44be72
mov eax, dword [ebp + 0x18]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add edi, edx
adc ebx, 0
setae al
movzx edx, al
mov esi, dword [ebp + 8]
mov eax, 0xffffffff
test edx, edx
je 0x44be72
imul ecx, dword [ebp + 0x18], 0x68c26139
xor edx, edx
ror ecx, 6
cmp ecx, 0x10c7
setae dl
add edi, edx
adc ebx, 0
jb 0x44be72
xor eax, eax
neg ebx
sbb eax, eax
or eax, edi
je 0x44beb6
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov edx, dword [edx]
push 4
push eax
push ecx
push 0xffff
push edx
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44beaa
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 2
mov dword [esi + 4], 0x4c3a6c
jmp 0x44beac

Function at 0x44bfb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push dword [eax]
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
je 0x44bfdc
mov byte [esi], 4
jmp 0x44bfea
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
add esp, 4
pop esi
pop ebp
ret
Function at 0x44c000
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
xor ecx, ecx
xor edx, edx
cmp dword [ebp + 0x18], 0x3b9aca00
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
setne bl
je 0x44c01f
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax]
mov dl, bl
mov word [ebp - 0xc], dx
mov word [ebp - 0xa], cx
lea ecx, [ebp - 0xc]
push 4
push ecx
push pe_nt_image_headers32
push 0xffff
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44c05c
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebx
pop ebp
ret

Function at 0x44c0f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push 4
push ecx
push 1
push 6
push eax
call sub.WS2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x44c12f
call sub.WS2_32.dll_WSAGetLastError
xor ecx, ecx
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
mov byte [esi], cl
mov eax, esi
add esp, 4
pop esi
pop ebp
ret

Function at 0x44cb90
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
call sym.__ZN98__LT_alloc..vec..Vec_LT_T_GT__u20_as_u20_alloc..vec..spec_from_iter..SpecFromIter_LT_T_C_I_GT__GT_9from_iter17h7cc955dd7
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x14]
jne 0x44cbca
lea ecx, [ebp - 0x14]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve_for_push::h2070ab1e8c13ff54
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov word [edi + edx*2], 0
push edi
call sub.KERNEL32.dll_SetCurrentDirectoryW
test eax, eax
je 0x44cc01
mov byte [esi], 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x44cbf8
add eax, eax
push 2
push eax
push edi
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x44cbea
jmp 0x44cbf8
Function at 0x44ed10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x44edb9
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push sym.__ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h0a1bc856fd537a7aE_12
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x44ed89
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x44ed60
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x44ed90
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
jmp 0x44ed9d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push edi
call sym.std::sys::windows::decode_error_kind::ha748574a25ec667c
add esp, 4
cmp al, 0xb
jne 0x44eda5
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x44edb1
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [eax + 4], edi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c1bcc
push ecx
push ebx
call sym.core::slice::index::slice_start_index_len_fail::h66d26830f9e36ca4
add esp, 0xc
ud2

Function at 0x44f490
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 0x44f562
mov ebx, dword [edi + 0x14]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x44f4bc
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x44f531
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x44f54c
mov ecx, dword [edi + 0x10]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 8]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x44f4f7
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x44f514
jmp 0x44f508
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x44f50f
cmp eax, 0x6d
jne 0x44f526
mov word [esi], 4
jmp 0x44f51e
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 0x44f51e
mov edx, eax
mov ecx, ebx
push 0x10
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::hab053c3fc72d2020
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x44f4c7
mov ecx, ebx
push 1
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::hab053c3fc72d2020
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x44f4c7
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x1c], 0
call sym.core::panicking::assert_failed::heb7e7dc90af05e80
ud2
Function at 0x453580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call sym.std::sys::windows::args::to_user_path::h4df442d050149542
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x4535db
cmp byte [ebp - 0x1c], 3
jne 0x453603
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 4]
mov eax, dword [eax]
push dword [edi]
call eax
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4535cc
push dword [eax + 8]
push ecx
push dword [edi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
jmp 0x453603
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x453603
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x453612
mov eax, dword [ebp - 0x10]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
jmp 0x45360a
mov dword [esi + 4], 0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
mov dword [esi + 4], 0
je 0x45360a
add ebx, ebx
push 2
push ebx
push edi
call sym.___rust_dealloc
add esp, 0x20
jmp 0x45360d

Function at 0x453e70
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 0x453eb5
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 dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x30], 0x4c3e60
mov dword [esp + 0x34], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x1c], sym.__LT_std..io..error..Error_u20_as_u20_core..fmt..Display_GT_::fmt::h3b8d78eac86fb792
mov dword [esp + 0x3c], 1
lea eax, [esp + 0x28]
push 0x4c3e8c
push eax
call sym.core::panicking::panic_fmt::h1507d830b31d322e
add esp, 8
ud2
Function at 0x454b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x454be1
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [esi], edi
mov dword [esi + 4], ebx
push 0
push 0x10000
push esi
push sym.__ZN3std3sys7windows6thread6Thread3new12thread_start17ha3151f7a4356265bE_4
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x454b95
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
mov byte [ecx], 4
jmp 0x454bd9
mov eax, dword [esi + 4]
mov edi, dword [ebp + 8]
mov eax, dword [eax]
push dword [esi]
call eax
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x454bbc
push dword [eax + 8]
push ecx
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
call sub.KERNEL32.dll_GetLastError
mov dword [edi + 4], eax
mov eax, edi
mov dword [edi], 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 8
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
ud2

Function at 0x454e50
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x454eb9
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x454ef3
cmp dword [ebp - 0x14], 0
je 0x454eda
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x454f15
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x501128]
mov dword [edi + 8], eax
lock cmpxchg dword [0x501128], edi
jne 0x454ea0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x454ee9
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x454f55
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x454ede
mov esi, dword [ebp - 0x10]
jmp 0x454ee9
mov esi, dword [edi]
jmp 0x454ee8
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x4c42a8
push 0x4c42dc
push eax
call sym.core::panicking::assert_failed::he065a1a15e1b7263
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x24], 0x4c4300
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], str.capacity_overflow
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x2c]
push 0x4c4308
push eax
call sym.core::panicking::panic_fmt::h1507d830b31d322e
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0x4c4300
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], str.capacity_overflow
mov dword [ebp - 0x18], 0
call sym.core::panicking::assert_failed::h0ecb3c41e9334d1a
ud2
Function at 0x454f90
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 0x454fa7
test eax, eax
jne 0x455108
mov edi, dword [0x501128]
test edi, edi
je 0x455108
mov dword [ebp - 0x10], 0
jmp 0x454fc7
mov edi, dword [edi + 8]
test edi, edi
je 0x454ff6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x455147
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x454fc0
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 0x454fc0
test byte [ebp - 0x10], 1
je 0x455108
mov edi, dword [0x501128]
test edi, edi
je 0x455108
mov dword [ebp - 0x10], 0
jmp 0x455027
mov edi, dword [edi + 8]
test edi, edi
je 0x455056
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x455147
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x455020
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 0x455020
test byte [ebp - 0x10], 1
je 0x455108
mov edi, dword [0x501128]
test edi, edi
je 0x455108
mov dword [ebp - 0x10], 0
jmp 0x455087
mov edi, dword [edi + 8]
test edi, edi
je 0x4550b6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x455147
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x455080
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 0x455080
test byte [ebp - 0x10], 1
je 0x455108
mov edi, dword [0x501128]
test edi, edi
je 0x455108
mov dword [ebp - 0x10], 0
jmp 0x4550d7
mov edi, dword [edi + 8]
test edi, edi
je 0x455102
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x455147
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x4550d0
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 0x4550d0
test byte [ebp - 0x10], 1
jne 0x455112
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x501128]
jmp 0x45511d
mov edi, dword [edi + 8]
test edi, edi
je 0x455108
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x455147
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x45511a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x45511a
push 0x4c432c
push 0x2b
push 0x4c01b8
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2