joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e013f7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e021014]
jne 0x2e01659a
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e0228b0], eax
mov dword [0x2e0228ac], ecx
mov dword [0x2e0228a8], edx
mov dword [0x2e0228a4], ebx
mov dword [0x2e0228a0], esi
mov dword [0x2e02289c], edi
mov word [0x2e0228c8], ss
mov word [0x2e0228bc], cs
mov word [0x2e022898], ds
mov word [0x2e022894], es
mov word [0x2e022890], fs
mov word [0x2e02288c], gs
pushfd
pop dword [0x2e0228c0]
mov eax, dword [ebp]
mov dword [0x2e0228b4], eax
mov eax, dword [ebp + 4]
mov dword [0x2e0228b8], eax
lea eax, [ebp + 8]
mov dword [0x2e0228c4], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e022800], 0x10001
mov eax, dword [0x2e0228b8]
mov dword [0x2e0227b4], eax
mov dword [0x2e0227a8], 0xc0000409
mov dword [0x2e0227ac], 1
mov eax, dword [0x2e021014]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e021018]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x2e0227f8], eax
push 1
call fcn.2e01c352
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x2e002bb4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x2e0227f8], 0
jne 0x2e016686
push 1
call fcn.2e01c352
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0x2e01f3cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x2e01f3da
pop dword [ebp - 4]
mov eax, 0x9ad0283c
sub eax, 0x6cce3462
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x4157c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x135530e8
sub ecx, 0x1354cf31
xor esi, esi
add esi, eax
mov edx, 0x2e026600
add edx, dword [ebp - 4]
mov ebx, 0xfcc940c1
add ebx, 0x7824f3ed
mov edi, dword [edx]
xor edi, ebx
mov dword [esi], edi
add esi, 0xbc09dadd
sub esi, 0xbc09dad9
add edx, 0xa2e138bd
sub edx, 0xa2e138b9
loop 0x2e01f430
add eax, 0x179af
xor ebx, ebx
add ebx, eax
add eax, 0x5a87e4f8
sub eax, 0x5a87e4f3
mov ecx, 0xb79f3a6a
add ecx, 0x7660c596
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x4031ac
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d6a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ebx
push eax
push 0xf003f
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032df
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.ProgramFilesDir
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403280
lea edx, [esp + 0x20]
lea ecx, [esi + 0x88]
push edx
call fcn.004221f2
add esi, 0x7c
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004221f2
push 0x43b4f8
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.004222fe
push eax
mov ecx, esi
mov dword [esp + 0x130], ebx
call fcn.004221a2
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00422069
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403331
lea edi, [esi + 0x7c]
push str.C:Program_Files
mov ecx, edi
call fcn.004221f2
push edi
lea ecx, [esi + 0x88]
call fcn.004221a2
push 0x43b4f8
lea edx, [esp + 0x10]
push edi
push edx
call fcn.004222fe
push eax
mov ecx, edi
mov dword [esp + 0x130], 1
call fcn.004221a2
lea ecx, [esp + 0xc]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00422069
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403331
lea edi, [esi + 0x7c]
push str.C:Program_Files
mov ecx, edi
call fcn.004221f2
push edi
lea ecx, [esi + 0x88]
call fcn.004221a2
push 0x43b4f8
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004222fe
push eax
mov ecx, edi
mov dword [esp + 0x130], 2
call fcn.004221a2
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x403350
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 4]
mov dword [esp + 0x40], eax
mov word [esp + 0x44], ax
xor eax, eax
lea edx, [esp + 0x14]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], eax
push edx
push eax
push eax
push 0x200
push eax
push eax
push eax
push eax
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x34], eax
call fcn.00422499
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret 4
Function at 0x4033c0
Capabilities:
Access peb ldr_data
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d6d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push 0x43fe14
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 2
mov dword [esp + 0xc], ebx
call fcn.004220d7
mov eax, dword [esp + 0x38]
push 0x43fe14
push eax
mov byte [esp + 0x30], 3
call fcn.0040f3d8
add esp, 8
test eax, eax
je 0x40342e
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0xc]
push str._s__s
push eax
call fcn.0041db7e
add esp, 0x10
jmp 0x40343c
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 8]
call fcn.004221a2
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x14]
push str._s_:__s
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x38e
mov dword [esp + 0x28], str.E:SVNVaccine_The_Others__vaccinecom__vaccinecom_installTurboinstallUIDlg.cpp
mov dword [esp + 0x2c], ebx
call fcn.00403570
add esp, 0x10
lea edx, [esp + 8]
push edx
push 0xf003f
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403521
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [eax - 8]
inc eax
push eax
push ebx
call fcn.00422499
push eax
push 1
push ebx
push ebx
lea ecx, [esp + 0x44]
call fcn.00422499
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.00422069
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.00422069
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.00422069
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00422069
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
lea ecx, [esp + 4]
mov byte [esp + 0x28], 2
call fcn.00422069
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call fcn.00422069
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call fcn.00422069
lea ecx, [esp + 0x38]
mov dword [esp + 0x28], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x20]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x4036a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d6e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
mov edi, ecx
push 0x43fe14
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call fcn.004220d7
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARE_vaccinecom
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x3c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4037e6
lea edx, [edi + 0x80]
push esi
push edx
lea ecx, [esp + 0xc]
call fcn.004221a2
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [eax - 8]
inc eax
push eax
push 0
call fcn.00422499
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
push 1
push 0
push str.code1
push ecx
call esi
push 0x43b4b8
lea ecx, [esp + 0xc]
call fcn.004221f2
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
inc eax
push eax
push 0
call fcn.00422499
push eax
mov eax, dword [esp + 0x14]
push 1
push 0
push str.installmode
push eax
call esi
add edi, 0x84
lea ecx, [esp + 8]
push edi
call fcn.004221a2
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 8]
lea ecx, [esp + 8]
inc eax
push eax
push 0
call fcn.00422499
mov edx, dword [esp + 0x10]
push eax
push 1
push 0
push str.vaccinecom_nic
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00422069
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x10]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x403e90
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x433460
push 1
push 0
push 0x433470
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403f81
mov eax, dword [esp]
push esi
mov esi, dword [esp + 0x218]
push edi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x220]
push edi
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x228]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x4334b0
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x403f75
mov ecx, dword [esp + 0x230]
mov eax, dword [esp + 8]
test ecx, ecx
je 0x403f3a
mov edx, dword [eax]
push 0
push ecx
push eax
call dword [edx + 0x44]
jmp 0x403f43
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x44]
lea edx, [esp + 0x10]
push 0x104
push edx
push 0xffffffffffffffff
push edi
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
call dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0x210
ret 0x18
Function at 0x404270
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push 0x43b300
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ebx
call fcn.004220d7
push 0x43b7e8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.004220d7
push str.http:__www.vaccinecom.com
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 1
call fcn.004220d7
push str.uninst_vaccinecom.exe
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call fcn.004220d7
push eax
add esi, 0x7c
lea eax, [esp + 0x10]
push esi
push eax
mov byte [esp + 0x3c], 3
call fcn.00422298
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call fcn.00422069
lea ecx, [esp + 0x24]
lea edx, [esp + 8]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_vaccinecom
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], 1
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404404
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push ebx
push str.DisplayName
push eax
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push ebx
push str.DisplayVersion
push ecx
call esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.HelpLink
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0x10]
push 1
push ebx
push str.URLInfoAbout
push eax
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
mov ecx, dword [esp + 0xc]
push eax
push 1
push ebx
push str.UninstallString
push ecx
call esi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push str.DisplayIcon
push edx
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebx
push str.NoModify
push ecx
call esi
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
mov eax, dword [esp + 0x18]
push str.NoRepair
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 2
call fcn.00422069
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 1
call fcn.00422069
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00422069
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x28]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x404690
Capabilities:
Create http request

Disassembly:
sub esp, 0x204
push ebx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x218]
push ebx
push ebx
push ebx
push str.vaccinecom_down
mov dword [esp + 0x1c], 0x200
mov dword [eax], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
jne 0x4046e1
pop edi
xor eax, eax
pop ebx
add esp, 0x204
ret 8
mov ecx, dword [esp + 0x210]
push ebp
push esi
push ebx
mov eax, dword [ecx]
push 0x84000000
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebp, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov esi, eax
cmp esi, ebx
je 0x40473e
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x18]
push edx
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40473b
lea ecx, [esp + 0x14]
push ecx
call fcn.0040f7be
mov edx, dword [esp + 0x220]
add esp, 4
mov ebx, 1
mov dword [edx], eax
push esi
call ebp
push edi
call ebp
pop esi
pop ebp
mov eax, ebx
pop edi
pop ebx
add esp, 0x204
ret 8
Function at 0x4052b0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42da08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
add ecx, 0x7c
mov dword [esp + 4], 0
push ecx
lea ecx, [esp + 4]
call fcn.00421dde
push 0x43b1a8
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0
call fcn.00422445
push str.vaccinecomstart.exe
lea ecx, [esp + 4]
call fcn.00422445
lea eax, [esp + 4]
push eax
push 0xf003f
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405396
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405354
mov ecx, dword [esp]
mov eax, dword [ecx - 8]
lea ecx, [esp]
inc eax
push eax
push 0
call fcn.00422499
mov edx, dword [esp + 8]
push eax
push 1
push 0
push str.vaccinecomstart.exe
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x405364
mov eax, dword [esp + 4]
push str.vaccinecomstart.exe
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.00422069
mov eax, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4058c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x42da98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov eax, dword [esp + 0x1c]
push 0
push eax
call fcn.0040f392
or edi, 0xffffffff
add esp, 8
cmp eax, edi
je 0x405934
mov ecx, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x405934
cmp esi, edi
je 0x405934
lea edx, [esp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, edi
jne 0x405956
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00422069
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x20]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], edi
call fcn.00422069
mov ecx, dword [esp + 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x406030
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push ebx
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x406062
xor eax, eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push ebx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4060b4
push esi
push edi
mov edi, dword [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x406210
Capabilities:
Get memory capacity

Disassembly:
push 0xffffffffffffffff
push 0x42db48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push 0x43fe14
lea ecx, [esp + 4]
call fcn.004220d7
lea eax, [esp + 4]
mov dword [esp + 0x2c], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
mov ecx, dword [esp + 0xc]
lea edx, [esp]
shr ecx, 0x14
push ecx
push str._d_MB
push edx
call fcn.0041db7e
mov ecx, dword [esp + 0x40]
add esp, 0xc
lea eax, [esp]
push eax
call fcn.004221a2
lea ecx, [esp]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x24]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4062a0
Capabilities:
Access peb ldr_data
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x42db78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
lea ecx, [esp + 0x34]
push 0x43ba88
lea edx, [esp + 0xc]
push ecx
push edx
mov esi, eax
call fcn.004222fe
mov edi, dword [esp + 0x38]
push eax
mov ecx, edi
mov byte [esp + 0x30], 1
call fcn.004221a2
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call fcn.00422069
cmp esi, 6
ja case.default.0x406307
jmp dword [esi*4 + 0x406474]
push str.Unknown_Type
mov ecx, edi
call fcn.00422445
jmp 0x40644c
push str.No_Root_Directory
mov ecx, edi
call fcn.00422445
jmp 0x40644c
push str.Removable_Drive
mov ecx, edi
call fcn.00422445
jmp 0x40644c
push str.Fixed_Drive
mov ecx, edi
call fcn.00422445
jmp 0x40638b
push str.Remote_Drive
mov ecx, edi
call fcn.00422445
jmp 0x40644c
push str.CD_ROM_Drive
mov ecx, edi
call fcn.00422445
jmp 0x40644c
push str.RAM_Drive
mov ecx, edi
call fcn.00422445
jmp 0x40644c
cmp esi, 3
jne 0x40644c
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExA]
test eax, eax
jne 0x4063d2
call fcn.004060d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00422069
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [0x43bd1c]
mov dword [esp + 0x38], ecx
fild qword [esp + 0xc]
mov byte [esp + 0x2c], 2
fmul qword [0x42f9d0]
call fcn.0040fa70
cmp eax, 0x2800
mov dword [esp + 8], eax
jge 0x406410
push eax
lea edx, [esp + 0x3c]
push str._Free_:__d_MB_
push edx
call fcn.0041db7e
add esp, 0xc
jmp 0x406432
fild dword [esp + 8]
sub esp, 8
lea eax, [esp + 0x40]
fmul qword [0x42f9c8]
fstp qword [esp]
push str._Free_:__.1f_GB_
push eax
call fcn.0041db7e
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call fcn.00422481
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.00422069
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00422069
mov ecx, dword [esp + 0x24]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x40f392
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f3b2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00411912
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40f3d5
test byte [esp + 8], 2
je 0x40f3d5
call fcn.00411985
mov dword [eax], 0xd
call fcn.0041198e
mov dword [eax], 5
jmp 0x40f3ae
xor eax, eax
ret
Function at 0x41cea0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040f810
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41cf6b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41cf6b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41cf1e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41cf29
or bh, 8
and edi, 0x8000000
je 0x41cf44
mov eax, dword [0x443f7c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41cf6b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret