joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4636a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x79cac4]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
cmp dword [eax + 0x14], 8
jb 0x4636c0
mov eax, dword [eax]
push 0x80
push 4
push 3
lea esi, [ecx + 4]
push 0xc0000000
push eax
mov ecx, esi
call fcn.004647e0
push 2
push 0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x463785
push 4
push 0x768f18
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xf
mov byte [esp + 0x14], 0
call fcn.0044fad0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
cmovae eax, ecx
cmp dword [esp + 0x1c], 0
je 0x46375b
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push dword [esp + 0x24]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0xc]
cmp edx, 0x10
jb 0x463785
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46377b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463797
push edx
push ecx
call fcn.006113da
add esp, 8
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.00611399
mov esp, ebp
pop ebp
ret 4
call fcn.00655ae8
int3

Function at 0x4637a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x680f28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [esi + 4], 0xffffffff
je 0x46380f
push 0x768f20
lea ecx, [ebp + 8]
call fcn.004515c0
mov eax, dword [ebp + 0x1c]
lea edx, [ebp + 8]
mov ecx, dword [ebp + 8]
cmp eax, 0x10
cmovae edx, ecx
cmp dword [ebp + 0x18], 0
je 0x463815
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x18]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x463841
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x463837
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x463853
push edx
push ecx
call fcn.006113da
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18
call fcn.00655ae8
int3
Function at 0x46c930
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681a41
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0xd0]
call fcn.0046c600
mov dword [ebp - 4], 0
cmp dword [ebp - 0xc0], 0
jne 0x46c9f8
movups xmm0, xmmword [0x6f8ba0]
lea eax, [ebp - 0xa0]
push eax
movups xmmword [ebp - 0xa0], xmm0
call dword [sym.imp.RPCRT4.dll_UuidCreate]
push 0x40
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0xec], esi
test esi, esi
je 0x46caf2
mov ecx, esi
mov byte [ebp - 4], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c9d1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xd0]
call fcn.00459550
push esi
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push str..dmp
lea edx, [ebp - 0xd0]
lea ecx, [ebp - 0xe8]
call fcn.0045a420
add esp, 4
lea edx, [ebp - 0xe8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb8]
call fcn.0046c580
cmp dword [ebp - 0xa8], 0
je 0x46cab6
cmp dword [ebp - 0xa4], 8
lea eax, [ebp - 0xb8]
push 0
cmovae eax, dword [ebp - 0xb8]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46cab6
mov dword [ebp - 0x94], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 0
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
push 0
push esi
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x46caaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xb8]
call fcn.00453390
lea ecx, [ebp - 0xe8]
call fcn.00453390
lea ecx, [ebp - 0xd0]
call fcn.00453390
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.00611399
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0046abb0
int3
Function at 0x46d1b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681b40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0046d040
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x46d22c
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46d250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681b70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x18]
call fcn.0046d040
mov esi, dword [ebp - 0x18]
add esp, 0x18
test esi, esi
je 0x46d2fd
cmp dword [edi + 0x14], 8
jb 0x46d2c9
mov edi, dword [edi]
test edi, edi
je 0x46d2f6
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46d2d2
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0046d100
mov esi, dword [ebp - 0x24]
add esp, 0x18
test esi, esi
je 0x46d42d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d42d
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x46d3c2
cmp eax, 2
jne 0x46d42d
mov eax, dword [ebp - 0x14]
shr eax, 1
mov dword [ebp - 0x14], eax
je 0x46d42d
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00464120
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push eax
push edi
push ebx
call fcn.004711e0
test eax, eax
jne 0x46d425
mov edx, edi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46d400
sub edx, ecx
mov ecx, dword [ebp - 0x18]
sar edx, 1
push edx
push edi
call fcn.00459550
lea ecx, [ebp - 0x30]
call fcn.00453330
mov bl, 1
jmp 0x46d42f
lea ecx, [ebp - 0x30]
call fcn.00453330
xor bl, bl
test esi, esi
je 0x46d43a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681be0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.0046d040
mov esi, dword [ebp - 0x1c]
add esp, 0x18
test esi, esi
je 0x46d4ed
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.00453390
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681c10
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00458270
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0046d100
mov esi, dword [ebp - 0x20]
add esp, 0x18
test esi, esi
je 0x46d5b9
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d5ad
cmp dword [ebp - 0x10], 4
mov ecx, 0xd
cmovne eax, ecx
test eax, eax
push esi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46d5bb
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00453390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46d940
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0046ce70
cmp dword [eax + 0x14], 8
jb 0x46d995
mov eax, dword [eax]
push 0x2001f
push eax
push reloc.WS2_32.dll_accept
lea ecx, [ebp - 0x34]
call fcn.00471280
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.00453390
test esi, esi
mov esi, dword [ebp - 0x34]
jne 0x46d9c5
push str.ParentBrowserPath
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test esi, esi
je 0x46d9d0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x4704a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67f740
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.006113aa
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005fe0d9
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4710c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x79cac4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00471280
mov esi, eax
test esi, esi
jne 0x4711b7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x471189
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004710c0
mov esi, eax
test esi, esi
jne 0x4711b7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x471150
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4711a0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00470fe0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4711c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00611399
mov esp, ebp
pop ebp
ret 4
Function at 0x4711e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x471251
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x47121f
cmp eax, 2
jne 0x47123b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x47124b
test ecx, ecx
je 0x471246
test cl, 1
jne 0x47123b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x47124b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x471640
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681f88
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x79cac4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x471692
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x47171c
lea eax, [ebp - 0x24]
push eax
push edi
mov ecx, eax
call fcn.00471830
cmp dword [esi + 0x14], 8
jb 0x4716b7
mov esi, dword [esi]
push dword [ebp - 0x24]
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47171c
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push 0x76aa70
push dword [ebp - 0x24]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x47171c
mov ax, word [edx + 0xa]
mov word [ebx], ax
mov bl, 1
mov eax, dword [ebp + 8]
movzx ecx, word [edx + 8]
mov word [eax], cx
mov eax, dword [ebp + 0xc]
movzx ecx, word [edx + 0xe]
mov word [eax], cx
mov eax, dword [ebp + 0x10]
movzx ecx, word [edx + 0xc]
mov word [eax], cx
jmp 0x47171e
xor bl, bl
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x47174e
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x471744
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x471762
push edx
push ecx
call fcn.006113da
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00655ae8
int3
Function at 0x471970
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x682022
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x220], esi
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], edi
mov word [esi], cx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x22c], 1
test ebx, ebx
je 0x471a77
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x471a6b
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x471a64
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push ecx
push 0
push 0x1000
push ebx
call eax
test eax, eax
js 0x471a64
mov edx, dword [ebp - 0x220]
mov ecx, edx
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471a40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00459550
push dword [ebp - 0x220]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x228]
mov eax, dword [ebp - 0x224]
cmp dword [esi + 0x10], 0
jne 0x471af8
test eax, eax
je 0x471ac1
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x471ac1
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471aa3
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00459550
cmp dword [esi + 0x10], 0
jne 0x471af8
test edi, edi
je 0x471af8
push edi
call fcn.0065ee8c
mov edx, eax
add esp, 4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471ae0
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00459550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
Function at 0x471ec0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68208b
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x244], edx
mov esi, ecx
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x258], esi
xor ebx, ebx
mov dword [ebp - 0x258], esi
xor edi, edi
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x248], edi
push 0x228
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x240], 0x22c
call fcn.0064cc00
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x471f80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x472042
mov dword [esi], edi
mov eax, esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
jmp 0x472026
cmp edi, ebx
je 0x471fa1
mov edi, ebx
lea esi, [ebp - 0x240]
mov ecx, 0x8b
add ebx, 0x22c
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x24c], ebx
jmp 0x471fba
lea eax, [ebp - 0x240]
push eax
push ebx
lea ecx, [ebp - 0x250]
call fcn.00472e70
mov ebx, dword [ebp - 0x24c]
push 0x22c
lea eax, [ebp - 0x488]
push 0
push eax
call fcn.0064cc00
add esp, 0xc
lea eax, [ebp - 0x240]
mov ecx, 0x8b
lea esi, [ebp - 0x488]
lea edi, [ebp - 0x240]
rep movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x244]
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 0x248]
test eax, eax
jne 0x471f80
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
mov dword [ecx], eax
mov eax, edi
mov dword [ecx + 8], eax
mov eax, ecx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
ret
mov edx, eax
mov ecx, str.EnumerateProcessesInSnapshot_failed:
call fcn.00472da0
int3
Function at 0x4756d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4756fe
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x475707
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret