joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x40324b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
push str.OSCheck:
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x94
call fcn.00402fd4
mov eax, dword [0x405960]
mov dword [esp + 0xa4], 0
test eax, eax
pop edi
je 0x40137e
mov ecx, dword [str.__Entering]
mov edx, dword [esp]
push ecx
push edx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0x10]
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4013c6
cmp eax, 5
jne 0x4013c6
cmp ecx, 1
jne 0x4013c6
mov eax, dword [0x405960]
mov esi, ecx
test eax, eax
je 0x401495
push str.OS_is_XP
push eax
call fcn.00402c00
jmp 0x40146f
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x4013f9
cmp eax, 5
jne 0x4013f9
test ecx, ecx
jne 0x4013f9
mov eax, dword [0x405960]
mov esi, 1
test eax, eax
je 0x401495
push str.OS_is_2K
push eax
call fcn.00402c00
jmp 0x40146f
mov edx, dword [esp + 0xb4]
test edx, edx
je 0x401429
cmp eax, 4
jne 0x401429
cmp ecx, 0xa
jne 0x401429
mov eax, dword [0x405960]
mov esi, 1
test eax, eax
je 0x401495
push str.OS_is_98__98SE
push eax
call fcn.00402c00
jmp 0x40146f
mov edx, dword [esp + 0xb8]
test edx, edx
je 0x401459
cmp eax, 4
jne 0x401459
cmp ecx, 0x5a
jne 0x401459
mov eax, dword [0x405960]
mov esi, 1
test eax, eax
je 0x401495
push str.OS_is_ME
push eax
call fcn.00402c00
jmp 0x40146f
mov eax, dword [0x405960]
xor esi, esi
test eax, eax
je 0x401495
push str.Failed
push eax
call fcn.00402aa0
mov eax, dword [0x405960]
add esp, 8
test eax, eax
je 0x401495
mov ecx, dword [str.__Exiting]
mov edx, dword [esp + 4]
push ecx
push edx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0xa4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x401be0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x403338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
push str.48bitScanUpdate:GetInstalledPath
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x400
call fcn.00402fd4
mov eax, dword [0x405960]
mov dword [esp + 0x18], 0
test eax, eax
mov edi, 1
je 0x401c47
mov ecx, dword [str.__Entering]
mov edx, dword [esp + 4]
push ecx
push edx
push str._s_s
push eax
call fcn.00402b30
add esp, 0x10
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREHewlett_PackardDigitalImaging
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c86
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push str.InstallFolder
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c9d
jmp 0x401cc0
mov eax, dword [0x405960]
xor edi, edi
test eax, eax
je 0x401cc0
mov ecx, dword [esp + 4]
push str.RegOpenKeyEx_Failed_for_CUESOFTWARE
push ecx
jmp 0x401cb2
mov eax, dword [0x405960]
xor edi, edi
test eax, eax
je 0x401cc0
mov edx, dword [esp + 4]
push str.RegQueryValueEx_Failed_for_INSTALLFOLDER
push edx
push str._s_s
push eax
call fcn.00402aa0
add esp, 0x10
mov eax, dword [esp + 8]
test eax, eax
je 0x401cd7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [0x405960]
test eax, eax
je 0x401cfa
mov ecx, dword [str.__Exiting]
mov edx, dword [esp + 4]
push ecx
push edx
push str._s_s
push eax
call fcn.00402b30
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, edi
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x402230
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x40337b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov byte [esp + 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x411]
push str.48BitScanUpdate::DeleteFileFromTemp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
call fcn.00402fd4
mov eax, dword [0x405960]
mov dword [esp + 0x818], 0
test eax, eax
je 0x4022ba
mov ecx, dword [str.__Entering]
mov edx, dword [esp + 0xc]
push ecx
push edx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
mov edx, dword [esp + 0x820]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x410]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push str.CIT207355_Zelda_HPCOM_V6.exe
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
call edi
mov esi, eax
test esi, esi
je 0x40237b
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
je 0x40238f
lea edx, [esp + 0x410]
push str.48BitScan
push edx
call edi
mov esi, eax
test esi, esi
je 0x4023b0
lea eax, [esp + 0x410]
push eax
call fcn.00402430
mov esi, eax
add esp, 4
test esi, esi
jne 0x4023d4
mov eax, dword [0x405960]
test eax, eax
je 0x4023f7
push str._DeleteDirectory_function_returned_failure
push eax
call fcn.00402aa0
add esp, 8
jmp 0x4023d4
mov eax, dword [0x405960]
test eax, eax
je 0x4023f7
push str.CIT207355_Zelda_HPCOM_V6.exe
lea ecx, [esp + 0x14]
jmp 0x4023c5
mov eax, dword [0x405960]
test eax, eax
je 0x4023f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0x10]
push eax
mov eax, dword [0x405960]
push edx
push str._DeleteFile_api_failed_for__s._error_code_:__d
jmp 0x4023cb
mov eax, dword [0x405960]
test eax, eax
je 0x4023f7
push str.48BitScan
lea ecx, [esp + 0x414]
push ecx
push str._Path_append_failed_for__s_to__s
push eax
call fcn.00402aa0
add esp, 0x10
mov eax, dword [0x405960]
test eax, eax
je 0x4023f7
mov edx, dword [str.__Exiting]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push str._s__s
push eax
call fcn.00402b30
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 0x818], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x810]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x810
ret
Function at 0x4026e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x248
mov ecx, dword [0x405840]
mov eax, dword [str.Signature]
mov dx, word [0x405844]
mov dword [esp + 4], ecx
mov ecx, dword [0x405838]
mov dword [esp], eax
mov eax, dword [str.PROJECT]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x40582c]
push ebx
push esi
mov word [esp + 0x10], dx
mov edx, dword [str.MANUFACTURER]
mov dword [esp + 0x24], eax
mov eax, dword [0x405828]
push edi
mov dword [esp + 0x20], ecx
mov ecx, 7
mov esi, str.HP_48BitScanUpdatePatch.ini
lea edi, [esp + 0x30]
mov dword [esp + 0x18], edx
mov dl, byte [0x405830]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x24], dl
push eax
lea ecx, [esp + 0x50]
push 0x104
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edx, [esp + 0x4c]
push str.AIOCPE
push edx
call esi
add esp, 8
test eax, eax
je 0x402843
lea eax, [esp + 0x4c]
push 0x4052b8
push eax
call esi
add esp, 8
test eax, eax
je 0x402843
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x150]
push 0x80000
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x154]
push str.FILESIZE_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
add esp, 0xc
push str.HP_48BitScanUpdatePatch.ini
push str.PROJECTAIOCPE
push str.Signature
call esi
test eax, eax
je 0x402837
push str.HP_48BitScanUpdatePatch.ini
push str.48BitScanUpdate1
push str.Modules
call esi
test eax, eax
je 0x402837
push str.HP_48BitScanUpdatePatch.ini
push str.LOG_DISABLED0
push str.LogLevels
call esi
test eax, eax
je 0x402837
lea edx, [esp + 0x150]
push str.HP_48BitScanUpdatePatch.ini
push edx
push str.LogFileSize
call esi
test eax, eax
jne 0x402843
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x248
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x248
ret
Function at 0x402850
Capabilities:
Get session user name

Disassembly:
push ecx
push ebx
mov ebx, ecx
xor eax, eax
push ebp
mov dword [ebx], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 4], eax
mov dword [ebx + 0x438], eax
push esi
lea eax, [ebx + 0x10]
push edi
push eax
mov dword [esp + 0x14], 0x104
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esp + 0x10]
lea ebp, [ebx + 0x12c]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4028af
mov edi, 0x405958
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.004026e0
cmp eax, 1
jne 0x40294c
mov edi, dword [esp + 0x18]
mov dword [ebx + 0x438], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [ebx + 0x28]
mov eax, ecx
mov esi, edi
mov edi, ebp
lea edx, [ebx + 0x230]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00402e70
test eax, eax
jbe 0x40294c
lea eax, [ebx + 0x230]
lea esi, [ebx + 0x334]
push ebp
push eax
push esi
mov ecx, ebx
call fcn.00402960
push 0x405848
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x40294c
mov dword [ebx + 0x438], eax
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x402960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x140
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x334]
push eax
mov ecx, 0x41
mov edi, esi
push 0x1a
push esi
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
je 0x402998
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
or ecx, 0xffffffff
mov edi, 0x405298
xor eax, eax
mov edx, dword [esp + 0x150]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov ebp, ecx
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x158]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405854
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x15c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..log
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
pop ebp
je 0x402a8e
mov ecx, dword [esp + 0x2c]
push eax
mov dword [ebx + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x140
ret 0xc
Function at 0x402e70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x148
mov eax, dword [str.Modules]
push ebx
mov ebx, ecx
mov edx, dword [str.LogFileSize]
mov ecx, dword [0x4057ac]
mov dword [esp + 0x18], eax
mov eax, dword [0x405744]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x405748]
push ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [str.FILESIZE]
mov dword [esp + 0x28], eax
mov eax, dword [0x405914]
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov al, byte [0x405920]
mov ecx, 7
mov esi, str.HP_48BitScanUpdatePatch.ini
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x2c], edx
mov edx, dword [str.DEFAULT]
mov byte [esp + 0x20], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
mov dword [esp + 0x10], edx
mov edx, dword [0x40591c]
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x58]
push 0x104
lea eax, [esp + 0x18]
push edx
lea ecx, [ebx + 0x28]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
or esi, 0xffffffff
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
test eax, eax
jbe 0x402f3a
lea eax, [esp + 0x54]
push eax
call edi
add esp, 4
mov dword [ebx + 4], eax
mov esi, eax
lea ecx, [esp + 0x38]
lea edx, [esp + 0x54]
push ecx
push 0x104
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
test eax, eax
jbe 0x402f6b
lea eax, [esp + 0x54]
push eax
call edi
add esp, 4
mov dword [ebx + 8], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret
Function at 0x15d71d30
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
push edi
add esp, 0xfffffef4
mov edi, dword [esp + 0x11c]
mov al, byte [edi]
test al, al
je 0x15d71d52
xor esi, esi
inc esi
mov al, byte [edi + esi]
test al, al
jne 0x15d71d48
jmp 0x15d71d54
xor esi, esi
test esi, esi
je 0x15d71dfe
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebp, eax
cmp ebp, 0xffffffff
je 0x15d71da5
call fcn.15d72120
test al, al
jne 0x15d71da5
push 0
lea eax, [esp + 0x10c]
push eax
push esi
push edi
push ebp
mov dword [esp + 0x11c], esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [esp + 0x10c]
push ecx
push 2
push 0x15d76108
push ebp
call sub.KERNEL32.DLL_WriteFile
jmp 0x15d71def
push 0
mov dword [esp + 0x10c], esi
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
jne 0x15d71dcb
mov byte [esp], 0
push 0x15d76118
call sub.KERNEL32.DLL_LoadLibraryA
push str.MessageBoxA
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x12010
lea ecx, [esp + 4]
push ecx
push edi
push 0
call eax
mov eax, dword [0x15d79010]
test eax, eax
je 0x15d71dfe
push edi
call fcn.15d720c0
sub esp, 0xfffffef4
pop edi
pop esi
pop ebp
ret 4

Function at 0x15d71fb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
add esp, 0xfffffaec
mov al, byte [0x15d79014]
test al, al
je 0x15d71fc6
mov al, 1
jmp 0x15d720b6
push dword [0x15d79010]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [esp + 0x11c]
push ecx
call fcn.15d71ca0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x13c]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0xfffffff4
test eax, eax
je 0x15d7201b
xor al, al
jmp 0x15d720b6
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x15d720b4
lea eax, [esp + 4]
push eax
call fcn.15d723f0
inc eax
push eax
lea ecx, [esp + 8]
push ecx
push 2
push 0
push str.EventMessageFile
mov eax, dword [esp + 0x120]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, eax
mov eax, dword [esp + 0x10c]
test ecx, ecx
je 0x15d72074
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x15d720b6
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x18], 7
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, eax
mov eax, dword [esp + 0x10c]
test edx, edx
je 0x15d720a9
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x15d720b6
mov byte [0x15d79014], 1
mov al, 1
jmp 0x15d720b6
xor al, al
sub esp, 0xfffffaec
ret

Function at 0x15d72140
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp word [edi], 0x5a4d
je 0x15d72156
push str.Invalid_DOS_signature
call fcn.15d71e10
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
je 0x15d7216b
push str.Invalid_PE_signature
call fcn.15d71e10
mov eax, edi
pop edi
ret 4
Function at 0x7ad730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a5000]
push edi
jmp 0x7ad74a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7ad751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ad740
mov eax, 1
add ebx, ebx
jne 0x7ad763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7ad774
jne 0x7ad793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ad793
dec eax
add ebx, ebx
jne 0x7ad780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7ad758
add ebx, ebx
jne 0x7ad78f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7ad7e5
xor ecx, ecx
sub eax, 3
jb 0x7ad7ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7ad81a
sar eax, 1
mov ebp, eax
jmp 0x7ad7b6
add ebx, ebx
jne 0x7ad7b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ad784
inc ecx
add ebx, ebx
jne 0x7ad7c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7ad784
add ebx, ebx
jne 0x7ad7d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7ad7c6
jne 0x7ad7e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7ad7c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7ad804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7ad7f6
jmp 0x7ad746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7ad804
add edi, ecx
jmp 0x7ad746
pop esi
mov edi, esi
mov ecx, 0xf6c7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7ad822
cmp byte [edi], 0x2d
jne 0x7ad822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7ad827
lea edi, [esi + 0x3a9000]
mov eax, dword [edi]
or eax, eax
je 0x7ad89f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3b5810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3b5914]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7ad854
mov ecx, edi
jns 0x7ad883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3b5918]
or eax, eax
je 0x7ad899
mov dword [ebx], eax
add ebx, 4
jmp 0x7ad871
call dword [esi + 0x3b5928]
mov ebp, dword [esi + 0x3b591c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7ad8d3
sub esp, 0xffffff80
jmp 0x401744
Function at 0x402e2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404540
test esi, esi
jne 0x402e63
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404630
jmp 0x402e84
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cc8
mov dword [esp], eax
test esi, esi
je 0x402e84
cmp dword [ebx], 0
je 0x402e84
dec esi
jmp 0x402e6b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403104
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x484008], 0x8088405
inc edx
mov dword [ebx + 0x484008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40355c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x484024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035f4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4035d4
xor eax, eax
push ebp
push 0x4035cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403610
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x484024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x484024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404338
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48604c], 0
je 0x404399
cmp word [0x486220], 0xd7b2
jne 0x404361
cmp dword [0x486228], 0
jbe 0x404361
mov eax, 0x48621c
call dword [0x486238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x484070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x484034], 0
jne 0x4043b5
push 0
push 0x484068
push 0x484070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a68
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48604d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044bc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc