joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404733
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
mov esi, eax
call edi
mov ebx, 0xff00
and ax, bx
cmp ax, bx
je 0x404763
push 2
call edi
and ax, bx
cmp ax, bx
je 0x404763
push 1
push esi
call fcn.0040482a
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_KillTimer]
call fcn.00404372
mov edi, eax
test edi, edi
je 0x404793
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404793
push dword [esp + 0x10]
mov eax, dword [edi]
push 0
push 0
push edi
call dword [eax + 0x28]
pop edi
pop esi
xor eax, eax
pop ebx
ret 4

Function at 0x4063c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4063d7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40640c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x406408
cmp edi, eax
jae 0x40640c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4063fa
cmp edi, eax
jb 0x406410
xor eax, eax
jmp 0x40641a
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x407382
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x430084]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00410da0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x4073d6
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x4073e4
cmp dword [ebp - 0x7c], 6
jne 0x4073e4
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x4073e6
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.00411325
add ebp, 0xa0
leave
ret
Function at 0x40748e
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x430084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
cmp edi, esi
je 0x407650
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push edi
call ebx
test eax, eax
je 0x407650
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
lea esi, [ebp - 0x218]
call fcn.00407b27
mov eax, esi
push eax
push 0x407474
push edi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
xor edi, edi
test eax, eax
jne 0x40750f
xor ecx, ecx
jmp 0x407516
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jge 0x407645
test eax, eax
je 0x40752d
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jb 0x40753e
call fcn.00411009
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
mov esi, edi
shl esi, 2
cmp dword [esi + eax], 0
je 0x407609
test eax, eax
je 0x40755a
sub edx, eax
sar edx, 2
cmp edi, edx
jb 0x407565
call fcn.00411009
mov eax, dword [ebp - 0x214]
add eax, esi
push dword [eax]
call ebx
test eax, eax
je 0x4075fd
cmp dword [ebp - 0x214], 0
je 0x40758f
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x214]
sar eax, 2
cmp edi, eax
jb 0x407594
call fcn.00411009
push 0xff
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x214]
push dword [esi + eax]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x208]
push str.Button
push eax
call fcn.00411c57
test eax, eax
pop ecx
pop ecx
jne 0x4075fd
cmp dword [ebp - 0x214], eax
je 0x4075e1
mov eax, dword [ebp - 0x210]
sub eax, dword [ebp - 0x214]
sar eax, 2
cmp edi, eax
jb 0x4075e6
call fcn.00411009
mov eax, dword [ebp - 0x214]
add eax, esi
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp eax, 0x5de
je 0x40760f
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp - 0x214]
inc edi
jmp 0x407507
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x407628
mov eax, dword [ebp - 0x210]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x407633
call fcn.00411009
mov ecx, dword [ebp - 0x214]
test ecx, ecx
mov esi, dword [ecx + edi*4]
je 0x407641
push ecx
call fcn.00410a1c
pop ecx
mov eax, esi
jmp 0x407652
test eax, eax
je 0x407650
push eax
call fcn.00410a1c
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411325
leave
ret
Function at 0x407748
Capabilities:
Find taskbar

Disassembly:
push 0x28
mov eax, 0x427408
call fcn.00414607
xor edi, edi
cmp dword [ebx + 0x30], edi
mov dword [ebp - 0x14], edi
je 0x407853
cmp dword [ebx + 0x2c], 0xffffffff
je 0x407853
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
push edi
push str.Shell_TrayWnd
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
je 0x4077a2
push eax
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00407926
add esp, 0xc
cmp dword [ebp - 0x20], edi
mov eax, dword [ebp - 0x1c]
jne 0x4077ae
xor esi, esi
jmp 0x4077b6
mov esi, eax
sub esi, dword [ebp - 0x20]
sar esi, 2
test esi, esi
jbe 0x407817
jmp 0x4077bf
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 0
je 0x4077cf
sub eax, dword [ebp - 0x20]
sar eax, 2
cmp edi, eax
jb 0x4077d4
call fcn.00411009
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push ecx
push dword [ebx + 0x2c]
lea eax, [eax + edi*4]
push dword [ebx + 0x30]
mov ecx, dword [eax]
call fcn.00407974
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x40780c
mov eax, dword [ebp - 0x34]
lea edx, [eax + 8]
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp - 0x30]
add edx, 8
mov dword [eax + 4], edx
mov dword [ebp - 0x14], ecx
inc edi
cmp edi, esi
jb 0x4077bc
cmp dword [ebp - 0x14], 0
jne 0x40783f
call fcn.00407382
test eax, eax
je 0x40782c
mov esi, dword [ebp + 8]
call fcn.00407661
test eax, eax
jne 0x407838
mov esi, dword [ebp + 8]
call fcn.004076c5
test eax, eax
je 0x40783f
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x20], 0
je 0x40784e
push dword [ebp - 0x20]
call fcn.00410a1c
pop ecx
mov eax, dword [ebp - 0x14]
jmp 0x407855
xor eax, eax
call fcn.004146a6
ret 4

Function at 0x409755
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x44], 0
jne 0x409762
xor eax, eax
jmp 0x409766
mov eax, dword [esp + 8]
cmp dword [esi + 0xec], 0
jne 0x409771
xor eax, eax
test eax, eax
je 0x4097a9
add esi, 0xffffffe4
push dword [esi]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4097c1
push 1
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call fcn.0040ae55
push 1
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4097c1
push dword [esi - 0x1c]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4097c1
push 0
push dword [esi - 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop esi
ret 4
Function at 0x4097f0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push edi
mov edi, eax
push 0xfffffffffffffff0
lea ebx, [edi + 4]
push dword [ebx]
call esi
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongW]
or eax, 0xa0000
push eax
push 0xfffffffffffffff0
push dword [ebx]
call ebp
push 0xffffffffffffffec
push dword [ebx]
call esi
or eax, 0x40000
push eax
push 0xffffffffffffffec
push dword [ebx]
call ebp
push 0x42ad0c
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [edi + 0x6c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ebp, 0x80
push ebp
push dword [ebx]
call esi
push dword [edi + 0x70]
push 0
push ebp
push dword [ebx]
call esi
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [ebx]
call ebp
lea esi, [edi + 0x7c]
call fcn.004049e8
push 0xb6
mov eax, esi
call fcn.00404a38
push 1
push 0x115
mov eax, esi
call fcn.00405650
push 0x42ad20
mov eax, esi
call fcn.00404b7d
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00405458
push 0x3ea
push dword [ebx]
call ebp
lea esi, [edi + 0xbc]
call fcn.004049e8
push 0xb5
mov eax, esi
call fcn.00404a38
xor ebp, ebp
push ebp
push 0x12d
mov eax, esi
call fcn.00405650
push 0x42ad28
mov eax, esi
call fcn.00404b7d
call fcn.00407d7d
mov esi, eax
cmp esi, ebp
je 0x409939
push 0x28
call fcn.004115f6
cmp eax, ebp
pop ecx
je 0x4098fb
call fcn.00403544
jmp 0x4098fd
xor eax, eax
cmp eax, ebp
mov dword [edi + 0xfc], eax
je 0x409931
push dword [ebx]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [edi + 0xfc]
mov eax, dword [ecx]
push ebp
push esi
push esi
call dword [eax + 0x38]
mov ecx, dword [edi + 0xfc]
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
push ebp
call dword [eax + 0x1c]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
call fcn.00409d74
push ebx
call fcn.0040ae55
push edi
call fcn.0040995a
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], ebp
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret 4
Function at 0x409c86
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 8], 0
push ebx
push edi
xor eax, eax
and dword [ebp - 0x10], eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00410a30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp + 8]
mov ebx, 0x3ec
sub eax, ebx
je 0x409ce7
sub eax, 3
jne 0x409d65
push eax
mov edi, esi
call fcn.0040a574
jmp 0x409d65
and dword [ebp - 0x20], 0
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
jne 0x409d34
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
je 0x409d34
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x409d40
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp dword [esi + 0x118], 0
je 0x409d65
push 1
call edi
and ax, 0xff00
cmp ax, 0xff00
mov eax, esi
je 0x409d60
call fcn.0040a671
jmp 0x409d65
call fcn.0040a60b
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret 8

Function at 0x40aa0e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x40aa35
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop ebx
leave
ret 4
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
mov byte [esi + 0x20], bl
push 0x40ab46
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.00411d83
add esp, 0x18
cmp eax, ebx
je 0x40aa24
mov ecx, dword [ebp - 4]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
jmp 0x40aa24

Function at 0x40b174
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
or dword [ebp - 8], 0xffffffff
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
and dword [ebp - 4], esi
push esi
push str.SoftwareTencentTrojanScanLog
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b1c7
mov esi, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.QMLogOpen
push esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
mov edi, dword [ebp - 8]
je 0x40b1d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40b4f7
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x4273e5
call fcn.00414607
push 0x432e8c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40b67b
mov eax, dword [0x431e34]
xor ebx, ebx
mov ecx, 0x431e34
mov byte [ebp - 0xd], bl
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], ebx
call fcn.0040b432
pop ecx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004064e5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403f02
mov esi, dword [ebp - 0x18]
push esi
call fcn.00411716
push esi
push 0x42b2b0
push 0x104
push 0x432c80
call fcn.00413ca2
add esp, 0x14
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x44], ebx
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
mov ecx, dword [ebp - 0x24]
ja 0x40b5a2
cmp ecx, 0xc800000
jb 0x40b5e1
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00406301
push str..old
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0040c015
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 0xd], 1
call fcn.00403f02
mov dword [ebp - 0x14], ebx
xor eax, eax
cmp byte [ebp - 0xd], bl
push ebx
sete al
push 0x80
mov byte [ebp - 4], 3
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40b616
call fcn.0040bfef
jmp 0x40b61b
mov dword [ebp - 0x14], eax
xor eax, eax
cmp eax, ebx
jl 0x40b64a
push 2
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40b63f
call fcn.0040bfef
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
mov dword [0x432e88], eax
cmp byte [0x432eac], bl
je 0x40b665
push str.Enter
push str.__s_BEGAIN_n
push ebx
call fcn.0040b788
add esp, 0xc
cmp dword [ebp - 0x14], ebx
je 0x40b673
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
call fcn.00403f02
call fcn.004146a6
ret
Function at 0x40b681
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x426b72
call fcn.00414607
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x40b6c8
lea ecx, [edi - 1]
test ecx, ecx
jl 0x40b72c
cmp ecx, edi
jg 0x40b72c
mov al, byte [eax + ecx]
cmp al, 0xa
je 0x40b6c8
lea ebx, [edi + 1]
push ebx
call fcn.0040bc93
mov byte [eax + edi], 0xa
mov eax, ebx
mov edx, esi
call fcn.0040bcb9
push esi
call fcn.0040b8ab
lea eax, [ebp - 0x18]
push eax
call fcn.0040b485
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0040baa9
lea ecx, [ebp - 0x10]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040ba58
add esp, 0x10
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov edi, dword [esi]
lea eax, [ecx - 0x10]
sub edi, 0x10
cmp eax, edi
je 0x40b741
cmp dword [edi + 0xc], 0
jl 0x40b736
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40b736
call fcn.0040bdc2
mov ebx, eax
mov eax, edi
call fcn.00403f02
add ebx, 0x10
mov dword [esi], ebx
jmp 0x40b741
push 0x80070057
call fcn.00403e6c
push dword [ecx - 0xc]
mov eax, esi
push ecx
call fcn.0040bd57
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403f02
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403f02
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00403f02
mov eax, dword [0x432e88]
test eax, eax
je 0x40b782
mov esi, dword [esi]
and dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [esi - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.004146a6
ret

Function at 0x40b788
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4270f8
call fcn.00414607
mov eax, dword [0x431e34]
mov ecx, 0x431e34
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
call fcn.0040bb2b
mov edi, dword [ebp - 0x10]
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0040b85b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403f02
cmp dword [0x432e88], 0
jne 0x40b7e9
cmp dword [ebp + 8], 0
je 0x40b809
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.0040b85b
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040b681
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403f02
lea eax, [edi - 0x10]
call fcn.00403f02
call fcn.004146a6
ret
Function at 0x40c969
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x430084]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 8
mov eax, 0x427088
call fcn.00414607
mov eax, dword [ebp + 0x218]
mov esi, ecx
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x42aad8
call fcn.00406301
xor ebx, ebx
push 0x20a
lea eax, [ebp + 2]
push ebx
mov dword [ebp - 4], ebx
push eax
mov word [ebp], bx
call fcn.00410da0
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403f1a
push 0x5c
push dword [ebp - 0x10]
call fcn.004136b1
cmp eax, ebx
pop ecx
pop ecx
jne 0x40c9f3
or eax, 0xffffffff
jmp 0x40c9f8
sub eax, dword [ebp - 0x10]
sar eax, 1
lea ecx, [eax + 1]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040896e
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004064e5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403f02
push str.QQPCDetector.dll
mov eax, edi
push eax
call fcn.0040c015
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x40caaf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RunDetector
push eax
call edi
push str.GetDectectorResult
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.WaitDetectorComplete
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.RunDetectorWithNotification
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
push str.ReleaseDR
push dword [esi + 0x18]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi + 4], ebx
mov dword [esi + 0x14], eax
je 0x40caaa
cmp dword [esi + 8], ebx
je 0x40caaa
cmp dword [esi + 0xc], ebx
je 0x40caaa
cmp dword [esi + 0x10], ebx
je 0x40caaa
cmp eax, ebx
je 0x40caaa
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403f02
xor eax, eax
inc eax
jmp 0x40cabc
call fcn.0040afe5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00403f02
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00411325
add ebp, 0x210
leave
ret 4

Function at 0x40cb13
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push dword [esp + 4]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40cb36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40cb3d
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
Function at 0x40cc41
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, edi
jne 0x40cc8e
cmp byte [0x432eac], 0
je 0x40cd9a
push 0x42b850
push str.Enter
push str.__s__s__pArgsList_is_NULL
push edi
call fcn.0040b788
add esp, 0x10
jmp 0x40cd9a
cmp dword [ebp - 4], edi
push ebx
mov ebx, str.Enter
jle 0x40ccc1
cmp byte [0x432eac], 0
je 0x40ccbb
push dword [esi + edi*4]
push edi
push 0x42b850
push ebx
push str.__s__s__pArgsList__d__is__s
push 0
call fcn.0040b788
add esp, 0x18
inc edi
cmp edi, dword [ebp - 4]
jl 0x40cc99
cmp dword [ebp - 4], 2
jne 0x40ccd6
push dword [esi + 4]
push dword [ebp + 0x14]
call fcn.00403f1a
cmp dword [ebp - 4], 2
jl 0x40cd03
push str.SupplyID
push dword [esi + 4]
lea eax, [ebp - 8]
push eax
call fcn.0040cb41
push dword [eax]
call fcn.00413ff2
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00403f02
cmp dword [ebp - 4], 3
jl 0x40cd34
push str.From
push dword [esi + 8]
lea eax, [ebp - 8]
push eax
call fcn.0040cb41
push dword [eax]
call fcn.00413ff2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00403f02
cmp dword [ebp - 4], 4
jl 0x40cd65
push str.ShowUI
push dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040cb41
push dword [eax]
call fcn.00413ff2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00403f02
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [0x432eac], 0
je 0x40cd99
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
push 0x42b850
push ebx
push str.__s__s__iSupplyID_d_iFrom_d_iShowUI_d
push 0
call fcn.0040b788
add esp, 0x1c
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40cd9e
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x430084]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x1c
mov eax, 0x4271dd
call fcn.00414607
xor ebx, ebx
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
jne 0x40cdfa
cmp byte [0x432eac], bl
je 0x40ce9f
push str.InitQMReportMgr
push str.Enter
push str.__s__s_GetModuleHandle_GameSafe.dll_Error_
push ebx
call fcn.0040b788
add esp, 0x10
jmp 0x40ce9f
push 0x20a
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.00410da0
add esp, 0xc
lea eax, [ebp]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp]
push 0x5c
push eax
call fcn.004136b1
cmp eax, ebx
pop ecx
pop ecx
jne 0x40ce49
cmp byte [0x432eac], bl
je 0x40ce9f
push str.InitQMReportMgr
push str.Enter
push str.__s__s_Generate_dr.dll_Path_Error_
jmp 0x40cdec
mov word [eax + 2], bx
lea eax, [ebp]
push eax
lea esi, [ebp - 0x28]
call fcn.0040cec4
push str.dr.dll
mov dword [ebp - 4], ebx
call fcn.00411716
pop ecx
push eax
mov eax, esi
call fcn.0040cf98
call fcn.0040d7b2
mov edx, esi
mov ecx, eax
call fcn.0040d50c
mov edi, eax
call fcn.0040d7b2
mov ecx, dword [ebp + 0x218]
push ebx
push 1
mov dword [eax + 8], 0x64
mov dword [eax + 0xc], ebx
mov dword [eax + 0x18], ecx
call fcn.0040cf51
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.00411325
add ebp, 0x210
leave
ret

Function at 0x410234
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x430084]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00410173
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00410da0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x410283
cmp dword [ebp - 0x1c], 5
jb 0x41029b
jmp 0x410297
cmp dword [ebp - 0x10], 1
jne 0x41029b
cmp dword [ebp - 0x1c], 4
ja 0x410297
jne 0x41029b
cmp dword [ebp - 0x18], 0
jbe 0x41029b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42841c
call fcn.0040ac81
test eax, eax
jge 0x4102bc
mov byte [0x432ec0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00411325
add ebp, 0x78
leave
ret