joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42db90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
push 0
push 0x80
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0x40000000
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42dc89
mov dword [ebp - 0x18], 0x100000
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00414e65
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0
jne 0x42dc71
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42dc71
cmp dword [ebp - 0x10], 0
jbe 0x42dc71
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42dc50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00414840
add esp, 0xc
jmp 0x42dbf7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call fcn.00414d88
add esp, 4
jmp 0x42dc92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x42dd30
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42dd70
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42dd7d
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x42dd90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 4
mov dword [ebp - 0xc], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 8]
push ecx
push 0xf003f
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42de22
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x42de22
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x42de30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42de8f
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4156cb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41570a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41570a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41570a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41570a
cmp dword [ecx + 0x74], 0xe
jbe 0x41570a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4013b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46d629
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48a9f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], eax
mov dword [esp + 0x18], esi
mov byte [esi + 4], al
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x14]
lea ebx, [eax + eax + 2]
push ebx
mov dword [esp + 0x18], 1
call fcn.00449e3a
push ebx
mov ebp, eax
push 0
push ebp
call fcn.004463d0
add esp, 0x10
cmp dword [edi + 0x18], 8
jb 0x401428
mov edi, dword [edi + 4]
jmp 0x40142b
add edi, 4
push 0
push 0
push ebx
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x401459
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401447
sub eax, edx
push eax
push ebp
mov ecx, esi
call fcn.00401ad0
push ebp
call fcn.00449d7b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4039b8
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3d0]
sub esp, 0x450
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x3cc], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x44], ax
xor edi, edi
lea eax, [ebp - 0x42]
push edi
push eax
call fcn.004463d0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
push esi
mov word [ebp + 0x1c4], ax
lea eax, [ebp + 0x1c6]
push edi
push eax
call fcn.004463d0
push str.TencentQQMicroGameBoxLaunch.exe
lea eax, [ebp - 0x44]
push eax
push str._s_s
lea eax, [ebp + 0x1c4]
push 0x103
push eax
call fcn.00448543
add esp, 0x20
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403a80
push 0x38
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.004463d0
lea eax, [ebp + 0x1c4]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov al, 1
jmp 0x403a82
xor al, al
mov ecx, dword [ebp + 0x3cc]
pop edi
xor ecx, ebp
pop esi
call fcn.004463b6
add ebp, 0x3d0
leave
ret
Function at 0x40495c
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x46aef7
call fcn.004489fc
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 4], edi
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x4014]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CHttpRequestCommand_class_CCheckUpdate_.0
call fcn.004014e0
mov eax, dword [ebp + 0x24]
push edi
push 4
push esi
push 0x403e91
push edi
push edi
mov dword [esi + 0x4030], eax
mov dword [esi + 8], edi
call fcn.00449275
add esp, 0x18
push edi
push 1
lea ecx, [ebp + 8]
mov dword [esi + 0xc], eax
call fcn.00401870
mov eax, esi
call fcn.00448ad4
ret 0x20

Function at 0x4049c5
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4049d7
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x404b40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x624
lea ebp, [esp - 4]
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x624], eax
push 0x24
mov eax, 0x46af58
call fcn.004489fc
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x630]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], ebx
call fcn.004015d0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push str.SoftwareTencentQQMicroGameBox_
push reloc.WS2_32.dll_accept
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404d19
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor eax, eax
mov edi, 0x208
push edi
mov word [ebp + 0x418], ax
lea eax, [ebp + 0x41a]
push ebx
push eax
call fcn.004463d0
add esp, 0xc
cmp dword [ebp - 0x14], ebx
je 0x404d10
mov dword [ebp - 0x18], ebx
jbe 0x404d10
mov esi, 0x104
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x418]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
jne 0x404d01
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], ebx
je 0x404c31
push 0x46e85c
call fcn.0040491a
xor eax, eax
push edi
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], esi
call fcn.004463d0
xor eax, eax
push edi
mov word [ebp + 0x20c], ax
lea eax, [ebp + 0x20e]
push ebx
push eax
call fcn.004463d0
lea eax, [ebp + 0x418]
push eax
push str.SoftwareTencentQQMicroGameBox_
push 0x47b464
lea eax, [ebp + 0x20c]
push esi
push eax
call fcn.004038ae
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
cmp byte [eax + 0x9d], bl
je 0x404cb2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x418]
push eax
call fcn.0040491a
mov ecx, dword [ebp - 0x10]
push 0x46e858
call fcn.0040491a
push str.0.0.0.0
jmp 0x404cf9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x46e578
lea eax, [ebp + 0x20c]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404d01
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x418]
push eax
call fcn.0040491a
mov ecx, dword [ebp - 0x10]
push 0x46e858
call fcn.0040491a
lea eax, [ebp]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0040491a
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jb 0x404bf9
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.004463b6
add ebp, 0x628
leave
ret 4
Function at 0x404d9f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x404dcb
xor eax, eax
inc eax
jmp 0x404e59
push esi
push 0x228
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004463d0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push edi
mov dword [ebp - 0x24c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404e4f
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20]
call fcn.004031f0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x404e1f
lea eax, [ebp - 0x1c]
push str.QQMicroGameBox.exe
push eax
call fcn.00449436
pop ecx
pop ecx
test eax, eax
je 0x404e66
lea eax, [ebp - 0x24c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
push 0
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00401a20
test esi, esi
jne 0x404dfd
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004463b6
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a20
xor eax, eax
inc eax
jmp 0x404e58
Function at 0x405c43
Capabilities:
Set registry value

Disassembly:
push 0x48
mov eax, 0x46b1c6
call fcn.004489fc
mov esi, ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.004014a0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp + 0x10], str.succeed
cmp dword [ebp + 0xc], edi
jne 0x405c74
mov dword [ebp + 0x10], str.failed
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.004012d0
pop ecx
pop ecx
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 8
mov byte [ebp - 4], bl
jb 0x405c94
mov eax, dword [eax + 4]
jmp 0x405c97
add eax, 4
push eax
push dword [ebp + 0x10]
push str.Download_package:__s__FileName:__s_
call fcn.004053cd
push eax
call fcn.004047c2
add esp, 0x10
push edi
push ebx
lea ecx, [ebp - 0x54]
call fcn.00401a20
or dword [ebp - 4], 0xffffffff
push edi
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401870
cmp dword [ebp + 0xc], edi
je 0x405e31
lea edi, [esi + 0x268]
mov ecx, edi
call fcn.00408354
cmp eax, ebx
jbe 0x405d4b
cmp byte [esi + 0x48], 0
jne 0x405d4b
inc dword [0x48c164]
mov ecx, edi
call fcn.00408354
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
test eax, eax
jge 0x405d03
fadd qword [0x46eba0]
fld1
mov eax, dword [0x48c164]
fdivrp st(1)
fild dword [0x48c164]
test eax, eax
jge 0x405d1c
fadd qword [0x46eba0]
fmulp st(1)
fstp qword [ebp - 0x1c]
call fcn.00419b4c
fld qword [ebp - 0x1c]
mov edx, dword [eax]
push ecx
push ecx
mov ecx, eax
fstp qword [esp]
call dword [edx + 8]
mov ecx, edi
call fcn.00408354
cmp dword [0x48c164], eax
jne 0x405d4b
and dword [0x48c164], 0
lea edi, [esi + 0x28c]
push edi
push dword [edi + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00409939
push edi
push dword [edi + 0x10]
jmp 0x405d7e
lea ecx, [ebp - 0x14]
call fcn.00403b01
mov eax, dword [eax]
cmp eax, dword [ebp + 8]
je 0x405d98
lea ecx, [ebp - 0x14]
call fcn.00403b2d
push edi
push dword [edi + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00409939
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407d66
test al, al
je 0x405d63
jmp 0x405da9
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x14]
mov ecx, edi
push eax
call fcn.004048e9
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
test eax, 0xfffffffc
jne 0x405e56
lea ecx, [esi + 0x268]
call fcn.0040f5fa
xor eax, eax
cmp dword [esi + 0x4c], eax
je 0x405dd6
push eax
mov dword [esi + 0x130c], ebx
push eax
jmp 0x405e1e
lea edi, [esi - 0x54]
mov ecx, edi
call fcn.00404d9f
cmp eax, ebx
jne 0x405e1a
push str.App_process_running__update_package_next_time.
call fcn.004053cd
push eax
call fcn.004047c2
pop ecx
pop ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push str.UpdateFlag
push str.SoftwareTencentQQMicroGameBox_
push reloc.WS2_32.dll_accept
mov dword [ebp + 0xc], ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, edi
jmp 0x405e51
push 0
push 0
push 0xbcf
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x405e56
cmp dword [esi + 0x4c], edi
je 0x405e4e
cmp byte [esi + 0x48], 0
jne 0x405e4e
push edi
push 0x46eb1c
push 0x46eaf4
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x54]
call fcn.00405652
call fcn.00448ad4
ret 0xc
Function at 0x406a9e
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x46b27f
call fcn.004489fc
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 4], edi
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CHttpMultiDlCommand_class_CCheckUpdate_.0
call fcn.004014e0
lea eax, [ebp + 0x24]
push eax
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 3
call fcn.004014e0
fild dword [ebp + 0x44]
mov eax, dword [ebp + 0x44]
test eax, eax
jge 0x406aed
fadd qword [0x46eba0]
mov eax, dword [ebp + 0x40]
fstp qword [esi + 0x60]
push edi
push 4
push esi
push 0x4065a0
push edi
push edi
mov dword [esi + 0x68], eax
call fcn.00449275
mov dword [esi + 0xc], eax
add esp, 0x18
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.00401870
push edi
push 1
lea ecx, [ebp + 0x24]
call fcn.00401870
mov eax, esi
call fcn.00448ad4
ret 0x40
Function at 0x416a53
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00448db0
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, 0x7fe
push edi
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.004463d0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x400
push 0xffffffffffffffff
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.004466f6
xor eax, eax
push edi
push eax
mov word [ebp - 0x1004], ax
lea eax, [ebp - 0x1002]
push eax
call fcn.004463d0
lea eax, [ebp - 0x804]
push eax
push str._ctgame__s
push 0xffffffffffffffff
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00448d88
add esp, 0x40
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004463b6
leave
ret

Function at 0x416bf9
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x5dc]
sub esp, 0x65c
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x5d8], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x44], ax
xor edi, edi
lea eax, [ebp - 0x42]
push edi
push eax
call fcn.004463d0
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
push esi
mov word [ebp + 0x3d0], ax
lea eax, [ebp + 0x3d2]
push edi
push eax
call fcn.004463d0
xor eax, eax
push 0x208
mov word [ebp + 0x1c4], ax
lea eax, [ebp + 0x1c6]
push edi
push eax
call fcn.004463d0
push str.TencentQQMicroGameBoxLaunch.exe
lea eax, [ebp - 0x44]
push eax
push str._s_s
mov esi, 0x103
lea eax, [ebp + 0x3d0]
push esi
push eax
call fcn.004038cd
push str._fromupdate
lea eax, [ebp + 0x1c4]
push eax
push 0x46e620
push esi
push eax
call fcn.004038ae
add esp, 0x40
lea eax, [ebp + 0x3d0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416cfb
push 0x38
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.004463d0
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x1c4]
mov dword [ebp - 0x6c], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov al, 1
jmp 0x416cfd
xor al, al
mov ecx, dword [ebp + 0x5d8]
pop edi
xor ecx, ebp
pop esi
call fcn.004463b6
add ebp, 0x5dc
leave
ret
Function at 0x4173ea
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x417415
xor eax, eax
jmp 0x4174a3
push esi
push 0x228
lea eax, [ebp - 0x248]
push 0
push eax
call fcn.004463d0
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push edi
mov dword [ebp - 0x24c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x417499
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x20]
call fcn.004031f0
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x417469
lea eax, [ebp - 0x1c]
push str.QQMicroGameBoxTray.exe
push eax
call fcn.00449436
pop ecx
pop ecx
test eax, eax
je 0x4174b0
lea eax, [ebp - 0x24c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
push 0
push 1
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00401a20
test esi, esi
jne 0x417447
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004463b6
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a20
xor eax, eax
inc eax
jmp 0x4174a2
Function at 0x417fb8
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x48a9f8]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
cmp dword [esi + 0x18], 8
push edi
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], eax
lea edi, [esi + 4]
jb 0x417ff4
mov eax, dword [edi]
jmp 0x417ff6
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418024
cmp dword [esi + 0x18], 8
jb 0x418009
mov edi, dword [edi]
push edi
push str._s_file_not_exists
call fcn.004053cd
push eax
call fcn.004047c2
add esp, 0xc
xor al, al
jmp 0x41810c
cmp dword [esi + 0x18], 8
jb 0x41802c
mov edi, dword [edi]
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x418109
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x418102
cmp esi, 0xffffffff
je 0x418102
push esi
call fcn.00449e3a
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x418102
push ebx
lea ecx, [ebp - 0x80]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x7c], ebx
je 0x418109
xor eax, eax
push 0x206
mov word [ebp - 0x6c], ax
lea eax, [ebp - 0x6a]
push ebx
push eax
call fcn.004463d0
mov ecx, dword [ebp - 0x70]
add esp, 0xc
push 0x103
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x78]
call fcn.004167f9
test al, al
je 0x418109
lea eax, [ebp - 0x6c]
push eax
push 0x4709d8
call fcn.004053cd
push eax
call fcn.004047c2
mov eax, dword [ebp - 0x74]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4180f1
mov eax, dword [eax + 4]
jmp 0x4180f4
add eax, 4
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.00416957
pop ecx
pop ecx
jmp 0x41810b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp + 0x19c]
pop edi
xor ecx, ebp
pop esi
call fcn.004463b6
add ebp, 0x1a0
leave
ret 8
Function at 0x4187aa
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
je 0x4187e2
cmp byte [esi + 0xce], bl
jne 0x4187ca
push 1
push dword [esp + 0x10]
call fcn.0041aa53
pop ecx
pop ecx
push ebx
push ebx
push esi
push 0x418798
push ebx
push ebx
call fcn.00449275
add esp, 0x18
mov dword [esi + 0xc8], eax
xor eax, eax
cmp dword [esi + 0xc8], 0xffffffff
pop esi
setne al
pop ebx
ret 4