joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dd00
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x49e5b0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x805c]
mov eax, 0x805c
call fcn.00436a20
push 0xffffffffffffffff
push 0x4b8fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4e70ac]
xor eax, ebp
mov dword [ebp + 0x8058], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x8064]
mov eax, dword [ebp + 0x8068]
xor esi, esi
push esi
push esi
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x10], esi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x49e650
push 0x4cc330
push esi
push 0x1ae
push str..QHMD5.cpp
call fcn.0049d590
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
lea edx, [ebp + 0x58]
push edx
push edi
call ebx
test eax, eax
jne 0x49e684
push 0x4cc30c
push eax
push 0x1b1
push str..QHMD5.cpp
call fcn.0049d590
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x49e69c
push esi
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0049e3e0
cmp esi, 0x8000
je 0x49e656
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp]
push edx
push eax
call fcn.0049e4a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8058]
xor ecx, ebp
call fcn.0043640c
add ebp, 0x805c
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2d50
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 4], 0
jne 0x4a2d6a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x4a4220
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x4a4252
xor ecx, ecx
jmp 0x4a425e
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
mov esi, ecx
test ecx, ecx
je 0x4a4311
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, dword [esi]
cmp dword [esp + 0x14], eax
jne 0x4a4284
mov dword [esp + 0x10], esi
jmp 0x4a42e4
push eax
push 1
push 0x40
call ebx
test eax, eax
jne 0x4a42dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a42d0
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x4a42e4
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4a42e4
push 0x4cd3b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4a42e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x4a4307
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x4a4276
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
test eax, eax
jne 0x4a4325
mov ecx, dword [edi]
add ecx, 8
call fcn.004a40a0
test eax, eax
je 0x4a4325
mov edx, dword [esp + 0xc]
mov dword [eax], edx
pop edi
pop esi
add esp, 8
ret
Function at 0x4a4340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b93c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
jne 0x4a438c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4a4399
mov dword [ebp - 0x14], ebx
jmp 0x4a43ab
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x4a4445
mov eax, dword [esi]
mov eax, dword [eax]
cmp eax, ebx
je 0x4a4378
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4a4378
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004a4220
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
jne 0x4a43e8
push 0x4e1960
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.00436588
mov eax, dword [esi]
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4a43fe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, ebx
jne 0x4a4434
push 0x4e1960
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 4
call fcn.00436588
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4a4428
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
push eax
add ecx, 8
call fcn.004a4180
mov eax, 0x4a442e
ret
mov esi, dword [esi]
mov eax, dword [esi]
test eax, eax
je 0x4a4443
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a4460
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x4b93eb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.00436ad0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x18], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x4a44fb
push 0x4e1960
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.00436588
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4a4570
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov ecx, 0x4ed528
jmp fcn.004a4340
Function at 0x4a47a0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4a47d4
push str.SetFilePointerEx__
push eax
push 0xed
push str..QHImageHlp.c
call fcn.0049d640
add esp, 0x10
xor eax, eax
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 8]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4a4807
push str.ReadFile__
push eax
push 0xf0
push str..QHImageHlp.c
call fcn.0049d640
add esp, 0x10
xor eax, eax
ret
cmp edi, dword [esp + 4]
je 0x4a4829
push 0x4cd444
push 1
push 0xf2
push str..QHImageHlp.c
call fcn.0049d6b0
add esp, 0x10
xor eax, eax
ret
mov eax, 1
ret
Function at 0x4a5ef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x4a7030
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4a7060
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x4a7090
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x90a400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x345000]
push edi
or ebp, 0xffffffff
jmp 0x90a422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x90a429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x90a418
mov eax, 1
add ebx, ebx
jne 0x90a43b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x90a44c
jne 0x90a46b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x90a46b
dec eax
add ebx, ebx
jne 0x90a458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x90a430
add ebx, ebx
jne 0x90a467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x90a4bd
xor ecx, ecx
sub eax, 3
jb 0x90a483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x90a4f2
sar eax, 1
mov ebp, eax
jmp 0x90a48e
add ebx, ebx
jne 0x90a48e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x90a45c
inc ecx
add ebx, ebx
jne 0x90a49c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x90a45c
add ebx, ebx
jne 0x90a4a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x90a49e
jne 0x90a4ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x90a49e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x90a4dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x90a4ce
jmp 0x90a41e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x90a4dc
add edi, ecx
jmp 0x90a41e
pop esi
mov edi, esi
mov ecx, 0xc35a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x90a4fa
cmp byte [edi], 0x2a
jne 0x90a4fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x90a4ff
lea edi, [esi + 0x507000]
mov eax, dword [edi]
or eax, eax
je 0x90a577
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x50e934]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x50ea74]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x90a52c
mov ecx, edi
jns 0x90a55b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x50ea78]
or eax, eax
je 0x90a571
mov dword [ebx], eax
add ebx, 4
jmp 0x90a549
call dword [esi + 0x50ea88]
mov ebp, dword [esi + 0x50ea7c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x90a5ab
sub esp, 0xffffff80
jmp 0x587e13
Function at 0x402450
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa20
mov eax, dword [0x40b020]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x488], 0
jne 0x402474
jmp 0x4025c3
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov edx, dword [ebp - 0x814]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push 0x400
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.MSVCR80.dll__vsnwprintf_s]
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4024ae
mov word [ebp - 0x12], 0
mov dword [ebp - 0x814], 0
push 0x400
push 0x408608
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCR80.dll_wcsncat]
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0x484], 0
jne 0x40258c
mov word [ebp - 0xa20], 0
push 0x206
push 0
lea ecx, [ebp - 0xa1e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0xa20]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.AppPrefLog.log
lea ecx, [ebp - 0xa20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0xa20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x484], eax
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x818], eax
push 0
push 0
mov ecx, dword [ebp - 0x818]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.MSVCR80.dll_wcslen]
add esp, 4
shl eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x484]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00404b40
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x13c8
call fcn.00407140
mov eax, dword [0x40b020]
xor eax, esp
mov dword [esp + 0x13c4], eax
mov eax, dword [esp + 0x13cc]
push ebp
xor ebp, ebp
push 0xf9c
lea ecx, [esp + 0x1c]
push ebp
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0xfc6]
push ebp
push edx
mov dword [esp + 0x1c], ebp
mov word [esp + 0xfcc], bp
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [esp + 4]
push eax
push 0xfa0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x14], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x403871
mov eax, dword [esp + 4]
cmp eax, ebp
je 0x403871
push ebx
push esi
shr eax, 2
push edi
mov dword [esp + 0x1c], eax
mov edi, ebp
je 0x4037e4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edx, dword [esp + edi*4 + 0x20]
push edx
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x4037d7
push 0x208
lea eax, [esp + 0xfc4]
push ebp
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4037d0
mov ecx, dword [esp + 0x14]
push 0x104
lea eax, [esp + 0xfc4]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x4037d0
push 0x408864
lea edx, [esp + 0xfc4]
push edx
call ebx
test eax, eax
je 0x4037ff
push str.QQPCTray.exe
lea eax, [esp + 0xfc4]
push eax
call ebx
test eax, eax
je 0x4037ff
push str.QQPCRTP.exe
lea ecx, [esp + 0xfc4]
push ecx
call ebx
test eax, eax
je 0x4037ff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 1
cmp edi, dword [esp + 0x1c]
jb 0x403730
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x13c4]
xor ecx, esp
call fcn.00404b40
add esp, 0x13c8
ret
push 0x208
lea edx, [esp + 0x11ce]
push ebp
push edx
mov word [esp + 0x11d4], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [esp + 0x11cc]
push eax
push ebp
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [esp + 0x11c8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x11c8]
push edx
mov ecx, esi
call dword [0x408170]
push 0x4086fc
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, 1
jmp 0x4037e6
mov ecx, dword [esp + 0x13c8]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00404b40
add esp, 0x13c8
ret
Function at 0x404430
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x404457
xor eax, eax
jmp 0x4044a4
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x404493
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax], 0
xor eax, eax
jmp 0x4044a4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x30], 0
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x31], 0
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push str.SOFTWARETencentQQPCMgr
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4046ec
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push str.EnableLogToView
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4046e2
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x4046d3
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x30], 1
mov edx, dword [ebp - 0xc]
and edx, 2
je 0x4046e2
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x31], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x404720
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp - 0x214]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x103
lea edx, [ebp - 0x210]
push edx
push str._APPDATA_TencentQQPCMgr_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404791
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4047d7
lea ecx, [ebp - 0x210]
push ecx
push 0x103
mov edx, dword [ebp - 0x214]
add edx, 4
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 0xffffffffffffffff
push str.ErrLogFile.log
push 0x104
mov eax, dword [ebp - 0x214]
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_wcsncat_s]
add esp, 0x10
jmp 0x4047f9
push 0x103
push str.C:ErrLogFile.log
push 0x103
mov ecx, dword [ebp - 0x214]
add ecx, 4
push ecx
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x214]
mov esp, ebp
pop ebp
ret

Function at 0x404810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x38], 0
xor eax, eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 2]
push edx
movzx eax, word [ebp - 4]
push eax
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.__4d___02d:_02d:_02d._03d_
push 0xffffffffffffffff
push 0x20
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
add esp, 0x24
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x4048a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x4c], ecx
cmp dword [ebp + 8], 0
jne 0x4048b4
jmp 0x4049b6
mov eax, dword [ebp - 0x4c]
cmp dword [eax], 0
jne 0x4048f1
push 0
push 0x20
push 4
push 0
push 3
push 0xc0000000
mov ecx, dword [ebp - 0x4c]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x4c]
mov dword [edx], eax
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
cmp dword [eax], 0
setne cl
test ecx, ecx
jne 0x4048f1
jmp 0x4049b6
mov dword [ebp - 8], 0
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x404918
cmp dword [ebp - 8], 0x2000000
jbe 0x40491d
jmp 0x4049b6
mov dword [ebp - 0x10], 0
push 2
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x4c]
call fcn.00404810
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov cl, byte [eax]
mov byte [ebp - 0x55], cl
add dword [ebp - 0x50], 1
cmp byte [ebp - 0x55], 0
jne 0x404956
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x54]
mov dword [ebp - 0x5c], edx
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dx, word [0x408d58]
mov word [ebp - 0xc], dx
mov al, byte [0x408d5a]
mov byte [ebp - 0xa], al
push 0
lea ecx, [ebp - 4]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret 4

Function at 0x404b40
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b020]
jne 0x404b4a
repz ret
jmp fcn.00404f6f

Function at 0x405fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x405ff3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
push 2
push 1
push 0x408d58
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
mov esp, ebp
pop ebp
ret 8