joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000645c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x1007978b
call fcn.1005d50a
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.10006564
pop ecx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x1000648c
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 0x100064e0
push 1
lea edi, [ebp - 0x2c]
call fcn.10006564
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x100064bf
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.100031e5
cmp edi, 0xffffffff
je 0x10006506
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 0x100064ff
cmp dword [ebp - 0x50], 0x10
jne 0x100064ff
mov byte [ebp - 0x49], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea esi, [ebp - 0x48]
call fcn.100031e5
mov al, byte [ebp - 0x49]
call fcn.1005d58d
ret 4

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

Disassembly:
push 0x230
mov eax, 0x1007975b
call fcn.1005d50a
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.10054f10
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 0x10006635
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x23c]
call fcn.10002dbd
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.100034b4
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.100031e5
cmp byte [ebp + 8], bl
je 0x1000660d
push str.TencentDeskUpdate
jmp 0x10006612
push str.TencentDesktop
push edi
call fcn.10002dff
mov ecx, edi
call fcn.1000663d
test al, al
jne 0x1000662a
mov ecx, edi
call fcn.10006709
push str.Global.db
push edi
call fcn.10002dff
mov eax, edi
call fcn.1005d58d
ret
Function at 0x1000946a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x1009d600]
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.10054f10
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 0x100094be
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x100094cc
cmp dword [ebp - 0x7c], 6
jne 0x100094cc
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x100094ce
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.10054c7d
add ebp, 0xa0
leave
ret

Function at 0x100094e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor esi, esi
cmp edi, esi
je 0x10009585
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push esi
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10009585
cmp dword [ebp - 0x7c], esi
je 0x10009585
push 0x20a
lea eax, [ebp - 0x76]
push esi
push eax
mov word [ebp - 0x78], si
call fcn.10054f10
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push str.InstallDir
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x20b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10009578
push 0x103
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.10058312
add esp, 0xc
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10009587
xor eax, eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
pop esi
call fcn.10054c7d
add ebp, 0x198
leave
ret
Function at 0x1000959d
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test byte [0x100a22ec], 1
mov dword [ebp - 0x214], esi
jne 0x100095e9
mov eax, dword [0x100a0f74]
or dword [0x100a22ec], 1
mov ecx, 0x100a0f74
call dword [eax + 0xc]
add eax, 0x10
push 0x1007acea
mov dword [0x100a22d4], eax
call fcn.10054ea0
pop ecx
mov eax, dword [0x100a22d4]
cmp dword [eax - 0xc], esi
jne 0x1000966d
push edi
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.10054f10
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x100a22d4
push edi
call fcn.100015b4
mov eax, dword [0x100a22d4]
cmp dword [eax - 0xc], esi
jle 0x1000966c
call fcn.1000943d
push str.TencentQQPCMgr_
push edi
call fcn.100019f1
push dword [0x100a22d4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000966c
push esi
push dword [0x100a22d4]
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
pop edi
mov eax, dword [0x100a22d4]
add eax, 0xfffffff0
call fcn.10001647
mov ecx, dword [ebp - 4]
add eax, 0x10
mov dword [ebx], eax
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.10054c7d
leave
ret

Function at 0x1000981b
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x10077605
call fcn.1005d4a1
and dword [ebp - 4], 0
call fcn.1000978c
mov esi, eax
mov eax, dword [0x100a0f74]
mov ecx, 0x100a0f74
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp esi, 0xffffffff
mov byte [ebp - 4], 1
mov ebx, dword [ebp + 8]
jne 0x1000987d
lea eax, [ebp - 0x14]
push str.Pirint_Process_time_failed
push eax
lea ecx, [ebp + 8]
call fcn.10009b0b
pop ecx
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10001391
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10001981
jmp 0x10009890
push esi
push ebx
lea eax, [ebp - 0x10]
push str._s_Process_time_:_d
push eax
call fcn.10009cda
add esp, 0x10
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
call fcn.10001981
lea eax, [ebx - 0x10]
call fcn.10001981
xor eax, eax
inc eax
call fcn.1005d579
ret
Function at 0x100098b3
Capabilities:
Create process on windows

Disassembly:
push 0x7c
mov eax, 0x10078eab
call fcn.1005d50a
mov esi, edx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
je 0x100099a0
cmp ecx, ebx
je 0x100099a0
push 0x40
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.10054f10
xor eax, eax
mov dword [ebp - 0x44], ebx
add esp, 0xc
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
neg esi
sbb esi, esi
stosd dword es:[edi], eax
and esi, 5
mov word [ebp - 0x58], si
stosd dword es:[edi], eax
mov esi, 0x10086948
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x88], 0x44
mov dword [ebp - 0x5c], 0x81
call fcn.10002dbd
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.10002dff
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.10002dff
push 0x1008694c
lea eax, [ebp - 0x2c]
push eax
call fcn.10002dff
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.10002dff
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10009962
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
cmp edi, ebx
je 0x10009991
push dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.100031e5
mov eax, edi
jmp 0x100099a2
xor eax, eax
call fcn.1005d58d
ret
Function at 0x1001179b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 0x18]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [ebx + 0x28c], 0
je 0x1001188b
mov dword [esp + 0x10], 1
mov esi, dword [ebx + 0x28c]
mov ecx, dword [esi + 8]
add esi, 4
test ecx, ecx
je 0x1001188b
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x10]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x1001188b
call fcn.100130aa
mov esi, dword [ebx + 0x28c]
add esi, 4
xor edi, edi
mov dword [esp + 0x14], eax
call fcn.100130aa
mov ecx, dword [esp + 0x14]
push dword [ecx]
push dword [eax]
call fcn.10010e0d
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10011882
push 0x28
call fcn.1005558d
test eax, eax
pop ecx
je 0x10011838
call fcn.1002879d
mov esi, eax
jmp 0x1001183a
xor esi, esi
test esi, esi
mov dword [esp + 0x14], esi
je 0x1001187a
push dword [ebx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esi]
push 0
push edi
push edi
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esi]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
mov ecx, esi
call dword [eax + 0x1c]
lea esi, [ebx + 0x27c]
lea ebx, [esp + 0x14]
call fcn.100130c9
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
inc dword [esp + 0x10]
jmp 0x100117cd
push 0x34
call fcn.1005558d
test eax, eax
pop ecx
je 0x100118a0
mov edi, eax
call fcn.10028fec
jmp 0x100118a2
xor eax, eax
test eax, eax
mov dword [ebx + 0x78], eax
je 0x100118fc
push dword [ebx + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
xor esi, esi
inc esi
push esi
push 0x1008baf8
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
push esi
push 0
push 0
push 9
push 0x1008b39c
call dword [eax + 0x3c]
mov ecx, dword [ebx + 0x78]
mov edx, dword [ecx]
push esi
mov eax, 0x494949
push eax
push eax
call dword [edx + 0x40]
mov ecx, dword [ebx + 0x78]
mov eax, dword [ecx]
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xd8
push 0xd
call dword [eax + 0x1c]
push 0x30
call fcn.1005558d
mov esi, eax
test esi, esi
pop ecx
je 0x10011927
call fcn.100285c9
fldz
xor eax, eax
fstp dword [esi + 0x2c]
mov dword [esi], vtable.CVirProgress.0
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
jmp 0x10011929
xor esi, esi
test esi, esi
mov dword [ebx + 0x7c], esi
je 0x10011975
push dword [ebx + 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
push 1
push 0xc5
push 0xc4
call dword [eax + 0x38]
mov ecx, dword [ebx + 0x7c]
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xbf
push 0xd
call dword [eax + 0x1c]
fldz
mov ebx, dword [ebx + 0x7c]
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
fstp dword [esp]
call dword [eax + 0x3c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10013fb5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xbc], ebx
jne 0x10013fca
mov dword [ebp + 8], ebx
cmp dword [ebp + 8], ebx
je 0x1001402a
lea esi, [edi - 0x1c]
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x10014041
push 1
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call fcn.1001a3a3
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi]
call ebx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1001401e
push 1
push dword [eax + 4]
call ebx
mov eax, dword [edi + 0x14]
push 0x105
push 0
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor ebx, ebx
jmp 0x10014041
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1001405d
push ebx
push dword [edi - 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], ebx
je 0x1001405d
push ecx
mov eax, esp
mov dword [ebp + 8], esp
push str.First_Time_Show_UI
push eax
call fcn.1000134a
call fcn.1000981b
pop ecx
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret 4

Function at 0x100142a9
Capabilities:
Print debug messages

Disassembly:
push 0xe8
mov eax, 0x10079bd9
call fcn.1005d50a
mov esi, dword [0x100a1e08]
mov eax, dword [ebp + 8]
xor ebx, ebx
inc ebx
push esi
mov dword [ebp - 0x7c], eax
mov dword [0x100a1e24], 0xa8c
mov byte [0x100a1e10], 0xc8
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1008694c
lea eax, [ebp - 0xbc]
call fcn.10002dbd
push eax
xor edi, edi
push 0x1008bd78
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], edi
call fcn.10002dbd
push eax
push 0x1008bd7c
lea eax, [ebp - 0xf4]
mov byte [ebp - 4], bl
call fcn.10002dbd
push eax
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x84], esp
push esi
mov byte [ebp - 4], 2
call fcn.10002dbd
lea ecx, [ebp - 0x78]
call fcn.10009d82
push edi
push ebx
lea esi, [ebp - 0xf4]
call fcn.100031e5
push edi
push ebx
lea esi, [ebp - 0xd8]
call fcn.100031e5
push edi
push ebx
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.100031e5
push 0x1008bd84
lea eax, [ebp - 0xa0]
call fcn.10002dbd
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x80]
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 7
call fcn.10017077
push edi
push ebx
lea esi, [ebp - 0xa0]
mov byte [ebp - 4], 6
call fcn.100031e5
cmp dword [ebp - 0x80], ebx
mov eax, dword [ebp - 0x7c]
jne 0x100143b3
mov byte [0x100a1d64], 0
xor ebx, ebx
jmp 0x100143bf
mov dword [eax + 0xe0], ebx
mov byte [0x100a1d64], bl
call fcn.10014067
call fcn.1001333c
dec eax
neg eax
sbb al, al
push 0
inc al
push 0
mov byte [0x100a1d66], al
mov eax, dword [ebp - 0x7c]
push 0xd60
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10009e88
call fcn.1005d58d
ret 4
Function at 0x10014604
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
push ebx
push edi
xor eax, eax
and dword [ebp - 0x10], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10055010
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 8]
mov ebx, 0x3ec
sub eax, ebx
je 0x10014696
sub eax, 3
je 0x1001468b
dec eax
dec eax
je 0x1001467f
dec eax
jne 0x10014714
call fcn.1001e57c
test eax, eax
je 0x10014714
push 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.10015932
jmp 0x10014714
mov ecx, esi
call fcn.1001658b
jmp 0x10014714
push 0
mov edi, esi
call fcn.100150a7
jmp 0x10014714
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x100146e3
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
je 0x100146e3
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x100146ef
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp dword [esi + 0xf8], 0
je 0x10014714
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
mov eax, esi
je 0x1001470f
call fcn.100160c7
jmp 0x10014714
call fcn.10016061
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret 8
Function at 0x100167bd
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x14
mov eax, 0x100795d8
call fcn.1005d4a1
xor esi, esi
push 0x208
lea eax, [ebp + 2]
push esi
push eax
mov dword [ebp - 0x14], esi
mov word [ebp], si
call fcn.10054f10
mov eax, dword [0x100a0f74]
add esp, 0xc
mov ecx, 0x100a0f74
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push str.SoftwareTencentQQPCMgr
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1c], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100168b5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push str.InstallDir
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100168ac
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100015b4
lea eax, [ebp - 0x18]
push str.QQRepair.exe
push eax
lea ecx, [ebp - 0x10]
call fcn.10009b0b
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100168a1
push dword [ebp - 0x18]
xor edx, edx
mov ecx, str._ext1
call fcn.100098b3
pop ecx
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10001981
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10001981
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.10054c7d
add ebp, 0x210
leave
ret
Function at 0x1001a5ca
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1009d600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x100a1d44]
push edi
push str.RT_RCDATA
push 0x69
xor ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x1001a613
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054c7d
leave
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1001a602
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x1001a602
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1001a602
push ebx
push 0x80
push 2
push ebx
push 1
push 0x10000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001a667
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1001a602
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1001a692
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1001a604
xor ebx, ebx
inc ebx
jmp 0x1001a684
Function at 0x1001aa1b
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, eax
mov eax, ebx
cdq
push 3
pop ecx
idiv ecx
mov eax, ebx
xor esi, esi
sub eax, edx
lea eax, [eax*4 + 0xc]
cdq
idiv ecx
inc eax
push eax
call fcn.10055d3b
pop ecx
mov ecx, eax
test ecx, ecx
je 0x1001ab2c
cmp ebx, 2
jle 0x1001aac5
lea eax, [ebx - 3]
xor edx, edx
push 3
pop ebx
div ebx
inc eax
mov dword [ebp - 4], eax
imul eax, eax, 0xfffffffd
add dword [ebp + 8], eax
movzx edx, byte [edi]
mov eax, edx
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
movzx eax, byte [edi + 1]
and edx, 3
shl edx, 4
mov ebx, eax
shr ebx, 4
mov dl, byte [ebx + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], dl
movzx edx, byte [edi + 2]
and eax, 0xf
mov ebx, edx
shr ebx, 6
mov al, byte [ebx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [ecx + esi], al
inc esi
add edi, 3
dec dword [ebp - 4]
jne 0x1001aa6a
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001ab1d
movzx eax, byte [edi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx + esi], dl
inc esi
shl eax, 4
cmp ebx, 1
jle 0x1001ab09
movzx edx, byte [edi + 1]
mov edi, edx
shr edi, 4
mov al, byte [edi + eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
and edx, 0xf
mov al, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
jmp 0x1001ab17
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + esi], al
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov byte [ecx + esi], 0x3d
inc esi
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1001ab26
mov dword [eax], esi
mov byte [ecx + esi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001b27a
Capabilities:
Delete file

Disassembly:
push 0x10
mov eax, 0x10077a29
call fcn.1005d4a1
mov ecx, dword [0x100a1d4c]
xor edi, edi
cmp ecx, edi
mov dword [0x100a1d70], edi
je 0x1001b2a4
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x100a1d4c], edi
mov eax, dword [0x100a1d50]
cmp eax, edi
je 0x1001b2cf
push str.DestoryDownloader.
push 3
mov esi, eax
call fcn.1005226d
cmp esi, edi
pop ecx
pop ecx
je 0x1001b2c9
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov dword [0x100a1d50], edi
mov ecx, dword [0x100a1d48]
cmp ecx, edi
je 0x1001b2e5
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x100a1d48], edi
push dword [0x100a1ed0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x100a1ecc]
cmp eax, edi
je 0x1001b303
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x100a1ed0]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1001b31b
push eax
call esi
mov dword [0x100a1ed0], edi
mov eax, dword [0x100a1ecc]
cmp eax, edi
je 0x1001b32d
push eax
call esi
mov dword [0x100a1ecc], edi
lea ecx, [ebp - 0x18]
call fcn.1001a697
lea ecx, [ebp - 0x14]
push str.dlcore.dll
push ecx
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.10009b0b
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10001981
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
push dword [0x100a1ec0]
call edi
lea ecx, [ebp - 0x1c]
call fcn.1001a760
lea ecx, [ebp - 0x10]
push str.dr.dll
push ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10009b0b
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10001981
call fcn.100296ad
mov esi, eax
call fcn.100295de
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10001981
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10001981
xor eax, eax
inc eax
call fcn.1005d579
ret