joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d360
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46eba8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046791a
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043cd00
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00467848
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046410c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046410c
push 1
push 0
push 0
mov ecx, esi
call fcn.004640b4
push 1
push 0
push 1
mov ecx, esi
call fcn.004640b4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046798c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43d4e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46ebc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046791a
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043cd00
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00467848
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43d5a4
cmp dword [esp + 0x40], 1
jne 0x43d5a2
cmp ecx, eax
jge 0x43d5a4
mov eax, ecx
cmp eax, 0xc8
jge 0x43d5b0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d360
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046798c
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43dd20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46ec33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046252d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467bc2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004690de
test eax, eax
je 0x43de3c
mov ecx, dword [esp + 0x3c]
call fcn.00467bef
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43de00
push edi
mov ecx, esi
call fcn.00465258
mov ecx, esi
call fcn.0043dfa0
cmp dword [esp + 0x38], 1
jne 0x43de35
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00465393
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440860
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440893
push esi
call fcn.00443970
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44088c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440919
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440902
mov eax, dword [esi + 8]
test eax, eax
je 0x4408b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4408fe
cmp eax, 2
je 0x440902
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4408aa
cmp eax, 3
je 0x4408dd
cmp eax, 1
jne 0x4408aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4408aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4408aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440940
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440928
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440940
add esp, 4
pop esi
ret
Function at 0x44d200
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44d24a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44d279
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44d2bb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x463322
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46335a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004613ac
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00461384
jmp 0x463366
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x464a52
call fcn.0046a4c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x464a52
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x464a49
xor eax, eax
jmp 0x464a5a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00464a60
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a9f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46aa27
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46aa45
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a95f
jmp 0x46aa45
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46aa45
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a95f
test edi, edi
mov eax, edi
jne 0x46aa2f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401f4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401f62
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401f97
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401f93
cmp edi, eax
jae 0x401f97
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401f85
cmp edi, eax
jb 0x401f9b
xor eax, eax
jmp 0x401fa5
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x40258c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x402615
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
jne 0x402614
push esi
mov esi, dword [ebp + 0xc]
call fcn.004024e4
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004021fc
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x402613
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x402605
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.0040212d
mov dword [ebp - 0xc], 1
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x40261c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREkingsoftAntivirus
push reloc.WS2_32.dll_bind
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4026a5
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.ProgramPath
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0x204
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4026a5
cmp dword [ebp - 8], 1
jne 0x4026a5
cmp dword [ebp - 0xc], 6
jb 0x4026a5
push esi
call dword [sym.imp.MSVCR80.dll_wcslen]
movzx eax, word [esi + eax*2 - 2]
cmp ax, 0x5c
pop ecx
je 0x4026a2
cmp ax, 0x2f
je 0x4026a2
push 0x48ee24
push esi
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x4026b3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret
Function at 0x402c0e
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x484e26
call fcn.0048062c
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
xor edi, edi
push eax
mov dword [ebp - 0x14], edi
call fcn.00402c8d
add esp, 0xc
mov dword [ebp - 4], edi
cmp dword [esi], edi
je 0x402c72
mov eax, esi
push dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040400d
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
mov eax, dword [ebp - 0x18]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.0040214e
test bl, bl
jne 0x402c79
inc edi
lea eax, [esi + edi*4]
cmp dword [eax], 0
jne 0x402c3a
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, dword [ebp - 0x14]
call fcn.00480704
ret
Function at 0x404e92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404ef5
cmp dword [ebp + 0xc], 1
je 0x404ece
cmp dword [ebp + 0xc], 2
je 0x404ece
push 0xd
pop eax
jmp 0x404ef5
test edi, edi
mov eax, dword [ebp - 4]
je 0x404eef
test eax, eax
je 0x404eeb
test al, 1
jne 0x404ec9
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404eef
jmp 0x404ec9
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x404efe
Capabilities:
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 8], eax
and word [ebp - 0x19c], 0
push 0x18e
lea eax, [ebp - 0x19a]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x19c]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x404f5f
push 6
push 1
push 2
call sub.WS2_32.dll_socket
push eax
call sub.WS2_32.dll_closesocket
push str.localhost
call sub.WS2_32.dll_gethostbyname
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, ebp
call fcn.0047f7b2
leave
ret 4

Function at 0x405b22
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x405b46
mov eax, 0x80004005
jmp 0x405bd5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405b3c
test al, 0x10
jne 0x405b3c
and word [ebp - 0x804], 0
push edi
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov edi, 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
mov eax, str.SPRoot
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405bd2
lea eax, [ebp - 0x804]
mov esi, 0x4b530c
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [0x4b5320]
dec eax
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x5c
je 0x405bd0
push 0x48ee24
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
xor edi, edi
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f7b2
leave
ret
Function at 0x405c51
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x808], eax
je 0x405cea
xor eax, eax
mov esi, str.kxebase.dll
cmp eax, esi
je 0x405cea
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405cea
test al, 0x10
jne 0x405cea
and word [ebp - 0x804], 0
push ebx
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov ebx, 0x80004005
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0
push esi
push str.ProductInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405ce5
mov ecx, dword [ebp - 0x808]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
xor ebx, ebx
mov eax, ebx
pop ebx
jmp 0x405cef
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0047f7b2
leave
ret

Function at 0x405e93
Capabilities:
Get disk information

Disassembly:
push 0x2fc
mov eax, 0x483ceb
call fcn.00480695
xor edi, edi
push 0xd2
lea eax, [ebp - 0xe6]
push edi
push eax
mov word [ebp - 0xe8], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xe8]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, edi
jne 0x405eda
xor eax, eax
jmp 0x405fc5
cdq
and edx, 3
add eax, edx
mov esi, eax
push 0x208
lea eax, [ebp - 0x2f6]
push edi
push eax
sar esi, 2
mov word [ebp - 0x2f8], di
call sub.MSVCR80.dll_memset
mov word [ebp - 0xf0], di
lea eax, [ebp - 0xe8]
mov edi, 0x4b5258
add esp, 0xc
mov ebx, edi
mov dword [ebp - 0x2fc], eax
call fcn.0040c4dd
xor ebx, ebx
inc ebx
test esi, esi
jle 0x405fc3
mov eax, dword [ebp - 0x2fc]
and word [eax + 4], 0
push 0x104
lea ecx, [ebp - 0x2f8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x405fb5
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x304]
push eax
call fcn.00402357
and dword [ebp - 4], 0
lea eax, [ebp - 0x304]
push eax
call fcn.0040c481
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x304]
add eax, 0xfffffff0
call fcn.0040214e
push dword [ebp - 0x2fc]
lea eax, [ebp - 0x300]
push eax
call fcn.00402357
lea eax, [ebp - 0x300]
push eax
mov dword [ebp - 4], ebx
call fcn.0040c481
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x300]
add eax, 0xfffffff0
call fcn.0040214e
add dword [ebp - 0x2fc], 8
dec esi
jne 0x405f2b
mov eax, ebx
call fcn.00480718
ret

Function at 0x4063e4
Capabilities:
Delete file

Disassembly:
push edi
mov edi, eax
mov eax, dword [edi + 8]
test eax, eax
je 0x4063fa
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
and dword [edi + 8], 0
pop ecx
push dword [edi + 0xc]
and dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040640e
pop edi
ret
Function at 0x406844
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], 4
je 0x406886
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push edi
push str.AutoUpdateSolution
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406886
cmp dword [ebp - 8], 4
jne 0x406886
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc edi
mov eax, edi
pop edi
leave
ret 4

Function at 0x40688d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x40691c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x4068c4
cmp dword [ebp - 8], 2
jne 0x40691b
push esi
mov esi, dword [ebp + 0xc]
call fcn.004024e4
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.004021fc
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x406902
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x406913
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, esi
call fcn.0040212d
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x406923
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x406952
push dword [esp + 0xc]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x406952
inc edi
mov eax, edi
pop edi
ret 8
Function at 0x406cb8
Capabilities:
Read file on windows

Disassembly:
push 0x18
push 0x4a3c48
call fcn.0048008c
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push edi
push 0x80
push 3
push edi
push 7
push connect
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x406d0b
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x4b2068
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
jmp 0x406d8a
mov esi, 0x25800
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], edi
je 0x406d73
push edi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov eax, dword [0x4b513c]
cmp eax, edi
je 0x406d44
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, edi
je 0x406d73
cmp dword [ebp - 0x24], edi
je 0x406d73
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
call fcn.00417111
add esp, 0xc
mov dword [ebp - 0x28], eax
mov eax, dword [0x4b513c]
cmp eax, edi
je 0x406d1b
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406d1b
mov dword [ebp - 4], 0xfffffffe
call fcn.00406d94
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
xor edi, edi
inc edi
mov eax, edi
call fcn.004800d1
ret