joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403bf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452400
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
je 0x403c4f
mov eax, edx
lea esi, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c40
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x5c]
call fcn.00401430
push 1
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00403f20
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c7b
xor esi, esi
jmp 0x403d1b
push esi
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
push 0xffffffffffffffff
lea eax, [esi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401c90
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.00403980
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb esi, esi
mov eax, dword [ebp - 0x18]
inc esi
cmp eax, 8
jb 0x403cde
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x403d07
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004013d0
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x403d30
inc ecx
push ecx
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
call fcn.004013d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004352e6
mov esp, ebp
pop ebp
ret 4
Function at 0x403d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45243b
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00436220
mov eax, dword [0x46d2f0]
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, dword [ebp + 8]
lea eax, [ebp - 0x1010]
mov edi, dword [ebp + 0xc]
push 0x1000
push 0
push eax
mov dword [ebp - 0x102c], 0x800
call fcn.00438910
xor eax, eax
mov dword [ebp - 0x1014], 7
mov dword [ebp - 0x1018], 0
mov word [ebp - 0x1028], ax
add esp, 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1028]
push eax
push esi
lea eax, [ebp - 0x1030]
push eax
call fcn.004037b0
test eax, eax
je 0x403e56
cmp dword [ebp - 0x1014], 8
lea ecx, [ebp - 0x102c]
push ecx
lea ecx, [ebp - 0x1010]
push ecx
lea ecx, [ebp - 0x1034]
push ecx
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
push 0
push eax
push dword [ebp - 0x1030]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403e56
cmp word [ebp - 0x1010], ax
jne 0x403e28
xor ecx, ecx
jmp 0x403e40
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403e31
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x1010]
mov ecx, edi
push eax
call fcn.00401430
mov esi, 1
jmp 0x403e58
xor esi, esi
mov ecx, dword [ebp - 0x1014]
cmp ecx, 8
jb 0x403e76
inc ecx
push ecx
push dword [ebp - 0x1028]
lea ecx, [ebp - 0x1028]
call fcn.004013d0
mov eax, esi
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.004352e6
mov esp, ebp
pop ebp
ret 8

Function at 0x404130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404149
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404186
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404182
nop word [eax + eax]
cmp esi, edx
jae 0x404186
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404170
cmp esi, edx
jb 0x40418d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404220
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x46620c]
movq xmm0, qword [0x466204]
mov dword [ebp - 0xc], eax
movzx eax, word [0x466210]
mov word [ebp - 8], ax
mov eax, dword [0x46622c]
movq qword [ebp - 0x14], xmm0
movups xmm0, xmmword [str.__echo_off_n_del___1__n_del___0]
push esi
mov dword [ebp - 0x1c], eax
movzx eax, word [0x466230]
push edi
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x14]
movups xmmword [ebp - 0x34], xmm0
push 0x466264
movq xmm0, qword [0x466224]
push eax
movq qword [ebp - 0x24], xmm0
call fcn.0043e6b3
mov esi, eax
add esp, 8
test esi, esi
je 0x4042aa
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00403fa0
push esi
call fcn.0043b68d
add esp, 0xc
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.00443c15
push 0
push dword [eax]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.00443c15
push dword [eax]
lea eax, [ebp - 0x138]
push str.__s_
push eax
call fcn.00401f30
lea ecx, [ebp - 0x138]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404302
sub ecx, edx
lea edi, [ecx + 1]
cmp edi, 0x3fffffff
jg 0x404346
lea eax, [edi + edi]
call fcn.00435e70
mov esi, esp
test esi, esi
je 0x404346
push edi
push esi
xor eax, eax
push 0xffffffffffffffff
mov word [esi], ax
lea eax, [ebp - 0x138]
push eax
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404348
xor eax, eax
push 0
push 0
push eax
push str.DeleteBat.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404370
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 8
mov edi, ecx
call fcn.00436220
mov ebx, esp
test ebx, ebx
je 0x4043ba
push 0
push 0
push 6
push ebx
push 0xffffffffffffffff
push 0x4669bc
push 0
push 3
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, ebx
jmp 0x4043bc
xor esi, esi
test edi, edi
je 0x404412
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4043c5
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
cmp eax, 0x3fffffff
jg 0x404412
add eax, eax
call fcn.00435e70
mov ebx, esp
test ebx, ebx
je 0x404412
mov ecx, dword [ebp - 8]
push 0
push 0
mov byte [ebx], 0
lea eax, [ecx + ecx]
push eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, ebx
jmp 0x404414
xor eax, eax
push esi
push eax
push str.RunShellExecute_path
push 0
call fcn.004030f0
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4044af
test edi, edi
je 0x404487
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404440
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x404487
add ebx, ebx
mov eax, ebx
call fcn.00435e70
mov esi, esp
test esi, esi
je 0x404487
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x404489
xor eax, eax
push eax
push 0x4662b8
push 0
call fcn.004030f0
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004352e6
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 0x3c
push 0
push eax
call fcn.00438910
add esp, 0xc
mov dword [ebp - 0x40], 0x440
lea eax, [ebp - 0x44]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], str.runas
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x4669bc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x404573
test edi, edi
je 0x40452b
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404511
sub ecx, edx
sar ecx, 1
lea esi, [ecx + 1]
cmp esi, 0x3fffffff
jle 0x40452f
xor esi, esi
jmp 0x404546
add esi, esi
mov eax, esi
call fcn.00435e70
mov ecx, esp
mov edx, edi
push 3
push esi
call fcn.004030b0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.path
push 2
call fcn.004030f0
add esp, 0x10
xor eax, eax
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004352e6
mov esp, ebp
pop ebp
ret
mov eax, 1
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004352e6
mov esp, ebp
pop ebp
ret
Function at 0x404590
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
mov esi, ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x404634
push 0xf01ff
push dword [esi]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x404624
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x404624
cmp dword [ebp - 0x1c], 1
je 0x4045f0
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov edi, eax
test edi, edi
je 0x404618
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov edi, 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
test esi, esi
je 0x404634
push esi
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004352e6
mov esp, ebp
pop ebp
ret
Function at 0x404650
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452486
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x46d2f0]
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
mov dword [ebp - 0x428], esi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x430], 0
mov ecx, dword [eax]
mov eax, dword [0x46fc88]
cmp eax, dword [ecx + 4]
jle 0x4046f3
push 0x46fc88
call fcn.00435468
add esp, 4
cmp dword [0x46fc88], 0xffffffff
jne 0x4046f3
call fcn.00401a50
mov ecx, eax
test ecx, ecx
jne 0x4046cf
push 0x80004005
call fcn.00404070
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x453a80
mov dword [0x46fc8c], eax
call fcn.004357bf
push 0x46fc88
call fcn.00435429
add esp, 8
mov eax, dword [0x46fc8c]
cmp dword [eax - 0xc], 0
jne 0x4047c9
push 0x412
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00438910
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x428]
call fcn.00404e70
push str.PEAN_StudioPocketAnimation
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.00404bf0
add esp, 4
push eax
mov ecx, 0x46fc8c
mov byte [ebp - 4], 1
call fcn.00404de0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x42c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40478c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x428]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4047ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x46fc8c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4047c9
mov ecx, dword [0x46fc8c]
call fcn.00404800
push 0x46fc8c
mov ecx, esi
call fcn.00405020
mov eax, esi
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.004352e6
mov esp, ebp
pop ebp
ret
Function at 0x404800
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4524b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x46d2f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.00404e70
push 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40488c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x40488c
lea ecx, [ebp - 0x10]
call fcn.004048d0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x404888
mov ecx, eax
call fcn.00404800
test eax, eax
je 0x404885
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40488c
call esi
cmp eax, 0xb7
je 0x40488c
mov eax, dword [ebp - 0x10]
xor esi, esi
jmp 0x404894
mov eax, dword [ebp - 0x10]
mov esi, 1
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4048b3
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404980
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452539
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
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_PathIsRelativeW]
or esi, 0xffffffff
test eax, eax
je 0x404a71
lea ecx, [ebp - 0x224]
call fcn.00404b80
push 0x465e64
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x220]
call fcn.00404bf0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00404cc0
add esp, 8
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00404de0
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404a86
lea edi, [eax + 1]
jmp 0x404b36
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00438910
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00443b0c
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, 0x104
sub eax, ecx
push eax
lea eax, [ebp - 0x218]
lea eax, [eax + ecx*2]
push 0
push eax
call fcn.00438910
xorps xmm0, xmm0
mov word [ebp - 0x228], 0
movups xmmword [ebp - 0x240], xmm0
lea eax, [ebp - 0x218]
add esp, 0x24
movq qword [ebp - 0x230], xmm0
mov dword [ebp - 0x23c], eax
mov eax, 0x614
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x404b34
cmp dword [ebp - 0x232], eax
jne 0x404b34
lea edi, [eax + 1]
jmp 0x404b36
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x404b55
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.004352e6
mov esp, ebp
pop ebp
ret
Function at 0x404b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00438910
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00404e70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004352e6
mov esp, ebp
pop ebp
ret
Function at 0x405c90
Capabilities:
Delete file
Delete service
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4526fb
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x46d2f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405cd8
push dword [esi + 0x1c]
push 1
call eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405ce6
push dword [esi + 0x1c]
push 2
call eax
call fcn.00405ee0
test al, al
jne 0x405cfe
push str.delete_startmenu_failed_n
push 2
call fcn.004030f0
add esp, 8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405d0c
push dword [esi + 0x1c]
push 3
call eax
push 0x4667d0
lea ecx, [ebp - 0x228]
call fcn.00404e70
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x405d8d
push 0xf01ff
push dword [ebp - 0x228]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x405d84
lea ecx, [ebp - 0x228]
call fcn.00404590
push edi
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x405d72
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
jmp 0x405d8a
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
mov edx, dword [ebp - 0x228]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405dab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.00405a20
push 0x208
lea eax, [ebp - 0x224]
push 0
push eax
call fcn.00438910
add esp, 0xc
lea eax, [ebp - 0x224]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ChatPPT.lnk
lea eax, [ebp - 0x224]
push eax
push str._s_s
push 0x104
push eax
call fcn.00406210
add esp, 0x14
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405e15
push dword [esi + 0x1c]
push 4
call eax
call fcn.00405780
mov eax, dword [esi + 0x18]
test eax, eax
je 0x405e28
push dword [esi + 0x1c]
push 5
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004352e6
mov esp, ebp
pop ebp
ret 4
Function at 0x405ee0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452750
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x46d2f0]
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 - 0x10], esp
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405ff0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x200
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push str.Programs
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x414]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x405f82
mov eax, dword [str.ChatPpt]
mov dword [ecx], eax
mov eax, dword [0x4668bc]
mov dword [ecx + 4], eax
mov eax, dword [0x4668c0]
mov dword [ecx + 8], eax
mov eax, dword [0x4668c4]
mov dword [ecx + 0xc], eax
mov ax, word [0x4668c8]
mov word [ecx + 0x10], ax
lea eax, [ebp - 0x414]
push ecx
mov ecx, esp
push eax
call fcn.00404e70
call fcn.00404980
add esp, 4
test eax, eax
setne al
jmp 0x405ff2
xor al, al
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.004352e6
mov esp, ebp
pop ebp
ret