joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469b10
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8ae8
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 0x4f84ac
push 0x515488
call fcn.0048cf90
add esp, 0xc
cmp esi, 0x190
jae 0x469b76
mov dword [ebx + 0x48], 0
cmp dword [ebx + 0x48], 0
jne 0x469b86
mov eax, 1
jmp 0x469c62
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.00469400
mov esi, eax
test esi, esi
je 0x469c2e
test edi, edi
je 0x469c3d
push 0x4f84c0
push 0x515488
call fcn.0048cf90
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.0048cf90
add esp, 0xc
test esi, esi
je 0x469c27
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 0x469c3d
cmp dword [ebx + 0x40], edi
je 0x469c3d
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 0x469c5f
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.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x46b210
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 0x46b312
push edi
call fcn.004a5807
mov esi, eax
add esp, 4
test esi, esi
je 0x46b312
push esi
push edi
push 0
push dword [ebx]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x46b309
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 0x46b309
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004a83c0
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.0046b4c0
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x108]
add esp, 0x1c
push eax
call fcn.0041cd80
push esi
call fcn.004a5802
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret 8
Function at 0x46b330
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.004a57cf
add esp, 4
mov ecx, eax
call fcn.0041d490
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x46b372
push 0x4f8cfc
push 0x515488
call fcn.0048cf90
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 0x46b3c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
push 0x4f8d20
push 0x515488
call fcn.0048cf90
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 0x4f8d48
push 0x515488
call fcn.0048cf90
add esp, 0x10
test esi, esi
je 0x46b469
cmp esi, 0x1400000
ja 0x46b469
push esi
call fcn.004af6a1
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x46b419
push esi
push 0x4f8d68
push 0x515488
call fcn.0048cf90
add esp, 0xc
jmp 0x46b469
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 0x46b447
push esi
push str._vc_runtime_
push 0x515488
call fcn.0048cf90
mov esi, dword [ebp + 8]
add esp, 0xc
jmp 0x46b460
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.004af691
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 0x46b4e0
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 0x4f8db4
push esi
call fcn.004bb0c6
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 0x46b6c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x64], eax
call fcn.004966d0
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x10]
call fcn.0048dbe0
cmp dword [eax + 0x14], 8
jb 0x46b572
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x24]
cmp eax, 8
jb 0x46b591
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.00433600
push edi
call fcn.00457d90
test eax, eax
je 0x46b5c7
push str.g_App.Run...
push 0x515488
call fcn.0048cf90
add esp, 8
call fcn.00458240
mov esi, eax
push esi
push str.g_App.Run_return:_d
push 0x515488
call fcn.0048cf90
add esp, 0xc
mov ecx, dword [0x51544c]
mov edi, 0x15
test ecx, ecx
je 0x46b5dd
mov eax, dword [ecx]
call dword [eax + 0x28]
mov edi, eax
call fcn.00458070
lea ecx, [esp + 0x28]
call fcn.00496970
call dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
je 0x46b65c
mov eax, dword [0x5153e4]
xor esi, esi
test eax, eax
je 0x46b6a8
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 0x46b6a8
push esi
push 0x1388
push esi
push esi
push esi
push 0x535
push eax
call edi
jmp 0x46b6a8
mov ecx, dword [0x5153e4]
mov esi, 1
test ecx, ecx
je 0x46b6a8
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.00496380
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.0041cdf0
int3
Function at 0x46ba30
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.0046b980
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
test edi, edi
je 0x46baa3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push str.Global_rtpsvc_instance_mutex
push esi
call fcn.0046b980
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x46ba9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46ba94
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 0x46bae0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8d40
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.00457200
mov dword [ebp - 4], 0
xor ebx, ebx
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x46bb37
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.00457430
mov esi, dword [ebp - 0x10]
test eax, eax
je 0x46bb69
push esi
call fcn.004b0c83
add esp, 4
mov ebx, eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
jne 0x46bb87
cmp ebx, 1
jne 0x46bb7f
test eax, eax
je 0x46bb7f
mov dword [edi], ebx
jmp 0x46bb8c
mov dword [edi], 2
jmp 0x46bb8c
cmp dword [edi], 0
jle 0x46bb95
push ecx
call fcn.0046bda0
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.0048cf90
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 0x46bbc9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.00459f50
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
Function at 0x46c950
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e42
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
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 esi, ecx
mov dword [ebp - 0x420], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x424], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x428], esi
mov dword [esi + 0x10], 0
jb 0x46c9c3
mov eax, dword [esi]
jmp 0x46c9c5
mov eax, esi
push 1
push 0x4fa200
mov byte [eax], 0
call fcn.00438c00
push 0
push 0
push 3
push 0
push 3
push 0
mov dword [ebp - 4], 0
push 0x4fa204
mov dword [ebp - 0x424], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x46caa9
push 0x400
xorps xmm0, xmm0
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x410]
movq qword [ebp - 0x41c], xmm0
push 0
push eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46caa2
lea ebx, [ebp - 0x410]
add ebx, dword [ebp - 0x400]
movsx eax, byte [ebx]
push eax
call fcn.004bb490
add esp, 4
test eax, eax
je 0x46caa2
push ebx
mov ecx, esi
call fcn.0043f210
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x46cd80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f08
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
jne 0x46cdb9
xor eax, eax
jmp 0x46cf27
lea ecx, [ebp - 0x70]
call fcn.0046c950
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.0046cad0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.0046cc00
cmp dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x70]
push dword [ebp - 0x60]
cmovae edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x110], 0x67452301
mov dword [ebp - 0x10c], 0xefcdab89
mov dword [ebp - 0x108], 0x98badcfe
mov dword [ebp - 0x104], 0x10325476
mov dword [ebp - 0x100], 0
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 0
call fcn.0046c7c0
add esp, 4
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x110]
cmovae edx, dword [ebp - 0x40]
push dword [ebp - 0x30]
call fcn.0046c7c0
add esp, 4
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x110]
cmovae edx, dword [ebp - 0x28]
push dword [ebp - 0x18]
call fcn.0046c7c0
add esp, 4
lea ecx, [ebp - 0x110]
mov edx, esi
call fcn.0046c8a0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x46cead
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00433760
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x46ced4
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00433760
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x46cefb
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00433760
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x46cf22
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00433760
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x46e390
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
xorps xmm0, xmm0
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], 0x67452301
mov dword [ebp - 0xa4], 0xefcdab89
movups xmmword [ebx], xmm0
mov dword [ebp - 0xa0], 0x98badcfe
movups xmmword [edi], xmm0
mov dword [ebp - 0x9c], 0x10325476
movups xmmword [edi + 0x10], xmm0
mov byte [edi + 0x20], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
jb 0x46e413
mov ecx, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xa8]
push eax
call fcn.0046c7c0
add esp, 4
lea ecx, [ebp - 0xa8]
mov edx, ebx
call fcn.0046c8a0
xor esi, esi
movzx eax, byte [ebx + esi]
push eax
push str._02x
push 2
push 3
push edi
call fcn.0046c070
inc esi
add esp, 0x14
add edi, 2
cmp esi, 0x10
jb 0x46e433
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov byte [eax + 0x20], 0
pop ebx
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x46ed20
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d91e8
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.0046f080
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 1
cmovae eax, dword [ebp - 0x44]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46ee67
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.0046f080
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x294]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x46edbf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x46ee16
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x294]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x46ee16
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x44]
push 0
cmovae ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46ee16
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x46ee4e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
je 0x46eeb3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x46eeac
push 0
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0
push eax
push 0x10
push 0x515370
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46eeac
cmp dword [ebp - 0x298], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x46eec8
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00433600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x46eef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9218
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor dl, dl
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.0046f080
push 0
push 0
push 2
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push 1
cmovae eax, dword [ebp - 0x44]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46efb0
mov dl, 1
lea ecx, [ebp - 0x2c]
call fcn.0046f080
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x46ef97
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00433600
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp esi, 0xffffffff
je 0x46efde
push 0
lea eax, [ebp - 0x48]
push eax
push 0x10
push 0x515370
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46efd7
cmp dword [ebp - 0x48], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
cmp ecx, 8
jb 0x46eff3
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00433600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret 4
Function at 0x46f080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d926d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x23c], esi
mov dword [esi + 0x10], 0
jb 0x46f0ed
mov eax, dword [esi]
jmp 0x46f0ef
mov eax, esi
xor ecx, ecx
mov word [eax], cx
push 0x208
push ecx
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 0x234], 1
call fcn.004a83c0
add esp, 0xc
mov ecx, 0x1a
test bl, bl
mov eax, 0x23
cmovne eax, ecx
push 1
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x46f1c1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00438600
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.004403d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x46f186
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00433600
mov ecx, esi
test bl, bl
je 0x46f195
push 0x13
push str.TencentDeskUpdate
jmp 0x46f19c
push 0x10
push str.TencentDesktop
call fcn.004402a0
mov ecx, esi
call fcn.0046f1e0
test al, al
jne 0x46f1b3
mov ecx, esi
call fcn.0046f2f0
push 0xa
push str.Global.db
mov ecx, esi
call fcn.004402a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
Function at 0x471cb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6096
mov eax, dword fs:[0]
push eax
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
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004a57cf
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004a45c3
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret