joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100514f0
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 0x1005153a
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 0x10051556
cmp eax, 0x3e5
jne 0x10051568
lea eax, [esi + 4]
mov dword [eax], 0
jmp 0x1005152c
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [eax], 0
jmp 0x1005152c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x1005152e

Function at 0x100517b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x100517f4
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x100517fa
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1005182d
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x1005183d
mov dword [esi + 4], 0
jmp 0x1005184f
cmp eax, 0x103
je 0x10051868
test eax, eax
js 0x1005185a
mov eax, dword [esp + 0xc]
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 byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10051852
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1012c768
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h0f5c472207d58d98
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h1766f469e1f57437
mov ecx, 7
int 0x29
ud2
Function at 0x100518d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10051914
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1005191a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x10051954
push 0xffffffffffffffff
push edi
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10051975
test eax, eax
js 0x10051960
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x10051968
xor ebx, ebx
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1012c768
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea esi, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push esi
call sym.std::io::Write::write_fmt::h0f5c472207d58d98
add esp, 0xc
mov ecx, esi
call sym.core::ptr::drop_in_place_LT_core..result..Result_LT__LP__RP__C_std..io..error..Error_GT__GT_::h1766f469e1f57437
mov ecx, 7
int 0x29
ud2

Function at 0x10051e40
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 0x10051e84
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2726
je 0x10051e97
cmp eax, 0x2739
jne 0x10051ec0
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.ws2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x10051ec8
mov edi, eax
push 0
push 1
push eax
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x10051ed8
mov dword [esi + 4], edi
jmp 0x10051e7a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10051e7d
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x10051e7d
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.ws2_32.dll_closesocket
jmp 0x10051e7d
Function at 0x10051ef0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
cmp word [ecx], 0
je 0x10051f1c
movups xmm0, xmmword [ecx + 4]
mov edi, dword [ecx + 0x18]
lea edx, [ecx + 0x14]
mov ax, 0x17
mov esi, 0x1c
mov ebx, 0x1c
jmp 0x10051f30
lea edx, [ecx + 2]
xorps xmm0, xmm0
mov ebx, 0x10
mov ax, 2
mov esi, 6
movzx ecx, word [ecx + esi]
mov edx, dword [edx]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
rol cx, 8
mov word [ebp - 0x26], cx
mov dword [ebp - 0x24], edx
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], edi
push ebx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.ws2_32.dll_connect
cmp eax, 0xffffffff
je 0x10051f68
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x10051f7b
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10052300
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, dword [ebp + 0x10]
mov ecx, 0x7fffffff
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov ebx, dword [edi + 8]
sub eax, ebx
cmp eax, 0x7fffffff
cmovb ecx, eax
mov eax, dword [edi]
add eax, ebx
push 0
push ecx
push eax
push dword [edx]
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x1005234a
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 0x10052356
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x10052360
mov byte [esi], 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x10052359

Function at 0x10052370
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 0x100523c1
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x100523cc
mov dword [esi + 4], 0
jmp 0x100523c7
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100523d2
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100523e0
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
cmp eax, 0xffffffff
jne 0x1005241d
call sub.ws2_32.dll_WSAGetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x274a
jne 0x10052428
mov dword [esi + 4], eax
mov byte [esi], 4
mov eax, esi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
mov dword [esi], 0
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10052700
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 0x1005273c
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x1005274a
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 0x10052760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ecx, dword [ebp + 0x18]
xor esi, esi
cmp ecx, 0x3b9aca00
je 0x100527ea
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, 0x3e8
mul ebx
mov esi, eax
mov eax, edi
seto byte [ebp - 0xd]
mul ebx
mov ebx, edx
mov edi, eax
add ebx, esi
mov esi, 0xffffffff
setb al
or al, byte [ebp - 0xd]
jne 0x100527ea
mov edx, 0x431bde83
mov eax, ecx
mul edx
mov eax, edi
shr edx, 0x12
add eax, edx
mov eax, ebx
adc eax, 0
jb 0x100527ea
imul eax, edx, 0xf4240
sub ecx, eax
add edi, edx
adc ebx, 0
xor eax, eax
test ecx, ecx
setne al
add eax, edi
mov eax, ebx
adc eax, 0
jb 0x100527ea
xor eax, eax
test ecx, ecx
setne al
add edi, eax
adc ebx, 0
xor esi, esi
neg ebx
sbb esi, esi
or esi, edi
je 0x10052831
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], esi
lea edx, [ebp - 0x14]
mov ecx, dword [ecx]
push 4
push edx
push eax
push 0xffff
push ecx
call sub.ws2_32.dll_setsockopt
mov esi, dword [ebp + 8]
mov cl, 4
cmp eax, 0xffffffff
jne 0x10052825
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, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [0x1012c7e8]
mov ecx, dword [0x1012c7ec]
mov dword [esi + 4], ecx
mov dword [esi], eax
jmp 0x10052827

Function at 0x10052930
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 0x1005295c
mov byte [esi], 4
jmp 0x1005296a
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 0x10052980
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 0x1005299f
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 0x100529dc
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 0x10052a70
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 0x10052aaf
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 0x10053690
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x24]
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_iter17hd17698b25
mov ebx, dword [ebp - 0x10]
cmp ebx, dword [ebp - 0x18]
jne 0x100536c8
lea ecx, [ebp - 0x18]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h6756b7192074e1c7
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov word [edi + ebx*2], 0
push edi
call sub.kernel32.dll_SetCurrentDirectoryW
test eax, eax
je 0x10053700
mov byte [esi], 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100536f6
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 ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x100536e8
jmp 0x100536f6
Function at 0x10053740
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x10053773
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100537de
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x100537a0
movsd xmm0, qword [ebp - 0x18]
movsd qword [esi], xmm0
jmp 0x100537ca
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x100537e8
mov byte [esi], 4
test ebx, ebx
je 0x100537ca
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
test edi, edi
je 0x100537de
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test ebx, ebx
jne 0x100537ba
jmp 0x100537ca

Function at 0x10053820
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x10053853
movsd xmm0, qword [ebp - 0x14]
movsd qword [esi], xmm0
jmp 0x10053877
mov ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.kernel32.dll_SetEnvironmentVariableW
test eax, eax
je 0x10053881
mov byte [esi], 4
test edi, edi
je 0x10053877
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
test edi, edi
jne 0x10053869
jmp 0x10053877
Function at 0x10053ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
xorps xmm0, xmm0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
lea edi, [ebp - 0x30]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, esi
add ecx, esi
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push eax
push ecx
push edx
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x10054063
nop word cs:[eax + eax]
nop
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10054040
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x10054083
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
jne 0x10054075
jmp 0x10054094
call sub.kernel32.dll_GetLastError
mov edi, eax
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
je 0x10054094
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
jmp 0x1005409a
add esi, dword [ebp - 0x14]
mov dword [ebx + 8], esi
mov eax, dword [ebx + 0xc]
cmp eax, esi
cmova esi, eax
mov dword [ebx + 0xc], esi
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100546b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [edx], 0
mov edi, edx
jne 0x10054791
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x1005476d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx + 4]
mov dword [ebp - 0x2c], 0
lea ebx, [ebp - 0x2c]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x10054710
mov eax, dword [ebp - 0x2c]
mov ecx, 2
test eax, eax
je 0x1005473c
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
jmp 0x10054765
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x10054743
cmp eax, 0x6d
jne 0x1005475c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x100546fb
jmp 0x10054755
mov word [esi], 4
jmp 0x10054765
lea eax, [ebp - 0x10]
mov dword [eax], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x100546fb
mov ecx, 1
jmp 0x10054704
mov dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
test edx, edx
mov ecx, 0x10
mov eax, 1
cmove eax, ecx
mov ecx, ebx
push eax
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::reserve::do_reserve_and_handle::h60541cfa6e0f43e5
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x100546d6
lea edx, [ebp - 0x2c]
mov ecx, edi
mov dword [ebp - 0x2c], 0
call sym.core::panicking::assert_failed::h032372a534388610
nop word cs:[eax + eax]
nop dword [eax]
Function at 0x100593c0
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 sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp ecx, 0x80000000
je 0x10059410
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call sym.std::sys::pal::windows::args::from_wide_to_user_path::h58c82b563bb2fec0
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x10059457
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x1005944c
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [edi]
mov eax, dword [ebx]
test eax, eax
je 0x10059428
push esi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005943c
push dword [ebx + 8]
push eax
push esi
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push edi
call sym.___rust_dealloc
add esp, 0xc
mov esi, dword [ebp - 0x10]
mov dword [esi], 0x80000000
add esp, 0x28
jmp 0x10059493
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1005947b
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
add esp, 0x28
jmp 0x10059493
test edi, edi
mov dword [esi], 0x80000000
je 0x10059476
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005ab70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [0x10145400]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
push 4
push 8
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x1005ac09
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push sym.__ZN3std3sys3pal7windows6thread6Thread3new12thread_start17hece27fff71d5dbd9E_4
push eax
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x1005abc2
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x1005ac02
mov ebx, dword [esi + 4]
mov edi, dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x1005abd3
push edi
call eax
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x1005abe7
push dword [ebx + 8]
push eax
push edi
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 edi, dword [ebp + 8]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
mov ebx, dword [ebp + 0x14]
push 8
push 4
call sym.alloc::alloc::handle_alloc_error::h9a0385ddba01e206
add esp, 8
ud2

Function at 0x1005f3a0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x10
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x1005f3d0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x10]
push 1
push esi
call sub.kernel32.dll_TlsSetValue
push 8
push 0x18
push edi
call sym.___rust_dealloc
add esp, 0xc
push 0
push esi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x1005f400
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
test eax, eax
je 0x1005f425
lock dec dword [eax]
jne 0x1005f425
mov ecx, esi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::h3a11afd8e6612759
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret

Function at 0x1005f440
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [esi + 4]
push 1
push edi
call sub.kernel32.dll_TlsSetValue
mov eax, dword [esi]
test eax, eax
je 0x1005f465
lock dec dword [eax]
jne 0x1005f465
mov ecx, esi
call sym.alloc::sync::Arc_LT_T_C_A_GT_::drop_slow::hc39c94033ce122a6
push 4
push 8
push esi
call sym.___rust_dealloc
add esp, 0xc
push 0
push edi
call sub.kernel32.dll_TlsSetValue
pop esi
pop edi
pop ebp
ret