joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015a13
Capabilities:
Check if file exists
Get common file path
Query environment variable

Disassembly:
mov eax, 0x10048a64
call fcn.100464e0
sub esp, 0x420
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
jne 0x10015b22
mov edx, 0x82
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
mov word [ebp - 0x42c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x42a]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x220]
push esi
push eax
push str._appdata_TencentCommon
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10015a98
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x42c]
push ebx
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x42c]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10015b15
lea ecx, [ebp - 0x10]
call fcn.100026db
sub esp, 0x10
mov edi, eax
mov al, byte [ebp + 0xb]
mov esi, esp
mov dword [ebp - 0x14], esp
push ebx
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
call fcn.10001682
add esp, 0x10
push str.gjdatareport.dll
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.100460f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10015c0d
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x10048ab2
call fcn.100464e0
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 1
pop ebx
cmp eax, ebx
jle 0x10015c3a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10015d15
xor edi, edi
cmp dword [esi], edi
jne 0x10015d15
mov ecx, dword [esi + 8]
cmp ecx, edi
jne 0x10015c79
push 0x24
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x10015c66
call fcn.1002e335
jmp 0x10015c68
xor eax, eax
push dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], eax
mov ecx, eax
push dword [ebp + 0x14]
jmp 0x10015c7f
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1002e528
cmp dword [esi + 0xc], edi
jne 0x10015cad
push 0x58
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0x18], ecx
cmp ecx, edi
mov dword [ebp - 4], ebx
je 0x10015ca4
call fcn.10015e9a
jmp 0x10015ca6
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0xc], eax
cmp dword [esi + 0x10], edi
jne 0x10015cd6
push 0x6c
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0x18], ecx
cmp ecx, edi
mov dword [ebp - 4], 2
je 0x10015cd1
call fcn.10022079
jmp 0x10015cd3
xor eax, eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x24]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10015d15
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x10015d26
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x10015de5
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push esi
call fcn.10015e60
mov esi, eax
cmp dword [esi], 0xffffffff
jne 0x10015dfa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
pop esi
je 0x10015e0b
mov eax, dword [eax + 0xc]
ret
xor eax, eax
ret
Function at 0x100171c7
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10048d7f
call fcn.100464e0
sub esp, 0x214
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi], 0x1004d9f8
and dword [ebp - 4], 0
lea ebx, [esi + 4]
mov ecx, ebx
call sub.MFC42u.DLL_CString::CString_1
and word [ebp - 0x220], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x1004da10
mov byte [ebp - 4], 1
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x220]
mov ecx, ebx
push eax
call sub.MFC42u.DLL_CString::operator
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::Right
mov edi, 0x1005cd28
push edi
push dword [eax]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
mov dword [ebp - 0x10], eax
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
cmp dword [ebp - 0x10], 0
je 0x1001726f
push edi
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10017282
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10048d94
call fcn.100464e0
push esi
mov esi, dword [ebp + 8]
add ecx, 4
push esi
lea eax, [ebp + 8]
push ecx
push eax
call sub.MFC42u.DLL_operator
and dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100460f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::CString
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0xc]
pop esi
neg eax
sbb eax, eax
mov dword fs:[0], ecx
and eax, 2
leave
ret 4
Function at 0x1001934f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x100492f2
call fcn.100464e0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [edi + 4]
push eax
call fcn.100460c4
and dword [ebp - 4], 0
lea eax, [edi + 8]
push eax
lea ecx, [esi + 8]
call fcn.100460c4
lea eax, [edi + 0xc]
lea ecx, [esi + 0xc]
push eax
mov byte [ebp - 4], 1
call fcn.100460c4
lea eax, [edi + 0x10]
lea ecx, [esi + 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.100460c4
mov al, byte [edi + 0x14]
lea ecx, [esi + 0x1c]
mov byte [esi + 0x14], al
mov al, byte [edi + 0x15]
mov byte [esi + 0x15], al
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
lea eax, [edi + 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.10019490
lea eax, [edi + 0x2c]
lea ecx, [esi + 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.100460c4
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 5
call fcn.100460c4
mov eax, dword [edi + 0x34]
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], eax
lea eax, [edi + 0x38]
push eax
mov byte [ebp - 4], 6
call fcn.100460c4
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 7
call fcn.100460c4
lea eax, [edi + 0x40]
lea ecx, [esi + 0x40]
push eax
mov byte [ebp - 4], 8
call fcn.100460c4
mov eax, dword [edi + 0x44]
lea ecx, [esi + 0x48]
mov dword [esi + 0x44], eax
lea eax, [edi + 0x48]
push eax
mov byte [ebp - 4], 9
call fcn.100460c4
mov eax, dword [edi + 0x4c]
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], eax
lea eax, [edi + 0x50]
push eax
mov byte [ebp - 4], 0xa
call fcn.100460c4
lea eax, [edi + 0x54]
lea ecx, [esi + 0x54]
push eax
mov byte [ebp - 4], 0xb
call fcn.100460c4
mov eax, dword [edi + 0x58]
lea ecx, [esi + 0x5c]
mov dword [esi + 0x58], eax
lea eax, [edi + 0x5c]
push eax
mov byte [ebp - 4], 0xc
call fcn.100460c4
add edi, 0x60
lea ecx, [esi + 0x60]
push edi
mov byte [ebp - 4], 0xd
call fcn.100460c4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10019518
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push edi
push ecx
mov eax, dword [esi]
xor ebx, ebx
push 1
push ebx
push eax
mov dword [ebp - 4], 0x100
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0x10]
test eax, eax
jne 0x10019565
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 0xc]
push dword [ebp + 0x14]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10019565
mov bl, 1
jmp 0x10019577
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
pop ebx
leave
ret 0x10
Function at 0x1001983a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp dword [edi + 4], esi
jne 0x100198e3
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
push str.TSKSP
cmp eax, 5
jb 0x10019884
push str..Global_s
jmp 0x10019889
push str.._s
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push esi
push 0x80
push 3
push esi
push 1
pop esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100198cd
push eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100198e3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
je 0x100198e1
call ebx
cmp eax, 0x1f
jne 0x100198e3
mov dword [edi], esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001a36d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.SOFTWARETencentQQPCMgr
push SysStringLen
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001a3d4
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.SVCStart
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1001a3d4
xor eax, eax
cmp dword [ebp - 8], esi
sete al
jmp 0x1001a3d6
xor al, al
pop esi
leave
ret
Function at 0x1001c104
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp byte [esi + 0x14], 0
je 0x1001c127
push dword [ebx + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001c12e
xor al, al
jmp 0x1001c218
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
and byte [ebp + 0xb], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x210]
push 0xa
push eax
push dword [esi]
call dword [sym.imp.MSVCRT.dll__itow]
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x210]
mov ecx, ebx
push edi
push str.FailCount
push eax
call fcn.10014c2b
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x210]
push 0x1005d4fc
push eax
mov ecx, ebx
call fcn.10014c42
push edi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
mov dword [esp], 0x1005d304
push dword [esi + 0x24]
mov dword [ebp - 8], eax
call edi
pop ecx
test eax, eax
pop ecx
jne 0x1001c1cf
mov eax, dword [ebp - 4]
cmp dword [esi + 0x1c], eax
jg 0x1001c1e9
mov eax, dword [esi + 0x20]
imul eax, eax, 0x15180
add eax, ebx
cmp dword [ebp - 8], eax
jg 0x1001c1e9
mov byte [ebp + 0xb], 1
jmp 0x1001c214
push 0x1005d4f8
push dword [esi + 0x24]
call edi
pop ecx
test eax, eax
pop ecx
jne 0x1001c1ef
mov eax, dword [ebp - 4]
cmp dword [esi + 0x1c], eax
jle 0x1001c1c9
jmp 0x1001c1b9
and byte [ebp + 0xb], 0
jmp 0x1001c214
mov eax, dword [esi + 0x1c]
cmp eax, 0xffffffff
jne 0x1001c207
mov eax, dword [esi + 0x20]
imul eax, eax, 0x15180
add eax, ebx
cmp dword [ebp - 8], eax
jmp 0x1001c210
cmp dword [esi + 0x20], 0xffffffff
jne 0x1001c214
cmp eax, dword [ebp - 4]
setle byte [ebp + 0xb]
mov al, byte [ebp + 0xb]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1001c6a1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10049550
call fcn.100464e0
sub esp, 0x28c
push ebx
push esi
push edi
mov edx, ecx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
mov ecx, 0x82
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x296]
mov word [ebp - 0x298], bx
push 9
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x46]
push dword [edx + 0xc]
mov word [ebp - 0x48], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
push 0x1005c8f4
stosw word es:[edi], ax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x8c], 0x44
push eax
call esi
mov edi, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x10]
lea eax, [edi + 8]
push eax
call fcn.100460c4
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x10]
push eax
push str._Supplyid
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Replace
push dword [ebp - 0x10]
lea eax, [ebp - 0x298]
push dword [edi + 4]
push 0x1005c1c4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x8c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x298]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
je 0x1001c782
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x1001df59
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1004979d
call fcn.100464e0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call sub.MFC42u.DLL_CString::CString_1
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1001e1b9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x114
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x110], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x1001e1fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
push edi
mov esi, ecx
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
push dword [esi + 8]
stosd dword es:[edi], eax
push dword [esi]
mov ecx, 0x82
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x262]
mov word [ebp - 0x264], bx
push 0x1005c1c4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x264]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.MSVCRT.dll_swprintf]
mov edi, 0x1005d82c
push edi
push dword [esi]
call fcn.100021ab
push edi
push dword [esi]
call fcn.10001f84
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001e29f
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
jmp 0x1001e2d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
mov dword [ebp - 4], eax
jne 0x1001e2d5
call fcn.1001e1b9
test eax, eax
je 0x1001e2d5
mov eax, dword [esi + 8]
mov esi, dword [esi]
push ebx
push ebx
push eax
push esi
push str.runas
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jle 0x1001e2d5
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e2dd
Capabilities:
Create thread

Disassembly:
push esi
push edi
xor edi, edi
mov esi, ecx
cmp dword [esp + 0xc], edi
jne 0x1001e2f2
call fcn.1001e807
push dword [esi]
jmp 0x1001e2f6
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [esi + 0x24], eax
jne 0x1001e30d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001e323
lea eax, [esi + 0x2c]
push eax
push edi
push esi
push 0x1001eadb
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x28], eax
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x1001e807
Capabilities:
Copy file

Disassembly:
mov eax, 0x10049890
call fcn.100464e0
sub esp, 0x428
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x432]
mov word [ebp - 0x434], bx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x434]
mov dword [ebp - 0x18], esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::CString_2
push str.QQ.exe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x1001e97a
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call esi
cmp eax, ebx
je 0x1001e89a
push str.IsSupportNoReName
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1001e89a
call eax
test eax, eax
jne 0x1001e97a
push 1
lea ecx, [ebp - 0x10]
pop ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call fcn.100460c4
and word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 0x228]
mov byte [ebp - 4], bl
mov ebx, dword [sym.imp.MSVCRT.dll_swprintf]
push 0x1005c8f4
push eax
call ebx
add esp, 0xc
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x1001e941
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x20]
push dword [ebp - 0x18]
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.100460f4
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
inc dword [ebp - 0x1c]
and word [ebp - 0x228], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x226]
push dword [ebp - 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push 0x1005c8f4
push eax
jmp 0x1001e8da
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push dword [esi]
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x1001e963
mov eax, dword [esi]
push 0
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.100460f4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1001ed50
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push 0x80
push 3
mov eax, dword [esi]
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001edb5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push ebx
push 2
push ebx
push edi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp edi, ebx
mov dword [esi + 4], eax
je 0x1001edae
push dword [esi + 0xc]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x1001edae
push 1
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x1001ede5
Capabilities:
Delete file

Disassembly:
mov eax, 0x100498b8
call fcn.100464e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call sub.MFC42u.DLL_CString::CString_1
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
xor esi, esi
call fcn.1001eee0
mov edi, eax
cmp edi, ebx
je 0x1001ee4a
cmp dword [edi], 0x4034b50
jne 0x1001ee4a
call fcn.100334d8
mov esi, eax
cmp esi, ebx
je 0x1001ee4a
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp - 0x10]
push edi
push esi
call dword [eax]
cmp eax, ebx
jne 0x1001ee66
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
cmp dword [eax - 8], ebx
je 0x1001ee59
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x1001ee63
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov ebx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x1002113d
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.RT_RCDATA
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
je 0x100211ac
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x100211ac
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x100211ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x100211ac
push edi
push 0x80
push 2
push edi
push 1
push 0x10000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100211b0
xor eax, eax
jmp 0x100211d0
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100211c7
push 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret