joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea edi, [ebp - 0x28]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x438a06
nop word cs:[eax + eax]
nop dword [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x4389e0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
sete al
jne 0x4389fc
mov ecx, dword [ebp - 0xc]
shl al, 2
mov dword [esi + 4], ecx
mov byte [esi], al
jmp 0x438a11
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x438a80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xorps xmm0, xmm0
lea edi, [ebp - 0x14]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edi
lea edi, [ebp - 0x28]
mov edx, dword [edx]
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push edi
push ecx
push eax
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x438aed
nop
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x14], 0
je 0x438ac0
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x438b03
mov ecx, edi
call sym.std::sys::pal::windows::decode_error_kind::h7329ed9b84dd3c75
cmp al, 0xb
jne 0x438aff
mov dword [esi + 4], 0
mov byte [esi], 4
jmp 0x438b10
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 0x438ae1
xor eax, eax
jmp 0x438b08
mov edi, dword [ebp - 0xc]
mov al, 4
movzx eax, al
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret

Function at 0x439380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax + 0x18]
push 1
push edi
call sub.KERNEL32.dll_TerminateProcess
test eax, eax
je 0x4393a1
mov byte [esi], 4
jmp 0x4393e4
call sub.KERNEL32.dll_GetLastError
cmp eax, 5
jne 0x4393de
mov ebx, eax
push 0
push edi
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x4393c2
cmp eax, 0x102
je 0x43939c
jmp 0x4393d7
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
jne 0x43939c
call sub.KERNEL32.dll_GetLastError
mov eax, ebx
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43acf0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call sym.__LT__RF_str_u20_as_u20_alloc..ffi..c_str..CString..new..SpecNewImpl_GT_::spec_new_impl::h5fd4c193d1ea312f
add esp, 0xc
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x43ad67
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 0x43ad93
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x43adb3
jmp 0x43adbf
mov ecx, dword [0x589440]
mov edx, dword [0x589444]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x43adbf
push 1
push eax
push dword [ebp - 0x1c]
call sym.___rust_dealloc
add esp, 0x40
jmp 0x43adc2
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 0x43adbf
push 1
push ebx
push edi
call sym.___rust_dealloc
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43b7d0
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 sym.__alloca
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 sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x43b8f5
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43b82e
cmp dword [ebp - 0x18], 0
jne 0x43b8fc
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x43b8fc
cmp ebx, 0x1000
ja 0x43b926
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x43b915
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 sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x43b8f7
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x43b8a0
cmp dword [ebp - 0x18], 0
jne 0x43b8fc
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x43b860
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push sym.__ZN3std3sys3pal7windows4pipe8AnonPipe21alertable_io_internal8callback17hdaf1fc9f919f56e3E_12
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x43b82e
jmp 0x43b8f7
call sub.KERNEL32.dll_GetLastError
push dword [ebp - 0x10]
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x58a60c
push ebx
push edi
call sym.core::slice::index::slice_index_order_fail::h40cd09a6386d1bdc
add esp, 0xc
jmp 0x43b939
push 0x58a60c
push 0x1000
push ebx
call sym.core::slice::index::slice_end_index_len_fail::hb7bcdcb5c84f7e98
add esp, 0xc
ud2
Function at 0x4406a0
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 sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x4406f4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x440701
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 ebx, dword [ebp - 0x14]
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x440719
mov byte [esi], 4
test edi, edi
jne 0x440728
jmp 0x4406f9
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x4406f9
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0x30
jmp 0x4406fc
Function at 0x440b10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x440b68
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x440b77
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call sub.KERNEL32.dll_DeleteFileW
test eax, eax
je 0x440b8d
mov byte [esi], 4
test edi, edi
jne 0x440b9c
jmp 0x440b6d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x440b6d
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x440b6d
Function at 0x440bb0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x440c08
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x38]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x1c]
cmp edi, 0x80000000
jne 0x440c17
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp edx, 0x80000000
je 0x440c69
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x1c]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [ebp - 0x1c]
cmp ebx, 0x80000000
jne 0x440c84
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ecx
test edi, edi
je 0x440c0d
add edi, edi
push 2
push edi
push dword [ebp - 0x10]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x440c0d
mov eax, dword [ebp - 0x18]
push 1
mov dword [ebp - 0x20], eax
push eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x440ca2
mov byte [esi], 4
test ebx, ebx
jne 0x440cb1
jmp 0x440c6e
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x440c6e
add ebx, ebx
push 2
push ebx
push dword [ebp - 0x20]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x440c6e
Function at 0x440ce0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x440d38
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x440d47
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push ebx
call sub.KERNEL32.dll_RemoveDirectoryW
test eax, eax
je 0x440d5d
mov byte [esi], 4
test edi, edi
jne 0x440d6c
jmp 0x440d3d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x440d3d
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x440d3d

Function at 0x442000
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x442058
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [ebp - 0x18]
cmp edi, 0x80000000
jne 0x442067
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp - 0x14]
push dword [ebp + 0x14]
push ebx
call sub.KERNEL32.dll_SetFileAttributesW
test eax, eax
je 0x442080
mov byte [esi], 4
test edi, edi
jne 0x44208f
jmp 0x44205d
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x44205d
add edi, edi
push 2
push edi
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x44205d
Function at 0x4422e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x28]
push dword [ebp + 0x10]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x442347
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x18]
lea edx, [esp + 8]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov ebx, dword [esp + 0x18]
cmp ebx, 0x80000000
jne 0x44235d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], eax
lea ecx, [esp + 0x28]
push dword [ebp + 0x18]
call sym.std::sys::pal::windows::to_u16s::inner::h9c1ce760b5043b66
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x4423bd
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 8]
lea ecx, [esp + 0x18]
push 1
call sym.std::sys::path::windows::get_long_path::h78b4a6c417dc393d
add esp, 4
mov edi, dword [esp + 0x18]
cmp edi, 0x80000000
jne 0x4423e3
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
test ebx, ebx
je 0x442353
add ebx, ebx
push 2
push ebx
push dword [esp + 0xc]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x442353
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push sym.__ZN3std3sys3pal7windows2fs4copy8callback17hf82e7c09f77d929dE_52
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call sub.KERNEL32.dll_CopyFileExW
test eax, eax
je 0x442431
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
test edi, edi
jne 0x442447
jmp 0x4423c9
call sub.KERNEL32.dll_GetLastError
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
test edi, edi
je 0x4423c9
add edi, edi
push 2
push edi
push dword [esp + 0x2c]
call sym.___rust_dealloc
add esp, 0xc
jmp 0x4423c9
Function at 0x442cd0
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 0x442d1a
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 0x442d36
cmp eax, 0x3e5
jne 0x442d48
lea eax, [esi + 4]
mov dword [eax], 0
jmp 0x442d0c
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [eax], 0
jmp 0x442d0c
mov dword [esi + 4], 0
mov dword [esi + 8], eax
mov eax, 1
jmp 0x442d0e

Function at 0x442f90
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 0x442fd4
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 0x442fda
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 0x44300d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x44301d
mov dword [esi + 4], 0
jmp 0x44302f
cmp eax, 0x103
je 0x443048
test eax, eax
js 0x44303a
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 0x443032
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x58a338
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 0x4430b0
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 0x4430f4
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 0x4430fa
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 0x443134
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x443155
test eax, eax
js 0x443140
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x443148
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], 0x58a338
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 0x443620
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 0x443664
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 0x443677
cmp eax, 0x2739
jne 0x4436a0
push 1
push 0
push 0
push 0
push edi
push ebx
call sub.WS2_32.dll_WSASocketW
cmp eax, 0xffffffff
je 0x4436a8
mov edi, eax
push 0
push 1
push eax
call sub.KERNEL32.dll_SetHandleInformation
test eax, eax
je 0x4436b8
mov dword [esi + 4], edi
jmp 0x44365a
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x44365d
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
jmp 0x44365d
call sub.KERNEL32.dll_GetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
push edi
call sub.WS2_32.dll_closesocket
jmp 0x44365d
Function at 0x4436d0
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 0x4436fc
movups xmm0, xmmword [ecx + 4]
mov edi, dword [ecx + 0x18]
lea edx, [ecx + 0x14]
mov ax, 0x17
mov esi, 0x1c
mov ebx, 0x1c
jmp 0x443710
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 0x443748
mov eax, dword [ebp + 8]
mov byte [eax], 4
jmp 0x44375b
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