joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458df0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push esi
push edi
lea edi, [ebp - 0x42c]
mov ecx, 0x10b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push str.SYSTEMCurrentControlSetServices_
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00482d72
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x458e46
jmp 0x458eb7
mov dword [ebp - 8], 0
jmp 0x458e58
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jae 0x458eb7
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.00482d72
add esp, 0xc
mov ecx, dword [ebp - 8]
imul ecx, ecx, 0x1c
mov edx, dword [ecx + 0x4c7bd4]
push edx
push 0x104
lea eax, [ebp - 0x428]
push eax
call fcn.00484331
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0x428]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp esi, esp
call fcn.0049f8de
jmp 0x458e4f
push edx
mov ecx, ebp
push eax
lea edx, [0x458ee8]
call fcn.0049f901
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f404
add esp, 0x42c
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret

Function at 0x458f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
push esi
push edi
lea edi, [ebp - 0x428]
mov ecx, 0x10a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov esi, esp
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.0049f8de
push str.System32Drivers_
push 0x104
lea ecx, [ebp - 0x214]
push ecx
call fcn.00484331
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x458f94
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 1
jae 0x458fec
mov eax, dword [ebp - 8]
imul eax, eax, 0x1c
mov ecx, dword [eax + 0x4c7be0]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x4ae4a0
push 0x104
lea eax, [ebp - 0x424]
push eax
call fcn.00482389
add esp, 0x14
push str._DelLocal__SetupDll__DeleteFiles...
mov esi, 0x4ca290
call fcn.0045f140
add esp, 4
push 0
lea ecx, [ebp - 0x424]
push ecx
call fcn.0045b3b0
add esp, 8
jmp 0x458f8b
push edx
mov ecx, ebp
push eax
lea edx, [0x45901c]
call fcn.0049f901
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f404
add esp, 0x428
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret
Function at 0x459fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x459ff4
jmp 0x45a02f
mov esi, esp
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.0049f8de
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x45a028
jmp 0x45a02f
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x45a054]
call fcn.0049f901
pop eax
pop edx
pop esi
add esp, 0x18
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret 0xc

Function at 0x45a780
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
lea edi, [ebp - 0x21c]
mov ecx, 0x87
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004806d0
add esp, 0xc
mov dword [ebp - 0x21c], 0
mov esi, esp
push 0x103
lea ecx, [ebp - 0x214]
push ecx
push 0x4ad358
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, esp
call fcn.0049f8de
lea edx, [ebp - 0x214]
push edx
call fcn.0045a890
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x45a819
jmp 0x45a838
push 0x103
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004842b7
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x45a86c]
call fcn.0049f901
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f404
add esp, 0x21c
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret
Function at 0x45a890
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push esi
push edi
lea edi, [ebp - 0x648]
mov ecx, 0x192
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4c6280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x214], 0
push 0x206
push 0
lea eax, [ebp - 0x212]
push eax
call fcn.004806d0
add esp, 0xc
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x214]
mov dword [ebp - 0x220], edx
mov word [ebp - 0x42c], 0
push 0x206
push 0
lea eax, [ebp - 0x42a]
push eax
call fcn.004806d0
add esp, 0xc
mov dword [ebp - 0x434], 0
mov word [ebp - 0x640], 0
push 0x206
push 0
lea ecx, [ebp - 0x63e]
push ecx
call fcn.004806d0
add esp, 0xc
lea edx, [ebp - 0x214]
mov dword [ebp - 0x648], edx
mov esi, esp
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
cmp esi, esp
call fcn.0049f8de
test eax, eax
je 0x45a96c
jmp 0x45aafe
mov esi, esp
lea ecx, [ebp - 0x42c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp esi, esp
call fcn.0049f8de
test eax, eax
jne 0x45a995
jmp 0x45aafe
push 0x104
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.004842b7
add esp, 0xc
push 0x4ad3c0
lea ecx, [ebp - 0x214]
push ecx
call fcn.00459850
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x45a9e8
mov dword [ebp - 0x434], 1
lea edx, [ebp - 0x214]
mov dword [ebp - 0x21c], edx
jmp 0x45a9f7
mov eax, dword [ebp - 0x21c]
add eax, 4
mov dword [ebp - 0x21c], eax
push 0x4ad3c8
mov ecx, dword [ebp - 0x21c]
add ecx, 2
push ecx
call fcn.00459850
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x45aac4
mov edx, dword [ebp - 0x21c]
mov word [edx], 0
cmp dword [ebp - 0x434], 0
je 0x45aa5e
mov eax, dword [ebp - 0x220]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0x4ad3cc
push 0x104
lea edx, [ebp - 0x640]
push edx
call fcn.00482389
add esp, 0x14
jmp 0x45aa7e
mov eax, dword [ebp - 0x220]
push eax
push 0x4ad3d8
push 0x104
lea ecx, [ebp - 0x640]
push ecx
call fcn.00482389
add esp, 0x10
mov esi, esp
push 0
lea edx, [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.0049f8de
test eax, eax
jne 0x45aab4
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049f8de
cmp eax, 0xb7
je 0x45aab4
jmp 0x45aafe
mov eax, dword [ebp - 0x21c]
mov word [eax], 0x5c
jmp 0x45a9f7
mov esi, esp
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, esp
call fcn.0049f8de
test eax, eax
jne 0x45aaf7
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, esp
call fcn.0049f8de
cmp eax, 0xb7
je 0x45aaf7
jmp 0x45aafe
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x45ab30]
call fcn.0049f901
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f404
add esp, 0x648
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret
Function at 0x45af80
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
cmp eax, esi
mov dword [esp + 0x14], esi
je 0x45b009
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push eax
call ebx
cmp dword [esp + 0xc], 1
jne 0x45b011
mov ecx, edi
call fcn.004100f0
mov eax, dword [esp + 0x18]
shr eax, 1
add eax, 1
push eax
mov ecx, edi
call fcn.00410180
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push esi
lea edx, [esp + 0x14]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x45b01a
mov edx, dword [esp + 0x18]
shr edx, 1
push 0xffffffffffffffff
mov ecx, edi
mov word [esi + edx*2], ax
call fcn.004101e0
pop ebx
pop esi
mov eax, 1
pop ebp
pop ecx
ret 8
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8

Function at 0x45b100
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a5a98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
push edi
lea ecx, [esp + 0x18]
call fcn.00419660
push edi
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45b1b9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call ebx
test eax, eax
jne 0x45b1b9
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x45b1b9
lea esi, [esp + 0x14]
call fcn.0045b030
mov ecx, esi
call fcn.0044c280
test al, al
mov ecx, esi
jne 0x45b19e
call fcn.00421e20
push eax
call fcn.0045b100
add esp, 4
test eax, eax
jne 0x45b1a7
lea ecx, [esp + 0x14]
call fcn.00419810
xor eax, eax
jmp 0x45b1c7
push 0
push edi
call ebx
test eax, eax
jne 0x45b1b9
call ebp
cmp eax, 0xb7
jne 0x45b19a
lea ecx, [esp + 0x14]
call fcn.00419810
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047f404
add esp, 0x2c
ret
Function at 0x45b270
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4bdcc8
push 0x485e10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4c6280]
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 0x45b31e
lea ecx, [ebp - 0x28]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
cmp eax, esi
je 0x45b31e
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 0x45b31e
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0045b341
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 0x45c010
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a525b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x228], eax
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x1a
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00421ce0
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], edi
call fcn.0044c280
test al, al
je 0x45c08d
push 0x4b6d5c
mov ecx, esi
call fcn.00419660
jmp 0x45c100
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
ja 0x45c09d
call fcn.0047e1e6
lea ecx, [esp + 0xc]
call fcn.004242b0
movzx eax, word [eax + edi*2]
cmp ax, 0x5c
je 0x45c0c4
cmp ax, 0x2f
je 0x45c0c4
push 0x4b8618
lea ecx, [esp + 0x10]
call fcn.004335e0
push 0x4b8780
lea ecx, [esp + 0x10]
call fcn.00433610
lea ecx, [esp + 0xc]
call fcn.00421e20
push eax
call fcn.0045b100
add esp, 4
test eax, eax
mov ecx, esi
jne 0x45c0f6
push 0x4b6d5c
call fcn.00419660
jmp 0x45c100
lea edx, [esp + 0xc]
push edx
call fcn.00421d40
lea ecx, [esp + 0xc]
call fcn.00421d90
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0047f404
add esp, 0x238
ret

Function at 0x45c130
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a525b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x228], eax
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
xor edi, edi
push edi
push 0x23
lea eax, [esp + 0x30]
push eax
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.00421ce0
lea ecx, [esp + 0xc]
mov dword [esp + 0x23c], edi
call fcn.0044c280
test al, al
je 0x45c1ad
push 0x4b6d5c
mov ecx, esi
call fcn.00419660
jmp 0x45c220
mov eax, dword [esp + 0x20]
lea edi, [eax - 1]
cmp eax, edi
ja 0x45c1bd
call fcn.0047e1e6
lea ecx, [esp + 0xc]
call fcn.004242b0
movzx eax, word [eax + edi*2]
cmp ax, 0x5c
je 0x45c1e4
cmp ax, 0x2f
je 0x45c1e4
push 0x4b8618
lea ecx, [esp + 0x10]
call fcn.004335e0
push 0x4b8780
lea ecx, [esp + 0x10]
call fcn.00433610
lea ecx, [esp + 0xc]
call fcn.00421e20
push eax
call fcn.0045b100
add esp, 4
test eax, eax
mov ecx, esi
jne 0x45c216
push 0x4b6d5c
call fcn.00419660
jmp 0x45c220
lea edx, [esp + 0xc]
push edx
call fcn.00421d40
lea ecx, [esp + 0xc]
call fcn.00421d90
mov eax, esi
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0047f404
add esp, 0x238
ret
Function at 0x45c670
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a0648
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
mov dword [esp + 0x20], 0
je 0x45c78b
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x200000
ja 0x45c770
lea edi, [eax + 1]
push edi
mov dword [esp + 0x18], 0
mov esi, eax
call fcn.0047e225
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45c770
push edi
push 0
push ebx
call fcn.004806d0
add esp, 0xc
mov edi, ebx
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push edi
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45c767
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45c767
sub esi, eax
add edi, eax
test esi, esi
jne 0x45c706
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c749
push eax
lea ecx, [esp + 0x14]
call fcn.00425f80
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004482d0
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
push ebx
call fcn.00480167
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x45c78b
push eax
lea ecx, [esp + 0x14]
call fcn.00425f80
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004482d0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x45c7b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a3747
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x45c93d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45c93d
push 0x208
lea eax, [esp + 0x4e]
push 0
push eax
mov word [esp + 0x54], 0
call fcn.004806d0
push 0x104
lea ecx, [esp + 0x58]
push esi
push ecx
call fcn.0048312d
add esp, 0x18
test eax, eax
jne 0x45c862
push esi
lea ecx, [esp + 0x14]
call fcn.00419660
mov dword [esp + 0x260], 0
lea edx, [esp + 0x10]
push edx
mov ecx, 0x4ca284
call fcn.00437650
lea ecx, [esp + 0x10]
call fcn.00419810
jmp 0x45c93d
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x45c88f
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x14]
call fcn.00419660
mov dword [esp + 0x260], 1
jmp 0x45c845
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x10]
call fcn.0040ff10
lea ecx, [esp + 0xc]
mov dword [esp + 0x260], 2
call fcn.00420c90
xor esi, esi
mov ecx, dword [esi + 0x4c7b74]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040ff10
lea ecx, [esp + 8]
mov byte [esp + 0x260], 3
call fcn.00420c90
push 0
lea ecx, [esp + 0xc]
call fcn.00410760
push eax
lea ecx, [esp + 0x14]
call fcn.00420bf0
test eax, eax
lea ecx, [esp + 8]
jg 0x45c964
mov byte [esp + 0x260], 2
call fcn.0040fde0
add esi, 4
cmp esi, 0x38
jb 0x45c8b3
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x30]
call fcn.00419660
lea eax, [esp + 0x2c]
push eax
mov ecx, 0x4ca284
mov byte [esp + 0x264], 4
call fcn.00437650
lea ecx, [esp + 0x2c]
call fcn.00419810
lea ecx, [esp + 0xc]
call fcn.0040fde0
xor al, al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0047f404
add esp, 0x25c
ret
call fcn.0040fde0
lea ecx, [esp + 0xc]
call fcn.0040fde0
mov al, 1
jmp 0x45c93f

Function at 0x45c980
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x210], eax
xor eax, eax
push 0x208
push eax
mov dword [esp + 8], eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.004806d0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 4]
push edx
mov ecx, esi
call fcn.00419660
mov ecx, dword [esp + 0x210]
xor ecx, esp
mov eax, esi
call fcn.0047f404
add esp, 0x214
ret
Function at 0x45ca10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45caf4
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004806d0
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x4b87d8
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45caea
lea edx, [esp + 8]
push edx
push edi
push esi
call fcn.00482d72
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45caa0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x45cac6
push 0x4b8618
push edi
push esi
call fcn.00484331
add esp, 0xc
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0047f404
add esp, 0x410
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.0047f404
add esp, 0x410
ret

Function at 0x45cb10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 1
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45cbcb
push 0x400
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004806d0
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push str.Version
push ecx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45cbc1
mov eax, dword [esp + 0x414]
lea edx, [esp + 8]
push edx
push eax
push esi
call fcn.00482d72
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0047f404
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.0047f404
add esp, 0x410
ret
Function at 0x45cbf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a20f8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x4c6280]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
push 0x40
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004806d0
xor eax, eax
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 0x181
call fcn.0040fcf0
push edi
push ebx
lea ecx, [esp + 0x10]
push str.__s___s
push ecx
mov dword [esp + 0x88], 0
call fcn.004147a0
add esp, 0x10
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
mov edx, esi
neg edx
push 0
sbb edx, edx
push 0
and edx, 0xa
push 0
lea ecx, [esp + 0x28]
mov word [esp + 0x74], dx
call fcn.00410760
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x45cced
mov edx, dword [ebp + 8]
push edi
push ebx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QMTFunction::RunApp_CreateProcessW_error:_d__wait:_d__show:_d__path:_ws__cmd:_s
mov esi, 0x4ca290
call fcn.0045f140
add esp, 0x18
lea ecx, [esp + 8]
call fcn.0040fde0
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004377d0
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x10]
call fcn.004377d0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45cd2f
mov edx, dword [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45cd2f
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0xc]
call fcn.00421e50
lea ecx, [esp + 0x10]
call fcn.00421e50
lea ecx, [esp + 8]
call fcn.0040fde0
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret