joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b40
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
xor eax, eax
cmp dword [0x515858], eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], eax
je 0x418b62
mov eax, 1
pop edi
add esp, 0x10
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push ebp
push esi
push str.QQSoftwareManagerSetup
push eax
push 0x1f0003
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0x18], esi
call ebp
test esi, esi
jne 0x418cb6
cmp eax, 5
je 0x418cb6
push str.QQSoftwareManagerSetup
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x418bb9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push str.GlobalQQPCMgrUninst
push 0
push 0x1f0003
mov dword [edi], esi
call ebx
mov esi, eax
mov dword [esp + 0x14], esi
call ebp
test esi, esi
jne 0x418ca1
cmp eax, 5
je 0x418ca1
lea eax, [esp + 0x10]
call fcn.00421030
test eax, eax
jge 0x418c0b
lea esi, [esp + 0x14]
call fcn.00489700
lea esi, [esp + 0x18]
call fcn.00489700
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x10
ret
cmp dword [esp + 0x10], 0
je 0x418c81
mov eax, dword [0x515850]
mov esi, dword [eax]
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ebx, eax
push edi
push ebx
call ebp
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push ebx
call ebp
mov edi, 1
jmp 0x418c85
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x14]
call fcn.00489700
lea esi, [esp + 0x18]
call fcn.00489700
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0x10
ret
cmp dword [esp + 0x24], 0
jne 0x418cd1
push 0
push 0x4efd3c
push 0x4f249c
jmp 0x418cc9
cmp dword [esp + 0x24], 0
jne 0x418cd1
push 0
push 0x4efd3c
push 0x4f245c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x418cdc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x10
ret
Function at 0x41a410
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4dd040
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x414]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x14], eax
call dword [section..data]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x410]
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x41a499
call fcn.00416d50
mov esi, eax
jmp 0x41a57f
mov edx, dword [ebp - 0x14]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41a4b5
call fcn.00416d50
jmp 0x41a576
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x41a4ce
call fcn.00416d50
jmp 0x41a576
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
jae 0x41a504
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41a4f2
lea eax, [ebp]
call fcn.0041a5d0
lea esi, [ebp - 0x1c]
call fcn.0041a030
mov eax, 0x8007000e
jmp 0x41a592
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0041a5e0
mov dword [ebp - 4], 1
jmp 0x41a52c
mov esi, dword [ebp]
test esi, esi
jne 0x41a53a
mov esi, 0x8007000e
jmp 0x41a578
call dword [section..data]
mov ecx, dword [ebp - 0x20]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x41a55b
call fcn.00416d50
jmp 0x41a576
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.0041a660
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x41a590
lea eax, [ebp]
call fcn.0041a5d0
nop
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 + 0x404]
xor ecx, ebp
call fcn.004b84de
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b860
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x41b873
push 0x80004005
call fcn.00401340
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x41b880
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41b9e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x220], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x234]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
test esi, esi
jne 0x41ba4e
test ecx, ecx
je 0x41ba40
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0x10], ecx
je 0x41ba5c
test ecx, ecx
je 0x41bb01
push ecx
jmp 0x41bafb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x3c]
push edx
push 0
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
jne 0x41bace
jmp 0x41ba90
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0041b9e0
mov edi, eax
test edi, edi
jne 0x41bb1d
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push eax
push eax
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x34], 0x100
call esi
test eax, eax
je 0x41ba90
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bae5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bb01
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004b84de
add esp, 0x224
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bb2c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41bb03
Function at 0x41c830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e4e60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov bx, word [esp + 0x30]
call fcn.0041cab0
mov word [eax + 0x98], bx
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
movzx eax, bx
push eax
mov dword [esp + 0x2c], 0
call fcn.0041cab0
mov ecx, dword [eax + 0x90]
push ecx
push str._s__d
lea edi, [esp + 0x1c]
call fcn.00406040
add esp, 0xc
call fcn.0041cab0
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
add eax, 0x60
push edi
call fcn.004194b0
test eax, eax
jne 0x41c949
call fcn.0041cab0
add eax, 0x90
mov eax, dword [eax]
push ecx
sub eax, 0x10
mov dword [esp + 0x20], esp
mov esi, esp
call fcn.004012d0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x35]
mov cl, bl
and cl, 1
sub cl, 1
neg cl
push eax
mov dl, bl
mov byte [esp + 0x30], 1
sbb ecx, ecx
add ecx, 1
xor eax, eax
and dl, 2
cmp dl, 2
sete al
push ecx
xor ecx, ecx
and bl, 4
cmp bl, 4
sete cl
push eax
push ecx
call fcn.0041cab0
mov ecx, eax
mov byte [esp + 0x3c], 0
call fcn.0041c990
mov ebx, eax
test ebx, ebx
je 0x41c94c
call fcn.0041cab0
mov esi, eax
add esi, 0x60
call fcn.0041ca50
mov dword [eax], ebx
jmp 0x41c94c
mov ebx, dword [eax + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41c970
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x421280
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4e1ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SYSTEMCurrentControlSet_servicesQQPCRTP
mov dword [esp + 0x48], edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x4212e9
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x4212e9
push str.RtpFlag
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.QQPCRTP__t_...
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea ecx, [esp + 0x18]
push esi
push ecx
mov ebx, str.QQPCRTP.exe
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x4213b2
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ebx, str.QQPCRTP.exe
mov dword [esp + 0x20], 0
call fcn.00413810
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x34], 1
mov eax, dword [eax]
push 0xbb8
push eax
xor ecx, ecx
mov edx, 0x4f2cac
call fcn.00422020
mov byte [esp + 0x3c], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42139b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
push str.QQPCRtp__t_return:__u
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
push str.QQPCRTP__t_OK
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
push str.QQPCRTP_Stop_begin
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
call fcn.00423130
push str.QQPCRTP_Stop_end
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
push str.QQPCRTP.exe
call fcn.0048cdc0
add esp, 4
push str.QQPCRTP_CloseProcessByFile_ok
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
call fcn.004231c0
mov esi, eax
push esi
push str.QQPCRTP_CRTPService::Remove:__u
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x421435
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x421e10
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4e2f98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004099e0
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
jne 0x421eca
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x421eca
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x421eca
lea ecx, [esp + 0x14]
call fcn.00421540
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x421eab
lea ecx, [esp + 0x14]
call fcn.00416ce0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push eax
call fcn.00421e10
add esp, 4
test eax, eax
je 0x421e8c
push 0
push esi
call edi
test eax, eax
jne 0x421eca
call ebx
cmp eax, 0xb7
jne 0x421e8c
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x421eeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x421f10
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4e04b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004be320
mov edx, dword [0x5143ac]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143ac
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
push ecx
push edx
push str.__s___s
lea edi, [esp + 0x1c]
mov dword [esp + 0x84], 0
call fcn.00406040
mov esi, dword [esp + 0x1c]
add esp, 0xc
push esi
mov word [esp + 0x58], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [esp + 0x14]
lea eax, [esi - 0x10]
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422008
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret
Function at 0x422020
Capabilities:
Access peb ldr_data
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4e0488
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
xor edi, edi
push 0x40
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x24], edi
call fcn.004be320
mov edx, dword [0x5143ac]
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x5143ac
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], 0x181
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [esp + 0x88], edi
push str.__s___s
lea edi, [esp + 0x20]
call fcn.00406040
mov edi, dword [esp + 0x20]
add esp, 0xc
mov edx, esi
neg edx
sbb edx, edx
and edx, 0xa
push edi
mov word [esp + 0x60], dx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x422121
mov edx, dword [ebp + 8]
push ebx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.KFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_ws
mov ecx, 0x515890
call fcn.004899e0
mov ebx, dword [esp + 0x30]
add esp, 0x18
jmp 0x422149
test eax, eax
je 0x422144
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x422144
mov edx, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, 1
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x422162
push eax
call esi
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x422175
push eax
call esi
mov dword [esp + 0x20], 0
lea eax, [edi - 0x10]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42219c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4225b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x500978
push 0x4be400
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x50f130]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], esi
lea eax, [ebp - 0x1c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x42265e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x42265e
mov edi, 1
mov dword [ebp - 0x38], edi
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 2
push esi
push esi
push esi
lea ecx, [ebp - 0x38]
push ecx
push esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, esi
je 0x42265e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.00422681
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x422b10
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4e230b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x422b76
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea esi, [esp + 0x18]
call fcn.004024d0
mov dword [esp + 0x240], edi
mov eax, dword [esp + 0x24]
cmp eax, edi
jne 0x422bc3
push ebx
mov ecx, 0x4ef7d8
call fcn.004099e0
cmp dword [esp + 0x28], 8
jb 0x422c6c
mov edx, dword [esp + 0x14]
push edx
jmp 0x422c64
lea esi, [eax - 1]
cmp eax, esi
ja 0x422bcf
call fcn.004b7515
mov eax, dword [esp + 0x14]
mov edi, 8
cmp dword [esp + 0x28], edi
jae 0x422be2
lea eax, [esp + 0x14]
movzx eax, word [eax + esi*2]
cmp ax, 0x5c
je 0x422c02
cmp ax, 0x2f
je 0x422c02
push 1
push 0x4f09a4
lea ecx, [esp + 0x18]
call fcn.00403530
push 0x10
push str.TencentQQPCMgr_
lea ecx, [esp + 0x18]
call fcn.00403530
cmp dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
jae 0x422c20
lea eax, [esp + 0x14]
push eax
call fcn.00421e10
add esp, 4
test eax, eax
jne 0x422c45
push ebx
mov ecx, 0x4ef7d8
call fcn.004099e0
cmp dword [esp + 0x28], edi
jb 0x422c6c
mov eax, dword [esp + 0x14]
push eax
jmp 0x422c64
cmp dword [esp + 0x28], edi
mov ecx, dword [esp + 0x14]
jae 0x422c53
lea ecx, [esp + 0x14]
push ebx
call fcn.004099e0
cmp dword [esp + 0x28], edi
jb 0x422c6c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004b84d9
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.004b84de
add esp, 0x238
ret
Function at 0x422ca0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4dcf88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ebx
mov dword [esp + 0x18], ebp
call fcn.00414f60
mov eax, dword [esp + 0x30]
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x10], edi
cmp edi, 0xffffffff
mov dword [esp + 0x28], ebp
je 0x422db0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x200000
ja 0x422da9
mov eax, dword [ebx]
sub eax, 0x10
mov dword [esp + 0x14], ebp
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
lea ecx, [esi + 1]
sub eax, ecx
or edx, eax
mov edi, esi
jge 0x422d3d
mov eax, ebx
call fcn.00416880
mov ebp, dword [ebx]
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x422da5
mov eax, dword [esp + 0x14]
test eax, eax
je 0x422da5
sub edi, eax
add ebp, eax
test edi, edi
jne 0x422d43
mov eax, dword [esp + 0x1c]
mov byte [eax + esi], 0
mov ecx, dword [ebx]
test ecx, ecx
jne 0x422d7d
xor eax, eax
jmp 0x422d8f
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x422d82
sub eax, esi
js 0x422dc7
cmp eax, dword [ecx - 8]
jg 0x422dc7
mov dword [ecx - 0xc], eax
mov ecx, dword [ebx]
mov byte [eax + ecx], 0
mov dword [esp + 0x18], 1
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push 0x80070057
call fcn.00401340
int3