joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x401b94
pop edi
mov eax, 0xffffff9a
pop ebp
ret
cmp dword [edi + 0x2c], ebp
je 0x401b8c
cmp dword [edi + 0x80], 8
push ebx
push esi
mov dword [edi + 0x34], ebp
jne 0x401bf2
cmp dword [edi + 0x84], ebp
jne 0x401bf2
lea esi, [edi + 0x30]
cmp dword [edi + 0x40], 0
jne 0x401bcf
mov ebx, edi
call fcn.00401a00
lea eax, [edi + 0x88]
mov dword [edi + 0x40], 0x4000
mov dword [edi + 0x3c], eax
mov ebx, dword [edi + 0x44]
push 4
push esi
call fcn.00402860
mov ecx, dword [edi + 0x44]
sub ecx, ebx
add dword [edi + 0x6c], ecx
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401bb2
cmp ebp, 1
jne 0x401bf2
xor ebp, ebp
cmp dword [edi + 0x6c], 0
jbe 0x401c0a
test ebp, ebp
jne 0x401c0a
mov ebx, edi
call fcn.00401a00
cmp eax, 0xffffffff
jne 0x401c0a
or ebp, eax
cmp dword [edi + 0x80], 8
jne 0x401c31
cmp dword [edi + 0x84], 0
jne 0x401c4b
lea edx, [edi + 0x30]
push edx
call fcn.00403040
add esp, 4
mov ebp, eax
mov dword [edi + 0x68], 0
cmp dword [edi + 0x84], 0
jne 0x401c4b
mov eax, dword [edi + 0x408c]
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov esi, dword [edi + 0x74]
mov ebx, dword [edi + 0x40a4]
mov ecx, dword [esp + 0x1c]
add ebx, dword [edi + 0x44]
add esi, 0x10
mov edx, 4
call fcn.00401340
mov esi, dword [edi + 0x74]
add esi, 0x14
mov edx, 4
mov ecx, ebx
call fcn.00401340
mov ecx, 1
cmp dword [edi + 0x5c], ecx
jne 0x401c92
mov esi, dword [edi + 0x74]
add esi, 0x24
lea edx, [ecx + 1]
call fcn.00401340
mov esi, dword [edi + 0x74]
mov ecx, dword [esp + 0x18]
add esi, 0x18
mov edx, 4
call fcn.00401340
test ebp, ebp
jne 0x401cc0
mov edx, dword [edi + 0x78]
mov eax, dword [edi + 0x74]
push edx
push eax
lea ecx, [edi + 0x24]
push ecx
call fcn.00401250
add esp, 0xc
mov ebp, eax
mov edx, dword [edi + 0x74]
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
test ebp, ebp
jne 0x401d65
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov edx, dword [edi + 0xc]
push eax
push ecx
call edx
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x70]
push ebp
add eax, 0xe
push eax
mov eax, dword [edi + 0x10]
push ecx
push edx
call eax
add esp, 0x18
test eax, eax
je 0x401d06
or ebp, 0xffffffff
jmp 0x401d47
mov ecx, dword [edi + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
mov esi, 4
call fcn.004012f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401d47
mov edx, dword [edi + 0x20]
push edx
mov ecx, ebx
call fcn.004012f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401d47
mov eax, dword [edi + 0x20]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004012f0
add esp, 4
mov ebp, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x1c]
push 0
push ecx
mov ecx, dword [edi + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
je 0x401d65
or ebp, 0xffffffff
inc dword [edi + 0x40b0]
pop esi
pop ebx
mov dword [edi + 0x2c], 0
pop edi
mov eax, ebp
pop ebp
ret
Function at 0x403410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x2c]
push ebp
push esi
mov ebp, dword [edi + 0x3c]
sub ebp, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea edx, [ebx + ecx - 0x106]
sub ebp, eax
cmp eax, edx
jb 0x40348e
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x403461
sub eax, ebx
jmp 0x403463
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x403452
mov ecx, dword [edi + 0x40]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x403482
sub eax, ebx
jmp 0x403484
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x403473
add ebp, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x4034e9
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x6c]
mov ecx, ebp
add edx, dword [edi + 0x38]
push edx
call fcn.00403110
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
add esp, 4
cmp edx, 3
jb 0x4034d5
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jae 0x4034e9
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x403416
pop esi
pop ebp
pop ebx
ret
Function at 0x4061b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, ecx
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x10], ebx
test eax, eax
jne 0x4061ca
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xaaaaaaab
mul ebx
push esi
mov esi, edx
shr esi, 1
push edi
lea eax, [esi + esi*2]
cmp eax, ebx
mov dword [ebp - 0x14], eax
lea ecx, [eax + 2]
sbb ebx, ebx
mov dword [ebp - 0x18], ecx
neg ebx
add ebx, esi
lea eax, [ebx*4 + 3]
push eax
call fcn.00418db5
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
test esi, esi
je 0x40627f
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 8], esi
add edi, 2
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
shr eax, 2
lea edi, [edi + 4]
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 6], al
movzx ecx, byte [edx - 4]
movzx eax, byte [edx - 5]
shl eax, 4
shr ecx, 4
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 5], al
movzx ecx, byte [edx - 3]
movzx eax, byte [edx - 4]
shl eax, 2
shr ecx, 6
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 4], al
movzx eax, byte [edx - 3]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi - 3], al
sub esi, 1
jne 0x406215
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jbe 0x406303
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea edx, [eax + esi*2]
movzx eax, byte [edx + esi]
add edx, esi
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi*4], al
movzx eax, byte [edx]
cmp ecx, dword [ebp - 0x18]
jne 0x4062e9
movzx ecx, byte [edx + 1]
shl eax, 4
shr ecx, 4
or ecx, eax
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi*4 + 1], al
movzx eax, byte [edx + 1]
and eax, 0xf
mov byte [edi + esi*4 + 3], 0x3d
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi*4 + 2], al
mov eax, edi
mov byte [edi + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and eax, 3
mov byte [edi + esi*4 + 2], 0x3d
shl eax, 4
mov byte [edi + esi*4 + 3], 0x3d
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + esi*4 + 1], al
mov byte [edi + ebx*4], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407220
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a49b
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x814], 0xf
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x828], 0
mov dword [ebp - 4], 0
cmp dword [esi + 0xcc], 0
jbe 0x407332
push 6
push str.quit_r_n
lea ecx, [ebp - 0x828]
call fcn.004098a0
cmp dword [ebp - 0x814], 0x10
lea eax, [ebp - 0x828]
push 0
push dword [ebp - 0x818]
cmovae eax, dword [ebp - 0x828]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_send]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x800
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea edx, [ebp - 0x810]
push 0x40a8e0
call fcn.0040a6a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [esi + 0xcc]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x814]
cmp eax, 0x10
jb 0x407332
inc eax
push eax
push dword [ebp - 0x828]
call fcn.0040a320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret
Function at 0x408320
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
push edi
mov dword [esp + 0x10], edi
xor bl, bl
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40838a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
test edi, edi
je 0x408365
test esi, esi
je 0x408365
push edi
push 0x20
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov bl, 1
mov edx, dword [esp + 0xc]
push 0x40a8e0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.0040a6a0
mov edx, 0x41f2d0
mov ecx, eax
call fcn.0040a6a0
mov edx, edi
jmp 0x4083a2
push 0x40a8e0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, edi
call fcn.0040a6a0
mov edx, str._ttrans_fail.
mov ecx, eax
call fcn.0040a6a0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a828
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409f93
cmp byte [ebx + 0x3d], 0
je 0x409f93
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x409eb9
xor al, al
jmp 0x409f95
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004097e0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x409f20
sub eax, 1
je 0x409f24
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x409f7c
xor bl, bl
jmp 0x409f7e
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x409f5a
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x409f1c
cmp byte [ebx + 0x3d], 0
je 0x409f7c
test edi, edi
lea edi, [ebx + 0x40]
jne 0x409ee4
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00409ac0
jmp 0x409ede
mov bl, 1
cmp esi, 0x10
jb 0x409f8f
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.0040a320
mov al, bl
jmp 0x409f95
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret
Function at 0x40b080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.ProcessorNameString
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b10c
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x40b0ce
cmp eax, 2
jne 0x40b0ea
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x40b106
test ecx, ecx
je 0x40b101
test cl, 1
jne 0x40b0ea
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x40b106
pop edi
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00418d36
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b120
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x40b196
test edi, edi
je 0x40b196
push ebx
xorps xmm0, xmm0
push 0x11c
movups xmmword [edi], xmm0
push 0
movups xmmword [edi + 0x10], xmm0
push esi
mov dword [edi + 0x20], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, eax
test ebx, ebx
jne 0x40b172
push esi
mov dword [esi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ebx, eax
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, ebx
pop ebx
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x40b1a0
Capabilities:
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x314], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x2d4]
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x104
push eax
call edi
add esp, 0x18
mov dword [ebp - 0x2e0], 0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2e0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2d8], 0
movq qword [ebp - 0x2e8], xmm0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e8], 0
push eax
push connect
mov dword [ebp - 0x2e4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b377
mov eax, dword [ebp - 0x2d8]
push 0xc8
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0xcc]
push 0
push eax
mov dword [ebp - 0x2e4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2d8], 0
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0xcc]
push eax
push ecx
lea ecx, [ebp - 0x2e8]
call fcn.0040b080
test eax, eax
jne 0x40b2cb
test esi, esi
je 0x40b2cb
lea eax, [ebp - 0xcc]
push eax
push 0x104
push esi
call edi
add esp, 0xc
mov esi, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0
push eax
lea eax, [ebp - 0x2ec]
mov dword [ebp - 0x2d8], 4
push eax
push 0
push str.MHz
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b31d
cmp dword [ebp - 0x2ec], 4
jne 0x40b31d
mov eax, dword [ebp - 0x2dc]
mov dword [ebx], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40b32c
push esi
call edi
xor esi, esi
xorps xmm0, xmm0
mov dword [ebp - 0x2f0], 0
lea eax, [ebp - 0x310]
push eax
movups xmmword [ebp - 0x310], xmm0
movups xmmword [ebp - 0x300], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x314]
mov eax, dword [ebp - 0x2f8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x318]
mov eax, dword [ebp - 0x2fc]
mov dword [ecx], eax
test esi, esi
je 0x40b377
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d36
mov esp, ebp
pop ebp
ret
Function at 0x40b390
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x40b46f
test esi, esi
je 0x40b46f
lea eax, [ebp - 0x198]
mov dword [ebp - 0x198], 0xc8
push eax
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x40b3e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b3f8
lea eax, [ebp - 0x194]
push eax
push 0x41f724
call fcn.0040cd80
add esp, 8
lea eax, [ebp - 0x194]
push eax
push 0x64
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
call ebx
add esp, 0xc
mov dword [ebp - 0x198], 0xc8
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x40b437
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b44b
lea eax, [ebp - 0x194]
push eax
push 0x41f73c
call fcn.0040cd80
add esp, 8
lea eax, [ebp - 0x194]
push eax
push 0x64
push esi
call ebx
add esp, 0xc
mov eax, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d36
mov esp, ebp
pop ebp
ret
Function at 0x40b490
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
mov ebx, ecx
mov dword [ebp - 0x48], eax
push esi
imul eax, eax, 0x2c
push edi
xor edi, edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
push eax
push edi
push ebx
call sub.VCRUNTIME140.dll_memset
mov esi, 2
add esp, 0xc
mov dword [ebp - 0x44], esi
cmp dword [ebp - 0x48], esi
jb 0x40b62b
push esi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__chdrive]
add esp, 4
test eax, eax
jne 0x40b61b
mov byte [ebp - 0x20], al
mov word [ebp - 0x1f], ax
mov byte [ebp - 0x1d], al
lea eax, [esi + 0x40]
push eax
push 0x41f754
push 0x20
push ebx
call fcn.0040afa0
add esp, 0x10
mov edi, ebx
cmp byte [ebx + 1], 0x3a
jne 0x40b52a
mov al, byte [ebx]
lea edi, [ebp - 0x20]
mov byte [ebp - 0x20], al
mov eax, edi
push eax
push 0x20
push ebx
mov word [ebp - 0x1f], 0x5c3a
mov byte [ebp - 0x1d], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
xor eax, eax
xorps xmm0, xmm0
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push eax
mov word [ebp - 0x18], ax
movups xmmword [ebp - 0x16], xmm0
mov word [ebp - 6], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40b572
cmp eax, 0xa
jg 0x40b572
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push eax
push 0xffffffffffffffff
push edi
push 1
xorps xmm0, xmm0
push 0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x30]
movlpd qword [ebp - 0x38], xmm0
push eax
lea eax, [ebp - 0x38]
movlpd qword [ebp - 0x30], xmm0
push eax
lea eax, [ebp - 0x18]
movlpd qword [ebp - 0x28], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40b615
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x2c]
mov edx, esi
shrd ecx, eax, 0x14
shr eax, 0x14
mov dword [ebx + 0x20], ecx
mov eax, esi
mov ebx, dword [ebp - 0x30]
mov ecx, ebx
shrd ecx, eax, 0x14
shr eax, 0x14
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x24], ecx
mov ecx, ebx
sub ecx, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
call fcn.0041a320
cvtsd2ss xmm0, xmm0
mov edx, esi
mov ecx, ebx
mulss xmm0, dword [0x420c00]
movss dword [ebp - 0x24], xmm0
call fcn.0041a320
movss xmm1, dword [ebp - 0x24]
cvtsd2ss xmm0, xmm0
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x44]
divss xmm1, xmm0
movss dword [ebx + 0x28], xmm1
add ebx, 0x2c
inc edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
jmp 0x40b61e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x3c]
inc esi
mov dword [ebp - 0x44], esi
cmp esi, dword [ebp - 0x48]
jbe 0x40b4d1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d36
mov esp, ebp
pop ebp
ret
Function at 0x40cf20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x42500c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [ebp - 0x25c], eax
test esi, esi
jne 0x40cf5f
test eax, eax
jne 0x40cf5f
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418d36
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], ebx
push eax
push 0x20019
push 0
push str.HardwareDeviceMapSerialComm
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d0db
mov ebx, dword [ebp - 0x258]
push 0x208
push eax
lea eax, [ebp - 0x248]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x250]
mov word [ebp - 7], di
xorps xmm0, xmm0
mov byte [ebp - 5], 0
movups xmmword [ebp - 0x40], xmm0
push eax
lea eax, [ebp - 0x40]
movq qword [ebp - 0x20], xmm0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0x14
push eax
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x250], 0x14
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x254], edi
push eax
push 0
push ebx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x24c], edi
movups xmmword [ebp - 0x17], xmm0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x40d0db
nop dword [eax]
test esi, esi
je 0x40d045
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x40]
push str.COM_d
push eax
call fcn.0040dfa0
mov eax, dword [ebp - 0x24c]
add esp, 0xc
mov dword [esi + edi*4], eax
push 0x208
lea eax, [ebp - 0x248]
inc edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 0x18], 0
lea eax, [ebp - 0x250]
mov word [ebp - 7], 0
xorps xmm0, xmm0
mov byte [ebp - 5], 0
movups xmmword [ebp - 0x40], xmm0
push eax
lea eax, [ebp - 0x40]
movq qword [ebp - 0x20], xmm0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0x14
push eax
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x250], 0x14
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x254], 0
push eax
push edi
push ebx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x24c], 0
movups xmmword [ebp - 0x17], xmm0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x40d020
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x40d0e7
mov dword [eax], edi
test ebx, ebx
je 0x40d0f2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d36
mov esp, ebp
pop ebp
ret