joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b3dce
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x101091d4], 0
je 0x100b3e13
push dword [ebp - 4]
push dword [0x101091d4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b3e00
push 0xffffffffffffffff
push dword [0x101091d4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x101091d4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x101091d4], 0
cmp dword [0x101091dc], 0
je 0x100b3e2f
push dword [0x101091dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x101091dc], 0
leave
ret
Function at 0x100b3f6b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0x1b7740
and dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
call fcn.1001e317
push 0x2001f
push 0x100d46e8
push SysReAllocStringLen
lea ecx, [ebp - 0x10]
call fcn.10009ba6
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x100b3fdf
lea eax, [ebp - 0x18]
push eax
push str.kSeWT
lea ecx, [ebp - 0x10]
call fcn.10020c98
lea eax, [ebp - 8]
push eax
push str.kSeDbg
lea ecx, [ebp - 0x10]
call fcn.10020c98
cmp dword [ebp - 8], 0
je 0x100b3ff3
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jae 0x100b4031
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, 0x101092cc
call fcn.10010b64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x100b4031
or dword [ebp - 0x450], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10009c18
mov eax, dword [ebp - 0x450]
jmp 0x100b4199
lea ecx, [ebp - 4]
call fcn.1001e317
push 0x2001f
push 0x100d4738
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
call fcn.10009ba6
mov dword [ebp - 0x14], eax
and word [ebp - 0x230], 0
push 0x208
push 0
lea eax, [ebp - 0x22e]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x234], 0x104
cmp dword [ebp - 0x14], 0
jne 0x100b409c
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x230]
push eax
push str.ExeString
lea ecx, [ebp - 4]
call fcn.10009d84
lea eax, [ebp - 0x230]
push eax
call fcn.10071feb
pop ecx
test eax, eax
jbe 0x100b40e0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b40e0
or dword [ebp - 0x454], 0xffffffff
lea ecx, [ebp - 4]
call fcn.10009c18
lea ecx, [ebp - 0x10]
call fcn.10009c18
mov eax, dword [ebp - 0x454]
jmp 0x100b4199
and word [ebp - 0x448], 0
push 0x208
push 0
lea eax, [ebp - 0x446]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x44c], 0x104
cmp dword [ebp - 0x14], 0
jne 0x100b4129
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x448]
push eax
push 0x100d4780
lea ecx, [ebp - 4]
call fcn.10009d84
lea eax, [ebp - 0x448]
push eax
call fcn.10071feb
pop ecx
test eax, eax
jbe 0x100b417c
push str.QQPCTray.dat
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b417c
or dword [ebp - 0x458], 0xffffffff
lea ecx, [ebp - 4]
call fcn.10009c18
lea ecx, [ebp - 0x10]
call fcn.10009c18
mov eax, dword [ebp - 0x458]
jmp 0x100b4199
and dword [ebp - 0x45c], 0
lea ecx, [ebp - 4]
call fcn.10009c18
lea ecx, [ebp - 0x10]
call fcn.10009c18
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100b41a5
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd583
mov eax, dword fs:[0]
push eax
mov eax, 0x822c
call fcn.1008b700
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and word [ebp - 0x4224], 0
push 0x206
push 0
lea eax, [ebp - 0x4222]
push eax
call fcn.10071b20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4224]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x4224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x100d4640
lea eax, [ebp - 0x4224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
and word [ebp - 0x401c], 0
push 0x4002
push 0
lea eax, [ebp - 0x401a]
push eax
call fcn.10071b20
add esp, 0xc
and word [ebp - 0x822c], 0
push 0x4002
push 0
lea eax, [ebp - 0x822a]
push eax
call fcn.10071b20
add esp, 0xc
lea eax, [ebp - 0x4224]
push eax
push 0x2002
lea eax, [ebp - 0x822c]
push eax
push 0x100d464c
push str.RTData
push 0x100d4660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100b4395
lea eax, [ebp - 0x4224]
push eax
push 0x2002
lea eax, [ebp - 0x401c]
push eax
push 0x100d4674
push str.ConfData
push 0x100d468c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100b4395
lea eax, [ebp - 0x401c]
push eax
call fcn.10071feb
pop ecx
push eax
lea eax, [ebp - 0x401c]
push eax
lea eax, [ebp - 0x8234]
push eax
call fcn.100a3c7b
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x822c]
push eax
call fcn.10071feb
pop ecx
push eax
lea eax, [ebp - 0x822c]
push eax
lea eax, [ebp - 0x8238]
push eax
call fcn.100a3c7b
add esp, 0xc
lea ecx, [ebp - 0x8234]
call fcn.10010763
cmp eax, 0x1000
jge 0x100b4344
lea ecx, [ebp - 0x8234]
call fcn.10010763
push eax
lea ecx, [ebp - 0x8234]
call fcn.10010b64
push eax
push section.Downlaod
call fcn.10075257
add esp, 0xc
lea ecx, [ebp - 0x8238]
call fcn.10010763
cmp eax, 0x1000
jge 0x100b437b
lea ecx, [ebp - 0x8238]
call fcn.10010763
push eax
lea ecx, [ebp - 0x8238]
call fcn.10010b64
push eax
push 0x1010e008
call fcn.10075257
add esp, 0xc
lea ecx, [ebp - 0x8238]
call fcn.100106f6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8234]
call fcn.100106f6
lea eax, [ebp - 0x4224]
push eax
push 0xffff
push str.index
push 0x100d46ac
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x8230], eax
cmp dword [ebp - 0x8230], 0xffff
je 0x100b43ce
mov eax, dword [ebp - 0x8230]
mov dword [0x10112014], eax
lea eax, [ebp - 0x4224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100b43f2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd5b3
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ed3e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
push str.QQPC02FB3C82_DC18_475c_A75E_B44B90975300MGR
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x70], eax
lea ecx, [ebp - 0x10]
call fcn.10003c5a
and dword [ebp - 4], 0
push dword [ebp + 8]
push str.Global97ED6B7B_FABA_4282_B5E8_E5150894AB99
push 0x100d44f4
lea eax, [ebp - 0x10]
push eax
call fcn.10016000
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.10010b64
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x6c], 0
je 0x100b449b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100b449b
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100106f6
mov eax, dword [ebp - 0x14]
jmp 0x100b44ae
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100106f6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x100b5159
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x1c
call fcn.10071d4d
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100b5180
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
call fcn.10001713
mov dword [ebp - 0x10], eax
jmp 0x100b5184
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 0x101091d8
push 0
push dword [ebp - 4]
push 0x100b50db
push 0
push 0
call fcn.10076126
add esp, 0x18
mov dword [0x101091d4], eax
xor eax, eax
cmp dword [0x101091d4], 0
setne al
mov dword [0x101091e0], eax
mov eax, dword [0x101091e0]
leave
ret 4

Function at 0x100b51e6
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
and dword [ebp - 4], 0
push 0x20a
push 0
push str.InstallerSvcEx2014
call fcn.10071b20
add esp, 0xc
push 0x104
push dword [ebp + 8]
push str.InstallerSvcEx2014
call fcn.10075257
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100b5240
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b52e7
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100b5265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b52de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100b5283
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b52d5
mov dword [ebp - 0x10], 7
cmp dword [ebp - 0x10], 0
jle 0x100b52d5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x2c], 0
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100b52c1
cmp dword [ebp - 0x28], 4
jne 0x100b52bf
jmp 0x100b52d5
jmp 0x100b52cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b52d5
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x100b528a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x100b52ed
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100b5317
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100b5367
push 0xf01ff
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100b533c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b535b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x100b5352
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x100b5369
Capabilities:
Create service
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100b5396
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100b5402
push 0
push 0
push 0
push 0
push 0x100d4a88
push dword [ebp + 8]
push 1
push dword [ebp + 0x18]
push 0x110
push 0xf01ff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b53d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100b53f6
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x100b5a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100e0df8
push 0x10079920
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ed3e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 0x14]
add eax, 5
mov dword [ebp - 0x1c], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100b5613
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x210]
call fcn.100b5613
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x100b5bac
cmp dword [ebp - 0x28], 0
je 0x100b5bac
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
cmp eax, 0xe9
jne 0x100b5bac
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x1c]
push eax
call fcn.10073ab6
add esp, 0xc
test eax, eax
jne 0x100b5bac
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call fcn.10073ab6
add esp, 0xc
test eax, eax
je 0x100b5bac
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x40
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100b5bac
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100b5b99
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x1c]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
jmp 0x100b5bc7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b6076
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.10071b20
add esp, 0xc
push 0x11c
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x228], 0x11c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b60fb
mov dword [ebp - 0x228], 0x114
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b60fb
xor eax, eax
jmp 0x100b6116
cmp dword [ebp - 0x224], 6
jne 0x100b6114
cmp dword [ebp - 0x220], 1
jb 0x100b6114
xor eax, eax
inc eax
jmp 0x100b6116
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10071b0a
leave
ret

Function at 0x100b6122
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.10071b20
add esp, 0xc
push 0x11c
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0x228], 0x11c
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100b61a7
mov dword [ebp - 0x228], 0x114
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b61a7
xor eax, eax
jmp 0x100b61c2
cmp dword [ebp - 0x224], 6
jne 0x100b61c0
cmp dword [ebp - 0x220], 0
jne 0x100b61c0
xor eax, eax
inc eax
jmp 0x100b61c2
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10071b0a
leave
ret

Function at 0x100b61ce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x100b61ee
xor eax, eax
jmp 0x100b62a3
and dword [ebp - 8], 0
call fcn.100b606f
neg eax
sbb eax, eax
and eax, 0x200
add eax, 0x20019
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100b62a1
cmp dword [ebp - 8], 0
je 0x100b62a1
and word [ebp - 0x220], 0
push 0x20a
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.10071b20
add esp, 0xc
mov dword [ebp - 0xc], 0x20b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100b6294
push 0x103
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
call fcn.10075257
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x100b62a3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100b62a3
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100b62e7
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bd8b9
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x228]
call fcn.10003c5a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.10004930
and word [ebp - 0x224], 0
push 0x20a
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.10071b20
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x224]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x228]
call fcn.10003d11
lea ecx, [ebp - 0x228]
call fcn.10010763
test eax, eax
jle 0x100b63ce
lea eax, [ebp - 0x228]
push eax
call fcn.100b62af
pop ecx
push str.TencentQMDownload_
lea ecx, [ebp - 0x228]
call fcn.10009f82
lea ecx, [ebp - 0x228]
call fcn.10010b64
push eax
call fcn.10009f58
pop ecx
test eax, eax
jne 0x100b63ce
push 0
lea ecx, [ebp - 0x228]
call fcn.10010b64
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003c74
mov eax, dword [ebp - 0x22c]
or eax, 1
mov dword [ebp - 0x22c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100106f6
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10071b0a
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x101098c8]
and eax, 1
jne 0x100b645b
mov eax, dword [0x101098c8]
or eax, 1
mov dword [0x101098c8], eax
mov ecx, 0x101098c4
call fcn.10003c5a
push 0x100c4afe
call fcn.10072527
pop ecx
mov ecx, 0x101098c4
call fcn.10003c44
movzx eax, al
test eax, eax
je 0x100b64e5
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.10071b20
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x100d4efc
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
push eax
mov ecx, 0x101098c4
call fcn.10003d11
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b64e5
push 0
mov ecx, 0x101098c4
call fcn.10010b64
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x101098c4
mov ecx, dword [ebp + 8]
call fcn.10003c74
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071b0a
leave
ret
Function at 0x100b65a1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100ed3e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 3
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x18], 1
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x100d5218
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100b65fe
jmp 0x100b6751
push dword [ebp + 8]
push 0x100d5268
push 0x103
lea eax, [ebp - 0x128]
push eax
call fcn.10007ead
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100b6643
jmp 0x100b6748
mov dword [ebp - 0x18], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100d5278
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100b667b
jmp 0x100b673f
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0x103
push 0x104
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.10071b20
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x100d5288
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100b66c6
jmp 0x100b673f
cmp dword [ebp - 0x10], 1
jne 0x100b66f6
push 0x100d5214
call fcn.10071f60
pop ecx
push eax
push 0x100d5298
lea eax, [ebp - 0x128]
push eax
call fcn.10075194
add esp, 0xc
test eax, eax
jne 0x100b66f6
and dword [ebp - 8], 0
jmp 0x100b673f
cmp dword [ebp - 0x10], 1
jne 0x100b6729
push 0x100d529c
call fcn.10071f60
pop ecx
push eax
push 0x100d52a0
lea eax, [ebp - 0x128]
push eax
call fcn.10075194
add esp, 0xc
test eax, eax
je 0x100b6729
mov dword [ebp - 8], 2
jmp 0x100b673f
cmp dword [ebp - 0x10], 2
jne 0x100b6738
mov dword [ebp - 8], 1
jmp 0x100b673f
mov dword [ebp - 8], 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10071b0a
leave
ret