joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4474ae
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov word [ebp - 0xf6], dx
mov edi, ecx
mov dword [ebp - 0xfc], eax
xor esi, esi
movzx edx, byte [esi + str.80_]
mov eax, edx
sar edx, 3
and eax, 7
movzx ecx, word [eax*2 + 0x596200]
movsx eax, byte [edx + edi]
test eax, ecx
setne al
mov byte [ebp + esi - 0x74], al
inc esi
cmp esi, 0x38
jl 0x4474d8
push 0x1e
xor ebx, ebx
pop edi
cmp word [ebp - 0xf6], 1
mov esi, edi
je 0x447516
lea esi, [ebx + ebx]
and dword [ebp + esi*4 - 0xf0], 0
movzx eax, byte [ebx + 0x5960e0]
and dword [ebp + esi*4 - 0xf4], 0
mov ecx, eax
xor edx, edx
mov dword [ebp - 0x100], eax
cmp ecx, 0x1c
jge 0x447542
mov al, byte [ebp + ecx - 0x74]
jmp 0x447549
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x1c
jl 0x447537
mov ecx, dword [ebp - 0x100]
push 0x1c
pop edx
add ecx, edx
cmp ecx, 0x38
jge 0x44756a
mov al, byte [ebp + ecx - 0x74]
jmp 0x447571
mov al, byte [ebp + ecx - 0x90]
mov byte [ebp + edx - 0x3c], al
inc edx
inc ecx
cmp edx, 0x38
jl 0x44755f
xor ecx, ecx
movzx eax, byte [ecx + 0x5960b0]
cmp byte [ebp + eax - 0x3c], 0
je 0x44759a
mov eax, dword [ecx*4 + 0x5961a0]
or dword [ebp + esi*4 - 0xf4], eax
movzx eax, byte [ecx + 0x5960c8]
cmp byte [ebp + eax - 0x3c], 0
je 0x4475b6
mov eax, dword [ecx*4 + 0x5961a0]
or dword [ebp + esi*4 - 0xf0], eax
inc ecx
cmp ecx, 0x18
jl 0x44757e
sub edi, 2
inc ebx
cmp edi, 0xfffffffe
jg 0x447507
mov edx, dword [ebp - 0xfc]
lea ecx, [ebp - 0xf4]
call fcn.004473b7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x44a129
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
cmp dword [esi + edi*4 + 4], ecx
jne 0x44a177
mov eax, dword [esi + edi*4 + 0x74]
push ebx
push ecx
push ecx
push ecx
push 6
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x44a176
push dword [ebx + 0xa]
lea ecx, [ebx + 0xe]
push dword [ebp + 8]
push 0
push 0
push ecx
push dword [esi]
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push ebx
mov dword [esi + edi*4 + 4], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
mov eax, dword [esi + edi*4 + 4]
pop edi
pop esi
pop ebp
ret 4

Function at 0x44a181
Capabilities:
Read file via mapping

Disassembly:
push 0x14
mov eax, 0x573513
call fcn.0053fc6d
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.0044a271
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
call fcn.00450bf2
test eax, eax
je 0x44a24a
mov ebx, dword [ebp - 0x20]
mov edi, esi
add ebx, 4
cmp dword [ebx], 0
je 0x44a23a
push esi
push dword [ebx]
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x44a1e2
mov eax, dword [ebp + 0xc]
mov dword [eax + edi*4], esi
jmp 0x44a23a
push esi
push esi
push esi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44a201
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x44a1da
mov edx, dword [ebx - 4]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebx]
mov ecx, dword [ebx + 8]
push eax
call fcn.0045885e
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
cmp dword [eax + edi*4], 0
je 0x44a231
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ecx + edi*4], eax
inc edi
add ebx, 0x10
cmp edi, 0x1c
jl 0x44a1bf
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.0044a371
mov eax, esi
call fcn.0053fc3b
ret 8

Function at 0x44b7e4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x44b847
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44b847
push 0x24c
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], esi
push esi
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44b847
mov esi, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x44bce6
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 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 0x44bd24
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x78
neg eax
sbb eax, eax
inc eax
jmp 0x44bd95
push esi
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x44bd48
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44bd94
push edi
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x34]
xor edi, edi
mov dword [ebp - 0x10], eax
inc edi
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], edi
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x28]
test eax, eax
cmovne esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret

Function at 0x44bda3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], ebx
test esi, esi
jne 0x44bdbc
xor eax, eax
jmp 0x44be71
cmp byte [0x5d2720], 0
jne 0x44bdd1
call fcn.0044bce6
mov byte [0x5d2720], 1
push edi
push esi
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x44be03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push edi
push ebx
push esi
push eax
push 0xc
pop edx
push 0x6e
pop ecx
call fcn.004c6610
add esp, 0x14
xor eax, eax
jmp 0x44be70
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x44be35
cmp dword [ebp - 4], 0x103
je 0x44be35
push ecx
push 0
push ebx
push esi
push dword [ebp - 4]
push 0xf
pop edx
push 0x6e
pop ecx
call fcn.004c6610
add esp, 0x14
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, eax
test ebx, ebx
jne 0x44be5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ebx
push dword [ebp - 8]
push esi
push eax
push 0xd
pop edx
push 0x6e
pop ecx
call fcn.004c6610
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44be77
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x44bf88
test esi, esi
je 0x44bf88
lea eax, [ebp - 0x4bc]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x44bf80
xor eax, eax
mov dword [ebp - 0x4c0], eax
cmp word [ebp - 0x4bc], ax
je 0x44bf80
lea ebx, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], eax
push 0x5a2040
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44bf56
push 0x5a2048
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x44bf56
mov ax, word [ebx]
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x4c4]
push 0x64
mov ax, word [ebp + eax - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x44bf88
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push edi
call fcn.0053966c
add esp, 0xc
test eax, eax
je 0x44bf9b
mov eax, dword [ebp - 0x4c0]
lea ebx, [ebp - 0x4bc]
add eax, 4
mov dword [ebp - 0x4c0], eax
add eax, eax
add ebx, eax
mov dword [ebp - 0x4c4], eax
xor eax, eax
cmp word [ebx], ax
jne 0x44bedc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + ebx*2]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x44bf8a

Function at 0x44bfb6
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
xor eax, eax
test ebx, ebx
je 0x44c04b
push esi
push edi
push ecx
xor esi, esi
mov word [ebx], ax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
xor eax, eax
test edi, edi
je 0x44c049
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x44c02c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44c049
mov edx, ebx
lea ecx, [ebp - 0x20c]
call fcn.0044be77
test eax, eax
je 0x44c040
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x44cedf
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x44ceff
mov eax, dword [edi]
jmp 0x44cf01
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x44cfb3
cmp dword [esi + 0x10], 0
je 0x44cfb3
cmp dword [esi + 0x14], 8
jb 0x44cf24
mov ecx, dword [esi]
jmp 0x44cf26
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x44cf30
mov eax, dword [edi]
jmp 0x44cf32
mov eax, edi
push ebx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
jne 0x44cfae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x44cfae
push str..new
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.0044551b
add esp, 0xc
lea eax, [ebp - 0x1c]
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
cmp dword [edi + 0x14], 8
jb 0x44cf73
mov edi, dword [edi]
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
test ebx, ebx
je 0x44cfa2
cmp dword [esi + 0x14], 8
jb 0x44cf8b
mov esi, dword [esi]
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 5
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00403256
mov eax, ebx
pop ebx
jmp 0x44cfb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret

Function at 0x44d550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
push esi
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x44d5b8
push str.TencentQQBrowser
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0053b573
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00408738
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x44d954
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x50]
mov edi, edx
push ebx
push eax
mov esi, ecx
call fcn.00538910
add esp, 0xc
xor eax, eax
mov word [ebp - 0x24], ax
xor ecx, ecx
lea eax, [ebp - 0x10]
inc ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], ecx
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push ebx
push esi
push ebx
movdqu xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x44d9cb
test edi, edi
je 0x44d9b6
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
jmp 0x44d9cd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f136
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareTencentQQBrowser
push reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
mov dword [ebp - 0x210], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f1ea
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x5a2440
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f1de
lea eax, [ebp - 0x20c]
push eax
call fcn.004086f2
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00408679
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x4500ad
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x4501a2
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
js 0x4501a2
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x56]
push eax
call fcn.00538910
movzx eax, byte [ebp - 0x261]
push eax
movzx eax, byte [ebp - 0x262]
push eax
movzx eax, byte [ebp - 0x263]
push eax
movzx eax, byte [ebp - 0x264]
push eax
movzx eax, byte [ebp - 0x265]
push eax
movzx eax, byte [ebp - 0x266]
push eax
movzx eax, byte [ebp - 0x267]
push eax
movzx eax, byte [ebp - 0x268]
push eax
movzx eax, word [ebp - 0x26a]
push eax
movzx eax, word [ebp - 0x26c]
push eax
push dword [ebp - 0x270]
lea eax, [ebp - 0x58]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push 0x28
push eax
call fcn.0044ffe7
add esp, 0x44
xor eax, eax
mov word [ebp - 0x260], ax
push 0x206
push eax
lea eax, [ebp - 0x25e]
push eax
call fcn.00538910
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
xor eax, eax
inc eax
jmp 0x4501a4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret
Function at 0x450b1d
Capabilities:
Create directory
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x450be9
xor ecx, ecx
cmp cx, word [eax]
je 0x450be9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x450be9
cmp cx, word [ebx]
je 0x450be9
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x450be9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x450be2
cmp eax, 0x40000000
ja 0x450be2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
test eax, eax
je 0x450bd7
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x450bce
push esi
push ebx
push dword [ebp + 8]
push eax
call fcn.004506fe
add esp, 0x10
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x450beb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450ec5
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push 0x270
mov eax, 0x574173
call fcn.0053fca0
mov ebx, edx
mov dword [ebp - 0x268], ebx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], 1
call fcn.0040adc8
push eax
mov ecx, edi
call fcn.0040a3ab
push 0x20019
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x26c], 1
call fcn.0044ff5b
test eax, eax
jne 0x450fda
mov eax, 0x15e
mov ecx, edi
push eax
mov dword [ebp - 0x264], eax
call fcn.0040b5ea
push 0x15e
mov ecx, edi
mov esi, eax
call fcn.0040b67f
lea eax, [ebp - 0x264]
push eax
push esi
push str.Install
lea ecx, [ebp - 0x278]
call fcn.0044fe91
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b6aa
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x450fda
push 1
lea eax, [ebp - 0x264]
mov ecx, edi
push eax
call fcn.0041be74
mov esi, 0x594350
mov byte [ebp - 4], 2
push esi
mov ecx, eax
call fcn.0041c09e
mov byte [ebp - 4], 1
test eax, eax
mov ecx, dword [ebp - 0x264]
setne bl
lea ecx, [ecx - 0x10]
call fcn.0040b4b8
test bl, bl
je 0x450fd4
push esi
call fcn.0041ce04
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0041cc27
mov ebx, dword [ebp - 0x268]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x45104b
push 0x104
mov ecx, edi
call fcn.0040b5ea
push 0x104
mov ecx, edi
mov esi, eax
call fcn.0040b67f
push esi
xor eax, eax
push eax
push eax
push 0x26
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040b6aa
mov esi, str.TencentQQ_
push esi
call fcn.0041ce04
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0041cc27
lea eax, [ebp - 0x260]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
test eax, eax
je 0x451044
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x45104b
mov ecx, edi
call fcn.0041cd1f
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x4510a1
push ebx
call fcn.0041ce04
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.0041cd8b
mov esi, 0x594350
push esi
call fcn.0041ce04
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0041cc27
mov esi, str..._QQ.exe
push esi
call fcn.0041ce04
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0041cc27
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4510a1
mov ecx, edi
call fcn.0041cd1f
lea ecx, [ebp - 0x278]
call fcn.0044ffb2
mov eax, edi
call fcn.0053fc4f
ret
Function at 0x45310d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0053b8f0
mov eax, dword [0x5c8910]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
mov esi, dword [ebp + 0xc]
push edi
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x1008], 1
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x100c], 0x800
push edx
push eax
call fcn.004530e0
test al, al
je 0x4531d0
cmp dword [ebp - 0x1008], 1
jne 0x45317f
lea eax, [ebp - 0x804]
push eax
call fcn.004086f2
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
jmp 0x4531c5
cmp dword [ebp - 0x1008], 2
jne 0x4531d0
mov edi, 0x400
lea eax, [ebp - 0x1004]
push edi
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x4531d0
cmp eax, edi
ja 0x4531d0
lea eax, [ebp - 0x1004]
push eax
call fcn.004086f2
pop ecx
push eax
lea ecx, [ebp - 0x1004]
push ecx
mov ecx, esi
call fcn.00408679
mov al, 1
jmp 0x4531d2
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0053bd6c
mov esp, ebp
pop ebp
ret 8

Function at 0x45344e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00453438
test al, al
je 0x45348c
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45348c
mov al, 1
jmp 0x453494
xor eax, eax
mov word [esi + 0xc], ax
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45370f
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x574449
call fcn.0053fca0
mov esi, ecx
test esi, esi
je 0x45388b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45388b
xor ebx, ebx
mov dword [ebp - 0x24], 0xaac56b
xor eax, eax
mov dword [ebp - 0x20], 0x11d0cd44
mov dword [ebp - 0x1c], 0xc000c28c
mov dword [ebp - 0x18], 0xee95c24f
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0043f5f9
pop ecx
test al, al
jne 0x45377d
xor edi, edi
jmp 0x45387c
push str.Wintrust.dll
lea ecx, [ebp - 0x54]
call fcn.00408738
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043eb57
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00403256
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x4537d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
jmp 0x453875
push str.WinVerifyTrust
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x4537ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x45386c
xor eax, eax
lea edi, [ebp - 0x68]
stosd dword es:[edi], eax
push 0x30
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x64], esi
xor edi, edi
pop esi
push esi
push edi
push eax
mov dword [ebp - 0x68], 0x10
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
call fcn.00538910
add esp, 0xc
mov dword [ebp - 0x98], esi
lea eax, [ebp - 0x68]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x8c], 2
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x88], edi
push eax
push edi
mov dword [ebp - 0x84], 1
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], 0x100
mov dword [ebp - 0x6c], edi
call dword [ebp - 0x58]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
test esi, esi
sete bl
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.00403256
mov eax, ebx
jmp 0x45388d
xor eax, eax
call fcn.0053fc4f
ret