joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472670
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 4]
cmp dword [eax + 0x10], 0
je 0x472698
call fcn.00472790
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4726b7
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
push edi
call fcn.00473510
test eax, eax
je 0x4726a3
push edi
lea eax, [ebp - 0x210]
push 0x661260
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.00472ad0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x472768
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00472ad0
test eax, eax
je 0x472768
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x21c]
jne 0x472768
mov eax, dword [ebp - 0x218]
cmp eax, dword [ebp - 0x220]
jne 0x472768
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebp - 0x22c]
jne 0x472768
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp - 0x230]
jne 0x472768
mov ecx, dword [esi + 8]
lea eax, [ebp - 0x210]
push eax
call fcn.00473840
test al, al
jne 0x472778
mov eax, dword [esi + 4]
mov ecx, esi
push dword [eax + 0xc]
push dword [eax + 0x10]
call fcn.00472820
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8

Function at 0x472ea0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x98]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x6acf80]
add esi, 0x10
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6acddc]
lea eax, [ebp - 4]
push eax
call fcn.00473460
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x472ef2
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x128]
mov dword [ebp - 4], eax
lea ecx, [ebx + 4]
lea eax, [ebp - 4]
push eax
call fcn.004733e0
test eax, eax
je 0x472f3b
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x140]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x472f3b
push 0
push 0
push 0x793a
push dword [edi + 0x140]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472f50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 0x98]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x6acf80]
add esi, 0x10
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6acddc]
lea eax, [ebp - 4]
push eax
call fcn.00473460
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x472fa2
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x128]
mov dword [ebp - 4], eax
lea ecx, [ebx + 4]
lea eax, [ebp - 4]
push eax
call fcn.004733e0
test eax, eax
je 0x472fc6
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472fd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x68da90]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi + 0x38]
mov dword [edi + 0x140], esi
call ebx
test eax, eax
jne 0x473026
sub esp, 8
mov eax, esp
push 0
push SysReAllocString
push 0
push ecx
mov dword [eax], 0
mov ecx, edi
mov eax, esp
push esi
mov dword [eax], 0
call fcn.0043b4a0
cmp byte [ebp + 0x1c], 0
je 0x473038
mov ecx, dword [edi + 0x30]
lea eax, [ebp + 0xc]
push eax
call fcn.0043af00
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x9c]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0xc]
add eax, edx
push 1
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
push eax
push edx
push ecx
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
cmp dword [edi + 0xe4], 0
je 0x4730e0
mov eax, dword [edi + 0xe0]
test eax, eax
je 0x4730e0
push dword [eax + 0x38]
call ebx
test eax, eax
je 0x4730e0
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
push dword [edi + 0x38]
movups xmmword [esp + 0x24], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add eax, 7
mov ecx, dword [esp + 0x24]
sub edx, 3
mov esi, dword [esp + 0x1c]
add ecx, 5
push 1
mov dword [esp + 0x2c], eax
sub esi, 5
sub eax, edx
mov dword [esp + 0x28], ecx
push eax
mov eax, dword [edi + 0xe0]
sub ecx, esi
push ecx
push edx
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
push dword [eax + 0x38]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 0x20], 0
je 0x4730fb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x94]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x6acf80]
add esi, 0x10
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x6acddc]
lea eax, [esp + 0x10]
push eax
call fcn.00473460
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test ebx, ebx
je 0x47316a
mov edx, dword [ebx + 8]
add edi, 0x128
mov dword [esp + 0x10], edi
test edx, edx
jle 0x47315b
mov ecx, dword [ebx + 4]
cmp dword [ecx], edi
je 0x473156
inc eax
add ecx, 4
cmp eax, edx
jl 0x473148
jmp 0x47315b
cmp eax, 0xffffffff
jne 0x473168
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.00473360
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x473510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
test eax, eax
je 0x473534
cmp dword [esi + 4], 0
je 0x47352d
push eax
call fcn.005c53a4
add esp, 4
mov dword [esi + 0x10], 0
push 0x65d7f0
push dword [ebp + 8]
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
call fcn.005d4941
mov edi, eax
add esp, 8
test edi, edi
jne 0x47355e
pop edi
pop esi
pop ebp
ret 4
push ebx
push 2
push 0
push edi
call fcn.005d4c8b
push edi
call fcn.005d5284
push 0
push 0
push edi
mov ebx, eax
call fcn.005d4c8b
add esp, 0x1c
test ebx, ebx
jle 0x47359e
push ebx
mov ecx, esi
call fcn.004735c0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47359e
push edi
push 1
push ebx
push eax
call fcn.005d545b
add esp, 0x10
push edi
call fcn.005d5581
add esp, 4
xor eax, eax
cmp dword [esi + 0x10], eax
setne al
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x473840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7726
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x68da90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebx]
push dword [eax + 4]
call fcn.00473df0
mov eax, dword [ebx]
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 0
test eax, eax
je 0x473900
push 0x65d7f0
push eax
call fcn.005d4941
mov edi, eax
add esp, 8
mov dword [ebp - 0x18], edi
test edi, edi
je 0x473900
push edi
call fcn.005d59ef
add esp, 4
push eax
call fcn.005d59e4
add esp, 4
mov esi, eax
lea eax, [ebp - 0x24]
push edi
push 1
push 8
push eax
call fcn.005d545b
add esp, 0x10
mov byte [ebp + 0xb], 0
cmp dword [ebp - 0x24], 0x78646972
jne 0x47398f
cmp dword [ebp - 0x20], 0x8000
jb 0x473916
push edi
call fcn.005d5581
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add esi, 0xfffffff8
push esi
call fcn.005c53a9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x47398f
push edi
push 1
push esi
push ebx
call fcn.005d545b
lea edx, [ebx + esi]
mov ecx, ebx
xor ebx, ebx
mov dword [ebp + 8], edx
add esp, 0x10
cmp dword [ebp - 0x20], ebx
jle 0x47397d
mov edi, dword [ebp - 0x14]
nop word [eax + eax]
mov esi, dword [ecx + 0xc]
add esi, 0x12
add esi, ecx
cmp esi, edx
ja 0x47397a
push dword [ecx + 8]
lea eax, [ecx + 0x10]
push dword [ecx + 4]
push dword [ecx]
mov ecx, edi
push eax
call fcn.00473680
mov edx, dword [ebp + 8]
inc ebx
mov ecx, esi
cmp ebx, dword [ebp - 0x20]
jl 0x473950
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.005c53a4
add esp, 4
cmp ebx, dword [ebp - 0x20]
sete byte [ebp + 0xb]
push edi
call fcn.005d5581
mov al, byte [ebp + 0xb]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4749a0
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f786b
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x3c
lea eax, [ebp - 0x26c]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00474b40
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.005c1b40
add esp, 0xc
cmp dword [ebp - 0x220], 0
je 0x474b01
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x474b01
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x25c], eax
lea ecx, [ebp - 0x270]
lea eax, [ebp - 0x230]
mov dword [ebp - 0x26c], 0x3c
cmovae eax, dword [ebp - 0x230]
xor edx, edx
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], str.Open
mov dword [ebp - 0x258], eax
call fcn.004a51a0
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
mov eax, dword [eax]
mov dword [ebp - 0x254], eax
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474aaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x250], 0
push eax
mov dword [ebp - 0x268], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x474b01
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push dword [ebp - 0x234]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x474b1f
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00409d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x474cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f78b6
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
call fcn.004a4d40
cmp dword [0x6ac8e8], 0
mov ecx, str.XDShellExtHelper.dll
mov eax, str.XDShellExtHelper64.dll
mov edx, esi
cmove eax, ecx
lea ecx, [ebp - 0x48]
push eax
call fcn.00477100
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x474d75
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x474d58
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00410ec0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x474d8e
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00409d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474e35
call fcn.004039e0
mov ecx, eax
test ecx, ecx
jne 0x474dbd
push 0x80004005
call fcn.00404200
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push 0x661608
push eax
call fcn.00409f70
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x30]
add esp, 8
mov dword [ebp - 0x30], 0
push esi
call fcn.004776a0
mov edx, dword [ebp - 0x30]
or edi, 0xffffffff
add esp, 8
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x474e1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x474e35
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x474e4a
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x474e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f78ee
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 0x124]
push str.Utils_
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00477100
add esp, 4
mov dword [ebp - 4], 0
call fcn.004a4d40
cmp dword [0x6ac8e8], 0
lea edx, [ebp - 0x28]
mov ecx, str.MasterPdfDrv.sys
mov eax, str.MasterPdfDrv_x64.sys
cmove eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00477100
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x474f1c
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x474eff
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00410ec0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x474f35
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00409d50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x474f65
mov ecx, str.MasterPdfDrv
call fcn.004b9640
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0049dfc0
push edi
call fcn.00474fa0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x474f80
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00409d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret
Function at 0x4771e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f7bd3
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x224], xmm0
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.00433150
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.00477930
test eax, eax
je 0x477347
cmp dword [ebp - 0x220], 0
je 0x477347
mov eax, dword [ebp - 0x224]
mov esi, dword [eax]
cmp esi, eax
je 0x47734d
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [eax + eax]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.005c1b40
add esp, 8
lea eax, [ebp - 0x21c]
push eax
push dword [esi + 0x10]
call fcn.00477a20
test eax, eax
je 0x4772f1
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.005cb64b
add esp, 8
test eax, eax
jne 0x4772f1
push dword [esi + 0x10]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4772f1
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4772f1
push edi
call ebx
cmp byte [esi + 0xd], 0
jne 0x477337
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x47731c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x477337
nop word [eax + eax]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x477310
jmp 0x477337
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x477335
cmp esi, dword [eax + 8]
jne 0x477335
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x477325
mov esi, eax
mov eax, dword [ebp - 0x224]
cmp esi, eax
jne 0x477290
jmp 0x47734d
mov eax, dword [ebp - 0x224]
push eax
push dword [eax]
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
call fcn.00477ee0
push dword [ebp - 0x224]
call fcn.005a8a50
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x477392
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 4
Function at 0x477930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x47799a
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x47799a
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.005c1b40
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4779af
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
mov ecx, ebx
call fcn.004317b0
push edi
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4779e4
push dword [ebp - 0x23c]
lea eax, [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
call fcn.00478660
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4779b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
Function at 0x47b480
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x424]
mov ecx, dword [ebp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b62a
push ebx
push esi
push edi
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x47b561
push 0x20a
xor esi, esi
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.005c1b40
add esp, 0xc
cmp dword [ebp - 0x420], esi
jbe 0x47b561
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
nop word [eax + eax]
push 0x105
lea eax, [ebp - 0x41c]
push eax
push esi
push dword [ebp - 0x424]
call ebx
test eax, eax
jne 0x47b558
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call edi
inc esi
cmp esi, dword [ebp - 0x420]
jb 0x47b530
push dword [ebp - 0x424]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x424], 0
push 0
push eax
call fcn.005c1b40
push dword [ebp - 0x428]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.005d627f
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.005c1741
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x47b5d1
lea eax, [ebp - 0x210]
push 0x2f
push eax
call fcn.005c1741
mov esi, eax
add esp, 8
test esi, esi
je 0x47b627
mov eax, esi
lea ecx, [ebp - 0x210]
sub eax, ecx
and eax, 0xfffffffe
cmp eax, 0x20a
jae 0x47b63a
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x424]
push eax
push 0xf003f
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b61f
lea eax, [esi + 2]
push eax
push dword [ebp - 0x424]
call edi
push dword [ebp - 0x424]
call ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 8
call fcn.005a9271
int3
Function at 0x47b640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x68da90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF_LY
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b707
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.005c1b40
add esp, 0xc
mov dword [ebp - 0x210], 1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 0
push eax
jmp 0x47b70c
push 0x658bf4
mov ecx, esi
call fcn.00408ad0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005a8a55
mov esp, ebp
pop ebp
ret 4