joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100af61a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bb093
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x23c], 0
mov dword [ebp - 0x10], 1
and word [ebp - 0x22c], 0
push 0x208
push 0
lea eax, [ebp - 0x22a]
push eax
call fcn.100738a0
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x230]
call fcn.10003c37
and dword [ebp - 4], 0
push 0
push str._HostInstallPackDir_
lea ecx, [ebp - 0x230]
call fcn.1001069a
test eax, eax
jl 0x100af6b2
push 0x104
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x10]
call fcn.10023a00
add esp, 0xc
jmp 0x100af6f6
push 0
push str._HostInstallPackExe_
lea ecx, [ebp - 0x230]
call fcn.1001069a
test eax, eax
jl 0x100af6e1
push 0x104
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0x10]
call fcn.10023f7d
add esp, 0xc
jmp 0x100af6f6
push 0x104
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x14]
call fcn.10003c37
mov byte [ebp - 4], 1
lea eax, [ebp - 0x238]
push eax
call fcn.100af0cb
pop ecx
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x244]
call fcn.100350cd
push eax
push str.RandomSubPathTag
lea ecx, [ebp - 0x14]
call fcn.10024093
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x231], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.100105a7
movzx eax, byte [ebp - 0x231]
test eax, eax
je 0x100af788
push 0x104
lea ecx, [ebp - 0x14]
call fcn.100350cd
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10073f13
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003c37
mov eax, dword [ebp - 0x23c]
or eax, 1
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.100105a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.100105a7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10070c21
leave
ret
Function at 0x100afc17
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
and word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100738a0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x100d0460
push 0x100d0478
call fcn.100b3448
add esp, 0xc
test eax, eax
je 0x100afcb1
lea eax, [ebp - 0x218]
push eax
call fcn.10070c0b
pop ecx
test eax, eax
jbe 0x100afcb1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100afcb1
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
call fcn.100016fc
mov eax, dword [ebp - 0x21c]
or eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 8]
jmp 0x100afcd0
push 0x100d04ac
mov ecx, dword [ebp + 8]
call fcn.100016fc
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.10070c21
leave
ret

Function at 0x100afcdc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bba91
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 0x70], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
je 0x100afd14
cmp dword [ebp + 0xc], 0
jne 0x100afd1b
xor eax, eax
jmp 0x100afe1a
and dword [ebp - 0x6c], 0
push 0x40
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.100738a0
add esp, 0xc
and dword [ebp - 0x1c], 0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 0x81
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
and eax, 5
mov word [ebp - 0x3c], ax
push 0x100d03d0
lea ecx, [ebp - 0x8c]
call fcn.100016fc
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x8c]
call fcn.10004d8f
push 0x100d03d4
lea ecx, [ebp - 0x8c]
call fcn.10004d8f
push 0x100d03d8
lea ecx, [ebp - 0x8c]
call fcn.10004d8f
push dword [ebp + 0xc]
lea ecx, [ebp - 0x8c]
call fcn.10004d8f
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 0x10]
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x8c]
call fcn.10004e3f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x100afdfc
cmp dword [ebp + 0x18], 0
je 0x100afdea
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x90], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call fcn.1000176a
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x70]
xor ecx, ebp
call fcn.10070c21
leave
ret
Function at 0x100b1231
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
cmp dword [0x10105190], 0
je 0x100b1276
push dword [ebp - 4]
push dword [0x10105190]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b1263
push 0xffffffffffffffff
push dword [0x10105190]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x10105190]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x10105190], 0
cmp dword [0x10105198], 0
je 0x100b1292
push dword [0x10105198]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x10105198], 0
leave
ret
Function at 0x100b13ce
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba7e8
mov eax, dword fs:[0]
push eax
mov eax, 0x822c
call fcn.1008a3d0
mov eax, dword [0x100e93e0]
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.100738a0
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 0x100d0dc0
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.100738a0
add esp, 0xc
and word [ebp - 0x822c], 0
push 0x4002
push 0
lea eax, [ebp - 0x822a]
push eax
call fcn.100738a0
add esp, 0xc
lea eax, [ebp - 0x4224]
push eax
push 0x2002
lea eax, [ebp - 0x822c]
push eax
push 0x100d0dcc
push str.RTData
push 0x100d0de0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100b15be
lea eax, [ebp - 0x4224]
push eax
push 0x2002
lea eax, [ebp - 0x401c]
push eax
push 0x100d0df4
push str.ConfData
push 0x100d0e0c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100b15be
lea eax, [ebp - 0x401c]
push eax
call fcn.10070c0b
pop ecx
push eax
lea eax, [ebp - 0x401c]
push eax
lea eax, [ebp - 0x8234]
push eax
call fcn.100a2094
add esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 0x822c]
push eax
call fcn.10070c0b
pop ecx
push eax
lea eax, [ebp - 0x822c]
push eax
lea eax, [ebp - 0x8238]
push eax
call fcn.100a2094
add esp, 0xc
lea ecx, [ebp - 0x8234]
call fcn.10003bda
cmp eax, 0x1000
jge 0x100b156d
lea ecx, [ebp - 0x8234]
call fcn.10003bda
push eax
lea ecx, [ebp - 0x8234]
call fcn.100350cd
push eax
push section.Downlaod
call fcn.10073f13
add esp, 0xc
lea ecx, [ebp - 0x8238]
call fcn.10003bda
cmp eax, 0x1000
jge 0x100b15a4
lea ecx, [ebp - 0x8238]
call fcn.10003bda
push eax
lea ecx, [ebp - 0x8238]
call fcn.100350cd
push eax
push 0x1010a008
call fcn.10073f13
add esp, 0xc
lea ecx, [ebp - 0x8238]
call fcn.100105a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8234]
call fcn.100105a7
lea eax, [ebp - 0x4224]
push eax
push 0xffff
push str.index
push 0x100d0e2c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x8230], eax
cmp dword [ebp - 0x8230], 0xffff
je 0x100b15f7
mov eax, dword [ebp - 0x8230]
mov dword [0x1010e014], 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.10070c21
leave
ret
Function at 0x100b161b
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ba818
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100e93e0]
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.10003c04
and dword [ebp - 4], 0
push dword [ebp + 8]
push str.Global97ED6B7B_FABA_4282_B5E8_E5150894AB99
push 0x100d0c74
lea eax, [ebp - 0x10]
push eax
call fcn.10015f58
add esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.100350cd
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 0x100b16c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100b16c4
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100105a7
mov eax, dword [ebp - 0x14]
jmp 0x100b16d7
and dword [ebp - 0x18], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.100105a7
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
leave
ret 4
Function at 0x100b25fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x1c
call fcn.10070967
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x100b2625
push dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
call fcn.100016fc
mov dword [ebp - 0x10], eax
jmp 0x100b2629
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 0x10105194
push 0
push dword [ebp - 4]
push 0x100b2580
push 0
push 0
call fcn.10074506
add esp, 0x18
mov dword [0x10105190], eax
xor eax, eax
cmp dword [0x10105190], 0
setne al
mov dword [0x1010519c], eax
mov eax, dword [0x1010519c]
leave
ret 4

Function at 0x100b266f
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.100738a0
add esp, 0xc
push 0x104
push dword [ebp + 8]
push str.InstallerSvcEx2014
call fcn.10073f13
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 0x100b26c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b2770
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 0x100b26ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b2767
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x100b270c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b275e
mov dword [ebp - 0x10], 7
cmp dword [ebp - 0x10], 0
jle 0x100b275e
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 0x100b274a
cmp dword [ebp - 0x28], 4
jne 0x100b2748
jmp 0x100b275e
jmp 0x100b2755
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b275e
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x100b2713
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 0x100b2776
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 0x100b27a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100b27f0
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 0x100b27c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100b27e4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x100b27db
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 0x100b27f2
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 0x100b281f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100b288b
push 0
push 0
push 0
push 0
push 0x100d1208
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 0x100b2861
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100b287f
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 0x100b2cfa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100dd3d0
push 0x10078280
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100e93e0]
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.100b288d
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x210]
call fcn.100b288d
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x100b2e26
cmp dword [ebp - 0x28], 0
je 0x100b2e26
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
cmp eax, 0xe9
jne 0x100b2e26
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.1007141f
add esp, 0xc
test eax, eax
jne 0x100b2e26
push dword [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x20]
call fcn.1007141f
add esp, 0xc
test eax, eax
je 0x100b2e26
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 0x100b2e26
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x100b2e13
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 0x100b2e41
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 0x100b32f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100e93e0]
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.100738a0
add esp, 0xc
push 0x11c
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.100738a0
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 0x100b3375
mov dword [ebp - 0x228], 0x114
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b3375
xor eax, eax
jmp 0x100b3390
cmp dword [ebp - 0x224], 6
jne 0x100b338e
cmp dword [ebp - 0x220], 1
jb 0x100b338e
xor eax, eax
inc eax
jmp 0x100b3390
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10070c21
leave
ret

Function at 0x100b339c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100e93e0]
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.100738a0
add esp, 0xc
push 0x11c
push 0
lea eax, [ebp - 0x228]
push eax
call fcn.100738a0
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 0x100b3421
mov dword [ebp - 0x228], 0x114
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100b3421
xor eax, eax
jmp 0x100b343c
cmp dword [ebp - 0x224], 6
jne 0x100b343a
cmp dword [ebp - 0x220], 0
jne 0x100b343a
xor eax, eax
inc eax
jmp 0x100b343c
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10070c21
leave
ret

Function at 0x100b3448
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0
jne 0x100b3468
xor eax, eax
jmp 0x100b351d
and dword [ebp - 8], 0
call fcn.100b32e9
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 0x100b351b
cmp dword [ebp - 8], 0
je 0x100b351b
and word [ebp - 0x220], 0
push 0x20a
push 0
lea eax, [ebp - 0x21e]
push eax
call fcn.100738a0
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 0x100b350e
push 0x103
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0x10]
call fcn.10073f13
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x100b351d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x100b351d
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10070c21
leave
ret
Function at 0x100b3561
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bab1e
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100e93e0]
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.10003c04
and dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.100048c6
and word [ebp - 0x224], 0
push 0x20a
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.100738a0
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.10003cbb
lea ecx, [ebp - 0x228]
call fcn.10003bda
test eax, eax
jle 0x100b3648
lea eax, [ebp - 0x228]
push eax
call fcn.100b3529
pop ecx
push str.TencentQMDownload_
lea ecx, [ebp - 0x228]
call fcn.10009fe3
lea ecx, [ebp - 0x228]
call fcn.100350cd
push eax
call fcn.10009fb9
pop ecx
test eax, eax
jne 0x100b3648
push 0
lea ecx, [ebp - 0x228]
call fcn.100350cd
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.10003c1e
mov eax, dword [ebp - 0x22c]
or eax, 1
mov dword [ebp - 0x22c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.100105a7
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.10070c21
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e93e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x21c], 0
mov eax, dword [0x10105868]
and eax, 1
jne 0x100b36d5
mov eax, dword [0x10105868]
or eax, 1
mov dword [0x10105868], eax
mov ecx, 0x10105864
call fcn.10003c04
push 0x100c1cbe
call fcn.1007118b
pop ecx
mov ecx, 0x10105864
call fcn.10003bee
movzx eax, al
test eax, eax
je 0x100b375f
and word [ebp - 0x218], 0
push 0x20a
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.100738a0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x100d15dc
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, 0x10105864
call fcn.10003cbb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b375f
push 0
mov ecx, 0x10105864
call fcn.100350cd
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x10105864
mov ecx, dword [ebp + 8]
call fcn.10003c1e
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.10070c21
leave
ret