joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002ba7
Capabilities:
Check if file exists

Disassembly:
push 0x14
mov eax, 0x10073680
call fcn.100588d8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x10002d62
mov eax, dword [0x1009a0f4]
mov esi, 0x1009a0f4
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
mov eax, dword [0x1009a0f4]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x10002d2a
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x14]
call fcn.10002dcc
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002c1e
mov esi, edi
call fcn.100033e2
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002d2a
lea esi, [ebp - 0x18]
call fcn.100033e2
lea esi, [ebp - 0x1c]
call fcn.10002a3b
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.10002dcc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100033b2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002ca6
mov esi, edi
call fcn.10002a18
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002e8a
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.10002dcc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100033b2
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002ca6
mov esi, edi
call fcn.100033e2
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x10002d2a
lea esi, [ebp - 0x18]
call fcn.100033e2
lea esi, [ebp - 0x1c]
call fcn.10002af1
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10002dcc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100033b2
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x10002d26
mov esi, edi
call fcn.10002a18
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.10002e8a
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.10002dcc
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100033b2
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002d26
mov esi, edi
call fcn.100033e2
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x10002d46
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10002d46
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x10002d4f
mov eax, dword [ebp - 0x20]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.100033b2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.100033b2
mov eax, edi
call fcn.1005895b
ret
Function at 0x1000317b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003192
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100031c7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x100031c3
cmp edi, eax
jae 0x100031c7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x100031b5
cmp edi, eax
jb 0x100031cb
xor eax, eax
jmp 0x100031d5
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x10003422
Capabilities:
Hash data with md5

Disassembly:
push 0x5c
push 0
push esi
call fcn.10051de0
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
ret
Function at 0x10003e8c
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov ebx, eax
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp - 4], 0
mov ebx, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10003eae
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x10003ecf
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 8]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003f22
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, eax
push dword [edi]
call esi
push dword [edi + 4]
mov ebx, eax
call esi
and dword [ebp - 4], 0
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + str.37k_IF__y_d]
call esi
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
cmp dword [ebp - 4], 0x10
mov dword [ebp + ecx - 0x14], eax
jl 0x10003f44
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0x14]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
sub ebx, edx
add eax, 0x61c88647
dec ecx
jne 0x10003f68
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push ebx
call esi
mov ebx, dword [ebp + 8]
push edi
mov dword [ebx], eax
call esi
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret
Function at 0x100055e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x1007be78
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x10005759
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x1007bec8
push 0x103
push eax
call fcn.1004b0ab
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x10005750
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x1007bed8
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10005747
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.10051de0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x1007bee8
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x10005747
cmp dword [ebp - 0x70], edi
jne 0x10005737
mov esi, 0x1007bef8
push esi
call fcn.100517c0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.10053ca3
add esp, 0x10
test eax, eax
jne 0x10005711
mov dword [ebp - 0x6c], ebx
jmp 0x10005747
cmp dword [ebp - 0x70], edi
jne 0x10005737
push esi
call fcn.100517c0
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.10053ca3
add esp, 0x10
test eax, eax
je 0x10005737
mov dword [ebp - 0x6c], 2
jmp 0x10005747
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10051861
add ebp, 0xa4
leave
ret
Function at 0x100059e0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100756e8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10095428]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x10095428]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edi, [esp + 0x40]
mov dword [esp + 0x20], eax
mov byte [esp + 0x1b], bl
call fcn.10005c70
pop ecx
mov dword [esp + 0x68], ebx
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x10005a42
lea eax, [esp + 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005afc
push 1
lea edi, [esp + 0x24]
call fcn.10005c70
pop ecx
lea eax, [esp + 0x3c]
push eax
call fcn.10006171
test al, al
pop ecx
jne 0x10005acb
mov eax, edi
push eax
call fcn.10006171
test al, al
pop ecx
je 0x10005acb
cmp dword [esp + 0x54], 8
mov ecx, dword [esp + 0x40]
jae 0x10005a99
lea ecx, [esp + 0x40]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x10005aa8
lea eax, [esp + 0x24]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x10005acb
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x10005ac4
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x10005ada
lea eax, [esp + 0x24]
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call esi
push ebx
push 1
lea esi, [esp + 0x28]
mov edi, eax
call fcn.10001f1e
cmp edi, 0xffffffff
je 0x10005b38
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x10
jb 0x10005b31
cmp esi, 0xffffffff
je 0x10005b31
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
push dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10005b31
cmp dword [esp + 0x18], esi
jne 0x10005b31
mov byte [esp + 0x17], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.10001f1e
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10051861
mov esp, ebp
pop ebp
ret 4
Function at 0x10005b68
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x100756b8
call fcn.100588d8
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x49], bl
call fcn.10005c70
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x10005b98
lea eax, [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10005bec
push 1
lea edi, [ebp - 0x2c]
call fcn.10005c70
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10005bcb
lea eax, [ebp - 0x28]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
mov edi, eax
call fcn.10001f1e
cmp edi, 0xffffffff
je 0x10005c12
push ebx
lea eax, [ebp - 0x50]
push eax
push 0x10
push dword [ebp - 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10005c0b
cmp dword [ebp - 0x50], 0x10
jne 0x10005c0b
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.10001f1e
mov al, byte [ebp - 0x49]
call fcn.1005895b
ret 4

Function at 0x10005c70
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x1007567d
call fcn.100588d8
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.10051de0
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10005d41
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
call fcn.1000189d
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.1000222a
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.10001f1e
cmp byte [ebp + 8], bl
je 0x10005d19
push 0x1007bf04
jmp 0x10005d1e
push 0x1007bf2c
push edi
call fcn.100069d0
mov ecx, edi
call fcn.10005d49
test al, al
jne 0x10005d36
mov ecx, edi
call fcn.10005e16
push 0x1007bf50
push edi
call fcn.100069d0
mov eax, edi
call fcn.1005895b
ret

Function at 0x10008cbb
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x10008cd9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x10095428]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
lea edx, [esp + 0x10]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [esp + 0x28], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x10008dc7
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x10008d40
push dword [esp + 0xc]
call ebx
cmp eax, esi
mov ecx, dword [esp + 0x10]
mov edi, eax
mov dword [esp + 0xc], ecx
jne 0x10008dc7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push ecx
jmp 0x10008d97
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.10008cd9
cmp eax, esi
mov dword [esp + 0x10], eax
jne 0x10008dec
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x34], pe_nt_image_headers32
call edi
test eax, eax
je 0x10008d6a
cmp dword [esp + 0xc], esi
je 0x10008db5
push dword [esp + 0xc]
call ebx
mov dword [esp + 0xc], esi
push dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [esp + 0xc], esi
je 0x10008dd3
push dword [esp + 0xc]
call ebx
mov eax, edi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10051861
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], esi
je 0x10008df8
push dword [esp + 0xc]
call ebx
mov eax, dword [esp + 0x10]
jmp 0x10008dd5

Function at 0x10008dfe
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10051de0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10008e52
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x10008e63
cmp dword [ebp - 0x7c], 6
jne 0x10008e63
cmp dword [ebp - 0x78], 0
jne 0x10008e63
xor eax, eax
inc eax
jmp 0x10008e65
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.10051861
add ebp, 0xa0
leave
ret
Function at 0x10008e7b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10051de0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10008ecf
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x10008edd
cmp dword [ebp - 0x7c], 6
jne 0x10008edd
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x10008edf
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.10051861
add ebp, 0xa0
leave
ret

Function at 0x10008ef5
Capabilities:
Check if file exists
Create directory
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0x190], eax
push edi
xor edi, edi
test byte [0x1009a834], 1
mov dword [ebp - 0x80], edi
jne 0x10008f46
mov eax, dword [0x1009a0f4]
or dword [0x1009a834], 1
mov ecx, 0x1009a0f4
call dword [eax + 0xc]
add eax, 0x10
push 0x1007879a
mov dword [0x1009a830], eax
call fcn.10051dcb
pop ecx
mov eax, dword [0x1009a830]
cmp dword [eax - 0xc], edi
jne 0x10008fae
push 0x20a
lea eax, [ebp - 0x7a]
push edi
push eax
mov word [ebp - 0x7c], di
call fcn.10051de0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x7c]
push eax
push str._appdata_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x7c]
push eax
push 0x1009a830
call fcn.10002fe5
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10008fae
push edi
push dword [0x1009a830]
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [0x1009a830]
add eax, 0xfffffff0
call fcn.10003078
mov ecx, dword [ebp + 0x190]
add eax, 0x10
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop edi
call fcn.10051861
add ebp, 0x194
leave
ret
Function at 0x10008fd8
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x10073579
call fcn.1005886f
xor edi, edi
mov esi, ecx
mov dword [ebp - 4], edi
mov ecx, 0x1009a0f4
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
call fcn.10002edb
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
call fcn.100033e2
push 0x20a
lea eax, [ebp + 2]
push edi
push eax
mov word [ebp], di
call fcn.10051de0
add esp, 0xc
push 1
push 0x23
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp]
push eax
push esi
call fcn.10002fe5
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, edi
jle 0x10009093
lea ecx, [eax - 1]
mov eax, esi
call fcn.10002d6a
cmp ax, 0x5c
je 0x10009071
mov eax, esi
call fcn.10002e0d
push str.TencentQQPCMgr_
push esi
call fcn.100090b8
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10009093
mov eax, dword [esi]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
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 + 0x20c]
xor ecx, ebp
call fcn.10051861
add ebp, 0x210
leave
ret

Function at 0x100091b0
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push 2
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0xc], eax
jne 0x100091d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10009235
push ebx
push esi
push edi
push edi
push edi
push edi
push 0x1007c180
push dword [ebp + 8]
mov esi, str.Installer_Service
push 1
push 3
push 0x110
push 0xf01ff
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x10009218
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1000922b
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call edi
push dword [ebp - 0xc]
call edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1000929f
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push 0x20a
xor ebx, ebx
push ebx
mov esi, str.InstallerSvcEx2014
push esi
call fcn.10051de0
push 0x104
push dword [ebp + 8]
push esi
call fcn.10054a96
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x100092ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10009377
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x1000930b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1000936e
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x10009322
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10009367
mov dword [ebp - 4], 7
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000935e
cmp dword [ebp - 0x20], 4
je 0x10009366
dec dword [ebp - 4]
cmp dword [ebp - 4], ebx
jg 0x1000932a
jmp 0x10009366
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x1000c3ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10095428]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov word [ebp - 0x20c], di
call fcn.10051de0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x1007c588
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x1000c487
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenThemeData
push ebx
mov dword [esi], 1
call edi
push str.CloseThemeData
push ebx
mov dword [esi + 4], eax
call edi
push str.DrawThemeBackground
push ebx
mov dword [esi + 8], eax
call edi
push str.SetWindowTheme
push ebx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.10051861
leave
ret