joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401400
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x19110
call fcn.00401da0
push ebx
mov ebx, dword [esp + 0x19118]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push edi
push ebx
push 4
lea eax, [esp + 0x18]
xor esi, esi
push 1
push eax
mov dword [esp + 0x20], esi
call ebp
add esp, 0x10
test eax, eax
je 0x401559
cmp dword [esp + 0x10], esi
je 0x401559
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x19128]
lea ecx, [esp + 0x1c]
push edi
push 0x403010
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x1c]
push ebx
not ecx
dec ecx
push edx
push 1
lea eax, [esp + ecx + 0x34]
push eax
call ebp
push ebx
push 4
lea ecx, [esp + 0x38]
push 1
push ecx
mov dword [esp + 0x40], esi
call ebp
lea edx, [esp + 0x48]
push 1
push edx
call section..text
lea eax, [esp + 0x50]
push 0x403034
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x3c
cmp edi, esi
je 0x40152d
push esi
push esi
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x18], esi
sub eax, dword [esp + 0x18]
cmp eax, 0x19000
jbe 0x4014d9
mov eax, 0x19000
push ebx
push eax
lea ecx, [esp + 0x128]
push 1
push ecx
call ebp
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x401511
mov edx, dword [esp + 0x18]
push edi
add edx, esi
push esi
mov dword [esp + 0x20], edx
lea edx, [esp + 0x128]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test esi, esi
je 0x40151f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x4014c9
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor esi, esi
jmp 0x40153e
mov eax, dword [esp + 0x14]
push 1
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
push ebx
push 4
lea ecx, [esp + 0x18]
push 1
push ecx
mov dword [esp + 0x20], esi
call ebp
add esp, 0x10
test eax, eax
jne 0x401438
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x19110
ret
Function at 0x401810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x50]
push esi
push edi
test ebx, ebx
je 0x401822
mov esi, ebx
jmp 0x40182e
push 0x10
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x34], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test ebx, ebx
mov edi, eax
jne 0x401871
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x401880
Capabilities:
Copy file
Delete file
Read .ini file
Read file on windows

Disassembly:
sub esp, 0x668
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x60]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x168]
push str._s.copy
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x164]
lea ecx, [esp + 0x60]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [esp + 0x370]
push 0
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x380]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x48c]
push 0x403018
push ecx
call ebx
lea edx, [esp + 0x494]
lea eax, [esp + 0x28c]
push edx
push str._sguopaidata.ini
push eax
call ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x5c]
add esp, 0x30
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x268]
lea edx, [esp + 0x2c]
push ecx
push 0x32
push edx
push 0
push str.VERSION
push str.DATA
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x164]
push 0x403014
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
push 2
push 0
push esi
call edi
push 1
push 0xfffffffffffffffc
push esi
call edi
push esi
push 4
lea ecx, [esp + 0x40]
push 1
mov dword [esp + 0x44], 0
push ecx
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
call ebp
mov edx, dword [esp + 0x48]
push 0
push edx
push esi
call edi
push esi
push 1
lea eax, [esp + 0x56]
push 1
push eax
mov word [esp + 0x5e], 0
call ebp
add esp, 0x4c
lea ecx, [esp + 0x12]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
cmp eax, 1
jne 0x4019f3
lea edx, [esp + 0x36c]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x57c]
push str._s_s
push ecx
call ebx
push 0
push 0
push 0x403058
call fcn.00401570
add esp, 0x1c
xor edx, edx
push esi
mov dword [esp + 0x20], edx
push 0xe
mov dword [esp + 0x28], edx
lea eax, [esp + 0x24]
mov dword [esp + 0x2c], edx
push 1
mov word [esp + 0x34], dx
push eax
mov byte [esp + 0x3a], dl
call ebp
lea ecx, [esp + 0x480]
push ecx
push esi
call fcn.00401400
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x1c
lea edx, [esp + 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0x268]
lea ecx, [esp + 0x1c]
push eax
push ecx
push str.VERSION
push str.DATA
call esi
lea edx, [esp + 0x268]
lea eax, [esp + 0x2c]
push edx
push eax
push str.OVERSION
push str.DATA
call esi
lea ecx, [esp + 0x574]
push 0
push ecx
call fcn.00401810
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret

Function at 0x401aa0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
lea ecx, [esp + 4]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0x104
ret
Function at 0x401dcf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402128
push 0x401f02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x403124], 0xffffffff
or dword [0x403128], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x403120]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40311c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40312c], eax
call fcn.00401f01
cmp dword [0x403100], 0
jne 0x401e52
push 0x401efe
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00401eec
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x403118]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x403114]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401ad0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10001960
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1004e2bb
mov eax, dword fs:[0]
push eax
sub esp, 0xa68
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0xa64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0xa7c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa8c]
xor edi, edi
push edi
mov ebx, 7
push 0x100533f4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
call fcn.100017e0
push edi
push 0x100533f4
lea ecx, [esp + 0x20]
mov dword [esp + 0xa8c], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], edi
mov word [esp + 0x24], di
call fcn.100017e0
cmp esi, edi
je 0x10001aeb
push 0x410
lea eax, [esp + 0x25c]
push edi
push eax
call fcn.100376a0
push esi
lea ecx, [esp + 0x268]
push 0x208
push ecx
call fcn.10037627
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x18
lea edx, [esp + 0x258]
push edx
xor esi, esi
call ebp
test eax, eax
je 0x10001ae4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ecx]
cmp word [esp + esi*2 + 0x258], 0x5c
jne 0x10001ac9
push 0x410
lea eax, [esp + 0x66c]
push edi
push eax
call fcn.100376a0
push 0x208
lea ecx, [esp + 0x60]
push edi
push ecx
call fcn.100376a0
lea edx, [esi + 1]
push edx
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x688]
push 0x208
push ecx
call fcn.1003755e
lea edx, [esp + 0x690]
push edx
lea eax, [esp + 0x7c]
push 0x104
push eax
call fcn.10037627
add esp, 0x34
lea ecx, [esp + 0x50]
push ecx
call ebx
test eax, eax
jne 0x10001ac9
push edi
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10001ac9
mov dword [esp + 0x14], 0x52
lea eax, [esp + 0x258]
push eax
add esi, 1
call ebp
cmp esi, eax
jne 0x10001a40
cmp dword [esp + 0x14], edi
jne 0x10001aeb
mov esi, 1
jmp 0x10001aed
xor esi, esi
mov ebx, 8
cmp dword [esp + 0x30], ebx
jb 0x10001b05
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10036ea6
add esp, 4
cmp dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
jb 0x10001b29
mov edx, dword [esp + 0x38]
push edx
call fcn.10036ea6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa64]
xor ecx, esp
call fcn.1003754f
add esp, 0xa74
ret
Function at 0x10002840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x62c
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x628], eax
mov eax, dword [esp + 0x634]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
mov ebp, dword [esp + 0x638]
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
push 0x208
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.100376a0
push 0x208
lea edx, [esp + 0x440]
push 0
push edx
call fcn.100376a0
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x434]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
push esi
push ebp
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x34], 0x208
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
add esi, 1
test eax, eax
jne 0x1000296f
push str.Profile
call ebx
lea edx, [esp + 0x20]
push edx
lea edi, [eax + 2]
call ebx
cmp eax, edi
jne 0x10002872
push 0x208
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.100376a0
add esp, 0xc
push str.Profile
call ebx
add eax, eax
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x230]
push edx
call fcn.10037990
add esp, 0xc
push str.Profile
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002872
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x434]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10002872
mov eax, 1
jmp 0x10002971
xor eax, eax
mov ecx, dword [esp + 0x638]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003754f
add esp, 0x62c
ret
Function at 0x10002c80
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x628
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x624], eax
push esi
mov esi, dword [esp + 0x630]
push edi
push str.DeleteRegICMProfile_____Start
call fcn.10034080
xor edi, edi
add esp, 4
cmp esi, edi
jne 0x10002cd7
push edi
push str.DeleteRegICMProfile_____End__d_
call fcn.10034080
add esp, 8
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.1003754f
add esp, 0x628
ret
push ebx
push ebp
push 0x206
lea eax, [esp + 0x22]
push edi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
mov dword [esp + 0x24], str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
mov word [esp + 0x28], di
call fcn.100376a0
push 0x206
lea ecx, [esp + 0x43e]
push edi
push ecx
mov word [esp + 0x444], di
call fcn.100376a0
push 0x206
lea edx, [esp + 0x242]
push edi
push edx
mov word [esp + 0x248], di
call fcn.100376a0
push 0x104
lea eax, [esp + 0x24c]
push eax
push 0x104
lea ecx, [esp + 0x45c]
push ecx
push edi
push edi
push edi
push edi
push esi
call fcn.1003771a
add esp, 0x48
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x430]
push eax
push edi
push edi
lea ecx, [esp + 0x2c]
push 0x104
push ecx
call fcn.10037d30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0x18
xor esi, esi
mov eax, dword [esp + esi*4 + 0x14]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push edi
push eax
push SysStringLen
call ebx
test eax, eax
jne 0x10002ddf
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
push edi
lea ecx, [esp + 0x2c]
push ecx
push edx
call ebp
test eax, eax
jne 0x10002dd0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x10002ddf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, 2
mov dword [esp + 0x10], edi
jb 0x10002d91
push 1
push str.DeleteRegICMProfile_____End__d_
call fcn.10034080
mov ecx, dword [esp + 0x63c]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.1003754f
add esp, 0x628
ret

Function at 0x10005800
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
add eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0
mov dword [esi], 0
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005850
cmp dword [esp + 0xc], 1
je 0x10005846
mov eax, 0xd
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
shr edx, 1
mov dword [esi], edx
xor eax, eax
pop esi
ret 0xc
Function at 0x10005860
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x1004e650
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1006b2c8]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10c]
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x20], eax
jne 0x100058b5
lea eax, [ebx + 0x57]
jmp 0x10005a1f
push str.GetFileVersionHelper_____Start
call fcn.10034080
add esp, 4
push ebx
push esi
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x10005a03
push edi
mov dword [ebp - 4], ebx
call fcn.1003641c
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x100059fa
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100059e6
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str.VarFileInfoTranslation
xor edi, edi
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100059d4
mov eax, dword [ebp - 0x18]
and eax, 0xfffffffc
cmp eax, 4
jb 0x100059ef
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push ebx
mov dword [ebp - 0x24], edi
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [ebp - 0x24]
cmp esi, edi
je 0x100059d4
cmp dword [ebp - 0x20], edi
je 0x100059c2
mov eax, esi
lea edx, [eax + 2]
jmp 0x10005980
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10005980
sub eax, edx
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [ebp + 0x110]
cmp eax, ecx
jb 0x100059c2
mov edx, dword [ebp - 0x20]
push esi
push eax
push edx
call fcn.10037627
add esp, 0xc
push ebx
call fcn.10037e4b
add esp, 4
jmp 0x10005a0c
push ebx
mov dword [ebp - 0x14], 0x7a
call fcn.10037e4b
add esp, 4
jmp 0x10005a0c
push ebx
mov dword [ebp - 0x14], 0x54f
call fcn.10037e4b
add esp, 4
jmp 0x10005a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.10037e4b
add esp, 4
jmp 0x10005a0c
mov dword [ebp - 0x14], 8
jmp 0x10005a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push esi
push str.GetFileVersionHelper_____End:_d
call fcn.10034080
add esp, 8
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 + 0x100]
xor ecx, ebp
call fcn.1003754f
add ebp, 0x104
mov esp, ebp
pop ebp
ret
Function at 0x10005a50
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x1004e680
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1006b2c8]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10c]
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x20], eax
jne 0x10005aa5
lea eax, [ebx + 0x57]
jmp 0x10005c0f
push str.GetFileVersionHelper_____Start
call fcn.10034080
add esp, 4
push ebx
push esi
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x10005bf3
push edi
mov dword [ebp - 4], ebx
call fcn.1003641c
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x10005bea
push ebx
push edi
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10005bd6
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push str.VarFileInfoTranslation
xor edi, edi
push ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10005bc4
mov eax, dword [ebp - 0x18]
and eax, 0xfffffffc
cmp eax, 4
jb 0x10005bdf
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp]
push str.StringFileInfo_04x_04xProductVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push ebx
mov dword [ebp - 0x24], edi
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [ebp - 0x24]
cmp esi, edi
je 0x10005bc4
cmp dword [ebp - 0x20], edi
je 0x10005bb2
mov eax, esi
lea edx, [eax + 2]
jmp 0x10005b70
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10005b70
sub eax, edx
sar eax, 1
lea ecx, [eax + 1]
mov eax, dword [ebp + 0x110]
cmp eax, ecx
jb 0x10005bb2
mov edx, dword [ebp - 0x20]
push esi
push eax
push edx
call fcn.10037627
add esp, 0xc
push ebx
call fcn.10037e4b
add esp, 4
jmp 0x10005bfc
push ebx
mov dword [ebp - 0x14], 0x7a
call fcn.10037e4b
add esp, 4
jmp 0x10005bfc
push ebx
mov dword [ebp - 0x14], 0x54f
call fcn.10037e4b
add esp, 4
jmp 0x10005bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
push ebx
call fcn.10037e4b
add esp, 4
jmp 0x10005bfc
mov dword [ebp - 0x14], 8
jmp 0x10005bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
push esi
push str.GetFileVersionHelper_____End:_d
call fcn.10034080
add esp, 8
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 + 0x100]
xor ecx, ebp
call fcn.1003754f
add ebp, 0x104
mov esp, ebp
pop ebp
ret
Function at 0x10007470
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x1004e7fb
mov eax, dword fs:[0]
push eax
mov eax, 0x8024
call fcn.10037930
mov eax, dword [0x1006b2c8]
xor eax, esp
mov dword [esp + 0x8020], eax
push ebx
push esi
push edi
mov eax, dword [0x1006b2c8]
xor eax, esp
push eax
lea eax, [esp + 0x8034]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
mov esi, edx
je 0x1000765f
test esi, esi
je 0x1000765f
push esi
push str.WriteWininit______s_Start
mov dword [esp + 0x18], 0
call fcn.10034080
add esp, 8
push edi
lea ecx, [esp + 0x18]
call fcn.100018f0
push 0x3d
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x8044], 0
call fcn.10001540
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007500
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.100015f0
push str.wininit.ini
push 0x4000
lea eax, [esp + 0x38]
push eax
push str.RENAME
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov ebx, eax
test ebx, ebx
jbe 0x10007615
xor edi, edi
cmp word [esp + 0x30], di
je 0x10007594
lea esi, [esp + 0x30]
jmp 0x10007550
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x1000755f
lea eax, [esp + 0x18]
push esi
push eax
call fcn.1003803f
add esp, 8
test eax, eax
je 0x100075fd
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10007576
sub eax, edx
sar eax, 1
lea edi, [edi + eax + 1]
cmp word [esp + edi*2 + 0x30], cx
lea esi, [esp + edi*2 + 0x30]
jne 0x10007550
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x100075a7
lea eax, [esp + 0x18]
push eax
mov edx, 0x4000
sub edx, ebx
push edx
lea eax, [esp + ebx*2 + 0x38]
push eax
call fcn.10037627
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], esi
jae 0x100075cb
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100075d0
sub eax, edx
sar eax, 1
add eax, ebx
mov word [esp + eax*2 + 0x32], cx
push str.wininit.ini
lea ecx, [esp + 0x34]
push ecx
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
jmp 0x10007627
cmp dword [esp + 0x2c], 8
jb 0x10007611
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10036ea6
add esp, 4
xor eax, eax
jmp 0x10007664
push str.wininit.ini
push esi
push edi
push str.RENAME
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test eax, eax
jne 0x10007635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
push esi
push str.WriteWininit___End__d_
call fcn.10034080
add esp, 8
cmp dword [esp + 0x2c], 8
jb 0x1000765b
mov edx, dword [esp + 0x18]
push edx
call fcn.10036ea6
add esp, 4
mov eax, esi
jmp 0x10007664
mov eax, 0x57
mov ecx, dword [esp + 0x8034]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x8020]
xor ecx, esp
call fcn.1003754f
add esp, 0x8030
ret