joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e9a0
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4953c3
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.0045a420
mov eax, dword [0x4c206c]
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
push 0x400
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00471be0
add esp, 0xc
mov dword [ebp - 0x1014], 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
or edi, 0xffffffff
test eax, eax
je 0x41eb36
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x41eb7b
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1018], esi
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [ebp - 0x1014]
shr eax, 2
mov dword [ebp - 0x101c], eax
test eax, eax
je 0x41eb1b
nop word [eax + eax]
push dword [ebp + ebx*4 - 0x1010]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41eb0b
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, 0x400
or ecx, edx
jge 0x41eaa9
push 0x400
lea ecx, [ebp - 0x1018]
call fcn.0041db00
mov esi, dword [ebp - 0x1018]
push 0x400
push esi
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push dword [esi - 8]
push esi
call fcn.00479dc7
add esp, 8
test eax, eax
js 0x41eb71
cmp eax, dword [esi - 8]
jg 0x41eb71
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x41eb04
mov eax, dword [ebp + 8]
test eax, eax
je 0x41eb7b
push eax
push esi
call fcn.0047a61e
add esp, 8
test eax, eax
jne 0x41eb04
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x101c]
jb 0x41ea60
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41eb36
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41eb55
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 - 0x10]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041dc00
push 0x80004005
call fcn.0041dc00
int3
Function at 0x41f490
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.00471be0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41f4f3
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41f4f3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004591b7
mov esp, ebp
pop ebp
ret
Function at 0x41fb20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
mov edi, ecx
jne 0x41fcff
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
cmp esi, 0x110
jne 0x41fb6d
sub esp, 0xc
mov dword [edi + 0x14c], 1
call fcn.0041fd10
mov dword [ebx], eax
cmp dword [edi + 0x14c], 0
je 0x41fcd5
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
cmp esi, 0x111
jne 0x41fcd5
mov eax, dword [ebp + 0x10]
movzx esi, ax
mov eax, 0x138b
cmp ax, si
jne 0x41fbcd
cmp dword [edi + 0x44], 0
mov dword [edi + 0x14c], 1
je 0x41fbba
push 0
push 0
push 0
mov dword [edi + 0x40], 0x138f
mov dword [edi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [ebx], 0
cmp dword [edi + 0x14c], 0
jne 0x41fcf3
mov eax, 0x138a
cmp ax, si
jne 0x41fbff
push 2
push dword [edi + 4]
mov dword [edi + 0x14c], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [ebx], 0
cmp dword [edi + 0x14c], 0
jne 0x41fcf3
mov eax, 0x138e
cmp ax, si
jne 0x41fc49
cmp dword [edi + 0x44], 0
mov dword [edi + 0x14c], 1
je 0x41fc36
push 0
push 0
push 0
mov dword [edi + 0x40], eax
mov dword [edi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [ebx], 0
cmp dword [edi + 0x14c], 0
jne 0x41fcf3
mov eax, 0x138f
cmp ax, si
jne 0x41fc8f
cmp dword [edi + 0x44], 0
mov dword [edi + 0x14c], 1
je 0x41fc80
push 0
push 0
push 0
mov dword [edi + 0x40], eax
mov dword [edi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [ebx], 0
cmp dword [edi + 0x14c], 0
jne 0x41fcf3
mov eax, 0x1390
cmp ax, si
jne 0x41fcd5
cmp dword [edi + 0x44], 0
mov dword [edi + 0x14c], 1
je 0x41fcc6
push 0
push 0
push 0
mov dword [edi + 0x40], eax
mov dword [edi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [ebx], 0
cmp dword [edi + 0x14c], 0
jne 0x41fcf3
mov esi, dword [edi + 0x28]
push 0
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, edi
call fcn.00422c50
mov dword [edi + 0x28], esi
test eax, eax
je 0x41fcff
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0x18
Function at 0x423b50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4c206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00471be0
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00471be0
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x423bb3
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x423bb8
mov eax, 0x2c
push edi
mov dword [esi], eax
mov dword [esi + 4], 0
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi + 0xc], edi
mov ecx, dword [0x4c6828]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x28], 0
xor ecx, ebp
pop esi
call fcn.004591b7
mov esp, ebp
pop ebp
ret 0x18
Function at 0x425020
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495deb
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x14]
mov dword [ecx + 0xc], eax
lea eax, [ecx + 4]
push 0x28
mov dword [ebp - 0x14], eax
call fcn.0047a613
mov edi, eax
add esp, 4
test edi, edi
je 0x42519e
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 2
mov dword [edi], vtable.C7zDecompressImpl.1.0
mov dword [edi + 4], vtable.C7zDecompressImpl.0
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x4251ac
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0
lea esi, [edi + 0x18]
mov byte [ebp - 4], 4
push 0
push 0
mov dword [ebp - 0x1c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043bfc0
mov dword [esi], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 5
call fcn.0043b345
push 0x270
call fcn.0047a613
add esp, 4
test eax, eax
je 0x4251b6
mov ecx, eax
call fcn.0043cf7a
mov esi, eax
test esi, esi
je 0x4250f9
mov ecx, dword [esi]
push esi
call dword [ecx + 4]
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x425106
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x14], esi
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
call fcn.0043c72f
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 8], edi
mov eax, dword [edi]
push ebx
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
lea esi, [ebx + 0x10]
push esi
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xc
mov dword [ebp - 4], 6
call fcn.0047a613
add esp, 4
test eax, eax
je 0x4251c4
push 0
push 0
push eax
push 0x427b90
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 4], 0x4278e0
mov dword [eax + 8], 0
call fcn.0047ab56
add esp, 0x18
mov dword [ebx + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
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
push 0x4bfe80
lea eax, [ebp + 0xb]
push eax
call fcn.00471d3a
push 0x80004005
call fcn.0041dc00
push 0x4bfe80
lea eax, [ebp - 0xd]
push eax
call fcn.00471d3a
push 0x4bfe80
lea eax, [ebp - 0xe]
push eax
call fcn.00471d3a
int3
Function at 0x425240
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495e23
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4c206c]
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 7
push str.trivial
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041ccc0
sub esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 0x35
push str.d:workqninstall_srclibinstallinstall.cpp
push str.int___thiscall_CInstall::StartInstall_int_
push 2
push ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0041bed0
mov byte [ebp - 4], 1
cmp byte [eax + 0xf8], 0
je 0x4252d7
mov eax, dword [eax + 0x28]
mov edx, 0x4ad0dc
mov ecx, dword [eax + 0x54]
lea ecx, [ecx + 0x10]
call fcn.0041d1c0
lea ecx, [ebp - 0x130]
call fcn.00412bf0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x42531d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x425313
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4253a5
push edx
push ecx
call fcn.00459719
add esp, 8
push 0x18
call fcn.0047a613
add esp, 4
test eax, eax
je 0x4253aa
push 0
push 0
push eax
push 0x427420
push 0
push 0
mov dword [eax], esi
mov dword [eax + 8], 0x4253c0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
call fcn.0047ab56
mov esi, eax
add esp, 0x18
test esi, esi
je 0x425389
cmp dword [ebp + 8], 0
je 0x42537d
push 0x927c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42537d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
call fcn.00474c79
push 0x4bfe80
lea eax, [ebp - 0x131]
push eax
call fcn.00471d3a
int3
Function at 0x427930
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4962d1
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c206c]
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 edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push 0
push eax
call fcn.00471be0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4279d9
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x427b55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
push 0x4ab460
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0041d970
test al, al
jne 0x427a42
push 0
push 0x4ab460
jmp 0x427a37
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x427b5f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041d970
test al, al
jne 0x427a42
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427a20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0041dc20
push 0
push 0x80
push 3
push 0
push 1
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x21c]
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x427b14
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x30], eax
cmp eax, 0xffffffff
je 0x427b0d
push 0
push eax
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x28], eax
test eax, eax
je 0x427b0d
push dword [edi + 0x30]
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
mov dword [edi + 0x2c], ecx
test ecx, ecx
je 0x427b0d
mov eax, dword [ecx + 0x3c]
mov edx, dword [eax + ecx + 8]
mov dword [edi + 0x34], edx
cmp edx, dword [edi + 0x30]
jae 0x427b0d
mov eax, dword [edx + ecx]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
cmp dword [eax], 0x2e707041
jne 0x427b0d
mov eax, dword [edx + ecx + 5]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x220], eax
test ecx, ecx
je 0x427afd
mov eax, dword [ecx]
push dword [ebp - 0x220]
call dword [eax + 8]
mov edx, dword [edi + 0x34]
lea eax, [edx + 9]
mov dword [ebp - 0x224], 1
mov dword [edi + 0x34], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x427b33
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x224]
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.004591b7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0041dc00
push 0x80004005
call fcn.0041dc00
int3
Function at 0x4298b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ecx + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov esi, dword [ecx]
mov eax, esi
push edi
mov dword [ebp - 8], ecx
nop dword [eax]
cmp eax, ecx
je 0x429982
sub esp, 0x14
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00423c10
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x42995d
mov eax, dword [esi + 0x18]
cmp eax, 1
jne 0x429942
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x42995d
mov eax, edx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x429920
sub eax, ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
jmp 0x429955
cmp eax, 4
jne 0x42995d
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0
push dword [esi + 0x14]
push edi
call ebx
test edi, edi
je 0x42996f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
mov eax, dword [esi]
mov esi, eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], 0
jmp 0x4298d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x429990
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ecx + 4]
push esi
push edi
mov esi, dword [ebx]
mov eax, esi
cmp eax, ebx
je 0x429a1a
push 0xf003f
push dword [esi + 0xc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push dword [esi + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00429d60
test eax, eax
jne 0x4299e2
mov eax, dword [esi + 0x10]
cmp dword [eax - 0xc], 0
je 0x429a04
push eax
lea ecx, [ebp - 0xc]
call fcn.00429b70
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x4299f7
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], 0
mov eax, dword [esi]
mov esi, eax
mov dword [ebp - 8], 0
jmp 0x4299a0
mov eax, dword [esi + 0x14]
cmp dword [eax - 0xc], 0
je 0x4299e2
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4299e5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429b70
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x4c206c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
or eax, 0x2001f
mov dword [esp + 0x1c], 0
push eax
push ecx
push dword [edi]
lea ecx, [esp + 0x20]
call fcn.00429d60
mov esi, eax
test esi, esi
jne 0x429d2a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
jne 0x429c3d
nop dword [eax + eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
call fcn.00429b70
mov esi, eax
test esi, esi
jne 0x429d2a
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call ebx
test eax, eax
je 0x429c00
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x429c56
push eax
call ebx
mov dword [esp + 0x14], 0
mov esi, dword [edi + 8]
mov dword [esp + 0x18], 0
test esi, esi
je 0x429cc0
cmp dword [esi], 0
mov edi, dword [edi]
je 0x429cab
push 0x4ab498
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x429c85
mov esi, 1
jmp 0x429d30
push str.RegDeleteKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x429c7b
push 0
push dword [esi]
push 0
push 0
push dword [esp + 0x1c]
push edi
call eax
mov esi, eax
jmp 0x429d30
cmp dword [esi + 4], 0
je 0x429c7b
push dword [esp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x429d30
cmp byte [0x4c7a14], 0
jne 0x429d00
push 0x4ab498
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x429cf2
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c7a10], eax
mov byte [0x4c7a14], 1
jmp 0x429d05
mov eax, dword [0x4c7a10]
mov byte [0x4c7a14], 1
jmp 0x429d05
mov eax, dword [0x4c7a10]
test eax, eax
je 0x429d1a
push 0
push dword [edi + 4]
push dword [esp + 0x14]
push dword [edi]
call eax
mov esi, eax
jmp 0x429d30
push dword [esp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x429d30
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x429d3b
push eax
call ebx
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004591b7
mov esp, ebp
pop ebp
ret 4
Function at 0x42bcf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4968a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x42be9c
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42bd5f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0041db00
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call fcn.00479dc7
add esp, 8
test eax, eax
js 0x42be92
cmp eax, dword [esi - 8]
jg 0x42be92
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x10]
call fcn.00401890
mov ebx, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, esi
cmp eax, ebx
je 0x42be5e
lea eax, [esi + 0xc]
push eax
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00422b90
mov byte [ebp - 4], 1
mov edi, esp
mov dword [ebp - 0x1c], edi
mov ecx, dword [esi + 0x14]
sub ecx, 0x10
mov dword [ebp - 0x18], esp
call fcn.0041d470
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 2
mov edi, esp
mov dword [ebp - 0x20], edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], esp
call fcn.0041d470
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 3
mov edi, esp
mov ecx, dword [esi + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], edi
call fcn.0041d470
add eax, 0x10
mov dword [edi], eax
push ecx
mov byte [ebp - 4], 4
mov edi, esp
mov ecx, dword [esi + 8]
sub ecx, 0x10
mov dword [ebp - 0x24], edi
call fcn.0041d470
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
call fcn.0042ad70
mov byte [ebp - 4], 0
add esp, 0x10
mov edx, dword [ebp - 0x14]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42be55
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov esi, eax
jmp 0x42bda3
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42be80
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 esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041dc00
push 0x80004005
call fcn.0041dc00
int3
Function at 0x42beb0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496718
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c206c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0041d700
mov ecx, eax
test ecx, ecx
je 0x42bfe0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x42bf1f
push 0x104
lea ecx, [ebp - 0x10]
call fcn.0041db00
mov esi, dword [ebp - 0x10]
push esi
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [esi - 8]
push esi
call fcn.00479dc7
add esp, 8
test eax, eax
js 0x42bfd6
cmp eax, dword [esi - 8]
jg 0x42bfd6
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x10]
call fcn.00401890
mov ebx, dword [ebx + 4]
or edi, 0xffffffff
mov esi, dword [ebx]
mov eax, esi
cmp eax, ebx
je 0x42bfa5
add eax, 0xc
lea edx, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
call fcn.00422b90
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42bf9f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
mov esi, eax
jmp 0x42bf66
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42bfc4
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 esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0041dc00
push 0x80004005
call fcn.0041dc00
int3