joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ea8a0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x634254]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [0x641d24]
test eax, eax
jne 0x4ea984
lea eax, [esp + 4]
mov dword [esp + 8], 0x10
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4ea90e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4ea97f
mov dword [0x641d24], 1
mov eax, 1
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4ea92a
push dword [esp + 4]
jmp 0x4ea979
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x18], 1
push eax
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ecx
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x38], ntohl
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 4]
test eax, eax
je 0x4ea979
mov dword [0x641d24], 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x641d24]
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0056d855
mov esp, ebp
pop ebp
ret

Function at 0x4ea9a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.004ea8a0
push dword [ebp + 8]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x4ea9c5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 1
pop ebp
ret
Function at 0x4ed800
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp dword [esi + 0x14], 8
jb 0x4ed811
mov esi, dword [esi]
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x4ed81c
mov edi, dword [edi]
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x14], 8
jb 0x4ed827
mov ebx, dword [ebx]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
mov byte [ebp + 0x13], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4ed8c6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4ed8c6
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
call fcn.005a1c68
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
jne 0x4ed86d
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x4ed8bb
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x4ed89f
push dword [ebp + 8]
mov byte [ebp + 0x13], 0
call fcn.0057becd
mov al, byte [ebp + 0x13]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 8]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0x14]
push esi
call fcn.004f9640
add esp, 0xc
mov byte [ebp + 0x13], al
call dword [sym.imp.ole32.dll_CoUninitialize]
push dword [ebp + 8]
call fcn.0057becd
add esp, 4
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4edfe0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7dad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x58], 0
push 0x20
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.005a1c68
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4ee1f9
movups xmm0, xmmword [str.EnableClipboard]
mov eax, dword [0x6147d4]
mov dword [ebp - 0x48], 0xf
movups xmmword [ecx], xmm0
mov dword [ebp - 0x44], 0xf
movq xmm0, qword [0x6147cc]
movq qword [ecx + 0x10], xmm0
mov dword [ecx + 0x18], eax
mov ax, word [0x6147d8]
mov word [ecx + 0x1c], ax
xor eax, eax
mov word [ecx + 0x1e], ax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60]
push dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push 7
call fcn.004c7930
mov dword [ebp - 4], 0xffffffff
add esp, 0x10
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4ee0ee
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ee0e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ee207
push edx
push ecx
call fcn.0056d0c8
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x4ee1db
movups xmm0, xmmword [str.Chrome_MessageWindow]
mov ax, word [0x61475c]
push str.qbclipboardmsg
movups xmmword [ebp - 0x40], xmm0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x40]
movups xmm0, xmmword [0x614744]
push eax
push 0
movups xmmword [ebp - 0x30], xmm0
push 0xfffffffffffffffd
movq xmm0, qword [0x614754]
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
jne 0x4ee1db
push 0x40
push eax
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa8], 0x44
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x50], xmm0
call fcn.005713c0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.004eda30
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x4ee177
mov eax, dword [eax]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0xa8]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4ee1cd
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4ee1c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ee20c
push edx
push ecx
call fcn.0056d0c8
add esp, 8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x4ee1db
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056d855
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x630328
lea eax, [ebp - 0x59]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.0057b201
int3
Function at 0x4f8a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push ebx
push esi
push edi
test edx, edx
je 0x4f8c6d
mov esi, edx
lea edi, [ecx + 0x1c]
lea ecx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f8ab0
sub esi, ecx
mov ecx, dword [edi + 0x14]
sar esi, 1
mov dword [ebp - 0xc], ecx
cmp esi, ecx
ja 0x4f8aed
mov ebx, edi
cmp ecx, 8
jb 0x4f8ad2
mov ebx, dword [edi]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push edx
push ebx
call fcn.00570d00
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x4f8bee
cmp esi, 0x7ffffffe
ja 0x4f8c78
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x4f8b14
mov dword [ebp - 8], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f8b53
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4f8b31
mov dword [ebp - 8], SysReAllocString
mov eax, 0xfffffffe
jmp 0x4f8b53
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
mov dword [ebp - 8], ebx
lea eax, [ebx + 1]
cmp eax, 0x7fffffff
ja 0x4f8c9e
add eax, eax
cmp eax, 0x1000
jb 0x4f8b7a
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4f8c9e
push ecx
call fcn.005a1c68
add esp, 4
test eax, eax
je 0x4f8c7d
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4f8b95
test eax, eax
je 0x4f8b93
push eax
call fcn.005a1c68
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4f8c8b
jmp 0x4f8b95
xor ebx, ebx
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], esi
add esi, esi
push esi
push dword [ebp + 8]
mov dword [edi + 0x14], eax
push ebx
call fcn.00570780
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x4f8bec
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4f8be2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f8c99
mov eax, edx
push ecx
push eax
call fcn.0056d0c8
add esp, 8
mov dword [edi], ebx
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4f8c6d
cmp dword [ebp + 0x10], 0
je 0x4f8c6d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4f8c6d
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 0
jne 0x4f8c19
mov ecx, ebx
call fcn.004f8cb0
test al, al
je 0x4f8c6d
cmp dword [edi + 0x14], 8
mov ecx, dword [ebx]
jb 0x4f8c23
mov edi, dword [edi]
mov eax, dword [ecx]
add ebx, 0x34
push ebx
push 0x5ee2a4
push 0x5ee264
push edi
push ecx
call dword [eax + 0x20]
test eax, eax
js 0x4f8c6d
mov ecx, dword [ebx]
test ecx, ecx
je 0x4f8c6d
mov eax, dword [ecx]
push esi
push ecx
call dword [eax + 0x80]
test eax, eax
js 0x4f8c6d
mov eax, dword [ebx]
push dword [ebp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
test eax, eax
js 0x4f8c6d
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004072dc
push 0x630328
lea eax, [ebp - 1]
push eax
call fcn.0057134b
push 0x630328
lea eax, [ebp + 0xb]
push eax
call fcn.0057134b
call fcn.0057b201
call fcn.00407541
int3
Function at 0x525671
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x605b2c
mov esi, edx
mov dword [ebp - 4], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
test edi, edi
je 0x525713
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x525713
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x525713
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x52570c
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x525705
push ebx
push edi
push eax
call fcn.00570780
and dword [ebp + 8], 0
lea eax, [ebp + 8]
add esp, 0xc
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x5256fe
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0052503a
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x525718
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
cmp dword [edi + 4], 0
je 0x5257aa
push ebx
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jle 0x5257a9
mov eax, dword [edi + 0x10]
mov dword [ebp - 8], 0xff
push esi
and dword [ebp - 4], 0
test eax, eax
jle 0x5257a2
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
imul ecx, dword [ebp - 4]
imul eax, ebx
cdq
and edx, 7
lea esi, [edx + eax]
xor edx, edx
sar esi, 3
add esi, ecx
add esi, dword [edi + 8]
movzx ecx, byte [esi + 3]
movzx eax, byte [esi]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 8]
xor edx, edx
mov byte [esi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
div ecx
mov ecx, dword [ebp - 4]
inc ecx
mov byte [esi + 2], al
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x525745
inc ebx
cmp ebx, dword [edi + 0xc]
jl 0x52573d
pop esi
pop ebx
pop edi
leave
ret
Function at 0x5260c7
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x28], ebx
je case.default.0x52612b
mov edx, dword [ebp + 0x10]
movzx eax, dx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
shr edx, 0x10
mov dword [ebp - 4], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00526214
mov edi, eax
test edi, edi
jne 0x52611a
push esi
push 0x526427
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x52612b
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x52612b
jmp dword [eax*4 + 0x5261b3]
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x526199
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf006
cmp edi, 1
lea ecx, [eax - 3]
jmp 0x526196
push dword [esi + 0xa0]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf008
cmp edi, 5
lea ecx, [eax - 4]
jmp 0x526196
push dword [esi + 0xa4]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 0xf007
cmp edi, 6
lea ecx, [eax - 2]
cmove eax, ecx
push ebx
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x526e05
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x5dab0b
call fcn.0056df1d
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.0052702d
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x526ed4
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.0052702d
lea ecx, [ebp - 0x40]
call fcn.00527803
test al, al
jne 0x526ea7
lea ecx, [ebp - 0x28]
call fcn.00527803
test al, al
je 0x526ea7
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x526ea7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403730
cmp esi, 0xffffffff
je 0x526f0b
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x10
jb 0x526f04
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x526f04
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403730
mov al, bl
call fcn.0056decc
ret

Function at 0x526f1b
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x5dab3f
call fcn.0056df1d
mov edi, ecx
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.0052702d
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x526f99
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.0052702d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00403730
cmp esi, 0xffffffff
je 0x526fc0
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x526fb9
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.00403730
mov al, bl
call fcn.0056decc
ret
Function at 0x52702d
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x234
mov eax, 0x5dab98
call fcn.0056df1d
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x240], esi
xor ecx, ecx
mov dword [ebp - 0x23c], ecx
xor eax, eax
mov dword [esi], ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x23c], edi
call fcn.005713c0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x52717c
and dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
call fcn.004089a4
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.0044449c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x527147
mov ecx, dword [ebp - 0x230]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], ecx
cmp eax, 0x1000
jb 0x52713e
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0040379f
mov eax, dword [ebp - 0x238]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x234]
push eax
push ecx
call fcn.0056d0c8
pop ecx
pop ecx
mov ecx, esi
test bl, bl
je 0x527154
push str.TencentDeskUpdate
jmp 0x527159
push str.TencentDesktop
call fcn.004092d1
mov ecx, esi
call fcn.00527184
test al, al
jne 0x527170
mov ecx, esi
call fcn.00527270
push str.Global.db
mov ecx, esi
call fcn.004092d1
mov eax, esi
call fcn.0056decc
ret
Function at 0x529723
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x62c3e0
call fcn.0056e450
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x52978a
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x52978a
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x52978a
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x52978a
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x529793
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x52986c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x63e190]
jmp 0x52988e
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov esi, dword [esi + 4]
test esi, esi
jne 0x529879
pop esi
leave
ret
Function at 0x5298be
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x63e12c]
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x63e190]
test edx, edx
jne 0x52990c
test eax, eax
je 0x52991f
mov edx, eax
mov dword [0x63e12c], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x52991f
cmp ecx, ebx
jb 0x52991f
cmp ecx, edi
jbe 0x5299fa
mov edx, eax
test eax, eax
jmp 0x529941
test edx, edx
je 0x52993c
mov eax, dword [edx + 8]
test eax, eax
je 0x52993c
cmp eax, ebx
jb 0x52993c
cmp eax, edi
jbe 0x5299fa
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x63e12c], edx
jne 0x529925
and esi, 0xffff0000
mov ecx, esi
cmp esi, ebx
jbe 0x529a9a
lea eax, [ecx - 0x70000000]
mov edx, 0x6fff0000
cmp eax, 0x10000000
lea eax, [ebp - 0x3c]
push 0x1c
cmovbe ecx, edx
push eax
push ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x529a9a
mov eax, 0x10000
cmp dword [ebp - 0x2c], eax
jne 0x529993
cmp dword [ebp - 0x30], eax
jae 0x5299a5
mov ecx, dword [ebp - 0x38]
add ecx, 0xffff0000
cmp ecx, ebx
ja 0x529959
jmp 0x529a9a
push 0x40
push 0x3000
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
mov dword [0x63e12c], edx
test edx, edx
je 0x529a9a
mov eax, dword [0x63e190]
xor ecx, ecx
mov dword [edx + 4], eax
mov esi, 0x7fd
mov dword [edx], 0x52727464
lea eax, [edx + 0xffe0]
mov dword [edx + 8], ecx
mov dword [0x63e190], edx
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
sub esi, 1
jne 0x5299ea
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x529a9e
cmp esi, edi
ja 0x529a9e
mov ecx, dword [esi + 0x18]
mov eax, 0xcccccccc
mov dword [edx + 8], ecx
mov edi, esi
push 8
pop ecx
rep stosd dword es:[edi], eax
mov eax, esi
jmp 0x529aa0
lea eax, [esi - 0x70000000]
mov ecx, 0x80010000
cmp eax, 0x10000000
lea eax, [ebp - 0x20]
push 0x1c
cmovbe esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x529a9e
mov eax, 0x10000
cmp dword [ebp - 0x10], eax
jne 0x529a92
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jb 0x529a95
movzx edx, si
test edx, edx
je 0x529a73
mov esi, dword [ebp - 0x20]
sub eax, edx
sub ecx, eax
add esi, eax
mov dword [ebp - 0x14], ecx
mov eax, 0x10000
mov dword [ebp - 0x20], esi
push 0x40
push 0x3000
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov edx, eax
mov dword [0x63e12c], edx
test edx, edx
jne 0x5299c6
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jb 0x529a23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x529b84
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [0x63e024], eax
je 0x529b9d
mov eax, 0x10dd
leave
ret
push ebx
push esi
push edi
mov edi, dword [0x63e19c]
xor ebx, ebx
test edi, edi
je 0x529bea
lea eax, [ebp - 4]
push eax
mov eax, dword [edi + 0x10]
push dword [edi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [edi + 4], ebx
jne 0x529bd8
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x529bd8
call fcn.00529aa5
mov dword [edi + 0x10], ebx
mov esi, dword [edi]
push 0x18
push edi
call fcn.0056d0c8
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x529bac
mov dword [0x63e19c], ebx
call fcn.00529895
mov edi, dword [0x63e194]
test edi, edi
je 0x529c1a
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov esi, dword [edi]
push 8
push edi
call fcn.0056d0c8
mov edi, esi
pop ecx
pop ecx
test esi, esi
jne 0x529bff
pop edi
pop esi
mov dword [0x63e194], ebx
xor eax, eax
mov dword [0x63e024], ebx
pop ebx
leave
ret