joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8eb4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405594
xor eax, eax
push ebp
push 0x4b9035
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
xor edx, edx
mov eax, 2
call fcn.0046680c
mov esi, eax
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0046682c
mov ebx, eax
jmp 0x4b9001
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405384
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.0040a0c8
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004092f4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.004092f4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.0040553c
je 0x4b8fd8
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00405384
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004092f4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004092f4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.0040553c
jne 0x4b8ff2
push 0
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.0046684c
mov ebx, eax
test ebx, ebx
jne 0x4b8f33
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b903c
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.00405138
lea eax, [ebp - 4]
call fcn.00405114
ret

Function at 0x4b91f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push esp
push 0x3ff
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405204
add esp, 0x400
pop ebx
ret
Function at 0x4b9250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x7a
add esp, 0xfffff004
push eax
dec eax
jne 0x4b9259
mov eax, dword [ebp - 4]
add esp, 0xfffffba8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x7a45c], ecx
mov dword [ebp - 0x7a454], ecx
mov dword [ebp - 0x7a450], ecx
mov dword [ebp - 0x7a44c], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405594
xor eax, eax
push ebp
push 0x4b9506
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c3394]
mov edx, 0x4b951c
call fcn.0040553c
jne 0x4b92c6
mov eax, 0x4b954c
call fcn.00437e34
jmp 0x4b94d0
mov eax, 0x4c3394
call fcn.00405604
mov esi, dword [eax]
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x15c]
call fcn.00403680
mov eax, dword [0x4c3b80]
mov byte [eax], 0
mov edx, 1
lea eax, [ebp - 0x15c]
call fcn.00403b34
call fcn.00403058
mov edx, esi
lea eax, [ebp - 0x15c]
call fcn.00403b5c
call fcn.00403058
push 0
lea edx, [ebp - 0x10]
mov ecx, 4
lea eax, [ebp - 0x15c]
call fcn.004037dc
call fcn.00403058
push 0
lea edx, [ebp - 0xc]
mov ecx, 4
lea eax, [ebp - 0x15c]
call fcn.004037dc
call fcn.00403058
lea edx, [esi + 0xc]
lea eax, [ebp - 0x15c]
call fcn.00403b5c
call fcn.00403058
push 0
lea edx, [ebp - 0x7a448]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x15c]
call fcn.004037dc
call fcn.00403058
push 0
lea edx, [ebp - 0x7a3c8]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x15c]
call fcn.004037dc
call fcn.00403058
lea eax, [ebp - 0x15c]
call fcn.0040381c
call fcn.00403058
lea eax, [ebp - 0x7a44c]
call fcn.004b91f8
lea eax, [ebp - 0x7a44c]
mov edx, 0x4b958c
call fcn.004053e0
mov edx, dword [ebp - 0x7a44c]
lea eax, [ebp - 0x2a8]
call fcn.00403680
mov edx, 1
lea eax, [ebp - 0x2a8]
call fcn.00403b50
call fcn.00403058
push 0
lea edx, [ebp - 0x7a3c8]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x2a8]
call fcn.004037fc
call fcn.00403058
lea eax, [ebp - 0x2a8]
call fcn.0040381c
call fcn.00403058
lea eax, [ebp - 0x7a450]
call fcn.004b91f8
lea eax, [ebp - 0x7a450]
mov edx, 0x4b958c
call fcn.004053e0
mov edx, dword [ebp - 0x7a450]
mov eax, dword [ebx + 0x3a8]
mov eax, dword [eax + 0x198]
call fcn.0042a050
lea eax, [ebp - 0x7a454]
call fcn.004b91f8
lea eax, [ebp - 0x7a454]
mov edx, 0x4b95a4
call fcn.004053e0
mov esi, dword [ebp - 0x7a454]
mov dword [ebp - 0x7a458], esi
mov eax, dword [ebp - 0x7a458]
call fcn.004055a4
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea eax, [ebp - 8]
lea edx, [ebp - 0x7a448]
mov ecx, 0x80
call fcn.00405384
push 0x4b95b8
push dword [ebp - 8]
push 0x4b95d4
lea eax, [ebp - 0x7a45c]
mov edx, 3
call fcn.004054a8
mov edx, dword [ebp - 0x7a45c]
mov eax, dword [ebx + 0x3b0]
call fcn.00445700
mov eax, dword [ebx + 0x3b0]
mov edx, dword [eax + 0x40]
add edx, dword [eax + 0x48]
mov eax, dword [ebx + 0x374]
call fcn.00444d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b950d
lea eax, [ebp - 0x7a45c]
call fcn.00405114
lea eax, [ebp - 0x7a454]
mov edx, 3
call fcn.00405138
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405138
ret
Function at 0x4b9da0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
mov dword [ebp - 0x94], 0x94
mov bl, 1
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4b9dd0
cmp dword [ebp - 0x90], 6
setae bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b9dd8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405594
xor eax, eax
push ebp
push 0x4b9f03
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004b9da0
test al, al
je 0x4b9e97
lea eax, [ebp - 0x10]
push eax
push 2
push 0
push 0x4b9f10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4b9e30
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, dword [ebp - 4]
call fcn.004055a4
push eax
push 1
push 0
push 0x4b9f28
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
push 2
push 0x4b9f34
push 1
push 0
push 0x4b9f38
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
push 2
push 0x4b9f48
push 1
push 0
push 0x4b9f4c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
push 2
push 0
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
jmp 0x4b9edd
lea eax, [ebp - 8]
call fcn.00406c84
push eax
push 0x4c33a8
push 1
push 0
push 0x4c3398
call sub.ole32.dll_CoCreateInstance
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405a54
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405a64
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
push 0xf
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9f0a
lea eax, [ebp - 0xc]
call fcn.004058f4
lea eax, [ebp - 8]
call fcn.00406c84
lea eax, [ebp - 4]
call fcn.00405114
ret
Function at 0x4b9f5c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4ba1c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4ba18f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x400
lea eax, [ebp - 0x414]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x418]
lea edx, [ebp - 0x414]
mov ecx, 0x400
call fcn.00405384
mov edx, dword [ebp - 0x418]
lea eax, [ebp - 4]
mov ecx, 0x4ba1dc
call fcn.0040542c
lea eax, [ebp - 0x41c]
push eax
mov dword [ebp - 0x434], ebx
mov byte [ebp - 0x430], 0
mov dword [ebp - 0x42c], edi
mov byte [ebp - 0x428], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov byte [ebp - 0x420], 0
lea edx, [ebp - 0x434]
mov ecx, 2
mov eax, 0x4ba1f4
call fcn.0040accc
mov edx, dword [ebp - 0x41c]
lea ecx, [ebp - 8]
mov eax, dword [esi + 0x380]
call fcn.004b5670
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4ba03e
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4ba228
call fcn.004056f0
sub ebx, eax
sub ebx, 0x22
push ebx
mov eax, 0x4ba228
mov edx, dword [ebp - 8]
call fcn.004056f0
mov edx, eax
add edx, 0x22
mov eax, dword [ebp - 8]
pop ecx
call fcn.0040560c
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x4ba254
call fcn.004056f0
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040560c
mov dl, 1
mov eax, dword [0x41811c]
call fcn.004041c8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ba176
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x380]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004b5618
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041c8ec
mov dl, 1
mov eax, dword [0x47d21c]
call fcn.0047d4d0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ba159
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov dl, 1
mov eax, dword [0x425d6c]
call fcn.0042c0cc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4ba13c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x50]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba143
mov eax, dword [ebp - 0x14]
call fcn.004041f8
ret
Function at 0x4ba55c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405594
xor eax, eax
push ebp
push 0x4ba5da
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403990
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00403990
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba5e1
lea eax, [ebp - 4]
call fcn.00405114
ret

Function at 0x4bae74
Capabilities:
Query environment variable

Disassembly:
push ebx
add esp, 0xfffffc00
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
push 0x4baea8
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00405384
add esp, 0x400
pop ebx
ret

Function at 0x4baeb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405594
xor eax, eax
push ebp
push 0x4baf3b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403990
mov dword [ebp - 0x48], 0x44
mov word [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x10
call fcn.00403990
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004055a4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4baf42
lea eax, [ebp - 4]
call fcn.00405114
ret

Function at 0x4bb9a0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret
Function at 0x4bb9bc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4bba00
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4bba00
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4bba97
mov eax, 0x400
call fcn.00402efc
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4bba90
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4c33b8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4bba86
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4bba82
mov byte [esp], 1
jmp 0x4bba86
inc edi
dec ebx
jne 0x4bba69
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402f18
movzx eax, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x401978
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x408128]
push ebx
push edi
push 2
xor ebx, ebx
mov word [ebp - 8], 0x500
pop edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp eax, edi
jne 0x401a9e
lea ecx, [ebp - 0x10]
call fcn.004018bf
test eax, eax
jne 0x401a8d
lea eax, [ebp - 0x18]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401a9e
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x401a7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401a7f
push esi
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401a7e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x401a77
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push edi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401a77
cmp dword [esi], ebx
jbe 0x401a6e
lea edi, [esi + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401a63
inc ebx
add edi, 8
cmp ebx, dword [esi]
jb 0x401a4a
jmp 0x401a6e
xor eax, eax
inc eax
mov dword [0x408128], eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x401a9e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x401a9e
mov dword [0x408128], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ff0
leave
ret
Function at 0x40209f
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
test bl, 2
jne 0x4020b3
call fcn.00401fb9
cmp eax, 2
jne 0x4020e8
test bl, 4
jne 0x4020d4
push 4
push 0x40
push 0
push 0x401158
mov edx, 0x522
xor ecx, ecx
call fcn.004046c7
cmp eax, 6
jne 0x4020e8
cmp word [0x409a40], 0
jne 0x4020ea
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
ret
pop ebx
jmp fcn.00401fed

Function at 0x4020f6
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x408530], 0
je 0x40213b
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40213b
push 0x408530
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x402371
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x408530], 0
je 0x40248c
push esi
lea eax, [ebp - 0x344]
xor esi, esi
push eax
push 0x2001f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40248b
push ebx
lea eax, [ebp - 0x348]
mov ebx, 0x238
push eax
lea eax, [ebp - 0x340]
mov dword [ebp - 0x348], ebx
push eax
push esi
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40247e
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40242b
push 0x401158
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00406836
push 0x4091e4
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe__sadvpack.dll_DelNodeRunDLL32___s_
lea eax, [ebp - 0x340]
push ebx
push eax
call fcn.004017e1
add esp, 0x14
lea ecx, [ebp - 0x340]
lea edx, [ecx + 1]
pop edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402456
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push esi
push 0x408530
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ff0
leave
ret
Function at 0x40249e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x408004]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4025dd
cmp byte [esi], 0
je 0x4025dd
push ecx
push esi
push ecx
mov ebx, 0x104
lea ecx, [esp + 0x15c]
mov edx, ebx
call fcn.00401846
push 0x40120c
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00401773
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4025dd
push ecx
push esi
push ecx
mov edx, ebx
lea ecx, [esp + 0x15c]
call fcn.00401846
test byte [esp + 0x10], 0x10
lea eax, [esp + 0x3c]
je 0x40258b
push 0x401210
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4025bb
push 0x401214
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4025bb
lea eax, [esp + 0x3c]
mov edx, ebx
push eax
lea ecx, [esp + 0x154]
call fcn.00401773
push 0x401158
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00406836
lea ecx, [esp + 0x150]
call fcn.0040249e
jmp 0x4025bb
push eax
mov edx, ebx
lea ecx, [esp + 0x154]
call fcn.00401773
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402517
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406ff0
mov esp, ebp
pop ebp
ret

Function at 0x4025f8
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x402673
push 0x401218
mov edx, edi
lea ecx, [ebp - 0x108]
call fcn.00406836
lea eax, [ebp - 0x108]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x402673
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll__llseek]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00406ff0
leave
ret
Function at 0x402689
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push 0x40800c
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026db
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push str.PendingFileRenameOperations
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4026e7
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0x20019
push esi
push str.SystemCurrentControlSetControlSession_ManagerFileRenameOperations
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40273b
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 8]
neg eax
sbb eax, eax
not eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret