joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408370
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
cmp dword [0x44d638], 0
jne 0x40844c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004081af
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4083ce
cmp dword [ebp - 0x18], 2
je 0x40843c
cmp dword [ebp - 0x18], 3
je 0x408440
jmp 0x408447
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jae 0x4083f7
mov dword [ebp - 0xc], 1
jmp 0x408434
cmp dword [ebp - 0xc], 2
je 0x40840f
cmp dword [ebp - 8], 0x2710
jbe 0x40840f
mov dword [ebp - 0xc], 2
jmp 0x408434
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jb 0x408434
cmp dword [ebp - 0xc], 0
je 0x40842d
mov eax, 2
jmp 0x408451
mov eax, 1
jmp 0x408451
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
jmp 0x408447
xor eax, eax
jmp 0x408451
mov eax, 3
jmp 0x408451
jmp 0x408396
mov eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x40849d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4525c0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x4514a0]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4084fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4084fe
cmp dword [0x44d638], 0
je 0x4084e3
xor eax, eax
jmp 0x408516
push 1
lea ecx, [ebp - 4]
push ecx
push 0x4525c0
mov edx, dword [0x4514a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408511
call fcn.00408455
test eax, eax
jne 0x408511
xor eax, eax
jmp 0x408516
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x408a31
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44d654], 0x1ff
jne 0x408a89
push 0x452ee0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x4514e0], 1
mov dword [0x44d62c], 0
push 0x452ee0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x452e1c]
push ecx
push str._SYSTEM__Event_Received_Buffer_Area_is_Full___Reject_Data_is___s__n
call fcn.0040762a
add esp, 8
jmp 0x408b39
mov edx, dword [0x44d654]
mov eax, dword [edx*4 + 0x452620]
mov ecx, dword [0x44d654]
mov edx, dword [ecx*4 + 0x450ca0]
mov byte [eax + edx], 0
push 0x452ee0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x44d654]
mov dword [eax*4 + 0x4514e0], 1
mov ecx, dword [0x44d624]
add ecx, 1
mov dword [0x44d624], ecx
mov dword [0x44d62c], 0
push 0x452ee0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [0x44d654]
push edx
push 0
push 0x4085bd
call fcn.00425eba
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408b39
mov eax, dword [0x44d654]
mov ecx, dword [eax*4 + 0x452620]
push ecx
push str._SYSTEM__Event_Received_Threading_Fail___Reject_Data_is___s__n
call fcn.0040762a
add esp, 8
mov edx, dword [0x44d654]
mov dword [edx*4 + 0x4514e0], 0
mov eax, dword [0x44d624]
sub eax, 1
mov dword [0x44d624], eax
pop ebp
ret
Function at 0x40fa1a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
cmp dword [ebp + 8], 0
jl 0x40fa34
mov eax, dword [ebp + 8]
cmp eax, dword [0x453d28]
jl 0x40fa3e
mov eax, 0xfffffffe
jmp 0x40fae6
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x458
mov edx, dword [0x44d600]
lea eax, [edx + ecx + 0xc]
push eax
push 0x450340
push 0x44a1b0
lea ecx, [ebp - 0x80]
push ecx
call fcn.00423900
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0xffffffff
jne 0x40fa9a
mov eax, 0xfffffffd
jmp 0x40fae6
push 0
lea eax, [ebp - 0x88]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00424b50
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x88], 0
jne 0x40fae1
mov eax, 0xfffffffc
jmp 0x40fae6
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x415d75
Capabilities:
Create mailslot
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x415da0
cmp dword [ebp - 8], 1
je 0x415ed3
cmp dword [ebp - 8], 2
je 0x415f4a
jmp 0x415f5e
cmp dword [0x44add8], 0xffffffff
je 0x415dc0
push str._SYSTEM___K_Special_Action_MailSlot_Server_0__Already_Create_n
call fcn.0040762a
add esp, 4
mov eax, 1
jmp 0x415f61
cmp dword [0x44d734], 0
jne 0x415e1b
mov dword [0x44d738], 0x40
push 1
mov ecx, dword [0x44d738]
add ecx, 1
push ecx
call fcn.00424fbb
add esp, 8
mov dword [0x44d734], eax
cmp dword [0x44d734], 0
jne 0x415e1b
mov edx, dword [0x44d738]
push edx
push str._SYSTEM___K_Special_Action_MailSlot_Server_0__Buffer_size_d__Init_Error_1___Less_Memory_n
call fcn.0040762a
add esp, 8
mov dword [0x44d738], 0
or eax, 0xffffffff
jmp 0x415f61
mov eax, dword [0x44e564]
push eax
push 0x450340
push str..mailslotECM__s__s_ECM
mov ecx, dword [0x44d734]
push ecx
call fcn.00423900
add esp, 0x10
push 0
push 0
push 0
mov edx, dword [0x44d734]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMailslotA]
mov dword [0x44add8], eax
cmp dword [0x44add8], 0xffffffff
jne 0x415e76
mov eax, dword [0x44d734]
push eax
push str._SYSTEM___K_Special_Action_MailSlot_Server_0__CreateMailslot__s__Error_2_n
call fcn.0040762a
add esp, 8
or eax, 0xffffffff
jmp 0x415f61
mov dword [0x44d730], 1
push 0
push 0
push 0x415c50
call fcn.00425eba
add esp, 0xc
cmp eax, 0xffffffff
jne 0x415ecc
mov dword [0x44d730], 0
mov ecx, dword [0x44add8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44add8], 0xffffffff
push str._SYSTEM___K_Special_Action_MailSlot_Server_0___beginthread_Error_3_n
call fcn.0040762a
add esp, 4
or eax, 0xffffffff
jmp 0x415f61
xor eax, eax
jmp 0x415f61
cmp dword [0x44add8], 0xffffffff
jne 0x415ef0
push str._SYSTEM___K_Special_Action_MailSlot_Server_1__Not_Created_n
call fcn.0040762a
add esp, 4
mov eax, 1
jmp 0x415f61
cmp dword [0x44d730], 1
jne 0x415f30
mov dword [0x44d730], 2
mov dword [ebp - 4], 0
jmp 0x415f15
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x64
jge 0x415f30
cmp dword [0x44d730], 0
jne 0x415f26
jmp 0x415f30
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x415f0c
mov eax, dword [0x44add8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44add8], 0xffffffff
xor eax, eax
jmp 0x415f61
cmp dword [0x44add8], 0xffffffff
je 0x415f5a
mov eax, 1
jmp 0x415f61
xor eax, eax
jmp 0x415f61
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x416154
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
fld qword [ebp + 8]
fcomp qword [0x439a00]
fnstsw ax
test ah, 0x41
je 0x41617a
mov eax, 1
jmp 0x4161f5
mov dword [ebp - 8], 0
mov eax, 1
test eax, eax
je 0x4161f0
mov eax, dword [ebp - 8]
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x4161a1
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00413bcb
test eax, eax
je 0x4161ae
xor eax, eax
jmp 0x4161f5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jae 0x4161cb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
jmp 0x4161e5
fld qword [ebp + 8]
fmul qword [0x439a30]
call fcn.00426310
cmp dword [ebp - 4], eax
jb 0x4161e5
mov eax, 1
jmp 0x4161f5
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x416181
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x432b84
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44bfb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042c4ea
mov dword [ebp - 0x14], eax
cmp dword [0x44e500], esi
jne 0x432c77
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x432c04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x432d57
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x432d57
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x432d57
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x44e500], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x44e504], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x44e508], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44e510], eax
test eax, eax
je 0x432c74
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44e50c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x432c9c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x432c8f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x432cb1
push 4
pop eax
jmp 0x432d59
cmp dword [ebp - 0x14], esi
je 0x432cb1
push dword [0x44e500]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x432c96
mov eax, dword [0x44e50c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x432d0f
cmp dword [0x44e510], edi
je 0x432d0f
push eax
call ebx
push dword [0x44e510]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x432d0f
test eax, eax
je 0x432d0f
call ecx
test eax, eax
je 0x432d04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x432d04
test byte [ebp - 8], 1
jne 0x432d0f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x432d3f
mov eax, dword [0x44e504]
cmp eax, edi
je 0x432d3c
push eax
call ebx
test eax, eax
je 0x432d3c
call eax
mov esi, eax
test esi, esi
je 0x432d3c
mov eax, dword [0x44e508]
cmp eax, edi
je 0x432d3c
push eax
call ebx
test eax, eax
je 0x432d3c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x44e500]
call ebx
test eax, eax
je 0x432d57
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x432d59
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423a79
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d532
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0055dd80
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4031cf
mov eax, dword [esi]
jmp 0x4031d1
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push SysReAllocStringLen
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40327a
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x5bc96c
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40326e
cmp word [ebp - 0x21c], ax
jne 0x403244
xor ecx, ecx
jmp 0x40325f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403250
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00404cf0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0055ab0a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4032a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d532
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x224], 0
call fcn.0055dd80
mov dword [esi + 0x10], 0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40331f
mov eax, dword [esi]
jmp 0x403321
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x220]
mov dword [ebp - 4], ecx
push eax
push 0x20019
push ecx
push edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4033ca
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4033be
cmp word [ebp - 0x21c], ax
jne 0x403394
xor ecx, ecx
jmp 0x4033af
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4033a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.00404cf0
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.0055ab0a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4038d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
call fcn.00401c80
cmp dword [eax + 0x14], 8
jb 0x4038fe
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov eax, dword [ebp - 8]
sete bl
cmp eax, 8
jb 0x40392d
inc eax
push eax
push dword [ebp - 0x1c]
call fcn.00405c00
test bl, bl
pop ebx
je 0x403975
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 4
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push str.SupplyId
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40396c
cmp dword [ebp - 0x24], 4
jne 0x40396c
mov eax, dword [ebp - 0x28]
mov esi, 1
mov dword [edi], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 4
Function at 0x403990
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d56b
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5e8f64]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0x14]
push 0x208
push 0
push eax
mov dword [ebp - 0x24c], 0
call fcn.0055dd80
add esp, 8
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00403fc0
cmp dword [ebx + 0x208], 8
lea ecx, [ebx + 0x1f4]
jb 0x403a05
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 8
jb 0x403a0d
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x403a15
mov eax, dword [eax]
push ecx
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push edi
push str.KeyName
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x403a47
inc eax
push eax
push dword [ebp - 0x230]
call fcn.00405c00
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 0
push eax
call fcn.00404610
push str.Title
push str.KeyName
mov dword [ebp - 4], 0
call fcn.005633dc
add esp, 8
test eax, eax
jne 0x403ac2
mov eax, dword [ebx + 0x10]
cmp eax, 0x121
je 0x403ab2
cmp eax, 0x124
je 0x403ab2
cmp eax, 0x186c6
jne 0x403ac2
push 0x5bcc54
jmp 0x403ab7
push 0x5bcc48
lea ecx, [ebp - 0x248]
call fcn.00404570
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x248]
push eax
call fcn.00405930
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x403afb
inc ecx
push ecx
push dword [ebp - 0x248]
call fcn.00405c00
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.0055ab0a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403b20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5e8f64]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push ecx
lea eax, [esp + 8]
mov esi, ecx
push eax
call fcn.00403fc0
add esi, 0x1f4
cmp dword [esi + 0x14], 8
jb 0x403b50
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x403b58
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x18]
mov esi, eax
cmp ecx, 8
jb 0x403b7d
inc ecx
push ecx
push dword [esp + 8]
call fcn.00405c00
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0055ab0a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403fc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d60b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x5e8f64]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x448]
push 7
xor eax, eax
mov dword [ebp - 0x464], 0
push str.Product
mov dword [ebp - 0x434], 7
mov dword [ebp - 0x438], 0
mov word [ebp - 0x448], ax
call fcn.00404cf0
push str.Engine
push str.Product
mov dword [ebp - 4], 0
call fcn.005633dc
add esp, 8
test eax, eax
je 0x40408b
cmp dword [esi + 0x210], 0
jne 0x40408b
cmp dword [esi + 0x214], 0
jne 0x40408b
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00405930
lea ecx, [ebp - 0x448]
call fcn.00405cd0
jmp 0x4041db
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0055dd80
add esp, 0xc
cmp dword [esi + 0x210], 0
je 0x4040cd
push dword [esi + 0x10]
lea eax, [ebp - 0x220]
push str.Product
push str._s__d
push 0x104
push eax
call fcn.00405560
add esp, 0x14
jmp 0x404123
cmp dword [esi + 0x214], 0
je 0x404123
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.00401e40
cmp dword [eax + 0x14], 8
jb 0x4040ec
mov eax, dword [eax]
push eax
push str.Product
push str._s__s
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00405560
mov eax, dword [ebp - 0x44c]
add esp, 0x14
cmp eax, 8
jb 0x404123
inc eax
push eax
push dword [ebp - 0x460]
call fcn.00405c00
push 0x20a
lea eax, [ebp - 0x430]
push 0
push eax
call fcn.0055dd80
add esi, 0x1f4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x404147
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4041a2
cmp word [ebp - 0x220], 0
jne 0x404173
xor ecx, ecx
jmp 0x40418f
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404180
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x448]
call fcn.00404cf0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x448]
push eax
call fcn.00405930
mov eax, dword [ebp - 0x434]
cmp eax, 8
jb 0x4041db
inc eax
push eax
push dword [ebp - 0x448]
call fcn.00405c00
mov eax, edi
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.0055ab0a
mov esp, ebp
pop ebp
ret 8
Function at 0x404200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d650
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5e8f64]
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 edi, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
cmp dword [edi + 0x21c], 0
je 0x404264
mov eax, dword [edi + 0x218]
jmp 0x40432b
lea eax, [ebp - 0x28]
push eax
call fcn.00404450
mov ecx, eax
call fcn.00401c80
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x404280
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404380
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40429f
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00405c00
push 0x20019
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405460
mov esi, dword [ebp - 0x44]
test eax, eax
jne 0x4042dc
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push str.VNGVersion
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x2c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4042f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40430a
push esi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
xor ebx, ebx
mov dword [edi + 0x21c], 1
cmp dword [ebp - 0x30], ebx
setne bl
mov dword [edi + 0x218], ebx
test esi, esi
je 0x404329
push esi
call eax
mov eax, ebx
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.0055ab0a
mov esp, ebp
pop ebp
ret

Function at 0x404c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c65
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404ca6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404ca2
nop word [eax + eax]
cmp esi, edx
jae 0x404ca6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404c90
cmp esi, edx
jb 0x404cab
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret