joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100cc4d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b0
movzx eax, word [edx + 8]
mov edi, dword [edx]
mov ebx, dword [edx + 4]
mov esi, ecx
mov word [ebp - 0xe], ax
mov eax, dword [0x102370d4]
cmp eax, 3
jne 0x100cc68a
lea eax, [ebp - 0xe]
cmp ebx, 0x17f
mov dword [ebp - 0x1c], eax
ja 0x100cc694
lea eax, [ebp - 0x1bc]
push ebx
push edi
mov edi, eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebx + 1]
cmp ebx, 6
mov byte [ebp + ebx - 0x1bc], 0
ja 0x100cc548
xor edx, edx
cmp byte [ebp + edx - 0x1bc], 0
je 0x100cc5ff
inc edx
cmp eax, edx
jne 0x100cc530
jmp 0x100cc651
lea ecx, [ebp - 0x1b9]
and ecx, 0xfffffffc
sub ecx, edi
je 0x100cc57f
xor edx, edx
nop word [eax + eax]
cmp byte [ebp + edx - 0x1bc], 0
je 0x100cc5ff
inc edx
cmp ecx, edx
jne 0x100cc560
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
cmp ecx, edx
jbe 0x100cc585
jmp 0x100cc5d1
lea edx, [ebx - 7]
mov dword [ebp - 0x14], esi
movdqa xmm0, xmmword [0x10172600]
movdqa xmm1, xmmword [0x10172610]
nop word cs:[eax + eax]
nop
movq xmm2, qword [ebp + ecx - 0x1bc]
movdqa xmm3, xmm2
paddd xmm3, xmm0
pandn xmm2, xmm3
pand xmm2, xmm1
movd edi, xmm2
pshufd xmm2, xmm2, 0x55
movd esi, xmm2
or esi, edi
jne 0x100cc5d1
add ecx, 8
cmp ecx, edx
jbe 0x100cc5a0
mov esi, dword [ebp - 0x14]
sub eax, ecx
je 0x100cc651
lea edi, [ebp + ecx - 0x1bc]
xor edx, edx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp byte [edi + edx], 0
je 0x100cc5fd
inc edx
cmp eax, edx
jne 0x100cc5f0
jmp 0x100cc651
add edx, ecx
cmp edx, ebx
jne 0x100cc651
pxor xmm0, xmm0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x3c]
movdqu xmmword [ebp - 0x3c], xmm0
movdqu xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x34], 1
push eax
push ecx
push 0
lea eax, [ebp - 0x1bc]
push eax
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x100cc673
call sub.ws2_32.dll_WSAGetLastError
mov ecx, 1
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov dword [esi], ecx
jmp 0x100cc668
mov eax, dword [0x101cd738]
mov ecx, dword [0x101cd73c]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 1
add esp, 0x1b0
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x18]
movzx ecx, word [ebp - 0xe]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor eax, eax
mov word [esi + 0xc], cx
mov dword [esi], eax
jmp 0x100cc668
call dbg.initialize<unsafe extern "system" fn() -> i32, std::sync::once_lock::{impl#0}::get_or_init::{closure_env#0}<unsafe extern "system" fn() -> i32, std::sys::pal::windows::net::init::{closure_env#0}>, !>
jmp 0x100cc4f9
lea eax, [ebp - 0x1c]
mov ecx, esi
mov edx, edi
push eax
push ebx
call dbg.run_with_cstr_allocating<std::sys_common::net::LookupHost>
add esp, 8
jmp 0x100cc668
Function at 0x100ccb60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
call dbg.spec_new_impl
add esp, 4
mov eax, dword [ebp - 0x20]
cmp eax, 0x80000000
jne 0x100ccbcc
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 0x100ccbed
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
jmp 0x100ccc04
mov ecx, dword [0x101cd738]
mov edx, dword [0x101cd73c]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x100ccc19
mov ecx, dword [ebp - 0x1c]
jmp 0x100ccc0f
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 0x100ccc19
mov ecx, edi
mov edx, 1
call sym.___rust_dealloc
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100ccc30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x100ccc84
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x100ccc8e
mov dword [esi], 0x100f1a6c
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
mov ecx, 0x101cd644
call dbg.unwrap_failed
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x101cf898
push 0x101ce1b0
push eax
call dbg.assert_failed<i32, i32>
nop dword [eax + eax]

Function at 0x100cccb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov esi, dword [eax]
mov dword [eax], 0
test esi, esi
je 0x100ccd04
lea edi, [ebp - 0x1b4]
push 0x190
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push 0x202
call sub.ws2_32.dll_WSAStartup
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x100ccd0e
mov dword [esi], 0x100f1a6c
add esp, 0x1ac
pop esi
pop edi
pop ebp
ret
mov ecx, 0x101cd644
call dbg.unwrap_failed
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0xc]
mov edx, 0x101cf898
push 0x101ce1b0
push eax
call dbg.assert_failed<i32, i32>
nop dword [eax + eax]
Function at 0x100d2150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call dbg.inner
add esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
cmp edx, 0x80000000
jne 0x100d2189
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0x80000000
jmp 0x100d21a8
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], eax
call dbg.from_wide_to_user_path
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x100d21be
lea ecx, [ebp - 0x18]
call dbg.drop_in_place<core::result::Result<alloc::vec::Vec<u16, alloc::alloc::Global>, std::io::error::Error>>
mov dword [esi], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x100d21df
mov eax, dword [ebp - 0x1c]
mov dword [esi], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
jmp 0x100d21b6
test ebx, ebx
mov dword [esi], 0x80000000
je 0x100d21b6
mov ecx, edi
mov edx, 2
call sym.___rust_dealloc
jmp 0x100d21b6
Function at 0x100d4720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
movzx eax, byte [0x10237124]
mov ebx, edx
mov esi, ecx
xor ecx, ecx
mov edx, 8
call dbg.process_heap_alloc
test eax, eax
je 0x100d47b0
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
push 0
push 0x10000
push edi
push dbg.thread_start
push ebx
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x100d4770
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x100d47a8
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x100d4791
mov edx, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
call sym.___rust_dealloc
mov ecx, edi
mov edx, 4
call sym.___rust_dealloc
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, 4
mov edx, 8
call dbg.handle_alloc_error
ud2

Function at 0x100d4a20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.100f7c10
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push dbg.callback
push eax
push 0x1000
push ebx
mov dword [ebp - 0x10], edi
push edi
call sub.kernel32.dll_ReadFileEx
test eax, eax
je 0x100d4b3d
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100d4a7e
cmp dword [ebp - 0x18], 0
jne 0x100d4b44
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100d4b44
cmp ebx, 0x1000
ja 0x100d4b70
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x100d4b5d
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push dbg.callback
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.kernel32.dll_WriteFileEx
test eax, eax
je 0x100d4b3f
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.kernel32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x100d4af0
cmp dword [ebp - 0x18], 0
jne 0x100d4b44
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x100d4ab0
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push dbg.callback
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
push dword [ebp - 0x10]
jmp 0x100d4a71
jmp 0x100d4b3f
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
mov edx, ebx
mov ecx, edi
push 0x101ce368
call dbg.slice_index_order_fail
add esp, 4
jmp 0x100d4b84
mov edx, 0x1000
mov ecx, ebx
push 0x101ce368
call dbg.slice_end_index_len_fail
add esp, 4
ud2
Function at 0x100d6200
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 0x100d62cb
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx]
test edx, edx
jne 0x100d6230
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x100d62b6
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x100d62a3
mov ecx, dword [edi + 8]
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 + 0x10]
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x100d6267
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x100d627f
jmp 0x100d628b
call sub.kernel32.dll_GetLastError
cmp eax, 0x6d
je 0x100d628b
cmp eax, 0x3e5
jne 0x100d6292
mov ecx, 1
xor eax, eax
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
jmp 0x100d629b
mov word [esi], 4
jmp 0x100d629b
mov dword [esi], 0
mov dword [esi + 4], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, ebx
push 1
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
jmp 0x100d6237
mov edx, eax
mov ecx, ebx
push 0x10
call dbg.do_reserve_and_handle<u8, alloc::alloc::Global>
add esp, 4
mov edx, dword [ebx]
jmp 0x100d6230
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call dbg.assert_failed<std::sys::pal::windows::pipe::State, std::sys::pal::windows::pipe::State>
nop dword [eax]
Function at 0x100d8e30
Capabilities:
Set file attributes

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 dbg.inner
add esp, 4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cmp edx, 0x80000000
je 0x100d8e84
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 dbg.get_long_path
add esp, 4
mov ebx, dword [ebp - 0x18]
cmp ebx, 0x80000000
jne 0x100d8e91
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 edi, dword [ebp - 0x14]
push dword [ebp + 0xc]
push edi
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
je 0x100d8eaa
mov byte [esi], 4
test ebx, ebx
jne 0x100d8eb9
jmp 0x100d8e89
call sub.kernel32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test ebx, ebx
je 0x100d8e89
mov ecx, edi
mov edx, 2
call sym.___rust_dealloc
jmp 0x100d8e89
Function at 0x100d8ed0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov esi, ecx
lea ecx, [esp + 0x28]
push dword [ebp + 8]
call dbg.inner
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x100d8f33
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 dbg.get_long_path
add esp, 4
mov edi, dword [esp + 0x18]
cmp edi, 0x80000000
jne 0x100d8f47
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push dword [ebp + 0x10]
call dbg.inner
add esp, 4
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
cmp edx, 0x80000000
je 0x100d8fab
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 dbg.get_long_path
add esp, 4
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 0x80000000
jne 0x100d8fcc
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi], 1
test edi, edi
je 0x100d8f3f
mov ecx, ebx
mov edx, 2
call sym.___rust_dealloc
jmp 0x100d8f3f
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.__ZN3std3sys3pal7windows2fs4copy8callback17h7b03c26fb09444b2E_52
mov dword [esp + 0x34], eax
push eax
push dword [esp + 0x18]
call sub.kernel32.dll_CopyFileExW
test eax, eax
je 0x100d9034
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
test ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov dword [esi], 0
je 0x100d9026
mov ecx, dword [esp + 0x24]
mov edx, 2
call sym.___rust_dealloc
mov ecx, dword [esp + 4]
test edi, edi
je 0x100d8f3f
jmp 0x100d8fbd
call sub.kernel32.dll_GetLastError
test ebx, ebx
mov ebx, dword [esp + 4]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 1
je 0x100d8fb7
mov ecx, dword [esp + 0x24]
mov edx, 2
call sym.___rust_dealloc
jmp 0x100d8fb7
Function at 0x100d9350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [0x1016f1f4]
test eax, eax
je 0x100d9416
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 2
jb 0x100d937e
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x100d9409
mov eax, dword [0x1016f1f4]
test eax, eax
je 0x100d9425
dec eax
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x100d940e
mov esi, eax
test eax, eax
jne 0x100d93e0
movzx eax, byte [0x10237124]
xor ecx, ecx
mov edx, 0x20
call dbg.process_heap_alloc
test eax, eax
je 0x100d9446
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x1016f1f4
mov ecx, dword [0x1016f1f4]
test ecx, ecx
je 0x100d9434
dec ecx
mov esi, eax
push eax
push ecx
call sub.kernel32.dll_TlsSetValue
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 0x10
push eax
call dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
movaps xmm0, xmmword [esp]
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add eax, 8
jmp 0x100d9410
xor eax, eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x1016f1f4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100d9368
mov ecx, 0x1016f1f4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
jmp 0x100d938c
mov ecx, 0x1016f1f4
mov esi, eax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::h79f830d24f8bdf80
mov ecx, eax
mov eax, esi
jmp 0x100d93d7
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
nop word cs:[eax + eax]
nop
Function at 0x100e1709
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
and dword [ebp - 0x10], 0
cmp dword [edx + 8], 0
mov esi, edx
mov ebx, ecx
je 0x100e17a6
push 0x101cf64e
call sub.oleaut32.dll_SysAllocString
mov dword [ebp - 0x18], ebx
mov ebx, eax
push str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov edi, eax
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 0
push 0x30
push edi
push ebx
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x14], eax
push ebx
mov ebx, dword [ebp - 0x18]
call sub.oleaut32.dll_SysFreeString
push edi
call sub.oleaut32.dll_SysFreeString
cmp dword [ebp - 0x14], 0
js 0x100e17a6
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov edi, dword [ebp - 0x10]
call sym.core::ptr::drop_in_place_LT_core..option..Option_LT_sysinfo..windows..component..Instance_GT__GT_::h4cab82a97833282c
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
movsd xmm1, qword [esi + 8]
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi]
movsd qword [ebx + 8], xmm1
movsd xmm1, qword [esi + 0x10]
mov dword [ebx + 0x18], eax
movsd qword [ebx], xmm0
movsd qword [ebx + 0x10], xmm1
jmp 0x100e17b3
mov ecx, esi
mov dword [ebx], 2
call sym.core::ptr::drop_in_place_LT_sysinfo..windows..component..Connection_GT_::h1d75df69a7887ca2
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100e1fcf
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push eax
lea edi, [ebp - 0xc]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and dword [edi], 0
push esi
push eax
push edi
push 0
push edx
push ecx
call sub.advapi32.dll_RegQueryValueExW
add esp, 4
pop esi
pop edi
pop ebp
ret
Function at 0x100e1ff4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x10], ecx
and dword [ebx], 0
push 5
pop esi
push ebx
push 0
push esi
call sub.kernel32.dll_GetComputerNameExW
mov edx, dword [ebx]
lea edi, [ebp - 0x1c]
mov ecx, edi
call sym.alloc::vec::from_elem::h1948b3321023d8c4
mov edi, dword [edi + 4]
push ebx
push edi
push esi
call sub.kernel32.dll_GetComputerNameExW
cmp eax, 1
jne 0x100e204a
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
xor ecx, ecx
lea edx, [eax + eax]
test edx, edx
je 0x100e2061
cmp word [edi + ecx*2], 0
je 0x100e205f
inc ecx
add edx, 0xfffffffe
jmp 0x100e2039
mov ecx, dword [ebp - 0x1c]
mov edx, edi
call sym.__LT_alloc..raw_vec..RawVec_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h7bb24c24b88caf4f
mov eax, dword [ebp - 0x10]
mov dword [eax], 0x80000000
jmp 0x100e20a5
mov eax, ecx
lea ebx, [ebp - 0x28]
mov edx, edi
mov ecx, ebx
push eax
call dbg.from_utf16
pop eax
cmp dword [ebx], 0x80000000
jne 0x100e208c
mov edx, dword [ebp - 0x24]
mov ecx, 0x80000000
mov dword [esi], 0x80000000
call sym.__ZN4core3ptr102drop_in_place_LT_core..result..Result_LT_alloc..string..String_C_alloc..string..FromUtf16Error_GT__GT_17h131df
jmp 0x100e209b
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [ebp - 0x28]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov ecx, dword [ebp - 0x1c]
mov edx, edi
call sym.__LT_alloc..raw_vec..RawVec_LT_T_C_A_GT__u20_as_u20_core..ops..drop..Drop_GT_::drop::h7bb24c24b88caf4f
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100e7898
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x100e789d
test al, 1
je 0x100e78b5
test al, 2
jne 0x100e78c7
xor eax, 3
pop ebp
ret
push 0x23
pop edx
mov ecx, 0x101d0f90
push 0x101d0fb4
call dbg.panic
push 0x25
pop edx
mov ecx, str.assertion_failed:__prev.is_complete__
push 0x101d0fec
call dbg.panic

Function at 0x100e8cee
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push eax
mov bl, byte [ebp + 8]
mov esi, ecx
mov ecx, edx
call sym.tokio::io::poll_evented::PollEvented_LT_E_GT_::get_ref::hfbd8cff887936d43
mov eax, dword [eax]
movzx ecx, bl
lea edx, [ebp - 0xc]
mov eax, dword [eax]
mov dword [edx], ecx
push 4
push edx
push 1
push 6
push eax
call sub.ws2_32.dll_setsockopt
mov cl, 4
cmp eax, 0xffffffff
jne 0x100e8d33
call sub.ws2_32.dll_WSAGetLastError
and word [esi + 1], 0
xor ecx, ecx
mov byte [esi + 3], 0
mov dword [esi + 4], eax
mov byte [esi], cl
add esp, 4
pop esi
pop ebx
pop ebp
ret
Function at 0x100f70e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__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 dbg.__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 0x100f7140
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x10237174]
test esi, esi
jle 0x100f7260
mov eax, dword [0x10237178]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x100f7174
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x100f71f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x100f7160
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x100f7287
mov eax, dword [0x10237178]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x10237178]
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 0x100f7267
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x100f71f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x100f7200
add dword [0x10237174], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x10237178]
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 0x100f71f0
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x100f717e
mov eax, dword [0x10237178]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop