joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421ec0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489712
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x418], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x414], 0
call fcn.0042b190
mov dword [ebp - 4], 0
lea eax, [ebp - 0x410]
push 0
push 0x1a
push eax
push 0
mov dword [ebp - 0x414], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [ebp - 0x410], 0
jne 0x421f42
xor ecx, ecx
jmp 0x421f5f
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421f50
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.004185d0
push 0xf
push str.DriveTheLifeUI
mov ecx, esi
call fcn.0041b660
cmp dword [esi + 0x14], 8
jb 0x421f86
mov eax, dword [esi]
jmp 0x421f88
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xa
push str.DtlConfig
mov ecx, esi
call fcn.0041b660
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ed56
mov esp, ebp
pop ebp
ret

Function at 0x427410
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
lea eax, [ebp - 0x120]
mov esi, ecx
push 0
push eax
call fcn.0045cfa0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4274cc
cmp dword [ebp - 0x11c], 5
jbe 0x4274cc
push 0x38
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.0045cfa0
add esp, 0xc
mov dword [ebp - 0x15c], 0x3c
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x158], 0x440
mov dword [ebp - 0x14c], esi
mov dword [ebp - 0x148], str._UpWndToScan
push eax
mov dword [ebp - 0x150], str.runas
mov dword [ebp - 0x144], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042ed56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0042ed56
mov esp, ebp
pop ebp
ret
Function at 0x4277a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a0e8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.00421fc0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4277e3
mov eax, dword [eax]
push eax
push 0
push str.ScanDateType
push str.UserConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0042b1a0
sub esi, 0
je 0x427824
sub esi, 1
je 0x42781d
sub esi, 1
jne 0x427842
push str.EveryMonth
jmp 0x427829
push str.EveryWeek
jmp 0x427829
push str.EveryDay
lea ecx, [edi + 0x18]
call dword [sym.imp.DTLUI.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
mov ecx, eax
test ecx, ecx
je 0x427842
mov eax, dword [ecx]
push 1
call dword [eax + 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ed56
mov esp, ebp
pop ebp
ret

Function at 0x427fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push 0
mov edi, ecx
push 1
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0x7fffffff
push 0
push 0
mov dword [edi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push edi
push 0x428200
push 0
push 0
mov dword [edi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 8]
call fcn.0041e410
mov byte [edi + 4], 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x428410
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a2a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::WindowImplBaseNew::constructor_void_]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x32c]
mov dword [esi + method.std::_Facet_base.virtual_4], vtable.IBanner.0
xor eax, eax
mov dword [ebp - 0x14], ecx
mov dword [esi], vtable.UpdateWin.3.0
mov dword [esi + 0x10], vtable.UpdateWin.2.0
mov dword [esi + 0x14], vtable.UpdateWin.1.0
mov dword [esi + method.UpdateWin.virtual_0], vtable.UpdateWin.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x18], ecx
mov word [ecx], ax
mov byte [ebp - 4], 3
lea eax, [ecx + 0x18]
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], dx
mov byte [ebp - 4], 6
mov dword [ecx + 0x30], edx
mov byte [ebp - 4], 7
xor eax, eax
mov dword [esi + 0x374], 7
mov dword [esi + 0x370], edx
mov word [esi + 0x360], ax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x428ab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b1070]
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
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 4], 0
lea esi, [ebx + 0x32c]
mov eax, dword [ebp + 0x38]
lea ecx, [esi + 0x18]
mov dword [esi + 0x30], eax
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x428b07
push 0xffffffffffffffff
push 0
push eax
call fcn.004189e0
lea eax, [ebp + 8]
cmp esi, eax
je 0x428b1a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004189e0
mov eax, dword [ebx]
mov ecx, ebx
push str.xmlWndUpdate.xml
call dword [eax + 0x1c]
mov eax, dword [ebx]
mov ecx, ebx
push 0x80
push 0
push 0
push 0x49fa2c
push edi
call dword [eax + 0x20]
mov ecx, ebx
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x30]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x18]
mov eax, 0xfffffff6
sub edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sub eax, edx
sub ecx, dword [ebp - 0x1c]
add esi, eax
push 1
push ecx
mov eax, 0xfffffffb
sub eax, ecx
push edx
add edi, eax
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
lea ecx, [ebp - 0x48]
call fcn.00421fc0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x428bb7
mov eax, dword [eax]
push eax
push 0
push str.ScanDateType
push str.UserConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0042b1a0
mov ecx, esi
call fcn.00421a60
push 0x49fa34
push 0
push str.UpdateWin::Show
push str.UpdateWin.cpp
push 0x60
call fcn.0042a0f0
push eax
call fcn.0042a3f0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, ebx
call dword [eax]
push 0x49fa68
push 0
push str.UpdateWin::Show
push str.UpdateWin.cpp
push 0x62
call fcn.0042a0f0
push eax
call fcn.0042a3f0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00426b60
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.0042ed56
mov esp, ebp
pop ebp
ret 0x38
Function at 0x429390
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a58a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x4b1070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::WindowImplBaseNew::constructor_void_]
mov dword [ebp - 4], 0
lea ecx, [esi + 0x328]
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [esi], vtable.UpdateWinWindowsSytle.2.0
mov dword [esi + 0x10], vtable.UpdateWinWindowsSytle.1.0
mov dword [esi + 0x14], vtable.UpdateWinWindowsSytle.0
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x18], ecx
mov word [ecx], ax
mov byte [ebp - 4], 3
lea eax, [ecx + 0x18]
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], dx
mov byte [ebp - 4], 6
mov dword [ecx + 0x30], edx
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x429700
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4b1070]
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
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 4], 0
push 0x9c54
call fcn.00416ec0
mov ecx, eax
call fcn.00420840
mov eax, dword [0x4b710c]
test eax, eax
je 0x42975e
push 0
push 0
push 0
push 0x9c54
call eax
mov eax, dword [ebp + 0x38]
lea esi, [ebx + 0x328]
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x18]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x42977e
push 0xffffffffffffffff
push 0
push eax
call fcn.004189e0
lea eax, [ebp + 8]
cmp esi, eax
je 0x429791
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004189e0
mov eax, dword [ebx]
mov ecx, ebx
push str.xmlWndUpdateWindowsSytle.xml
call dword [eax + 0x1c]
mov eax, dword [ebx]
mov ecx, ebx
push 0x80
push 0
push 0
push 0x49fa2c
push edi
call dword [eax + 0x20]
mov ecx, ebx
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CWindowWnd::CenterWindow_void_]
push 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
sub edi, dword [ebp - 0x2c]
sub esi, dword [ebp - 0x30]
call dword [sym.imp.DTLUI.dll_public:_void___thiscall_DuiLib::CDuiRect::constructor_void_]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x18]
mov eax, 0xfffffff6
sub edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
sub eax, edx
sub ecx, dword [ebp - 0x1c]
add esi, eax
push 1
push ecx
mov eax, 0xfffffffb
sub eax, ecx
push edx
add edi, eax
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
lea ecx, [ebp - 0x48]
call fcn.00421fc0
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x42982e
mov eax, dword [eax]
push eax
push 0
push str.ScanDateType
push str.UserConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0042b1a0
mov ecx, esi
call fcn.00421a60
push 0x49fcc0
push 0
push str.UpdateWinWindowsSytle::Show
push str.UpdateWinWindowsSytle.cpp
push 0x44
call fcn.0042a0f0
push eax
call fcn.0042a3f0
mov eax, dword [ebx]
add esp, 0x18
mov ecx, ebx
call dword [eax]
push 0x49fd18
push 0
push str.UpdateWinWindowsSytle::Show
push str.UpdateWinWindowsSytle.cpp
push 0x46
mov esi, eax
call fcn.0042a0f0
push eax
call fcn.0042a3f0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00426b60
mov eax, esi
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.0042ed56
mov esp, ebp
pop ebp
ret 0x38
Function at 0x429e70
Capabilities:
Check if file exists
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x429ee9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429ee9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
mov esi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0045cfa0
push esi
push edi
lea eax, [ebp - 0x20c]
push 0x49fe58
push eax
call fcn.0042a0b0
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx], eax
pop edi
setne al
xor ecx, ebp
pop ebx
call fcn.0042ed56
mov esp, ebp
pop ebp
ret 8

Function at 0x42a2a0
Capabilities:
Delete file

Disassembly:
push 0x104
push 0
push 0x4b72e8
call fcn.0045cfa0
add esp, 0xc
push 0x104
push 0x4b72e8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a2cf
xor eax, eax
ret 8
push 0x4b72e8
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
test eax, eax
je 0x42a2ca
push str.log_
push 0x104
push 0x4b72e8
call fcn.004713e3
push str.DrvUpgChk.log
push 0x104
push 0x4b72e8
call fcn.004713e3
add esp, 0x14
call fcn.0042a330
cmp eax, 0x100000
jbe 0x42a320
push 0x4b72e8
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0x4b72e8
ret 8

Function at 0x42a330
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x4b72e8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42a36f
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret 4
xor eax, eax
pop edi
ret 4
Function at 0x42b1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
je 0x42b23e
push 0x49ff88
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
call fcn.00470d61
add esp, 0xc
cmp dword [ebp - 0x48], 0
je 0x42b23e
push 0x40
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0045cfa0
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push 1
push eax
call fcn.0047190d
add esp, 0x1c
test eax, eax
je 0x42b233
nop dword [eax]
push eax
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0042b250
push dword [ebp - 0x48]
lea eax, [ebp - 0x44]
push 0x40
push 1
push eax
call fcn.0047190d
add esp, 0x10
test eax, eax
jne 0x42b210
push dword [ebp - 0x48]
call fcn.0046fc88
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042ed56
mov esp, ebp
pop ebp
ret 4
Function at 0x42bf80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x4b1070]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x3c]
mov edi, edx
push 0
push eax
mov dword [esp + 0x2c], edi
mov esi, ecx
xor bl, bl
call fcn.0045cfa0
add esp, 0xc
mov dword [esp + 0x34], 0
lea eax, [esp + 0x140]
mov dword [esp + 0x30], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
push 0x100
push 0
push eax
movlpd qword [esp + 0x24], xmm0
call fcn.0045cfa0
add esp, 0xc
test edi, edi
je 0x42c1a6
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c010
push 0
push 0
push 0x104
sub ecx, edx
lea eax, [esp + 0x44]
push eax
sar ecx, 1
push ecx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov edi, eax
test edi, edi
je 0x42c1a6
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x24], eax
test eax, eax
je 0x42c1a6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x42c194
push esi
push edi
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x42c194
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
push eax
push str.VarFileInfoTranslation
push esi
call edi
test eax, eax
je 0x42c194
mov ecx, dword [esp + 0x2c]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductVersion
lea eax, [esp + 0x14c]
push 0x100
push eax
call fcn.00405000
add esp, 0x14
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x148]
push eax
push esi
call edi
test eax, eax
je 0x42c194
mov esi, dword [esp + 0x28]
test esi, esi
je 0x42c194
mov ecx, dword [esp + 0x1c]
mov edi, 0x30
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
push esi
call fcn.0046ecf0
add esp, 4
cdq
mov ecx, edi
call fcn.00484b20
add dword [esp + 0x10], eax
push 0x49d2b8
adc dword [esp + 0x18], edx
push esi
mov dword [esp + 0x20], esi
call fcn.0045cb50
mov esi, eax
add esp, 8
test esi, esi
jne 0x42c16f
push 0x49d238
push dword [esp + 0x1c]
call fcn.0045cb50
mov esi, eax
add esp, 8
test esi, esi
je 0x42c194
sub edi, 0x10
inc esi
test edi, edi
jg 0x42c127
push esi
call fcn.0046ecf0
mov ecx, dword [esp + 0x24]
add esp, 4
cdq
mov bl, 1
add eax, dword [esp + 0x10]
adc edx, dword [esp + 0x14]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x244]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042ed56
mov esp, ebp
pop ebp
ret
Function at 0x448235
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x478c4e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00478acd

Function at 0x10016c1
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1001b38
call fcn.01001864
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1002370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100147c
cmp eax, esi
jne 0x100146f
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100147f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001456
xor esi, esi
inc esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x1001492
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10014c1
mov eax, dword [0x100236c]
test eax, eax
jne 0x10014bb
mov dword [0x100236c], esi
push 0x10010bc
push 0x10010b0
call fcn.010013b8
pop ecx
pop ecx
test eax, eax
je 0x10014c1
jmp 0x10015e5
mov dword [0x1002034], esi
mov eax, dword [0x100236c]
cmp eax, esi
jne 0x10014e5
push 0x10010ac
push 0x10010a4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10014f2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1002374], ebx
je 0x1001513
push 0x1002374
call fcn.010017d9
pop ecx
test eax, eax
je 0x1001513
push ebx
push 2
push ebx
call dword [0x1002374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10015e5
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100157d
cmp cx, bx
je 0x1001538
cmp dword [ebp - 0x1c], ebx
jne 0x100157d
movzx ecx, word [eax]
cmp cx, bx
je 0x100154d
cmp cx, 0x20
ja 0x100154d
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1001538
test byte [ebp - 0x40], 1
je 0x1001559
movzx ecx, word [ebp - 0x3c]
jmp 0x100155c
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1002030], eax
cmp dword [0x1002024], ebx
jne 0x10015c2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100158e
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1001522
cmp dword [0x1002034], ebx
jne 0x10015d0
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1002030]
jmp 0x10015f1
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010018a9
ret
call fcn.010019b1
jmp 0x1001419
Function at 0x4032fc
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403e68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x503024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403ee0
xor eax, eax
push ebp
push 0x403ed9
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 0x403f38
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403ee0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x503024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x503024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x507054], 0
je 0x405055
cmp word [0x507330], 0xd7b2
jne 0x40501d
cmp dword [0x507338], 0
jbe 0x40501d
mov eax, 0x50732c
call dword [0x507348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x405080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x503030], 0
jne 0x405071
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405200
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x503034], 0
je 0x405226
mov edx, esi
mov eax, ebx
call dword [0x503034]
jmp 0x405235
mov eax, 8
call fcn.00403018
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x507055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4051c8
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x406f50
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406f92
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406fb2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406640
add esp, 0x41c
pop esi
pop ebx
ret