joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412be0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi + 0xe4]
push eax
mov dword [edi + 0x648], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412c4d
mov eax, dword [edi + 0xe4]
lea esi, [edi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x412c27
call fcn.00410c70
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412c4d
mov edx, dword [esi + 4]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea esi, [edi + 0xc]
mov dword [esi + 0xd0], edi
mov ecx, dword [edi + 4]
mov dword [esi + 8], ecx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x412c6f
call fcn.0040f6d0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412cb3
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
push esi
call fcn.00410170
mov ecx, dword [esi + 4]
push 8
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x1b8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x412cd7
mov edx, dword [edi + 4]
push 0
push 0
push 0x500
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x308]
movzx esi, bx
shr ebx, 0x10
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x412d23
cmp dword [edi + 0x61c], eax
jne 0x412d23
push ebx
push esi
lea eax, [edi + 0x29c]
call fcn.00402200
mov eax, dword [ebp + 8]
mov dword [eax], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
lea ebx, [edi + 0x29c]
call fcn.004020a0
cmp eax, 0xa
je 0x412d0f
mov ebx, dword [edi + 0x608]
lea ecx, [ebx - 0xa]
cmp ecx, 4
ja 0x412d8c
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_SetCapture]
cmp ebx, 0xe
je 0x412d57
call fcn.004141e0
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x630], eax
mov eax, 1
mov dword [edi + 0x658], eax
mov dword [edi + 0x634], eax
mov dword [edi + 0x62c], esi
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x413e20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x466d90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
call fcn.004155f0
cmp edi, eax
jne 0x413f2c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413e6f
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [esp + 0x14]
call fcn.0041e200
lea ebx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.00425250
push 0xe
push str.QQPYConfig.exe
mov edx, ebx
push edx
call fcn.0040b130
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4874f4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 7
push str._focuspage_51__hotboxset__d
lea edi, [esp + 0x20]
mov byte [esp + 0x2c], 1
call fcn.0040ea60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 8
push 5
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f02
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413f55
cmp edi, 0x1b
jne 0x413f4b
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413f55
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x413f55
cmp edi, 0xd
jne 0x413f55
call fcn.00414bf0
mov eax, dword [esp + 0x2c]
mov dword [eax], 0
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 4

Function at 0x414bf0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ecx
cmp dword [esi + 0x220], 0
je 0x414c5a
cmp dword [esi + 0x224], 0
je 0x414c5a
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x414c30
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x414c2a
mov ecx, dword [esi + 0x224]
push ecx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esi + 0x644]
cmp eax, 4
jne 0x414c43
push esi
call fcn.00415410
jmp 0x414c5a
cmp eax, 5
jne 0x414c50
push esi
call fcn.00415a30
jmp 0x414c5a
mov dword [esi + 0x660], 1
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414c72
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
pop ecx
ret
Function at 0x415410
Capabilities:
Access peb ldr_data
Create process on windows
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x466990
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4874f4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov ecx, str.QQPinyin_Camera_2CA8DCBA_B838_4ed9_A926_37F3313910A3.bmp
mov dword [esp + 0x28], ebx
call fcn.00405370
push 0x64
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00415690
mov esi, eax
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4154a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, ebx
mov ebp, dword [esp + 0x18]
je 0x4155ac
mov edx, dword [0x4874f4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4874f4
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ebp
push 0xf
push str._CMD___d__PicFile___s_
lea edi, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.0040ea60
add esp, 0xc
test byte [0x4898b0], 1
jne 0x415515
or dword [0x4898b0], 1
cmp dword [0x488378], ebx
jne 0x415508
cmp dword [0x48837c], ebx
jne 0x415508
mov dword [0x488378], 0x4883b8
push 0x4671c0
call fcn.00442e97
add esp, 4
mov ecx, dword [0x488378]
mov dword [ecx + 0x930], 0xf
lea ecx, [esp + 0x2c]
call fcn.0041e200
lea ebx, [esp + 0x2c]
mov byte [esp + 0x24], 3
call fcn.00425250
push 0xe
push str.QQPYConfig.exe
mov edx, ebx
push edx
call fcn.0040b130
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push 0
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41558b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4155ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4155d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x415a30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x466d46
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x234]
mov ecx, 0x4874f4
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x22c], 0
mov eax, dword [0x4874f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4874f4
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebx, 1
mov byte [esp + 0x22c], bl
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x106
or eax, ecx
jge 0x415ad7
mov ecx, 0x106
lea eax, [esp + 0x14]
call fcn.004057d0
mov esi, dword [esp + 0x14]
push esi
push 0
push 0x473804
push 0x46c4ac
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, 0x104
cmp dword [esi - 8], eax
jl 0x415c85
mov dword [esi - 0xc], eax
mov eax, esi
mov word [esi + 0x208], 0
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415b10
sub eax, edx
sar eax, 1
js 0x415c85
cmp eax, dword [esi - 8]
jg 0x415c85
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 4], ebx
jle 0x415b4c
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00405970
mov esi, dword [esp + 0x14]
push 0
push 0
push 0x100
lea edx, [esp + 0x28]
push edx
push 0
push 0
push 0
push 0
push esi
call fcn.00443b9a
add esp, 0x24
test esi, esi
jne 0x415b73
xor eax, eax
jmp 0x415b95
mov eax, esi
lea edx, [eax + 2]
jmp 0x415b80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415b80
sub eax, edx
sar eax, 1
js 0x415c85
cmp eax, dword [esi - 8]
jg 0x415c85
mov dword [esi - 0xc], eax
mov word [esi + eax*2], 0
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415bb0
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x1c]
mov ebx, eax
push ecx
lea eax, [esp + 0x18]
call fcn.00405730
push 4
push str..jpg
lea edx, [esp + 0x1c]
push edx
call fcn.0040b130
call fcn.0041e000
push 0x5a
lea eax, [esp + 0x18]
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00415690
test eax, eax
mov esi, dword [esp + 0x18]
je 0x415c0d
push str.SnapShotSaveMBlogPath
mov ecx, esi
call fcn.0041dcd0
add esp, 4
mov byte [esp + 0x22c], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x22c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415c5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0044266a
add esp, 0x220
ret 4
push 0x80070057
call fcn.00404c70
int3
Function at 0x418130
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x466d03
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push esi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
lea eax, [esp + 0x1c]
xor esi, esi
push eax
mov dword [esp + 0x10], esi
call fcn.0041a120
mov dword [esp + 0xac], 1
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edx, dword [esp + eax + 0x2c]
lea eax, [esp + eax + 0x1c]
and edx, 0xfffff9ff
or edx, 0x800
mov dword [eax + 0x10], edx
lea eax, [esp + 0x14]
push 2
push eax
call fcn.00460a1b
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx + 4]
lea edx, [esp + ecx + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
movzx edx, byte [esi + edi]
lea eax, [esp + eax + 0x2c]
add esp, 0x10
mov byte [eax + 0x30], 0x30
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00419c70
add esi, 1
cmp esi, 6
jb 0x418175
mov esi, dword [esp + 0xb4]
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.0041a220
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], ecx
mov dword [esp + eax + 0x1c], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [esp + 0xac], 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov byte [esp + 0xac], 3
test byte [esp + 0x60], 1
je 0x418246
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
push eax
call fcn.00442665
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [eax], 0
mov ecx, dword [esp + 0x40]
mov dword [ecx], 0
mov edx, dword [esp + 0x50]
mov dword [edx], 0
mov eax, dword [esp + 0x34]
mov dword [eax], 0
mov ecx, dword [esp + 0x44]
mov dword [ecx], 0
mov edx, dword [esp + 0x54]
mov dword [edx], 0
and dword [esp + 0x60], 0xfffffffe
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0
mov byte [esp + 0xac], 2
call fcn.00419de0
mov byte [esp + 0xac], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x68]
mov dword [esp + ecx + 0x1c], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
push edx
mov dword [esp + 0x6c], vtable.std::ios_base.0
call fcn.00460bff
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xa8
ret 4
Function at 0x418920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x11c
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push closesocket
mov esi, ecx
mov ebp, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call edi
test eax, eax
jne 0x418aaf
push esi
lea ecx, [esp + 0x24]
push str._sConnection
push ecx
mov eax, 0x103
call fcn.0041c910
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push ecx
call edi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x418aa8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x418aa1
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x103
call fcn.00447890
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x418aa1
mov esi, 1
cmp dword [esp + 0xc], esi
jne 0x418a91
push ebp
lea edx, [esp + 0x24]
push 0x473a08
push edx
call fcn.00444bb5
add esp, 0xc
test eax, eax
jne 0x418a6c
xor ebp, ebp
jmp 0x418aa1
cmp dword [esp + 0xc], esi
jne 0x418a91
push 3
lea eax, [esp + 0x24]
push 0x473a08
push eax
call fcn.00444bb5
add esp, 0xc
test eax, eax
je 0x418a91
mov ebp, 2
jmp 0x418aa1
xor ecx, ecx
cmp dword [esp + 0xc], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov ebp, ecx
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0044266a
add esp, 0x11c
ret
Function at 0x418fe0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x466408
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00419330
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x419034
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x419114
push 1
lea edi, [esp + 0x20]
call fcn.00419330
lea eax, [esp + 0x3c]
add esp, 4
push eax
call fcn.00419be0
add esp, 4
test al, al
jne 0x4190c7
mov ecx, edi
push ecx
call fcn.00419be0
add esp, 4
test al, al
je 0x4190c7
mov ecx, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x419095
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x4190a3
lea eax, [esp + 0x20]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x4190cc
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x4190be
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4190cc
mov edi, 8
cmp dword [esp + 0x34], edi
mov eax, dword [esp + 0x20]
jae 0x4190da
lea eax, [esp + 0x20]
push ebx
push ebx
push 3
push ebx
push 1
push closesocket
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x4190fe
mov edx, dword [esp + 0x20]
push edx
call fcn.00442665
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x419149
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x419142
push ebx
lea eax, [esp + 0x1c]
push eax
push edi
push 0x48989c
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x419142
cmp dword [esp + 0x18], edi
jne 0x419142
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x419165
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00442665
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0044266a
add esp, 0x50
ret
Function at 0x419190
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x466408
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea edi, [esp + 0x3c]
call fcn.00419330
add esp, 4
mov dword [esp + 0x60], ebx
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x4191e4
lea eax, [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x41925b
push 1
lea edi, [esp + 0x20]
call fcn.00419330
mov eax, dword [esp + 0x24]
mov edi, 8
add esp, 4
cmp dword [esp + 0x34], edi
jae 0x419221
lea eax, [esp + 0x20]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call ebp
cmp dword [esp + 0x34], edi
mov esi, eax
jb 0x419245
mov eax, dword [esp + 0x20]
push eax
call fcn.00442665
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
je 0x419283
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x10
push 0x48989c
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x41927c
cmp dword [esp + 0x18], 0x10
jne 0x41927c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esp + 0x60], 0xffffffff
cmp dword [esp + 0x50], 8
jb 0x41929f
mov edx, dword [esp + 0x3c]
push edx
call fcn.00442665
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0044266a
add esp, 0x50
ret
Function at 0x419330
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4663cd
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x244]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov esi, 7
mov dword [edi + 0x18], esi
mov dword [edi + 0x14], ebx
mov dword [esp + 0x14], edi
mov word [edi + 4], bx
push 0x208
lea eax, [esp + 0x38]
push ebx
mov dword [esp + 0x254], ebx
push eax
mov dword [esp + 0x1c], 1
call fcn.00447890
mov cl, byte [esp + 0x260]
add esp, 0xc
neg cl
push 1
lea edx, [esp + 0x38]
sbb ecx, ecx
and ecx, 0xfffffff7
add ecx, 0x23
push ecx
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x419472
lea eax, [esp + 0x34]
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4193e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
push eax
lea esi, [esp + 0x20]
call fcn.00404260
mov ecx, esi
push ebx
push ecx
or eax, 0xffffffff
mov esi, edi
mov dword [esp + 0x254], 1
call fcn.004041a0
mov byte [esp + 0x24c], bl
cmp dword [esp + 0x30], 8
jb 0x419432
mov edx, dword [esp + 0x1c]
push edx
call fcn.00442665
add esp, 4
cmp byte [esp + 0x254], bl
mov ecx, edi
je 0x419446
push 0x13
push str.TencentDeskUpdate
jmp 0x41944d
push 0x10
push str.TencentDesktop
call fcn.00408230
mov ecx, edi
call fcn.004194a0
test al, al
jne 0x419464
mov ecx, edi
call fcn.00419610
push 0xa
push str.Global.db
mov ecx, edi
call fcn.00408230
mov eax, edi
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0044266a
add esp, 0x244
ret
Function at 0x41b650
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x464f4b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004608b7
push 4
mov dword [esp + 0x20], 0
call fcn.004428f2
mov edi, eax
add esp, 4
test edi, edi
je 0x41b6d0
call fcn.004606b3
mov dword [edi], eax
call fcn.004604e7
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00460884
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x41b6c5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004608a5
jmp 0x41b6d2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4