joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0xffffffffffffffff
push 0x4e0868
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
test edi, edi
je 0x406475
cmp word [edi], 0
jne 0x406494
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edi, dword [esp + 0x1c]
movzx eax, word [edi]
cmp ax, 0x20
je 0x4064a3
cmp ax, 9
jne 0x4064a8
add edi, 2
jmp 0x406494
movzx eax, word [edi]
mov ebx, edi
xor ecx, ecx
nop
cmp ax, 0x22
jne 0x4064bf
xor eax, eax
test ecx, ecx
sete al
mov ecx, eax
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
je 0x4064db
test ecx, ecx
jne 0x4064b0
cmp ax, 0x20
je 0x4064db
cmp ax, 9
jne 0x4064b0
mov edx, dword [0x5143ac]
mov eax, dword [edx]
mov dword [esp + 0x1c], edi
sub edi, ebx
push 2
sar edi, 1
push edi
mov ecx, 0x5143ac
call eax
test eax, eax
je 0x4065e0
test edi, edi
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
jl 0x4065e5
cmp edi, dword [ebp - 8]
jg 0x4065e5
mov dword [ebp - 0xc], edi
add edi, edi
push edi
push ebx
push edi
push ebp
mov word [edi + ebp], 0
call fcn.004b8503
add esp, 0x10
mov dword [esp + 0x28], 0
mov eax, dword [ebp - 0xc]
cmp eax, 2
jl 0x406590
test eax, eax
jl 0x4065e5
movzx ecx, word [ebp]
cmp cx, 0x22
jne 0x406590
lea ecx, [eax - 1]
test ecx, ecx
jl 0x4065e5
cmp ecx, eax
jg 0x4065e5
movzx eax, word [ebp + ecx*2]
cmp ax, 0x22
jne 0x406590
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
call fcn.00407d30
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
lea ecx, [esp + 0x18]
add eax, 0xffffffff
push ecx
call fcn.00407d30
mov ebp, dword [esp + 0x18]
lea ebx, [esp + 0x18]
call fcn.004081a0
add ebp, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4065be
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x1c]
cmp word [ecx], 0
jne 0x406490
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
jmp fcn.00401200
push 0x80070057
call fcn.00401340
int3
Function at 0x406bd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4e50d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x5143ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x5143ac
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push str.g_Install.Init_...
mov ecx, 0x515890
mov byte [esp + 0x28], 1
call fcn.004899e0
add esp, 4
call fcn.0040b990
mov esi, eax
push esi
push str.g_Install.Init_return:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
cmp esi, ebx
jne 0x406caf
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x24], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c80
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ca8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x406df7
mov edx, dword [esp + 0x2c]
push edi
call fcn.00406f40
test eax, eax
jne 0x406ce5
push str.ProcessCommandLine_return_false
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
push 0xe
mov dword [0x515670], 0xe
call fcn.0040cad0
jmp 0x406c60
cmp dword [edi + 0x18], ebx
je 0x406d25
push str.DbgExtraceFiles_...
mov ecx, 0x515890
call fcn.004899e0
mov eax, dword [edi + 0x20]
mov edi, dword [edi + 0x1c]
add esp, 4
push eax
mov ecx, 0x515704
call fcn.004178b0
push eax
push str.DbgExtraceFiles_return:_d
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
jmp 0x406c60
push edi
call fcn.00407590
test eax, eax
jne 0x406d65
push 8
mov eax, 0x64
call fcn.00423010
push 8
mov dword [0x515670], 8
call fcn.0040cad0
lea ecx, [esp + 0x18]
call fcn.00416ce0
lea ecx, [esp + 0x14]
call fcn.00416ce0
xor eax, eax
jmp 0x406df7
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 5
ja 0x406dc2
jb 0x406d79
cmp ah, bl
ja 0x406dc2
push 4
call fcn.0040cad0
push 4
mov eax, 0x64
mov dword [0x515670], 4
call fcn.00423010
push str.IsWinXPAndLater_return_false
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
cmp dword [edi + 4], ebx
jne 0x406d4c
push 0x40
push 0x4efd3c
push 0x4efd48
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x406d4c
call fcn.004755b0
mov ecx, eax
call fcn.00475620
push str.appRes_Init_end
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00416ce0
lea ecx, [esp + 0x14]
call fcn.00416ce0
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x407a90
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x41c], eax
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov word [esp + 0x224], di
call fcn.004be320
push 0x206
lea ecx, [esp + 0x22]
push edi
push ecx
mov word [esp + 0x28], di
call fcn.004be320
add esp, 0x18
cmp ebx, edi
mov dword [esp + 0xc], 0x208
je 0x407c9b
push ebp
push esi
push 0x208
push edi
push ebx
call fcn.004be320
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
mov esi, 1
mov edi, edi
push esi
push str.SOFTWARETencentPlatForm_Type_List_d
lea edx, [esp + 0x228]
call fcn.00409640
add esp, 8
lea edx, [esp + 0xc]
push edx
push 1
push edi
lea eax, [esp + 0x22c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x407bd2
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407bd2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.TypePath
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407bc3
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x407b93
push str.BinQQ.exe
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407bc3
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x407bb4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407bd6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
add esi, 1
cmp esi, 5
jle 0x407b10
cmp dword [esp + 0x10], edi
jne 0x407c7f
lea edx, [esp + 0xc]
push edx
push 1
push edi
push str.SOFTWARETencentQQ2009
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
cmp eax, edi
jne 0x407c70
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407c30
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push edi
push str.Install
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x407c70
push str.BinQQ.exe
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407c70
lea eax, [esp + 0x18]
mov edx, ebx
mov ecx, eax
mov dword [esp + 0x10], 1
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, di
jne 0x407c61
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407c7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004b84de
add esp, 0x420
ret
mov ecx, dword [esp + 0x420]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004b84de
add esp, 0x420
ret
Function at 0x407cc0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push 0
lea eax, [esp + 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWARETencentQQPCMgr
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x407d19
mov eax, dword [esp]
test eax, eax
mov dword [esp + 4], 1
je 0x407d27
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.ShowUpdateTips
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
test eax, eax
je 0x407d27
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret

Function at 0x409520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409537
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409568
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x409564
cmp esi, eax
jae 0x409568
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x409554
cmp esi, eax
jb 0x40956e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x409660
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x40969f
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409670
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x4096a1
mov eax, ebx
pop ebx
ret 4

Function at 0x4096b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x4096ff
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4096ff
cmp dword [esp + 0x10], 4
jne 0x4096ff
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x409710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, eax
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ecx
je 0x4097dc
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x20]
push edx
push ecx
lea edx, [esp + 0x18]
push edx
push ecx
push ebp
push eax
call ebx
cmp dword [esp + 0x10], 1
jne 0x4097dc
call fcn.004014f0
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
sub eax, 0x10
shr ecx, 1
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
add ecx, 1
sub eax, ecx
or edx, eax
jge 0x409781
mov eax, esi
call fcn.00401130
mov edi, dword [esi]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push 0
push ebp
push ecx
call ebx
test eax, eax
jne 0x4097dc
mov edx, dword [esp + 0x20]
shr edx, 1
mov word [edi + edx*2], ax
mov edx, dword [esi]
test edx, edx
je 0x4097c4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097b3
sub eax, edi
sar eax, 1
js 0x4097ea
cmp eax, dword [edx - 8]
jg 0x4097ea
mov dword [edx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
push 0x80070057
call fcn.00401340
int3

Function at 0x409850
Capabilities:
Set registry value

Disassembly:
mov eax, dword [eax]
push esi
xor esi, esi
test eax, eax
je 0x409872
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea eax, [esi + 1]
je 0x409874
mov eax, esi
pop esi
ret 4
Function at 0x40a750
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004099e0
mov ebx, dword [0x5143d0]
xor ebp, ebp
push 0x4f0328
push str.HTML
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call fcn.004b9e54
add esp, 8
test eax, eax
jne 0x40a78a
push 0x17
jmp 0x40a78f
push 0x4f0328
push 0x6a
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebp
jne 0x40a7c7
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a7be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
push esi
jne 0x40a807
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a842
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, ebp
jne 0x40a84c
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a842
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x40a87a
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea ecx, [esp + 0x10]
call fcn.00416ce0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
call fcn.00416d70
test eax, eax
jl 0x40a8a1
lea edx, [esp + 0x14]
push edx
mov ecx, ebx
mov edx, ebp
call fcn.00416d20
mov ebx, 1
jmp 0x40a8a5
mov ebx, dword [esp + 0x18]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40a8c2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.00416ce0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x40ab80
Capabilities:
Access peb ldr_data
Check if file exists
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4e50d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x5156fc]
add eax, 0xfffffff0
call fcn.004012d0
add eax, 0x10
mov dword [esp + 0x14], eax
push 6
push str.dr.dll
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x30], 0
call fcn.00405fb0
mov ebp, dword [esp + 0x14]
mov ecx, ebp
call fcn.0040a750
lea ecx, [esp + 0x18]
push 0x5156fc
push ecx
mov ebx, str.dr.dll
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
mov ecx, 0x515890
je 0x40aca4
push str.Report_SetDrPath_begin...
call fcn.004899e0
lea ecx, [esp + 0x1c]
push 0x5156fc
push ecx
mov ebx, str.dr.dll
call fcn.00413810
add esp, 0xc
mov byte [esp + 0x24], 1
mov eax, dword [eax]
mov edx, dword [0x5157e0]
mov edi, eax
call fcn.004839f0
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ac84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040a8e0
mov dword [0x5154dc], eax
call fcn.0040aa30
mov dword [0x5154e0], eax
push str.Report_SetDrPath_end...
mov ecx, 0x515890
jmp 0x40aca9
push str.Cant_Find_dr.dll_Cant_Load_Report_Instance
call fcn.004899e0
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40acd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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 0x40baa0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4e07a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [edi + 0x90]
sub eax, 0x10
call fcn.004012d0
lea ebp, [eax + 0x10]
mov dword [esp + 0x10], ebp
push str.OpenSelfProtect:_Begin__Run_QQPCRTP__e
mov ecx, 0x515890
mov dword [esp + 0x24], 0
call fcn.004899e0
add esp, 4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ebx, str.QQPCRTP.exe
call fcn.00413810
mov eax, dword [eax]
add esp, 8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bb37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40bb9a
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, str.QQPCRTP.exe
call fcn.00413810
push 0
mov byte [esp + 0x2c], 1
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
xor ecx, ecx
mov edx, 0x4f072c
call fcn.00422020
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0
push 1
mov ecx, edi
call fcn.004118f0
push str.OpenSelfProtect:_End
mov ecx, 0x515890
call fcn.004899e0
lea eax, [ebp - 0x10]
add esp, 4
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbd0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x40c210
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4e508b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
push 0x208
lea eax, [esp + 0x32]
push 0
push eax
mov word [esp + 0x38], 0
call fcn.004be320
mov ecx, dword [0x5156f8]
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x40]
push 0x105
push edx
call fcn.004b9c7c
add esp, 0x1c
lea edi, [esp + 0x10]
mov dword [esp + 0xc], 0
call fcn.0048c530
mov ecx, str.QMPacket.dat
mov edx, edi
mov dword [esp + 0x244], 0
call fcn.0048b3c0
push 0x208
lea eax, [esp + 0x30]
push eax
mov ecx, eax
push 0x208
push ecx
mov ecx, 0x26
mov edx, str.8CEFC9E6_A2B4_4c2a_823C_6903A31139FA
call fcn.0046b820
add esp, 0x10
test eax, eax
mov edi, 8
jne 0x40c31e
cmp dword [esp + 0x28], edi
mov eax, dword [esp + 0x14]
jae 0x40c2df
lea eax, [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c31e
push 0
lea eax, [esp + 0x10]
push eax
push 0x208
lea ecx, [esp + 0x38]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], edi
jb 0x40c331
mov edx, dword [esp + 0x14]
push edx
call fcn.004b84d9
add esp, 4
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.004b84de
add esp, 0x23c
ret
Function at 0x40c360
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4dcf58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x50f130]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x5156f8]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x40c3e2
lea ecx, [esp + 0xc]
push ecx
lea ecx, [eax + 1]
call fcn.004105c0
mov edi, 0x5156f8
mov dword [esp + 0x18], 0
call fcn.004013f0
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c3d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [0x5156f8]
cmp dword [ecx - 0xc], 0
je 0x40c427
push 0x4f08a8
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
push 0x4f08b4
mov ecx, 0x515890
call fcn.004899e0
add esp, 4
cmp dword [0x5156c4], 0
je 0x40c43b
mov esi, 0x515668
call fcn.0040dd20
test eax, eax
jne 0x40c458
mov dword [0x515670], 9
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
push 0
push 0
push 0x515668
push 0x40dd00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x515790], eax
mov edx, dword [0x5156f8]
push edx
push str.silent_install_path:_ws
mov ecx, 0x515890
call fcn.004899e0
add esp, 8
mov esi, 1
call fcn.0040c9e0
test eax, eax
je 0x40c427
cmp dword [0x515694], 8
jne 0x40c492
mov eax, dword [0x515698]
call fcn.00411d00
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret