joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4790a9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4790b5
sub eax, edi
inc eax
add edx, eax
add esi, eax
cmp eax, 1
jne 0x4790b0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c8e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d2060
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50d4cc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x50d4cc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0xb4]
lea ecx, [edi + 0xb4]
push 0x4df3d0
push str.main_skin
lea edx, [esp + 0x30]
push edx
call dword [eax + 8]
mov dword [esp + 0x50], 0
lea eax, [esp + 0x28]
mov esi, dword [esp + 0x3c]
cmp esi, 0x10
mov ebx, dword [esp + 0x28]
push 0
cmovae eax, ebx
push 0x4df3d0
push eax
call fcn.004210d0
add esp, 0xc
test eax, eax
jne 0x47c96e
cmp dword [esp + 0x38], eax
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x47ca3a
cmp esi, 0x10
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
cmovae edx, ebx
call fcn.0047c550
mov esi, eax
mov byte [esp + 0x50], 1
lea eax, [esp + 0x28]
cmp eax, esi
je 0x47c9d2
cmp dword [esp + 0x3c], 0x10
jb 0x47c9b3
push dword [esp + 0x28]
call fcn.0048b08b
add esp, 4
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.00424840
mov byte [esp + 0x50], 0
cmp dword [esp + 0x24], 0x10
jb 0x47c9ea
push dword [esp + 0x10]
call fcn.0048b08b
add esp, 4
cmp dword [esp + 0x3c], 0x10
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xf
cmovae eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x47ca3a
call fcn.0040d030
test eax, eax
jns 0x47ca3a
push eax
lea eax, [edi + 0xa0]
push 0x4e7dac
push eax
call fcn.00408450
add esp, 0xc
xor bl, bl
jmp 0x47ca3c
mov bl, 1
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x3c], 0x10
jb 0x47ca57
push dword [esp + 0x28]
call fcn.0048b08b
add esp, 4
mov dword [esp + 0x3c], 0xf
mov al, bl
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x47cdf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5064e8
push 0x4978f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50d4cc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x47ce93
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x47ce93
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x47ce93
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x47ce93
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x47ce9c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x47d210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x518e0c]
push edi
test esi, esi
je 0x47d24b
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x47d25d
mov esi, dword [esi + 4]
test esi, esi
jne 0x47d232
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x47d2f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
movzx eax, si
push edi
mov edi, edx
test eax, eax
je 0x47d316
sub esi, eax
add esi, 0x10000
cmp esi, edi
jae 0x47d3b6
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
jmp 0x47d330
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x47d345
add esi, 0x8000000
jmp 0x47d3ae
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47d3b6
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x47d399
cmp ecx, 0x10000
jb 0x47d399
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x47d3b8
add esi, 0x10000
jmp 0x47d3ae
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x47d3ae
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x47d330
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x47d3d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [edx - 0x10000]
movzx eax, si
push edi
mov edi, ecx
test eax, eax
je 0x47d3f4
sub esi, eax
cmp esi, edi
jbe 0x47d47f
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x47d417
sub esi, 0x8000000
jmp 0x47d47b
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movdqu xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x47d47f
cmp dword [ebp - 0x10], 0x10000
jne 0x47d469
cmp dword [ebp - 0x14], 0x10000
jb 0x47d469
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x47d481
sub esi, 0x10000
jmp 0x47d47b
mov esi, dword [ebp - 0x1c]
add esi, 0xffff0000
movzx eax, si
test eax, eax
je 0x47d47b
sub esi, eax
cmp esi, edi
ja 0x47d402
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret

Function at 0x47d4a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push edi
push eax
lea edx, [ebp - 8]
call fcn.0047cf60
mov eax, dword [0x518e04]
add esp, 4
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov ecx, dword [0x518e0c]
test eax, eax
jne 0x47d4da
test ecx, ecx
je 0x47d4ed
mov eax, ecx
mov dword [0x518e04], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x47d4ed
cmp edx, ebx
jb 0x47d4ed
cmp edx, edi
jbe 0x47d571
mov eax, ecx
mov dword [0x518e04], eax
test ecx, ecx
je 0x47d517
test eax, eax
je 0x47d50b
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x47d50b
cmp ecx, ebx
jb 0x47d50b
cmp ecx, edi
jbe 0x47d571
mov eax, dword [eax + 4]
mov dword [0x518e04], eax
test eax, eax
jne 0x47d4fc
movzx eax, si
mov ecx, ebx
sub esi, eax
mov edx, esi
call fcn.0047d3d0
test eax, eax
jne 0x47d536
mov edx, edi
mov ecx, esi
call fcn.0047d2f0
test eax, eax
je 0x47d59b
mov dword [eax], 0x52727464
xor edx, edx
mov dword [eax + 8], 0
mov esi, 0x38b
mov ecx, dword [0x518e0c]
mov dword [eax + 4], ecx
lea ecx, [eax + 0xffa8]
mov dword [0x518e04], eax
mov dword [0x518e0c], eax
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
dec esi
jne 0x47d563
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, ebx
jb 0x47d59b
cmp esi, edi
ja 0x47d59b
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.0048f5e0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d5e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov ecx, dword [0x518e0c]
push ebx
mov ebx, 0x518e0c
test ecx, ecx
je 0x47d64c
push esi
push edi
cmp dword [ecx], 0x52727464
jne 0x47d641
lea edi, [ecx + 0x10000]
xor edx, edx
lea esi, [ecx + 0x88]
mov eax, dword [esi]
test eax, eax
je 0x47d616
cmp eax, ecx
jb 0x47d641
cmp eax, edi
jae 0x47d641
inc edx
add esi, 0x48
cmp edx, 0x38d
jb 0x47d608
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x518e04], 0
jmp 0x47d644
lea ebx, [ecx + 4]
mov ecx, dword [ebx]
test ecx, ecx
jne 0x47d5f2
pop edi
pop esi
pop ebx
ret
Function at 0x47da50
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x518e18]
push edi
mov edi, ecx
test eax, eax
jne 0x47dac5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp edi, eax
jne 0x47da6a
xor eax, eax
pop edi
ret
push esi
push 8
call fcn.0048cdd1
mov esi, eax
add esp, 4
test esi, esi
jne 0x47da80
lea edi, [eax + 8]
jmp 0x47da9d
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x47dab2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0048b08b
add esp, 4
pop esi
mov dword [0x518e18], edi
mov eax, edi
mov dword [0x518dfc], 0
pop edi
ret
mov eax, dword [0x518e00]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], edi
mov dword [0x518e00], esi
pop esi
pop edi
ret
Function at 0x47ddb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x518e1c], eax
je 0x47dde1
mov eax, 0x10dd
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
mov eax, dword [0x518e18]
test eax, eax
jne 0x47df0d
push ebx
mov ebx, 0x477f90
test ebx, ebx
jne 0x47de0a
lea eax, [ebx + 0x57]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
cmp dword [0x518f28], 0
jne 0x47de3b
mov dword [0x518e18], 6
mov eax, 6
mov dword [0x518dfc], 0x518f28
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x18
call fcn.0048cdd1
mov esi, eax
add esp, 4
test esi, esi
jne 0x47de55
lea edi, [eax + 8]
jmp 0x47deeb
mov ecx, dword [0x518f28]
call fcn.0047cef0
mov ecx, ebx
mov edi, eax
call fcn.0047cef0
movzx ecx, byte [edi + 0x36]
mov ebx, dword [edi + 0x40]
sub ebx, ecx
test ecx, ecx
je 0x47dedd
cmp ecx, 0x1e
ja 0x47dedd
cmp dword [edi + 0x44], eax
jne 0x47dedd
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x47dea3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x47deeb
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 4], 1
mov dword [esi + 8], 0x518f28
mov eax, dword [ebp - 8]
mov dword [esi + 0x14], eax
mov eax, dword [0x518e10]
pop edi
mov dword [esi], eax
xor eax, eax
mov dword [0x518e10], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
cmp dword [0x518e14], 0
mov edi, 9
jne 0x47def1
mov dword [0x518e18], edi
test esi, esi
je 0x47defe
push esi
call fcn.0048b08b
add esp, 4
mov eax, edi
mov dword [0x518dfc], 0x518f28
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x47e9a0
Capabilities:
Acquire debug privileges
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
xor edi, edi
lea eax, [ebp - 0x20a]
push eax
call fcn.0048f5e0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x28
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47e9fe
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x218]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 1
push eax
push 0
push dword [ebp - 0x220]
mov dword [ebp - 0x210], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x47ea50
lea edi, [eax + 1]
jmp 0x47ea73
push eax
lea eax, [ebp - 0x20c]
push str._tError:_EnablePrivileges___fails_with_error_code__x._n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0048b090
mov esp, ebp
pop ebp
ret 4
Function at 0x47f5d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x47f5fc
mov eax, 0x80004003
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b090
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push ecx
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47f635
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x47f695
movzx esi, si
or esi, 0x80070000
jmp 0x47f693
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x47f656
mov esi, 0x8007000e
jmp 0x47f6b0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x47f66b
mov esi, 0x8007000e
jmp 0x47f6a5
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x47f61e
push dword [ebp - 0x10]
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov esi, eax
test esi, esi
jns 0x47f6b0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x47f6a5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
test edi, edi
je 0x47f6b0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp ebx, 0xffffffff
je 0x47f6bc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x49195d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4ac36b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50d4cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00494c34
mov dword [ebp - 0x14], eax
cmp dword [0x518784], esi
jne 0x4ac45e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4ac3eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4ac53e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4ac53e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac53e
push eax
call ebx
push 0x4dcbb8
push edi
mov dword [0x518784], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x518788], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x51878c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x518794], eax
test eax, eax
je 0x4ac45b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x518790], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4ac483
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ac476
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4ac498
push 4
pop eax
jmp 0x4ac540
cmp dword [ebp - 0x14], esi
je 0x4ac498
push dword [0x518784]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4ac47d
mov eax, dword [0x518790]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4ac4f6
cmp dword [0x518794], edi
je 0x4ac4f6
push eax
call ebx
push dword [0x518794]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4ac4f6
test eax, eax
je 0x4ac4f6
call ecx
test eax, eax
je 0x4ac4eb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4ac4eb
test byte [ebp - 8], 1
jne 0x4ac4f6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4ac526
mov eax, dword [0x518788]
cmp eax, edi
je 0x4ac523
push eax
call ebx
test eax, eax
je 0x4ac523
call eax
mov esi, eax
test esi, esi
je 0x4ac523
mov eax, dword [0x51878c]
cmp eax, edi
je 0x4ac523
push eax
call ebx
test eax, eax
je 0x4ac523
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x518784]
call ebx
test eax, eax
je 0x4ac53e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4ac540
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b090
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4562b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x46d750]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x64c]
cmp eax, 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
jne 0x401b4c
push 0x45e128
call fcn.00402310
mov dword [esp + 0x1c], 0
jmp 0x401b5e
push 0x45e144
call fcn.00402310
mov dword [esp + 0x1c], 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x45e12c
call fcn.00402310
mov dword [esp + 0x20], 0xffffffff
call fcn.0040aec0
add esp, 8
push 0
lea ecx, [esi + 0x3cc]
call fcn.004223b3
push 0
lea ecx, [esi + 0x478]
call fcn.004223b3
push 0
lea ecx, [esi + 0x144]
call fcn.004223ef
push 5
push 0x3f2
mov ecx, esi
call fcn.00422217
mov ecx, eax
call fcn.004223b3
push 5
lea ecx, [esi + 0x2e0]
call fcn.004223b3
push 0
lea ecx, [esi + 0x5d0]
call fcn.004223b3
push 0
lea ecx, [esi + 0x680]
call fcn.004223b3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str._r_nQiyiShellParser::ExecUninstall________________________________r_n
call fcn.00402310
push 0x471b68
call fcn.00406a90
lea eax, [esp + 8]
push eax
push 0
add esi, 0x2cc
push esi
push 0x413b20
push 0
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret

Function at 0x402550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402569
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4025a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4025a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4025a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402590
cmp esi, eax
jb 0x4025aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406a90
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x455408
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46d750]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x20]
or edi, 0xffffffff
cmp dword [eax + 0x210], edi
je 0x406adb
lea ecx, [eax + 0x20c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x54]
push esi
call edx
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x406aff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8