joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463f30
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x509668
push 0x4a96a0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x1018
call fcn.004a5780
mov eax, dword [0x511070]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x1028], 0
push 0x802
push 0
lea eax, [ebp - 0x1024]
push eax
call fcn.004a73c0
push 0x802
push 0
lea eax, [ebp - 0x820]
push eax
call fcn.004a73c0
add esp, 0x18
mov dword [ebp - 0x1030], 0x400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1028]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4640c3
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1024]
push eax
push 0
push 0
push str.AppInit_DLLs
push dword [ebp - 0x1028]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4640c3
push str.RCD_AppInit.dll
lea eax, [ebp - 0x1024]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
je 0x4640c3
mov dword [ebp - 0x102c], 0
lea edi, [ebp - 0x1024]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCatW]
test edi, edi
je 0x46408b
cmp word [edi], 0
je 0x46408b
push 0x3b
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
mov dword [ebp - 0x102c], esi
test esi, esi
je 0x46405f
xor eax, eax
mov word [esi], ax
add esi, 2
mov dword [ebp - 0x102c], esi
push str.RCD_AppInit.dll
push edi
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
jne 0x464087
push edi
lea eax, [ebp - 0x820]
push eax
call ebx
push 0x4f4fb0
lea eax, [ebp - 0x820]
push eax
call ebx
mov edi, esi
jmp 0x464032
lea ecx, [ebp - 0x820]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464094
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x820]
push eax
push 1
push 0
push str.AppInit_DLLs
push dword [ebp - 0x1028]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 4], 0xfffffffe
call fcn.004640eb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x4643d0
Capabilities:
Delete registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7298
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x64]
mov edi, 1
mov dword [ebp - 0x10], 0
push str.InstallDirNew
call fcn.0045da30
push dword [esi + 0x64]
mov dword [ebp - 0x14], eax
push 0x4f6fd8
push 0x515408
call fcn.0048c0f0
mov eax, dword [ebp + 0xc]
add esp, 8
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.00458900
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
je 0x4644ac
push 0xdbba0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x464483
push 0
push esi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x4f7010
push 0x515408
call fcn.0048be90
add esp, 0x10
jmp 0x4644ac
push ebx
push esi
mov dword [ebx], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebx]
push str.Uninst.exe_Silent_:return__d
push 0x515408
call fcn.0048c0f0
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x464515
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x4644f6
test eax, eax
je 0x4644f6
push str.InstallDirNew
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10], 0
jne 0x46450a
mov ecx, dword [ebx]
cmp ecx, 0x67
je 0x464508
cmp ecx, 0x68
jne 0x46450a
xor edi, edi
test eax, eax
je 0x464515
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x467510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d74c5
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x10]
push 0
mov dword [ebp - 0x14], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00421250
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x467584
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x50], eax
mov byte [ebp - 4], 1
push 0x34
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0xffffffff
call fcn.004a477f
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041d500
mov dword [edi + 0x40], eax
mov eax, edi
mov dword [edi], 0
mov dword [edi + 0x44], 0xffffffff
mov dword [edi + 0x3c], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x48], 1
mov dword [edi + 0x4c], 1
mov dword [edi + 8], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 2
mov dword [edi + 0x5c], 2
mov dword [edi + 0x60], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467c20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push esi
call fcn.00467720
test eax, eax
je 0x467cd9
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x44], eax
cmp eax, 0xffffffff
jne 0x467ca0
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x6e
call dword [esi + 0x20]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LoadImageToMem_CreateFile_error:_d__path:_ws
push 0x515408
call fcn.0048be90
mov ecx, dword [ebx + 0x3c]
add esp, 0x10
mov edx, dword [ecx]
push 0x19
call dword [edx + 0x1c]
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x2c], eax
cmp eax, 0x1400000
jae 0x467cec
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x6f
call dword [esi + 0x20]
push str.the_packet_is_too_small
push 0x515408
call fcn.0048be90
add esp, 8
mov ecx, dword [ebx + 0x3c]
push 0x19
mov edx, dword [ecx]
call dword [edx + 0x1c]
xor eax, eax
pop esi
pop ebx
pop ecx
pop ebp
ret 4
cmp eax, 0x7800000
jbe 0x467d0e
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x70
call dword [esi + 0x20]
push str.the_packet_is_too_large
jmp 0x467ccc
pop esi
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x467ee0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d75c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x14], edi
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x467f27
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x24], eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x467f51
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
push 1
push str.GetPacketData__d
push 0x515408
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.0048be90
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call fcn.00468560
push eax
push str.GetPacketData_return:_d
push 0x515408
mov dword [ebp - 0x1c], eax
call fcn.0048be90
mov eax, dword [ebp - 0x1c]
add esp, 0xc
or esi, 0xffffffff
test eax, eax
je 0x46808d
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + 0x40]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4680da
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push eax
call fcn.0041d810
mov ecx, edi
call fcn.0041ea70
mov ecx, edi
call fcn.0041eb70
mov eax, dword [edi + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x46806e
nop dword [eax]
mov ecx, dword [edi + 8]
cmp dword [ecx + 0x1c], 0
je 0x46805f
inc dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.0041cee0
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0x10]
cmp dword [esi - 0xc], 0
je 0x468043
push esi
lea eax, [ebp - 0x18]
push str._s.bad
push eax
call fcn.00422000
mov ebx, dword [ebp - 0x18]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004ae39f
add esp, 8
test eax, eax
je 0x468043
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46805f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [edi]
cmp edi, dword [ecx + 0x24]
jne 0x467ff0
or esi, 0xffffffff
jmp 0x468071
mov ecx, dword [ebp - 0x1c]
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x40], ecx
je 0x46808a
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 0
add ebx, 0xfffffff0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4680a8
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4680c4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor edi, edi
jmp 0x46808d
Function at 0x468680
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 4], 0
xor esi, esi
lea ecx, [ebx - 0x100000]
nop dword [eax + eax]
mov eax, ebx
mov edi, 0x100000
sub eax, esi
cmp esi, ecx
push 0
cmovae edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push edi
add eax, esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4686e9
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x4686e9
add esi, eax
lea ecx, [ebx - 0x100000]
cmp esi, ebx
jb 0x4686a0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_new_error:_d
push 0x515408
call fcn.0048be90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x468710
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push 0x51423c
mov dword [ebp - 4], edi
push dword [ebx + 0x2c]
call fcn.004a4fda
add esp, 8
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x468771
mov ecx, dword [ebx + 0x3c]
push 0x15
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [eax]
call edi
mov ecx, dword [ebx + 0x3c]
push eax
push 0x74
call dword [esi + 0x20]
call edi
push eax
push str.m_pFileBuffer_new_error:_d
push 0x515408
call fcn.0048be90
add esp, 0xc
xor edi, edi
jmp 0x4687fc
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebx + 0x2c]
push eax
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4687f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_new_error:_d
push 0x515408
call fcn.0048be90
add esp, 0xc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebx + 0x2c]
push dword [ebx + 0x44]
push dword [ebx + 0x28]
call fcn.00468680
test eax, eax
jne 0x4687f7
mov ecx, dword [ebx + 0x3c]
push 0x1a
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [ebx + 0x3c]
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x3c]
push eax
push 0x75
call dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadMem_error:_d
push 0x515408
call fcn.0048be90
add esp, 0xc
jmp 0x4687fc
mov edi, 1
mov ecx, dword [ebx + 0x44]
cmp ecx, 0xffffffff
je 0x468812
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x44], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4689d0
push ebx
push edi
push str.RtlGetVersion
push str.ntdll.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004a73c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test ebx, ebx
je 0x46897d
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
je 0x4689a3
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
jne 0x4689a3
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call ebx
cmp dword [ebp - 0x11c], 0xa
jne 0x4689ba
cmp dword [ebp - 0x118], edi
mov eax, 1
cmove edi, eax
mov dword [esi + 4], edi
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x468ca0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d76a8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x511070]
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
lea eax, [ebp - 0x30]
mov dword [ebx + 0x48], 1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [ebp - 0x24]
shr esi, 0x14
push esi
push 0x4f815c
push 0x515408
call fcn.0048be90
add esp, 0xc
cmp esi, 0x190
jae 0x468d06
mov dword [ebx + 0x48], 0
cmp dword [ebx + 0x48], 0
jne 0x468d16
mov eax, 1
jmp 0x468df2
mov ecx, dword [ebx + 0x3c]
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ecx]
call dword [eax + 0x10]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
mov edi, dword [ebx + 0x40]
mov ecx, ebx
push eax
push 1
call fcn.00468560
mov esi, eax
test esi, esi
je 0x468dbe
test edi, edi
je 0x468dcd
push 0x4f8170
push 0x515408
call fcn.0048be90
mov eax, dword [edi]
add esp, 8
push dword [ebp - 0x34]
push esi
push edi
call dword [eax + 4]
mov esi, eax
xor eax, eax
test esi, esi
sete al
push eax
push str.Uncompress
push 0x515408
call fcn.0048be90
add esp, 0xc
test esi, esi
je 0x468db7
mov ecx, edi
mov dword [ebx + 0x48], 0
call fcn.0041e030
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x38], 1
test edi, edi
je 0x468dcd
cmp dword [ebx + 0x40], edi
je 0x468dcd
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x468def
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
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.004a474b
mov esp, ebp
pop ebp
ret
Function at 0x46a3a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebx]
mov dword [ebp - 0x110], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x46a4a2
push edi
call fcn.004a47b7
mov esi, eax
add esp, 4
test esi, esi
je 0x46a4a2
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46a499
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x104
push eax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push eax
push str.0s
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x46a499
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004a73c0
mov ecx, dword [ebp - 0x10c]
add esp, 0xc
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x108]
push 0x80
push eax
call fcn.0046a650
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x108]
add esp, 0x1c
push eax
call fcn.0041cdf0
push esi
call fcn.004a47b2
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a474b
mov esp, ebp
pop ebp
ret 8
Function at 0x46a4c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x34
xor edi, edi
call fcn.004a477f
add esp, 4
mov ecx, eax
call fcn.0041d500
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46a502
push 0x4f89ac
push 0x515408
call fcn.0048be90
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46a555
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x4f89d0
push 0x515408
call fcn.0048be90
mov eax, dword [esi]
add esp, 0x10
push esi
call dword [eax + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov eax, dword [ebp + 8]
push esi
push dword [eax]
push 0x4f89f8
push 0x515408
call fcn.0048be90
add esp, 0x10
test esi, esi
je 0x46a5f9
cmp esi, 0x1400000
ja 0x46a5f9
push esi
call fcn.004ae6f1
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x46a5a9
push esi
push 0x4f8a18
push 0x515408
call fcn.0048be90
add esp, 0xc
jmp 0x46a5f9
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46a5d7
push esi
push str._vc_runtime_
push 0x515408
call fcn.0048be90
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x46a5f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push dword [eax]
mov ecx, dword [edx]
push esi
mov esi, dword [ebp + 8]
push esi
push edx
call dword [ecx]
mov edi, eax
neg edi
sbb edi, edi
inc edi
push esi
call fcn.004ae6e1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 4]
push esi
mov eax, dword [esi]
call dword [eax + 0x10]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46a670
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x511070]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push 0x4f8a64
push esi
call fcn.004ba150
xor eax, eax
mov dword [esp + 0x30], vtable.CQMSetupLog.0
add esp, 8
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], ax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], eax
mov word [esp + 0x48], ax
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
je 0x46a856
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], eax
call fcn.004956c0
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
call fcn.0048cae0
cmp dword [eax + 0x14], 8
jb 0x46a702
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x46a721
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00433850
push edi
call fcn.00455c30
test eax, eax
je 0x46a757
push str.g_App.Run...
push 0x515408
call fcn.0048be90
add esp, 8
call fcn.00456100
mov esi, eax
push esi
push str.g_App.Run_return:_d
push 0x515408
call fcn.0048be90
add esp, 0xc
mov ecx, dword [0x5153cc]
mov edi, 0x15
test ecx, ecx
je 0x46a76d
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
call fcn.00455f30
lea ecx, [esp + 0x28]
call fcn.00495960
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x46a7ec
mov eax, dword [0x515364]
xor esi, esi
test eax, eax
je 0x46a838
mov edi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [esp + 8]
push esi
push 0x1388
push esi
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
push 0x4a
push eax
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x30], 8
call edi
mov eax, dword [0x515364]
test eax, eax
je 0x46a838
push esi
push 0x1388
push esi
push esi
push esi
push 0x535
push eax
call edi
jmp 0x46a838
mov ecx, dword [0x515364]
mov esi, 1
test ecx, ecx
je 0x46a838
push 0
push 0x1388
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x64
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4a
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x2711
mov dword [esp + 0x30], 8
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
lea ecx, [esp + 0x28]
call fcn.00495370
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004a474b
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0041ce60
int3