joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f6c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x22c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x234], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003f715
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1003f764
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop
push dword [ebp - 0x234]
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x1003f781
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x1003f740
xor ebx, ebx
pop edi
test esi, esi
je 0x1003f76f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ebx, 1
jmp 0x1003f763
Function at 0x1003f860
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x808], 0x400
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x80c], 0
xor esi, esi
push eax
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_pathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003f909
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push 0x10067498
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x80c]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1003f975
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x808], 0x400
push eax
push 1
push esi
push str.SoftwareMicrosoftIE_SetupSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003f96d
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push esi
push esi
push str.Path
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x80c]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003fa18
push 0x200
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jle 0x1003fa18
push str.iexplore.exe
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1003f9df
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xc
push str.iexplore.exe
lea eax, [ebp - 0x404]
push 0x200
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
cmp word [ebp - 0x404], 0
jne 0x1003f9ed
xor ecx, ecx
jmp 0x1003fa05
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f9f6
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x404]
push eax
call fcn.10002e00
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003fae0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
lea eax, [ebp - 0x30]
push eax
xor ebx, ebx
mov dword [ebp - 0xc], 0
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor esi, esi
mov word [ebp - 0x10], 0x500
push eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x28], 0
movups xmmword [ebp - 0x27], xmm0
mov word [ebp - 0x17], si
mov byte [ebp - 0x15], 0
call edi
test eax, eax
je 0x1003fc48
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
je 0x1003fc48
push dword [ebp - 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_GetLengthSid]
call edi
push dword [ebp - 0x2c]
mov esi, eax
call edi
lea edi, [eax + 0x18]
add edi, esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1003fc48
push 2
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x1003fc48
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAceEx]
push 0x20019
push 3
push 2
push esi
call edi
test eax, eax
je 0x1003fc48
push dword [ebp - 0x30]
push 0xf003f
push 3
push 2
push esi
call edi
test eax, eax
je 0x1003fc48
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1003fc48
push ebx
push esi
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1003fc48
lea eax, [ebp - 0x34]
push eax
push 0x40000
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003fc48
lea eax, [ebp - 0x28]
push eax
push 4
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1003fc56
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1003fc6a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_FreeSid]
test eax, eax
je 0x1003fc7a
push eax
call esi
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x1003fc84
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x1003ff60
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
jmp 0x1003ff60
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x10067714]
movups xmm0, xmmword [str.SOFTWARETencentQQPCMgr]
push 0
mov word [ebp - 0x40], ax
mov eax, dword [0x1006a1e8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x78]
push eax
push 0
movups xmmword [ebp - 0x70], xmm0
push 2
movups xmm0, xmmword [0x100676f4]
push 0
push 0
movups xmmword [ebp - 0x60], xmm0
push 0
movups xmm0, xmmword [0x10067704]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], 0
push eax
movups xmmword [ebp - 0x50], xmm0
push reloc.OLEAUT32.dll_SysReAllocString
movups xmm0, xmmword [str.autostart]
mov dword [ebp - 0x74], 0
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1004000c
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
je 0x10040043
call fcn.1003fae0
test eax, eax
je 0x10040043
push str._QQPCTray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100408b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x21c], eax
push 0x20c
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], edx
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x10040a46
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x10040a46
test ebx, ebx
je 0x10040a46
xor ecx, ecx
cmp cx, word [ebx]
je 0x10040a46
cmp dword [ebp + 0x10], ecx
je 0x1004097d
push ecx
push 0x23
lea eax, [ebp - 0x210]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10040a46
push 0xffffffffffffffff
push str.TENCENTQQPCMGR
lea eax, [ebp - 0x210]
push 0x106
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x20
neg eax
sbb eax, eax
inc eax
jmp 0x10040986
mov edx, eax
mov ecx, esi
call fcn.1003ebc0
test eax, eax
je 0x10040a48
push 0xffffffffffffffff
push dword [ebp - 0x21c]
xor ebx, ebx
push dword [ebp - 0x218]
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
push 0x80
push 4
push ebx
push ebx
test eax, eax
mov ecx, 1
push 0x40000000
cmove edi, ecx
push esi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100409e4
mov dword [ebp - 0x218], ebx
jmp 0x10040a18
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp - 0x220]
lea eax, [ebp - 0x214]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test edi, edi
je 0x10040a1f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x218], 0
je 0x10040a33
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10040bb0
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov dword [ebp - 0x21c], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
mov edi, ecx
push 0x20c
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov dword [ebp - 0x214], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x10040c5e
push 0
push 0x23
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10040c83
push 0xffffffffffffffff
push str.TENCENTQQPCMGR
lea eax, [ebp - 0x210]
push 0x106
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x20
neg eax
sbb eax, eax
add eax, 1
jne 0x10040caa
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10040c83
test ebx, ebx
je 0x10040c83
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x10040c95
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10040c83
xor ecx, ecx
mov word [eax], cx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x218]
xor esi, esi
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push esi
push 0x80
push 3
push esi
push esi
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10040d6e
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10040d6e
cmp ebx, 0xffffffff
je 0x10040d6e
xor ecx, ecx
mov edx, 2
mul edx
push 0x1007da74
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005be25
add esp, 8
mov dword [ebp - 0x218], eax
test eax, eax
je 0x10040d6e
lea esi, [ebx + ebx]
push esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x218]
lea eax, [ebp - 0x214]
add esp, 0xc
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
test esi, esi
je 0x10040d65
push dword [ebp - 0x21c]
xor esi, esi
push ebx
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
mov ecx, 1
test eax, eax
cmovne esi, ecx
push ebx
call fcn.1005be17
add esp, 4
test edi, edi
je 0x10040d79
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10040d90
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ebx, edx
push 0x20c
mov dword [ebp - 0x218], eax
mov edi, ecx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 0
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp + 0x14], esi
je 0x10040e44
push esi
push 0x23
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10040f48
push 0xffffffffffffffff
push str.TENCENTQQPCMGR
lea eax, [ebp - 0x210]
push 0x106
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x20
neg eax
sbb eax, eax
add eax, 1
jne 0x10040e8e
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10040f48
test ebx, ebx
je 0x10040f48
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push ebx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10040f48
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x10040f48
xor ecx, ecx
mov word [eax], cx
push 0xffffffffffffffff
push dword [ebp - 0x218]
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10040f3d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x10040f3d
cmp esi, dword [ebp + 0xc]
ja 0x10040f3d
xor ecx, ecx
mov edx, 2
mul edx
push 0x1007da74
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1005be25
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10040f3d
lea eax, [esi + esi]
push eax
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x214]
push 0
push eax
lea eax, [esi + esi]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10040f34
lea eax, [esi + esi]
push eax
push ebx
push dword [ebp - 0x21c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call fcn.1005be17
add esp, 4
test edi, edi
je 0x10040f48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10040f70
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x214], eax
test edi, edi
je 0x100410fc
test ebx, ebx
jle 0x100410fc
lea eax, [ebx + ebx]
push eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
je 0x10040fd0
xor eax, eax
cmp ax, word [esi]
je 0x10040fd0
push 0xffffffffffffffff
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
jmp 0x10040fef
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100410fc
cmp eax, 0x104
ja 0x100410fc
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.Dr_x.drt
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1000f290
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
push edi
call esi
mov ecx, 0x5c
cmp cx, word [edi + eax*2 - 2]
je 0x10041077
push edi
call esi
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x10067494
call eax
add esi, eax
cmp esi, ebx
jge 0x100410fc
push 0xffffffffffffffff
push 0x10067494
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x100410af
xor ecx, ecx
cmp cx, word [eax]
je 0x100410af
push eax
call esi
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call eax
add esi, eax
cmp esi, ebx
jge 0x100410fc
mov eax, dword [ebp - 0x214]
mov edx, ebx
push ecx
push eax
mov ecx, edi
call fcn.1003e7a0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
cmp esi, ebx
jge 0x100410fc
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x10041420
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
mov edi, ecx
test edi, edi
je 0x10041439
xor eax, eax
cmp ax, word [edi]
je 0x10041439
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1004143d
xor eax, eax
pop edi
ret
push ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1004146c
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
xor eax, eax
pop edi
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0xffffffffffffffff
inc eax
push edi
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
mov eax, 1
pop edi
ret

Function at 0x100414b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
lea eax, [ebp - 0x210]
mov esi, edx
push 0
push eax
mov edi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x1004157f
test esi, esi
je 0x1004157f
push 0
push 0x23
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1004157f
push 0xffffffffffffffff
push str.TencentQQDoctor_
lea eax, [ebp - 0x210]
push 0x105
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea ecx, [ebp - 0x210]
add esp, 0x10
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041530
sub ecx, edx
sar ecx, 1
cmp ecx, esi
ja 0x1004157f
lea ecx, [ebp - 0x210]
call fcn.10043020
test eax, eax
je 0x1004157f
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0x104
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
Function at 0x100418d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0xa
push str.dnsapi.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10041965
push str.DnsFlushResolverCache
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004195e
call eax
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret

Function at 0x10041b50
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1007b00c]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
mov dword [esp], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
push 0x28
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10041bca
lea eax, [esp + 4]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10041bdb
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp]
test eax, eax
je 0x10041bc4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 5
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret