joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c310
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
nop word cs:[eax + eax]
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
je 0x40c3a8
mov ecx, dword [esi + 0x30]
movzx edx, word [esi + 0x2c]
call fcn.0040c150
cmp eax, 0xaddfe535
jne 0x40c330
mov esi, dword [esi + 0x18]
lea ecx, [ebp - 0x10]
mov edx, esi
push 0xa2b1807f
call fcn.0040c3b0
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
push 0xced7e31f
call fcn.0040c3b0
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
push 0x91c3ed4a
call fcn.0040c3b0
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
push 0xb2036547
call fcn.0040c3b0
add esp, 4
lea ecx, [ebp - 0x10]
mov edx, esi
push 0xa596d8ce
call fcn.0040c3b0
add esp, 4
add esp, 0xc
pop esi
pop ebp
ret

Function at 0x40c3b0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, edx
xor edx, edx
cmp word [edi], 0x5a4d
jne 0x40c4a6
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi], 0x4550
jne 0x40c4a6
mov eax, dword [edi + eax + 0x78]
mov dword [ebp - 0x10], ecx
xor esi, esi
mov edx, dword [eax + edi + 0x14]
mov ecx, dword [eax + edi + 0x20]
mov ebx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + edi + 0x1c]
mov eax, dword [eax + edi + 0x24]
add ecx, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
add edx, edi
add eax, edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
nop word [eax + eax]
cmp esi, dword [ebp - 0x24]
je 0x40c4a1
mov eax, dword [ebp - 0x20]
mov ebx, esi
mov edx, 0xffffffff
mov ecx, dword [eax + esi*4]
add ecx, edi
nop dword [eax + eax]
cmp byte [ecx + edx + 1], 0
lea edx, [edx + 1]
jne 0x40c430
lea esi, [ebx + 1]
call fcn.0040c150
cmp eax, dword [ebp + 8]
jne 0x40c410
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
movzx eax, word [eax + ebx*2]
cmp ecx, eax
jbe 0x40c4b0
mov ecx, dword [ebp - 0x14]
mov edx, 0
mov eax, dword [ecx + eax*4]
mov ecx, dword [ebp - 0x10]
cmp byte [eax + edi], 0x4c
jne 0x40c4a6
add eax, edi
cmp byte [eax + 1], 0x8b
jne 0x40c4a6
cmp byte [eax + 2], 0xd1
jne 0x40c4a6
cmp byte [eax + 3], 0xb8
jne 0x40c4a6
cmp byte [eax + 6], 0
jne 0x40c4a6
cmp byte [eax + 7], 0
jne 0x40c4a6
movzx edx, byte [eax + 4]
or dl, byte [eax + 5]
mov dword [ecx + 4], eax
movzx edx, dl
mov word [ecx + 8], dx
mov edx, 1
jmp 0x40c4a6
mov ecx, dword [ebp - 0x10]
xor edx, edx
mov dword [ecx], edx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x57b2a4
push ecx
push eax
call fcn.004dac50
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x63eb502c
mov dword [eax + 8], 0xd6cb5d6d
mov dword [eax + 4], 0xb98b1b71
mov dword [eax], 0x57a64178
pop ebp
ret
Function at 0x40e0f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x57b434
push 1
push 0
push 0x57b4c0
call sub.ole32.dll_CoCreateInstance
test eax, eax
lea ecx, [ebp - 0x10]
js 0x40e154
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e1ea
cmp dword [esi], 0
je 0x40e13b
push esi
call fcn.0043f540
add esp, 4
mov dword [esi], ebx
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [esi]
movsd qword [edi + 8], xmm0
movsd qword [edi], xmm1
jmp 0x40e1e2
push eax
mov ebx, ecx
call fcn.00446800
mov ecx, ebx
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [eax], edx
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], 0
je 0x40e17e
push ecx
call fcn.004465e0
add esp, 4
mov eax, dword [esi + 8]
mov byte [edi + 0xc], 2
mov dword [esi + 8], 0
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40e19f
lea eax, [ebp - 0x18]
push eax
call fcn.0043f540
add esp, 4
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40e1bc
lea eax, [ebp - 0x18]
push eax
call fcn.0043f540
add esp, 4
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40e1d7
lea eax, [ebp - 0x18]
push eax
call fcn.0043f540
add esp, 4
cmp byte [esi + 0xc], 1
jne 0x40e1e2
call sub.ole32.dll_CoUninitialize
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
xor edx, edx
mov dword [eax], edx
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], 0
jne 0x40e175
jmp 0x40e17e
Function at 0x40e460
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov ebx, dword [edx + 4]
mov esi, edx
test ebx, ebx
je 0x40e541
mov dword [ebp - 0x20], ecx
push 0x57b4e2
call sub.oleaut32.dll_SysAllocString
mov edi, eax
mov dword [ebp - 0x38], eax
push str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.oleaut32.dll_SysAllocString
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov edx, dword [ebx]
push ecx
push 0
push 0x30
mov dword [ebp - 0x34], eax
push eax
mov dword [ebp - 0x10], edi
push edi
push ebx
call dword [edx + 0x50]
test eax, eax
mov dword [ebp - 0x30], ebx
js 0x40e4d5
mov edx, dword [ebp - 0x2c]
xor edi, edi
lea eax, [ebp - 0x28]
test edx, edx
jne 0x40e4e9
mov edi, 1
xor edx, edx
mov dword [ebp - 0x24], 0
jmp 0x40e4e9
push eax
call fcn.00446800
add esp, 4
mov dword [ebp - 0x28], eax
mov edi, 1
lea eax, [ebp - 0x24]
mov dword [eax], edx
push dword [ebp - 0x10]
call sub.oleaut32.dll_SysFreeString
push dword [ebp - 0x34]
call sub.oleaut32.dll_SysFreeString
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edi
mov ebx, edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], edi
push eax
call fcn.0043ec10
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.0043ec10
add esp, 4
test ebx, ebx
je 0x40e5a4
mov ebx, dword [ebp - 0x30]
test edi, edi
je 0x40e53e
lea eax, [ebp - 0x14]
push eax
call fcn.004465e0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 8]
mov byte [ecx + 0xc], 2
mov dword [esi + 8], 0
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40e562
lea eax, [ebp - 0x1c]
push eax
call fcn.0043f540
add esp, 4
test ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [esi + 4], 0
je 0x40e57c
lea eax, [ebp - 0x1c]
push eax
call fcn.0043f540
add esp, 4
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x40e597
lea eax, [ebp - 0x1c]
push eax
call fcn.0043f540
add esp, 4
cmp byte [esi + 0xc], 1
jne 0x40e5d1
call sub.ole32.dll_CoUninitialize
jmp 0x40e5d1
cmp dword [esi + 8], 0
je 0x40e5b6
lea eax, [esi + 8]
push eax
call fcn.0043f540
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x20]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40edd0
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x10], 0x3c00
nop word cs:[eax + eax]
nop
push dword [ebp - 0x10]
push esi
call sub.msvcrt.dll_realloc
add esp, 8
test eax, eax
je 0x40ee76
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0xe
push 0
call sub.iphlpapi.dll_GetAdaptersAddresses
test eax, eax
mov dword [ebp - 0x14], eax
je 0x40eebe
cmp ebx, 1
ja 0x40ee2a
inc ebx
cmp eax, 0x6f
mov esi, edi
je 0x40edf0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x34], 0x57b6b8
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], fcn.004eb5f0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], 1
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.004d0480
add esp, 8
push edi
call sub.msvcrt.dll_free
mov eax, esi
add esp, 4
jmp 0x40eecd
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 1
push 0x32
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x40eed5
mov edi, eax
push 0x32
push str.failed_to_allocate_memory_for_IP_ADAPTER_ADDRESSEScannot_access_a_Thread_Local_Storage_value_during_or_after_destruction_rustc_f6e511eec7342f59a25f7c0534f1dbea00d01b14library_std_src_threadlocal.rs
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0x32
mov dword [eax + 4], edi
mov dword [eax + 8], 0x32
jmp 0x40eecd
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], 0x80000000
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x32
push 1
call fcn.004cf340
nop
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
nop word cs:[eax + eax]
mov eax, dword [edx]
test eax, 0x10000
jne 0x40ef0b
mov ecx, eax
or ecx, 0x10000
lock cmpxchg dword [edx], ecx
jne 0x40eef0
mov eax, ecx
pop ebp
ret
mov ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x413260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x413320
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x413318
je 0x413316
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4132ac
movups xmm0, xmmword [eax + 8]
test byte [eax], 1
mov dword [eax + 4], 0
mov dword [eax], 0
jne 0x4132c6
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
push 0x10
push eax
call dword [sym.imp.bcryptprimitives.dll_ProcessPrng]
movaps xmm0, xmmword [esp + 0x10]
mov eax, dword [0x59fb24]
movaps xmmword [esp], xmm0
movzx eax, byte [eax]
push 8
push 0x18
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x41333c
movaps xmm0, xmmword [esp]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [esp], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x413311
push 8
push 0x18
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [esp]
jmp 0x413318
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x413289
jmp 0x413318
push 0x18
push 8
call fcn.004cf360
nop word cs:[eax + eax]
nop

Function at 0x413350
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x41340c
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x413404
je 0x413402
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41338f
mov edi, dword [eax + 4]
test byte [eax], 1
mov dword [eax], 0
jne 0x41339f
call fcn.004505d0
push eax
call fcn.0044eb50
add esp, 4
mov edi, eax
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x413433
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4133fd
mov eax, dword [edi]
mov ecx, dword [eax + 0x410]
lea edx, [ecx - 1]
xor ecx, 1
mov dword [eax + 0x410], edx
or ecx, dword [eax + 0x40c]
je 0x413428
push 4
push 8
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x413404
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x413374
jmp 0x413404
push eax
call fcn.004502c0
add esp, 4
jmp 0x4133f0
push 8
push 4
call fcn.004cf360
nop dword [eax]
Function at 0x413440
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, 8
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x41350a
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x413502
je 0x413500
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x413493
mov edi, dword [eax + 4]
mov ebx, dword [eax + 8]
test byte [eax], 1
mov dword [eax], 0
je 0x413493
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, ebx
shr eax, 0x18
jmp 0x41349e
mov dword [ebp - 0x10], 0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 0xc
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x413526
movzx ecx, byte [ebp - 0x14]
movzx edx, byte [ebp - 0x10]
mov dword [eax], edi
shl ecx, 0x18
shl edx, 0x10
or edx, ecx
movzx ecx, bx
or ecx, edx
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4134fb
push 4
push 0xc
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
jmp 0x413502
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x413466
jmp 0x413502
push 0xc
push 4
call fcn.004cf360
nop
Function at 0x413530
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x4135b9
dec esi
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x4135b1
je 0x413566
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41356a
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
je 0x41356c
mov edi, dword [eax + 4]
jmp 0x41356c
xor eax, eax
jmp 0x4135b1
xor edi, edi
mov eax, dword [0x59fb24]
movzx eax, byte [eax]
push 4
push 8
call fcn.0040cd10
add esp, 8
test eax, eax
je 0x4135d5
mov dword [eax], edi
mov dword [eax + 4], esi
push esi
mov ebx, eax
call sub.kernel32.dll_TlsGetValue
mov edi, eax
mov dword [ebp - 0x10], ebx
push ebx
push esi
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x4135ae
push 4
push 8
push edi
call fcn.0040cd20
add esp, 0xc
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.004acae0
add esp, 4
mov esi, eax
push esi
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x41354c
jmp 0x4135b1
push 8
push 4
call fcn.004cf360
nop
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x20]
mov esi, dword [eax]
push 4
push 0x57bd94
push dword [ebp + 0xc]
push edi
call fcn.004dec80
add esp, 0x10
mov dword [ebp - 0xc], esi
lea eax, [ebp - 0xc]
push 0x57bd98
push eax
push 3
push 0x57bda8
push edi
call fcn.004db320
add esp, 0x14
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push 0x57bdac
push ecx
push 3
push 0x57bdbc
push eax
call fcn.004db320
add esp, 0x14
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x18]
push 0x57bdc0
push ecx
push 4
push str.nameC:Userswin10_x64.cargo_registry_srcindex.crates.io_1cd66030c949c28d_sysinfo_0.32.1_srcwindowsdisk.rs
push eax
call fcn.004db320
add esp, 0x14
push eax
call fcn.004db510
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
Function at 0x41c2b0
Capabilities:
List user account groups

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
mov dword [eax + 8], 0
test edi, edi
je 0x41c2fc
add esi, 4
jmp 0x41c2e6
add esi, 0x10
dec edi
je 0x41c2fc
mov eax, dword [esi - 4]
test eax, eax
je 0x41c2e0
push 1
push eax
push dword [esi]
call fcn.0040cd20
add esp, 0xc
jmp 0x41c2e0
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x38], 0
nop word cs:[eax + eax]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], 0
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 0
push 0
call sub.netapi32.dll_NetGroupEnum
test eax, eax
je 0x41c34f
cmp eax, 0xea
jne 0x41c4d0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
test edi, edi
je 0x41c4b6
shl edi, 2
mov dword [ebp - 0x28], eax
jmp 0x41c37c
add esi, 4
add edi, 0xfffffffc
je 0x41c4b0
mov eax, dword [esi]
test eax, eax
je 0x41c370
mov dword [ebp - 0x14], 0
push ebx
push 3
push eax
push 0
call sub.netapi32.dll_NetGroupGetInfo
test eax, eax
jne 0x41c470
mov eax, dword [ebp - 0x14]
push dword [eax + 8]
lea eax, [ebp - 0x58]
push eax
call fcn.00410fd0
add esp, 8
mov ecx, dword [ebp - 0x58]
mov eax, ecx
neg eax
jo 0x41c470
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov eax, dword [ebp - 0x54]
test ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], ecx
je 0x41c486
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0043f230
add esp, 8
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov ebx, 1
mov eax, ecx
neg eax
mov eax, 0
cmovo edx, ebx
cmovo ecx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x20], ecx
cmovo edx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
cmp ebx, dword [edx]
jne 0x41c420
push edx
call fcn.00417eb0
mov edx, dword [ebp + 8]
add esp, 4
mov eax, ebx
mov dword [ebp - 0x30], ebx
mov ecx, dword [edx + 4]
mov ebx, dword [ebp - 0x20]
shl eax, 4
mov dword [ecx + eax], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ecx + eax + 4], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ecx + eax + 8], ebx
mov dword [ecx + eax + 0xc], 0
mov eax, dword [ebp - 0x30]
lea ebx, [ebp - 0x14]
inc eax
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x41c470
push 1
push eax
push dword [ebp - 0x2c]
call fcn.0040cd20
add esp, 0xc
nop word cs:[eax + eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41c370
push eax
call sub.netapi32.dll_NetApiBufferFree
jmp 0x41c370
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 8]
cmp ebx, dword [edx]
je 0x41c414
jmp 0x41c420
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
cmp eax, 0xea
jne 0x41c4d3
test esi, esi
je 0x41c310
push esi
call sub.netapi32.dll_NetApiBufferFree
jmp 0x41c310
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x41c4dd
push esi
call sub.netapi32.dll_NetApiBufferFree
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x421390
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea eax, [ebp - 0x24]
push eax
push edx
call sub.shell32.dll_CommandLineToArgvW
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x421452
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
test ebx, ebx
je 0x421436
mov edi, dword [ebp - 0x1c]
shl ebx, 2
jmp 0x421409
mov eax, dword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
mov ecx, esi
add edi, 4
inc esi
shl ecx, 4
add ebx, 0xfffffffc
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [ebp - 0x10], esi
je 0x421436
push edi
call fcn.0043f210
add esp, 4
push edx
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0048fe20
add esp, 0xc
mov esi, dword [ebp - 0x10]
cmp esi, dword [ebp - 0x18]
jne 0x4213e0
lea eax, [ebp - 0x18]
push eax
call fcn.00417eb0
add esp, 4
jmp 0x4213e0
push dword [ebp - 0x1c]
call sub.kernel32.dll_LocalFree
movsd xmm0, qword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movsd qword [ecx], xmm0
mov dword [ecx + 8], eax
jmp 0x421466
mov dword [esi], 0
mov dword [esi + 4], 4
mov dword [esi + 8], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4223b0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
movzx ebx, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp byte [ebp + 0xc], 0
je 0x422430
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x10], 0x40
push eax
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
je 0x422401
movups xmm0, xmmword [esp + 0x18]
movups xmmword [esi + 0x40], xmm0
jmp 0x422430
call fcn.00446630
movups xmm0, xmmword [esp + 0x18]
test edx, edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 1
movups xmmword [esi + 0x40], xmm0
je 0x422430
lea eax, [esp + 0xc]
push eax
call fcn.004465e0
add esp, 4
test bl, bl
je 0x422499
xorps xmm0, xmm0
lea eax, [esp + 0x10]
movsd qword [esp + 0x40], xmm0
xorps xmm0, xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x38
push eax
call sub.kernel32.dll_K32GetPerformanceInfo
test eax, eax
je 0x422499
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x38]
xor ecx, ecx
mov edx, 0
sub eax, edi
sbb edx, edx
cmovb eax, ecx
mul ebx
mov dword [esi + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x54], edx
mov edx, 0
sub eax, edi
sbb edx, edx
cmovb eax, ecx
mul ebx
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4235d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push 5
call sub.kernel32.dll_GetComputerNameExW
xor edi, edi
test eax, eax
mov eax, 0
jne 0x423608
call fcn.00446630
mov dword [ebp - 0x1c], eax
mov eax, 1
mov dword [ebp - 0x18], edx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea esi, [ebx + ebx]
test ebx, ebx
js 0x42374b
cmp esi, 0x7ffffffe
ja 0x42374b
test esi, esi
je 0x423643
push 2
push esi
call fcn.0040cd60
add esp, 8
test eax, eax
je 0x423746
mov edi, eax
mov dword [ebp - 0x10], ebx
jmp 0x42364f
mov edi, 2
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push edi
push 5
call sub.kernel32.dll_GetComputerNameExW
test eax, eax
je 0x4236a6
test ebx, ebx
mov eax, 0
je 0x42367f
xor eax, eax
nop word [eax + eax]
cmp word [edi + eax*2], 0
je 0x42367f
inc eax
add esi, 0xfffffffe
jne 0x423670
mov eax, ebx
lea ecx, [ebp - 0x2c]
push eax
push edi
push ecx
call fcn.004d1210
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2c]
jno 0x423700
mov esi, dword [ebp + 8]
mov dword [esi], 0x80000000
test ecx, ecx
jne 0x423716
jmp 0x423724
call fcn.00446630
test edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], 1
je 0x4236c8
lea eax, [ebp - 0x24]
push eax
call fcn.004465e0
add esp, 4
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
test eax, eax
je 0x4236e0
add eax, eax
push 2
push eax
push edi
call fcn.0040cd20
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x4236f8
cmp dword [ebp - 0x18], 0
je 0x4236f8
lea eax, [ebp - 0x18]
push eax
call fcn.004465e0
add esp, 4
mov dword [esi], 0x80000000
jmp 0x42373c
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x2c]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
test ecx, ecx
je 0x423724
add ecx, ecx
push 2
push ecx
push edi
call fcn.0040cd20
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x42373c
cmp dword [ebp - 0x18], 0
je 0x42373c
lea eax, [ebp - 0x18]
push eax
call fcn.004465e0
add esp, 4
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 2
push esi
push edi
call fcn.004cf340
nop word cs:[eax + eax]
nop dword [eax]
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov edx, 0x57ced8
mov ecx, esi
push 0x12
call fcn.00423f70
add esp, 4
mov eax, esi
pop esi
pop ebp
ret
Function at 0x423a60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
call 0x423a71
pop edi
lea ebx, [ebp - 0x30]
push ebx
call fcn.004383e0
add esp, 4
push ebx
call sub.kernel32.dll_GetSystemInfo
movzx eax, word [ebp - 0x30]
cmp eax, 0xe
ja 0x423c7f
add edi, dword [eax*4 + 0x423cbc]
jmp edi
mov dword [esi], 0x80000000
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret