joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4655f0
Capabilities:
Delete registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8cd8
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 + 0x58]
mov edi, 1
mov dword [ebp - 0x10], 0
push str.InstallDirNew
call fcn.0045f970
push dword [esi + 0x58]
mov dword [ebp - 0x14], eax
push 0x4f74d8
push 0x515488
call fcn.0048d710
mov eax, dword [ebp + 0xc]
add esp, 8
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call fcn.0045ab70
mov ebx, dword [ebp + 0x10]
mov esi, eax
add esp, 4
test esi, esi
je 0x4656cc
push 0xdbba0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4656a3
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 0x4f7510
push 0x515488
call fcn.0048d4b0
add esp, 0x10
jmp 0x4656cc
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 0x515488
call fcn.0048d710
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x465735
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 0x465716
test eax, eax
je 0x465716
push str.InstallDirNew
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x10], 0
jne 0x46572a
mov ecx, dword [ebx]
cmp ecx, 0x67
je 0x465728
cmp ecx, 0x68
jne 0x46572a
xor edi, edi
test eax, eax
je 0x465735
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 0x4686b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f05
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.00421000
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x468724
push 0x80004005
call fcn.0041cdf0
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.004a5d55
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0041d490
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 0x468dc0
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.004688c0
test eax, eax
je 0x468e79
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 0x468e40
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 0x515488
call fcn.0048d4b0
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 0x468e8c
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 0x515488
call fcn.0048d4b0
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 0x468eae
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 0x468e6c
pop esi
mov eax, 1
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x469080
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9008
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.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4690c7
push 0x80004005
call fcn.0041cdf0
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.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x4690f1
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
push 1
push str.GetPacketData__d
push 0x515488
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
call fcn.0048d4b0
add esp, 0xc
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push 1
call fcn.004696f0
push eax
push str.GetPacketData_return:_d
push 0x515488
mov dword [ebp - 0x1c], eax
call fcn.0048d4b0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
or esi, 0xffffffff
test eax, eax
je 0x46922d
mov edi, dword [ebp - 0x20]
mov edi, dword [edi + 0x40]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x46927a
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
push eax
call fcn.0041d7a0
mov ecx, edi
call fcn.0041e9a0
mov ecx, edi
call fcn.0041eaa0
mov eax, dword [edi + 0x24]
mov edi, dword [eax]
cmp edi, eax
je 0x46920e
nop dword [eax]
mov ecx, dword [edi + 8]
cmp dword [ecx + 0x1c], 0
je 0x4691ff
inc dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.0041ce70
mov byte [ebp - 4], 3
mov esi, dword [ebp + 0x10]
cmp dword [esi - 0xc], 0
je 0x4691e3
push esi
lea eax, [ebp - 0x18]
push str._s.bad
push eax
call fcn.00421db0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call fcn.004af8ea
add esp, 8
test eax, eax
je 0x4691e3
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 0x4691ff
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 0x469190
or esi, 0xffffffff
jmp 0x469211
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 0x46922a
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 0x469248
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 0x469264
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 0x46922d
Function at 0x4697e0
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 0x469849
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x469849
add esi, eax
lea ecx, [ebx - 0x100000]
cmp esi, ebx
jb 0x469800
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 0x515488
call fcn.0048d4b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x469870
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 0x5142bc
mov dword [ebp - 4], edi
push dword [ebx + 0x2c]
call fcn.004a65b0
add esp, 8
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x4698d1
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 0x515488
call fcn.0048d4b0
add esp, 0xc
xor edi, edi
jmp 0x46995c
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 0x469957
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_new_error:_d
push 0x515488
call fcn.0048d4b0
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.004697e0
test eax, eax
jne 0x469957
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 0x515488
call fcn.0048d4b0
add esp, 0xc
jmp 0x46995c
mov edi, 1
mov ecx, dword [ebx + 0x44]
cmp ecx, 0xffffffff
je 0x469972
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 0x469a70
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 0x469b30
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.004a8960
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test ebx, ebx
je 0x469add
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
je 0x469b03
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
jne 0x469b03
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call ebx
cmp dword [ebp - 0x11c], 0xa
jne 0x469b1a
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.004a5d13
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 4]
xor ecx, ebp
pop esi
call fcn.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x469e00
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90e8
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 0x4f860c
push 0x515488
call fcn.0048d4b0
add esp, 0xc
cmp esi, 0x190
jae 0x469e66
mov dword [ebx + 0x48], 0
cmp dword [ebx + 0x48], 0
jne 0x469e76
mov eax, 1
jmp 0x469f52
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.004696f0
mov esi, eax
test esi, esi
je 0x469f1e
test edi, edi
je 0x469f2d
push 0x4f8620
push 0x515488
call fcn.0048d4b0
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 0x515488
call fcn.0048d4b0
add esp, 0xc
test esi, esi
je 0x469f17
mov ecx, edi
mov dword [ebx + 0x48], 0
call fcn.0041df60
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 0x469f2d
cmp dword [ebx + 0x40], edi
je 0x469f2d
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 0x469f4f
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.004a5d13
mov esp, ebp
pop ebp
ret
Function at 0x46b500
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 0x46b602
push edi
call fcn.004a5d8d
mov esi, eax
add esp, 4
test esi, esi
je 0x46b602
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46b5f9
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 0x46b5f9
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004a8960
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.0046b7b0
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x108]
add esp, 0x1c
push eax
call fcn.0041cd80
push esi
call fcn.004a5d88
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 8
Function at 0x46b620
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.004a5d55
add esp, 4
mov ecx, eax
call fcn.0041d490
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46b662
push 0x4f8e5c
push 0x515488
call fcn.0048d4b0
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 0x46b6b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x4f8e80
push 0x515488
call fcn.0048d4b0
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 0x4f8ea8
push 0x515488
call fcn.0048d4b0
add esp, 0x10
test esi, esi
je 0x46b759
cmp esi, 0x1400000
ja 0x46b759
push esi
call fcn.004afc3c
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x46b709
push esi
push 0x4f8ec8
push 0x515488
call fcn.0048d4b0
add esp, 0xc
jmp 0x46b759
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 0x46b737
push esi
push str._vc_runtime_
push 0x515488
call fcn.0048d4b0
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x46b750
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.004afc2c
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 0x46b7d0
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 0x4f8f14
push esi
call fcn.004bb6c4
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.0041bed0
mov ecx, eax
test ecx, ecx
je 0x46b9b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], eax
call fcn.00496c00
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
call fcn.0048e100
cmp dword [eax + 0x14], 8
jb 0x46b862
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x46b881
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00433600
push edi
call fcn.00457fd0
test eax, eax
je 0x46b8b7
push str.g_App.Run...
push 0x515488
call fcn.0048d4b0
add esp, 8
call fcn.00458480
mov esi, eax
push esi
push str.g_App.Run_return:_d
push 0x515488
call fcn.0048d4b0
add esp, 0xc
mov ecx, dword [0x51544c]
mov edi, 0x15
test ecx, ecx
je 0x46b8cd
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
call fcn.004582b0
lea ecx, [esp + 0x28]
call fcn.00496ea0
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x46b94c
mov eax, dword [0x5153e4]
xor esi, esi
test eax, eax
je 0x46b998
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 [0x5153e4]
test eax, eax
je 0x46b998
push esi
push 0x1388
push esi
push esi
push esi
push 0x535
push eax
call edi
jmp 0x46b998
mov ecx, dword [0x5153e4]
mov esi, 1
test ecx, ecx
je 0x46b998
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.004968b0
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004a5d13
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0041cdf0
int3
Function at 0x46bd20
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.Global_rtp_svc_shutdown_event
mov esi, 1
push 0
push esi
call fcn.0046bc70
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x46bd93
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Global_rtpsvc_instance_mutex
push esi
call fcn.0046bc70
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x46bd8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46bd84
push 0x1b58
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor ecx, ecx
cmp eax, 0x102
cmove esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x46bdd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9340
mov eax, dword fs:[0]
push eax
sub esp, 0x14
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 edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00457440
mov dword [ebp - 4], 0
xor ebx, ebx
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46be27
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push str.recommandLevel
lea ecx, [ebp - 0x1c]
call fcn.00457670
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x46be59
push esi
call fcn.004b11f4
add esp, 4
mov ebx, eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
jne 0x46be77
cmp ebx, 1
jne 0x46be6f
test eax, eax
je 0x46be6f
mov dword [edi], ebx
jmp 0x46be7c
mov dword [edi], 2
jmp 0x46be7c
cmp dword [edi], 0
jle 0x46be85
push ecx
call fcn.0046c2c0
mov eax, dword [ebp + 8]
push dword [edi]
push eax
push dword [ebp + 0xc]
push str.CVersionChecker::Init_bCoverInstall_d_bSlient_d_nSimpleVersion_d
push 0x515488
call fcn.0048d4b0
add esp, 0x14
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x46beb9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.0045a190
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8