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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4be07c]
mov esi, ecx
test eax, eax
je 0x45703f
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x457057
cmp dword [eax], 0
mov ebx, eax
je 0x457057
add ebx, 4
jmp 0x457125
push 0x4be07c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x457030
mov eax, dword [0x4be07c]
test eax, eax
je 0x457107
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x457123
mov edi, eax
test eax, eax
jne 0x4570c2
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0x4be07c
push 4
push 0x10
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x457141
movsd xmm0, qword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x14]
mov edi, eax
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
mov eax, dword [0x4be07c]
test eax, eax
je 0x45712f
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x4570dc
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov edx, eax
je 0x4570e0
mov eax, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x4570e0
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x457125
test ecx, ecx
je 0x457125
lock dec dword [ecx]
jne 0x457125
call sym.alloc::sync::Arc_LT_T_GT_::drop_slow::he4a7ffeee74a66a7
jmp 0x457125
push 0x4be07c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x457074
xor ebx, ebx
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4be07c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
jmp 0x4570bb
push 4
push 0x10
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
ud2
Function at 0x457460
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b4
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
movzx eax, word [eax + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [0x501114]
cmp eax, 3
jne 0x457546
cmp ebx, 0x17f
ja 0x457557
lea esi, [ebp - 0x1c0]
push ebx
push edi
push esi
call sym._memcpy
add esp, 0xc
mov byte [ebp + ebx - 0x1c0], 0
inc ebx
lea eax, [ebp - 0x20]
push ebx
push esi
push eax
call sym.core::ffi::c_str::CStr::from_bytes_with_nul::he7b2f8e027435dea
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x4574e5
mov esi, dword [ebp + 8]
mov eax, dword [0x4c26c0]
mov ecx, dword [0x4c26c4]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x457567
mov eax, dword [ebp - 0x1c]
xorps xmm0, xmm0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push ecx
push edx
push 0
push eax
call sub.WS2_32.dll_getaddrinfo
mov esi, dword [ebp + 8]
test eax, eax
je 0x457530
call sub.WS2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x457567
mov eax, dword [ebp - 0x14]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov word [esi + 0xc], ax
xor eax, eax
mov dword [esi], eax
jmp 0x457567
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h451f89cf12fe4647
cmp ebx, 0x17f
jbe 0x457498
mov ecx, esi
mov edx, edi
push dword [ebp - 0x10]
push ebx
call sym.std::sys::common::small_c_string::run_with_cstr_allocating::h198ba5019ec131de
add esp, 8
mov eax, esi
add esp, 0x1b4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x457580
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x457656
mov edi, dword [eax + 4]
mov eax, dword [0x501114]
cmp eax, 3
jne 0x457726
lea ebx, [esp + 0xc]
push 1
push edi
push ebx
call sym.std::sys::windows::net::Socket::new::h763deb83042e68e5
add esp, 0xc
movzx eax, byte [esp + 0xc]
cmp al, 4
jne 0x457672
mov eax, dword [esp + 0x10]
cmp word [edi], 0
mov dword [esp + 8], eax
je 0x457691
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x24], eax
movsd xmm0, qword [edi + 0x14]
movsd qword [esp + 0x1c], xmm0
movsd xmm0, qword [edi + 4]
movsd xmm1, qword [edi + 0xc]
movsd qword [esp + 0x14], xmm1
movsd qword [esp + 0xc], xmm0
push ebx
call sym.core::net::socket_addr::SocketAddrV6::port::h0ccb42e400e0ccaa
add esp, 4
mov edi, ebx
mov ebx, eax
push edi
call sym.core::net::socket_addr::SocketAddrV6::ip::h88fcae5cdc9bd552
add esp, 4
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x30], xmm0
push edi
call sym.core::net::socket_addr::SocketAddrV6::flowinfo::h087a5ded5975f130
add esp, 4
mov dword [esp + 0x28], eax
push edi
call sym.core::net::socket_addr::SocketAddrV6::scope_id::h35b653453e55220e
add esp, 4
mov dword [esp + 0x2c], eax
movaps xmm0, xmmword [esp + 0x30]
mov ecx, dword [esp + 0x28]
rol bx, 8
mov edi, 0x1c
mov dx, 0x17
jmp 0x4576c9
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x45771c
movzx ecx, byte [esp + 0xf]
movzx edi, word [esp + 0xd]
mov edx, dword [esp + 0x10]
mov byte [esi + 3], cl
mov word [esi + 1], di
mov byte [esi], al
mov dword [esi + 4], edx
jmp 0x45771c
movzx eax, word [edi + 6]
mov word [esp + 0x10], ax
mov eax, dword [edi + 2]
mov dword [esp + 0xc], eax
push ebx
call sym.core::net::socket_addr::SocketAddrV4::port::h91cd95d01b784212
add esp, 4
mov ecx, ebx
mov ebx, eax
push ecx
call sym.core::net::socket_addr::SocketAddrV4::ip::hfd7b34c31890ed32
add esp, 4
mov ecx, dword [eax]
rol bx, 8
xorps xmm0, xmm0
mov edi, 0x10
mov dx, 2
mov eax, dword [esp + 0x2c]
mov word [esp + 0xc], dx
mov word [esp + 0xe], bx
mov dword [esp + 0x10], ecx
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 0x10]
push eax
mov edi, dword [esp + 0x10]
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x457701
mov dword [esi + 4], edi
mov byte [esi], 4
jmp 0x45771c
call sub.WS2_32.dll_WSAGetLastError
mov byte [esi], 0
mov byte [esi + 3], 0
mov word [esi + 1], 0
mov dword [esi + 4], eax
push edi
call sub.WS2_32.dll_closesocket
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sym.std::sync::once_lock::OnceLock_LT_T_GT_::initialize::h451f89cf12fe4647
jmp 0x4575af
Function at 0x457d10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xe0
mov edi, dword [ebp + 8]
lea esi, [esp + 0xd4]
push 0xb
push 0x4c4a40
push dword [ebp + 0xc]
push esi
call sym.core::fmt::Formatter::debug_struct::h99edeb44043538fe
add esp, 0x10
mov edi, dword [edi]
xorps xmm0, xmm0
mov dword [esp + 0xc], pe_nt_image_headers32
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
lea eax, [esp + 0xc]
lea ebx, [esp + 0x50]
push eax
push ebx
push edi
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x457ddc
movzx ecx, word [esp + 0x50]
mov eax, dword [esp + 0xc]
cmp ecx, 0x17
je 0x457de6
cmp ecx, 2
jne 0x457ed4
cmp eax, 0x10
jb 0x457eff
movzx eax, word [esp + 0x52]
lea ecx, [esp + 0x12]
rol ax, 8
push eax
push dword [esp + 0x58]
push ecx
call sym.core::net::socket_addr::SocketAddrV4::new::h2108936b4e88b22d
add esp, 0xc
mov word [esp + 0x10], 0
jmp 0x457e8e
call sub.WS2_32.dll_WSAGetLastError
jmp 0x457ed4
cmp eax, 0x1c
jb 0x457f0d
movzx eax, word [esp + 0x52]
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x58]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x30], xmm1
rol ax, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push dword [esp + 0x68]
push dword [esp + 0x58]
push eax
push ecx
push edx
call sym.core::net::socket_addr::SocketAddrV6::new::h515a68bc53738e0a
add esp, 0x14
movsd xmm0, qword [esp + 0x20]
mov eax, dword [esp + 0x28]
movsd xmm1, qword [esp + 0x18]
movsd qword [esp + 0x42], xmm0
movsd xmm0, qword [esp + 0x10]
mov dword [esp + 0x4a], eax
movsd qword [esp + 0x3a], xmm1
mov word [esp + 0x10], 1
movsd qword [esp + 0x32], xmm0
movsd xmm1, qword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
movsd xmm2, qword [esp + 0x40]
movsd qword [esp + 0x1a], xmm1
movsd xmm1, qword [esp + 0x46]
movsd qword [esp + 0x22], xmm2
movsd qword [esp + 0x12], xmm0
movsd qword [esp + 0x28], xmm1
movsd xmm1, qword [esp + 0x20]
movsd xmm0, qword [esp + 0x28]
movsd xmm2, qword [esp + 0x10]
movsd qword [esp + 0x60], xmm1
movsd xmm1, qword [esp + 0x18]
movsd qword [esp + 0x68], xmm0
movsd qword [esp + 0x50], xmm2
movsd qword [esp + 0x58], xmm1
push 0x4c4a2c
push ebx
push 4
push str.addrlinenolibrary_std_src...._backtrace_src_symbolizemod.rs
push esi
call sym.core::fmt::builders::DebugStruct::field::ha9ea780b23ffc108
add esp, 0x14
mov dword [esp + 0x50], edi
push 0x4c2050
push ebx
push 6
push 0x4c204a
push esi
call sym.core::fmt::builders::DebugStruct::field::ha9ea780b23ffc108
add esp, 0x14
push eax
call sym.core::fmt::builders::DebugStruct::finish::h3bc49bf40104e120
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4c49cc
push 0x42
push 0x4c4988
jmp 0x457f19
push 0x4c4978
push 0x43
push str.assertion_failed:_len_as_usize___mem::size_of::_c::sockaddr_in6___library_std_src_sys_common_net.rsWIL
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
Function at 0x458110
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov esi, 0x7fffffff
cmp ecx, 0x7fffffff
cmovb esi, ecx
cmp word [eax], 0
je 0x4581a6
mov ecx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x14]
movsd xmm2, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
lea ebx, [esp + 4]
mov dword [esp + 0x1c], ecx
movsd qword [esp + 0x14], xmm0
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm2
push ebx
call sym.core::net::socket_addr::SocketAddrV6::port::h0ccb42e400e0ccaa
add esp, 4
mov edi, eax
rol di, 8
push ebx
call sym.core::net::socket_addr::SocketAddrV6::ip::h88fcae5cdc9bd552
add esp, 4
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x20], xmm0
push ebx
call sym.core::net::socket_addr::SocketAddrV6::flowinfo::h087a5ded5975f130
add esp, 4
push ebx
mov ebx, eax
call sym.core::net::socket_addr::SocketAddrV6::scope_id::h35b653453e55220e
movaps xmm0, xmmword [esp + 0x24]
add esp, 4
mov ecx, 0x1c
mov dx, 0x17
jmp 0x4581e0
movzx ecx, word [eax + 6]
mov eax, dword [eax + 2]
lea ebx, [esp + 4]
mov word [esp + 8], cx
mov dword [esp + 4], eax
push ebx
call sym.core::net::socket_addr::SocketAddrV4::port::h91cd95d01b784212
add esp, 4
mov edi, eax
rol di, 8
push ebx
call sym.core::net::socket_addr::SocketAddrV4::ip::hfd7b34c31890ed32
add esp, 4
mov ebx, dword [eax]
xorps xmm0, xmm0
mov ecx, 0x10
mov dx, 2
mov word [esp + 4], dx
mov word [esp + 6], di
mov dword [esp + 8], ebx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push ecx
push eax
push 0
push esi
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.WS2_32.dll_sendto
cmp eax, 0xffffffff
je 0x45821d
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov byte [ecx], 4
jmp 0x458235
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov byte [ecx + 3], 0
mov word [ecx + 1], 0
mov dword [ecx + 4], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x458240
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
movzx ecx, byte [eax]
cmp cl, 4
jne 0x4582d7
mov eax, dword [eax + 4]
cmp word [eax], 0
je 0x4582f0
mov ecx, dword [eax + 0x1c]
lea esi, [esp + 4]
mov dword [esp + 0x1c], ecx
movsd xmm0, qword [eax + 0x14]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [eax + 4]
movsd xmm1, qword [eax + 0xc]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
push esi
call sym.core::net::socket_addr::SocketAddrV6::port::h0ccb42e400e0ccaa
add esp, 4
mov edi, eax
rol di, 8
push esi
call sym.core::net::socket_addr::SocketAddrV6::ip::h88fcae5cdc9bd552
add esp, 4
movups xmm0, xmmword [eax]
movaps xmmword [esp + 0x20], xmm0
push esi
call sym.core::net::socket_addr::SocketAddrV6::flowinfo::h087a5ded5975f130
add esp, 4
mov ebx, eax
push esi
call sym.core::net::socket_addr::SocketAddrV6::scope_id::h35b653453e55220e
movaps xmm0, xmmword [esp + 0x24]
add esp, 4
mov ecx, 0x1c
mov dx, 0x17
jmp 0x45832a
movzx edx, byte [eax + 3]
movzx edi, word [eax + 1]
mov eax, dword [eax + 4]
mov byte [esi + 3], dl
mov word [esi + 1], di
mov byte [esi], cl
mov dword [esi + 4], eax
jmp 0x45836c
movzx ecx, word [eax + 6]
lea esi, [esp + 4]
mov word [esp + 8], cx
mov eax, dword [eax + 2]
mov dword [esp + 4], eax
push esi
call sym.core::net::socket_addr::SocketAddrV4::port::h91cd95d01b784212
add esp, 4
mov edi, eax
rol di, 8
push esi
call sym.core::net::socket_addr::SocketAddrV4::ip::hfd7b34c31890ed32
add esp, 4
mov ebx, dword [eax]
xorps xmm0, xmm0
mov ecx, 0x10
mov dx, 2
mov word [esp + 4], dx
mov word [esp + 6], di
mov dword [esp + 8], ebx
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call sub.WS2_32.dll_connect
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x45835e
mov byte [esi], 4
jmp 0x45836c
call sub.WS2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x458720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [0x4be08c]
mov esi, ecx
test eax, eax
je 0x458748
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x458760
cmp dword [eax], 0
je 0x458760
add eax, 4
pop esi
pop edi
pop ebp
ret
push 0x4be08c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x45873c
mov eax, dword [0x4be08c]
test eax, eax
je 0x4587d2
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x4587ea
mov edi, eax
test eax, eax
jne 0x4587ab
push 4
push 0xc
call sym.___rust_alloc
add esp, 8
test eax, eax
je 0x4587ff
mov dword [eax], 0
mov dword [eax + 8], 0x4be08c
mov edi, eax
mov eax, dword [0x4be08c]
test eax, eax
je 0x4587f0
dec eax
push edi
push eax
call sub.KERNEL32.dll_TlsSetValue
test esi, esi
je 0x4587c0
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x4587c2
mov ecx, dword [esi + 4]
jmp 0x4587c2
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
pop ebp
ret
push 0x4be08c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x458775
xor eax, eax
pop esi
pop edi
pop ebp
ret
push 0x4be08c
call sym.std::sys::windows::thread_local_key::StaticKey::init::hc7a5c627984b4d1c
add esp, 4
jmp 0x4587a4
push 4
push 0xc
call sym.alloc::alloc::handle_alloc_error::h1460775c4f8d05ce
add esp, 8
ud2
Function at 0x458d50
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 [0x4bfd80]
mov eax, dword [ebp + 8]
mov edi, 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 + 0xc]
push esi
push eax
call sym.std::sys::windows::fs::File::open::h58641c3019439e6c
add esp, 8
cmp byte [esp + 0xc], 4
jne 0x458db0
mov esi, dword [esp + 0x10]
jmp 0x458dff
movzx eax, byte [esp + 0xc]
mov esi, dword [esp + 0x10]
cmp eax, 4
je 0x458dff
cmp eax, 3
jne 0x458df4
mov eax, dword [esi + 4]
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 0x458de7
push dword [eax + 8]
push ecx
push dword [esi]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push esi
call sym.___rust_dealloc
add esp, 0xc
mov dword [edi], 0
jmp 0x458f12
lea ebx, [esp + 0x18]
mov edx, esi
mov ecx, ebx
call sym.std::sys::windows::fs::File::file_attr::hc0bf7212e155bf2c
mov eax, dword [esp + 0x18]
xor eax, 2
or eax, dword [esp + 0x1c]
jne 0x458e58
mov eax, dword [esp + 0x20]
cmp al, 3
jne 0x458e91
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push dword [ebx]
call eax
add esp, 4
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x458e49
push dword [eax + 8]
push ecx
push dword [ebx]
call sym.___rust_dealloc
add esp, 0xc
push 4
push 0xc
push ebx
call sym.___rust_dealloc
add esp, 0xc
jmp 0x458e91
cmp dword [esp + 0x44], 0
jne 0x458e91
mov eax, dword [esp + 0x40]
test esi, esi
mov dword [esp + 8], eax
je 0x458e99
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_GetCurrentProcess
push 2
push 0
push 0
push ebx
push eax
push esi
push eax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x458f01
mov eax, dword [esp + 0x18]
jmp 0x458e9b
mov dword [edi], 0
jmp 0x458f0c
xor eax, eax
push 0
push 0
push 0
push 2
push 0
mov dword [esp + 0x18], eax
push eax
call sub.KERNEL32.dll_CreateFileMappingA
test eax, eax
je 0x458ef0
mov ebx, eax
push dword [esp + 8]
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esp + 0x14], eax
push ebx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x458ef0
mov eax, dword [esp + 4]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [esp + 8]
mov dword [edi + 0xc], ecx
mov dword [edi], 1
jmp 0x458f0c
mov dword [edi], 0
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
jmp 0x458f0c
call sub.KERNEL32.dll_GetLastError
mov dword [edi], 0
push esi
call sub.KERNEL32.dll_CloseHandle
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x463aa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x463ace
mov edx, dword [ebp + 8]
xor eax, eax
movzx esi, byte [edx]
shl eax, 4
inc edx
add esi, eax
mov eax, esi
shr eax, 0x18
and eax, 0xfffffff0
xor eax, esi
dec ecx
jne 0x463ab0
and eax, 0xfffffff
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x463ae0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x463b13
mov edx, dword [ebp + 8]
mov eax, 0x1505
nop word cs:[eax + eax]
nop dword [eax]
mov esi, eax
shl esi, 5
add esi, eax
movzx eax, byte [edx]
inc edx
add eax, esi
dec ecx
jne 0x463b00
pop esi
pop ebp
ret
mov eax, 0x1505
pop esi
pop ebp
ret
Function at 0x49cff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x49d048
lea edi, [edx + eax*2]
xor ebx, ebx
movzx esi, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea eax, [ebx + esi]
jne 0x49d040
cmp eax, ebx
jb 0x49d0c2
cmp eax, dword [ebp + 0x10]
ja 0x49d0d3
add ebx, dword [ebp + 0xc]
nop word cs:[eax + eax]
nop
test esi, esi
je 0x49d042
dec esi
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x49d030
jmp 0x49d09f
ja 0x49d048
cmp edx, edi
mov ebx, eax
jne 0x49d002
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x49d0a3
mov esi, dword [ebp + 0x14]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x49d080
mov esi, edi
sub ecx, ebx
jns 0x49d097
jmp 0x49d0a5
cmp edi, edx
je 0x49d0ac
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x49d0a5
xor al, 1
cmp esi, edx
jne 0x49d060
jmp 0x49d0a5
xor eax, eax
jmp 0x49d0a5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4d55fc
push 0x2b
push 0x4d3a7d
call sym.core::panicking::panic::h77c9b6f606fdbf34
add esp, 0xc
ud2
push 0x4d55ec
push eax
push ebx
call sym.core::slice::index::slice_index_order_fail::hba371d894dfabb23
add esp, 0xc
ud2
push 0x4d55ec
push dword [ebp + 0x10]
push eax
call sym.core::slice::index::slice_end_index_len_fail::ha90cccd5bd71ac96
add esp, 0xc
ud2
Function at 0x4b9830
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4b9890
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x5011d4]
test esi, esi
jle 0x4b99b0
mov eax, dword [0x5011d8]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4b98c4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4b9947
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4b98b0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4b99d7
mov eax, dword [0x5011d8]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x5011d8]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4b99b7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4b9940
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4b9950
add dword [0x5011d4], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x5011d8]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4b9940
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4b98ce
mov eax, dword [0x5011d8]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop