joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410534
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x410666
lea edx, [ebp - 0x20c]
push edx
push str..htm
push 0x80000000
call fcn.004102d1
add esp, 0xc
test eax, eax
jne 0x410666
push str._shellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 0x80000000
call fcn.004102d1
add esp, 0xc
test eax, eax
jne 0x410666
push str.__1_
lea eax, [ebp - 0x20c]
push eax
call fcn.004106a0
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x410626
push 0x429d94
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004106a0
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x41061b
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x210], eax
jmp 0x410624
mov ecx, dword [ebp - 0x210]
mov byte [ecx], 0
jmp 0x41062f
mov edx, dword [ebp - 0x210]
mov byte [edx], 0
push 0x429d98
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x411561
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
and edx, 0x10
test edx, edx
jne 0x4115c7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
lea edx, [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
movsx eax, byte [ebp - 4]
cmp eax, 0xa
je 0x4115af
movsx ecx, byte [ebp - 4]
cmp ecx, 0xd
jne 0x4115b6
mov eax, 1
jmp 0x4115df
mov dl, byte [ebp - 4]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call sub.MFC42.DLL_CString::operator_2
jmp 0x411575
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.0040a9b0
test eax, eax
je 0x4115da
xor eax, eax
jmp 0x4115df
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x411b14
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
je 0x411b82
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0xc]
and eax, 0x10
test eax, eax
jne 0x411b82
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
push 1
push 1
lea eax, [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
movsx ecx, byte [ebp - 8]
cmp ecx, 0xa
jne 0x411b6e
movsx edx, byte [ebp - 4]
cmp edx, 0xd
je 0x411b6e
push 0xd
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::operator_2
mov al, byte [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::operator_2
mov cl, byte [ebp - 8]
mov byte [ebp - 4], cl
jmp 0x411b2a
mov esp, ebp
pop ebp
ret 4
Function at 0x4178e5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov ecx, dword [ebp + 8]
push ecx
push 0x42b008
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x42b00c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0xc]
push edx
push 1
push 0
push str.DoubleClickSpeed
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x417963
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov byte [ebp - 8], 0
xor eax, eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
push ecx
push 0x42b034
lea edx, [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push str.Control_PanelMOUSE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 8]
push edx
push 1
push 0
push str.DoubleClickHeight
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 8]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 8]
push edx
push 1
push 0
push str.DoubleClickWidth
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x401360
Capabilities:
Create pipe
Query environment variable
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c0c
call fcn.004092c0
mov eax, dword [0x48ca8c]
mov ecx, dword [0x48c518]
push ebx
shr eax, 3
push esi
push edi
test eax, eax
je 0x401487
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [0x48ca8c], 0x959
jne 0x401471
push 0
lea eax, [ebp - 0x1408]
push eax
push 0
push 0
push 0
push 0
call edi
push str.mekopid
push 0
call ebx
push 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.hupetapicigilacusafudoziki
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [ebp - 0x1c08]
push ecx
push 0
call esi
mov edx, dword [ebp - 4]
push edx
call fcn.004010e0
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x40139e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e12
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d4f0]
jne 0x403e1c
repz ret
jmp fcn.0040735c

Function at 0x408d1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47d4f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004053f8
and dword [ebp - 0x14], 0
cmp dword [0x483b90], 0
mov dword [ebp - 0x18], eax
jne 0x408dce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408e76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408e76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x483b90], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x483b94], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x483b98], eax
call edi
push eax
call esi
mov dword [0x483ba0], eax
test eax, eax
je 0x408dce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x483b9c], eax
mov eax, dword [0x483b9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x408e27
cmp dword [0x483ba0], ecx
je 0x408e27
push eax
call esi
push dword [0x483ba0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x408e27
test ebx, ebx
je 0x408e27
call edi
test eax, eax
je 0x408e1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x408e1e
test byte [ebp - 8], 1
jne 0x408e27
or dword [ebp + 0x10], 0x200000
jmp 0x408e5a
mov eax, dword [0x483b94]
cmp eax, dword [ebp - 0x18]
je 0x408e5a
push eax
call esi
test eax, eax
je 0x408e5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x408e5a
mov eax, dword [0x483b98]
cmp eax, dword [ebp - 0x18]
je 0x408e5a
push eax
call esi
test eax, eax
je 0x408e5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x483b90]
call esi
test eax, eax
je 0x408e76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x408e78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e12
leave
ret
Function at 0x401e30
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov esi, ecx
call sub.mfc90.dll_Ordinal_4993
push 0
push 0x80000000
push 0xc40080
mov ecx, esi
call sub.mfc90.dll_Ordinal_4513
push 0
push 0x80000
push 0x40001
mov ecx, esi
call sub.mfc90.dll_Ordinal_4516
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push 1
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push str.UpdateLogin
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401e99
mov edx, dword [esi]
mov eax, dword [edx + 0x160]
mov ecx, esi
call eax
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x20]
push ecx
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push str.GXDCompress.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401edf
push str.uncompress
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40fde4], eax
test eax, eax
je 0x401edf
mov dword [0x40fdd8], 0xffffffff
call fcn.00401f50
lea edi, [esi + 0x80]
push str.http:__12sky1.gxcw.com_mod_news1.html
mov ecx, edi
call dword [sym.imp.mfc90.dll_Ordinal_820]
push 0
mov ecx, esi
call sub.mfc90.dll_Ordinal_6740
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push eax
push 0x40e200
push 0
push 0
push 1
lea ecx, [esi + 0x8c]
push 0x68
push ecx
call sub.mfc90.dll_Ordinal_4281
add esp, 0x2c
push 0
push 0
push 0
push 0
push esi
push 0x402570
call sub.mfc90.dll_Ordinal_1062
push esi
mov dword [esi + 0x78], eax
call fcn.004020f0
pop edi
mov eax, 1
pop esi
ret
Function at 0x401f50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x408358
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x40e018]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e018]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_316]
push 0x190
lea eax, [esp + 0xfc]
xor ebx, ebx
push eax
push ebx
mov dword [esp + 0x2a0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xfc]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x401fd6
push ebx
push ebx
push str.None_VerSion_Supprot
call sub.mfc90.dll_Ordinal_1183
push esi
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea eax, [esp + 0x104]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x40209e
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x38]
push str.StringFileInfo_04x_04xFileVersion
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 1
call dword [sym.imp.mfc90.dll_Ordinal_941]
lea ecx, [esp + 0x20]
mov byte [esp + 0x294], bl
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [esp + 0x18]
inc esi
shr eax, 2
cmp esi, eax
jb 0x402020
push edi
call sub.mfc90.dll_Ordinal_800
add esp, 4
lea ecx, [esp + 0x14]
push ecx
mov ecx, 0x40fe30
call dword [sym.imp.mfc90.dll_Ordinal_817]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.004076cc
add esp, 0x284
ret
Function at 0x404bf0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x408a7c
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40e018]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], 0
call sub.mfc90.dll_Ordinal_579
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_316]
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x70], 2
call fcn.00406700
mov ecx, dword [esp + 0x7c]
push 0
mov byte [esp + 0x70], 3
mov eax, dword [ecx]
push 2
push eax
lea ecx, [esp + 0x38]
call sub.mfc90.dll_Ordinal_5528
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_5776
test eax, eax
je 0x404ca4
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_6670]
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x24]
lea ebx, [esp + 0x44]
call fcn.00406620
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x30]
call sub.mfc90.dll_Ordinal_5776
test eax, eax
jne 0x404c76
lea ecx, [esp + 0x2c]
call sub.mfc90.dll_Ordinal_1568
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x404d69
cmp eax, 1
jne 0x404cfc
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x58]
mov esi, dword [edx]
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test eax, eax
jne 0x404cf8
call edi
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x404cdd
call edi
mov ecx, dword [esp + 0x78]
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov ecx, dword [esp + 0x74]
push eax
call dword [sym.imp.mfc90.dll_Ordinal_817]
jmp 0x404d77
mov eax, dword [eax]
jmp 0x404cd6
mov eax, dword [esp + 0x58]
mov ebx, dword [eax]
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.00406ce0
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test edi, edi
jne 0x404d61
call ebp
xor edi, edi
cmp ebx, dword [edi + 0x18]
jne 0x404d2c
call ebp
mov ecx, dword [esp + 0x74]
add ebx, 0xc
push ebx
call dword [sym.imp.mfc90.dll_Ordinal_817]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x404d65
call ebp
xor eax, eax
mov esi, dword [esp + 0x24]
cmp esi, dword [eax + 0x18]
jne 0x404d51
call ebp
mov ecx, dword [esp + 0x78]
add esi, 0xc
push esi
call dword [sym.imp.mfc90.dll_Ordinal_817]
jmp 0x404d77
mov edi, dword [edi]
jmp 0x404d25
mov eax, dword [eax]
jmp 0x404d46
push 0
push 0
push 0x40aee0
call sub.mfc90.dll_Ordinal_1183
push str.SERVERVER.INI
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esi, [esp + 0x40]
mov byte [esp + 0x6c], 4
call fcn.00406a10
mov ecx, dword [esp + 0x40]
push ecx
call sub.mfc90.dll_Ordinal_800
add esp, 4
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x6c], 0
call sub.mfc90.dll_Ordinal_780
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
Function at 0x404f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40821b
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x40e018]
xor eax, esp
mov dword [esp + 0x404], eax
push esi
push edi
mov eax, dword [0x40e018]
xor eax, esp
push eax
lea eax, [esp + 0x418]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.PRESENTVERSION.DAT
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404fcf
push 0x1001
push str.PRESENTVERSION.DAT
lea ecx, [esp + 0x1c]
mov dword [0x40fdcc], 1
call sub.mfc90.dll_Ordinal_403
push 5
push str.00001
lea ecx, [esp + 0x1c]
mov dword [esp + 0x428], 0
call sub.mfc90.dll_Ordinal_6793
lea ecx, [esp + 0x14]
call sub.mfc90.dll_Ordinal_1555
mov ecx, edi
call fcn.00404f10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], esi
call sub.mfc90.dll_Ordinal_663
jmp 0x40502b
push 0
lea eax, [esp + 0x14]
push eax
push 5
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40501a
cmp dword [esp + 0x10], 5
jne 0x40501a
mov edi, dword [sym.imp.MSVCR90.dll_atoi]
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2d], 0
call edi
mov dword [0x40fdd0], eax
lea eax, [esp + 0x28]
push eax
call edi
add esp, 8
cmp eax, 1
mov dword [0x40fdcc], eax
jge 0x405024
mov dword [0x40fdcc], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004076cc
mov esp, ebp
pop ebp
ret
Function at 0x406560
Capabilities:
Delete file
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406599
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
push esi
call dword [0x40fde4]
add esp, 0x10
test eax, eax
je 0x4065a0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
pop ecx
ret 0xc
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4065e7
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x4065f6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 0xc]
cmp eax, dword [esp + 0x1c]
jne 0x4065da
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4065e0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc

Function at 0x4076cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40e018]
jne 0x4076d6
repz ret
jmp fcn.00407bc6
Function at 0x10009113
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000f8d8
cmp edx, dword [eax]
je 0x10009135
add eax, 8
inc ecx
cmp eax, 0x1000f968
jl 0x10009126
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000f8d8]
jne 0x10009263
mov eax, dword [0x1000fab8]
cmp eax, 1
je 0x1000923d
test eax, eax
jne 0x10009166
cmp dword [0x1000fabc], 1
je 0x1000923d
cmp edx, 0xfc
je 0x10009263
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000919d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100095b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100096a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100091e0
lea eax, [ebp - 0x1a4]
push eax
call fcn.100096a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b364
push edi
call fcn.10009ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100095b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100095c0
lea eax, [ebp - 0xa0]
push 0x1000b344
push eax
call fcn.100095c0
push dword [esi + 0x1000f8dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.100095c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10009e35
add esp, 0x2c
pop edi
jmp 0x10009263
lea eax, [ebp + 8]
lea esi, [esi + 0x1000f8dc]
push 0
push eax
push dword [esi]
call fcn.100096a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427af8
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5ee008]
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, edx
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
cmp ax, word [ebp - 0x21c]
je 0x4015e5
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test eax, eax
je 0x4014f9
push str.qqpctray.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4014f9
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
mov esi, eax
push str..tpc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [ebp - 0x21c]
push str..tpc
test esi, esi
je 0x40153f
mov ecx, esi
sub ecx, eax
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
jmp 0x40154b
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x220]
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t__]
mov dword [ebp - 4], 0
cmp edi, 0x270f
jne 0x401587
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40159d
push str..dat
push str..tpc
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringW::Replace_wchar_t_const___wchar_t_const__]
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::constructor_class_CTXStringW_const__]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.00401060
mov ecx, esi
call dword [sym.imp.Common.dll_public:_wchar_t____thiscall_CTXBSTR::operator_wchar_t__void_const]
push eax
call fcn.00409540
lea ecx, [ebp - 0x224]
mov esi, eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXBSTR::destructor_void_]
lea ecx, [ebp - 0x220]
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
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.00425e27
mov esp, ebp
pop ebp
ret