joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401581
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
push 5
call fcn.00402fa9
xor esi, esi
add esp, 0xc
inc esi
cmp eax, esi
jge 0x4015b6
push 3
pop eax
jmp 0x401797
push ebx
push edi
push 0x431f50
push 0x431d48
push str.__s___s
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00403cb5
lea eax, [ebp - 0x20c]
mov edi, 0x432770
push eax
push str.Executing:__s
push ebx
push edi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x24
test eax, eax
je 0x40160c
push edi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, esi
jne 0x401622
push esi
call fcn.004080f7
pop ecx
push 0x40
lea eax, [ebp - 0x260]
mov dword [ebp - 0x264], 0x44
push 0
push eax
call fcn.0040ea10
movsx eax, byte [0x432360]
push eax
call fcn.0041136d
add esp, 0x10
cmp eax, 0x48
jne 0x401660
xor eax, eax
mov dword [ebp - 0x238], esi
mov word [ebp - 0x234], ax
xor eax, eax
lea edi, [ebp - 0x220]
stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
mov ebx, edx
cmp byte [0x432158], cl
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x264]
push eax
mov eax, 0x432158
cmove eax, ecx
push eax
push edx
push 0x20
push edx
push edx
push edx
lea eax, [ebp - 0x20c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, esi
jne 0x401764
mov edi, 0x103
mov dword [ebp - 0x210], edi
cmp byte [0x433b04], bl
jne 0x4016fe
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, esi
jne 0x4016f4
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401711
call fcn.00405ace
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x433b04], bl
je 0x4016be
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x401711
push edi
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x401737
push eax
push str._08x
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00403cb5
add esp, 0x10
lea eax, [ebp - 0x20c]
jmp 0x40173c
mov eax, 0x4266e8
push eax
push str.LASTERROR
call fcn.00408e39
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x220]
call esi
push dword [ebp - 0x21c]
call esi
xor esi, esi
inc esi
jmp 0x40177c
push str.SILENT
push 0x432568
call fcn.00411439
neg eax
pop ecx
sbb ebx, ebx
pop ecx
and ebx, 0x1b
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, esi
jne 0x401793
push 0
call fcn.004080f7
pop ecx
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040d595
leave
ret
Function at 0x40189d
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 3
call fcn.00402fa9
add esp, 0xc
cmp eax, 2
jge 0x4018cf
push 3
pop eax
jmp 0x401a7e
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x4018e6
push eax
call fcn.004080f7
pop ecx
push ebx
push esi
push edi
mov ebx, 0x431f50
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x208
cmp eax, 0xffffffff
je 0x40191a
test al, 0x10
je 0x40191a
push ebx
call fcn.00407281
mov dword [esp], 0x431d48
push esi
push ebx
call fcn.0041139d
add esp, 0xc
push ebx
push str.Copying_file:__s
push esi
mov esi, 0x432770
push esi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x10
test eax, eax
je 0x401947
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409061
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, eax
pop ecx
push 0x431f50
push 0x431d48
call fcn.00405df5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a61
test esi, esi
jle 0x401984
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x40195a
cmp edi, 0x1f
jne 0x401a36
push str.REBOOTIFLOCKED
push 0x432158
call fcn.00411439
pop ecx
pop ecx
test eax, eax
jne 0x401a2d
mov esi, 0x431f50
lea eax, [ebp - 0x108]
push esi
push str._s.bak
push 0x104
push eax
call fcn.00403cb5
add esp, 0x10
lea eax, [ebp - 0x108]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
xor ecx, ecx
test eax, eax
push 4
push ecx
lea eax, [ebp - 0x108]
cmovne edi, ecx
push eax
call esi
mov byte [0x4339f2], 1
test edi, edi
jne 0x401a28
push str.TRYTIME
call fcn.00409061
pop ecx
mov esi, eax
push 0x431f50
push 0x431d48
call fcn.00405df5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401a28
test esi, esi
jle 0x401a28
push 0x64
call ebx
sub esi, 0x64
test esi, esi
jg 0x401a02
cmp edi, 0x1f
jne 0x401a32
push 8
pop edi
jmp 0x401a36
test edi, edi
je 0x401a61
push str.SILENT
push 0x432158
call fcn.00411439
pop ecx
pop ecx
test eax, eax
jne 0x401a61
push 0x431f50
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 8
pop edi
cmovne edi, ecx
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x401a79
push 0
call fcn.004080f7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d595
leave
ret
Function at 0x401bed
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fa9
add esp, 0xc
cmp eax, 4
jge 0x401c0d
push 3
pop eax
leave
ret
push ebx
push esi
push edi
mov ebx, 0x432360
mov edi, 0x432770
push ebx
push 0x432158
push str.Creating_Registry_value:__s_s
push 0x208
push edi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x14
xor esi, esi
test eax, eax
je 0x401c4c
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x401c63
push eax
call fcn.004080f7
pop ecx
push 0xa
push esi
push ebx
call fcn.00415281
push 0x431d48
mov dword [ebp - 8], eax
mov edi, esi
call fcn.00402ffb
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401ceb
cmp byte [0x4339f0], 0
mov esi, 0xf003f
je 0x401cad
push 0x4264f0
push 0x432568
call fcn.00411439
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push esi
xor esi, esi
push esi
push esi
push esi
push 0x431f50
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x432158
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401cee
push 0xc
pop edi
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x401d05
push esi
call fcn.004080f7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d0c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 5
call fcn.00402fa9
add esp, 0xc
cmp eax, 4
jge 0x401d2b
push 3
pop eax
leave
ret
push esi
push edi
push 0x432360
push 0x432158
push str.Creating_Registry_value:__s_s
push 0x208
mov esi, 0x432770
push esi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x14
xor edi, edi
test eax, eax
je 0x401d68
push esi
push edi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x401d7f
push eax
call fcn.004080f7
pop ecx
push ebx
push 0x431d48
mov esi, edi
call fcn.00402ffb
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e03
cmp byte [0x4339f0], 0
mov edi, 0xf003f
je 0x401dbc
push 0x4264f0
push 0x432568
call fcn.00411439
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove edi, ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push edi
xor edi, edi
push edi
push edi
push edi
push 0x431f50
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, 0x432360
push ebx
call fcn.00411520
pop ecx
inc eax
push eax
push ebx
push 1
push edi
push 0x432158
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e06
push 0xb
pop esi
push str.REALUSER
call fcn.00409061
pop ecx
pop ebx
cmp eax, 1
jne 0x401e1e
push edi
call fcn.004080f7
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40211e
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x744
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.Removing_DeskSoft_license_file_association
push 0x208
mov esi, 0x432770
push esi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x402164
push esi
push ebx
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.DeskSoftLicense
call fcn.00407a4a
pop ecx
test eax, eax
jne 0x4022b4
push 0x530
lea eax, [ebp - 0x73c]
push ebx
push eax
call fcn.0040ea10
add esp, 0xc
lea eax, [ebp - 0x744]
mov esi, ebx
push eax
push 0x20019
push ebx
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4022b4
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
jmp 0x40222c
lea eax, [ebp - 0x73c]
inc esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00407f02
pop ecx
pop ecx
test al, al
je 0x402219
push str.SetDLC.exe
lea eax, [ebp - 0x728]
push eax
push str._s_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402294
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x744]
mov dword [ebp - 0x740], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x4021c8
cmp byte [ebp - 0x728], bl
je 0x402290
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x728]
push eax
push str._s_s.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
push 0x426670
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.00408a32
add esp, 0x24
xor eax, eax
jmp 0x4022b7
push 0x4266e8
push str.DeskSoft_License_File
lea eax, [ebp - 0x108]
push eax
push str.DeskSoftLicense
call fcn.00408a32
add esp, 0x10
jmp 0x402290
push 0x1a
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
Function at 0x4022c5
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 2
call fcn.00402fa9
add esp, 0xc
cmp eax, 1
jge 0x4022f7
push 3
pop eax
jmp 0x402466
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x40230e
push eax
call fcn.004080f7
pop ecx
push esi
push edi
mov esi, 0x431d48
lea eax, [ebp - 0x20c]
push esi
push 0x104
push eax
call fcn.00411193
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040eca0
add esp, 0x14
test eax, eax
je 0x402340
mov byte [eax + 1], 0
lea eax, [ebp - 0x34c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402443
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x426598
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x40242d
lea eax, [ebp - 0x108]
push eax
push str.Deleting_file:__s
push 0x208
push 0x432770
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x10
test eax, eax
je 0x4023cf
push 0x432770
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.TRYTIME
call fcn.00409061
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
pop ecx
cmovl esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40242d
test esi, esi
jle 0x40241c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40242d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 0x64
test esi, esi
jg 0x4023e6
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402359
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.REALUSER
call fcn.00409061
pop ecx
pop edi
pop esi
cmp eax, 1
jne 0x402464
push 0
call fcn.004080f7
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d595
leave
ret
Function at 0x40254e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push 4
call fcn.00402fa9
add esp, 0xc
cmp eax, 3
jge 0x40256c
push 3
pop eax
leave
ret
push ebx
push esi
push edi
push 0x432158
push str.Deleting_Registry_value:__s
push 0x208
mov esi, 0x432770
push esi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x10
test eax, eax
je 0x4025a4
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x4025bb
push eax
call fcn.004080f7
pop ecx
push 0x431d48
xor edi, edi
call fcn.00402ffb
mov ebx, eax
pop ecx
test ebx, ebx
je 0x402628
cmp byte [0x4339f0], 0
mov esi, 0xf003f
je 0x4025f7
push 0x4264f0
push 0x432360
call fcn.00411439
pop ecx
pop ecx
test eax, eax
mov ecx, 0xf013f
cmove esi, ecx
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x431f50
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], edi
je 0x40262b
push 0x432158
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40262b
push 0x16
pop edi
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, 1
jne 0x402643
push 0
call fcn.004080f7
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a8e
Capabilities:
Check if file exists
Delete directory
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 8]
inc edi
push edi
call fcn.00402fa9
add esp, 0xc
cmp eax, edi
je 0x402ab0
push 3
pop eax
jmp 0x402b48
push esi
push 0x431d48
push str.Removing_directory:__s
push 0x208
mov esi, 0x432770
push esi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x10
test eax, eax
je 0x402ae6
push esi
push 0
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, edi
jne 0x402afc
push edi
call fcn.004080f7
pop ecx
push 0x431d48
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402b2e
push 0x431d48
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x402b2e
push 4
push eax
push 0x431d48
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 0x14
pop esi
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, edi
jne 0x402b45
push 0
call fcn.004080f7
pop ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x402b4b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
call fcn.00402fa9
xor edi, edi
add esp, 0xc
inc edi
cmp eax, edi
jge 0x402b6e
push 3
pop eax
jmp 0x402bfb
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, edi
jne 0x402b84
push edi
call fcn.004080f7
pop ecx
push ebx
push esi
push str..exe
mov esi, 0x431d48
xor ebx, ebx
push esi
call fcn.0040ede0
pop ecx
pop ecx
test eax, eax
je 0x402bc6
push str.Elevated
push 0x432158
call fcn.00411439
pop ecx
pop ecx
test eax, eax
je 0x402bc6
push ebx
push 0x431f50
push esi
call fcn.004087ec
add esp, 0xc
mov esi, eax
jmp 0x402be1
push edi
push ebx
push 0x431f50
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x1b
cmp eax, 0x20
mov esi, ebx
pop ecx
cmovbe esi, ecx
push str.REALUSER
call fcn.00409061
pop ecx
cmp eax, edi
jne 0x402bf7
push ebx
call fcn.004080f7
pop ecx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x402da5
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
push 1
call fcn.00402fa9
add esp, 0xc
cmp eax, 1
je 0x402dd4
push 3
pop eax
jmp 0x402e61
push ebx
push esi
push edi
mov ebx, 0x431d48
mov edi, 0x432770
push ebx
push str.Stopping_service:__s
push 0x208
push edi
call fcn.00403cb5
mov eax, dword [0x432b90]
add esp, 0x10
xor esi, esi
test eax, eax
je 0x402e0e
push edi
push esi
push 0x8001
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x402e24
inc eax
jmp 0x402e5e
push 0xf01ff
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x402e55
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d595
leave
ret
Function at 0x402e6d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1464
call fcn.0040d760
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x402f92
push str.RegDeleteKeyEx
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1464], eax
test eax, eax
je 0x402f92
lea eax, [ebp - 0x1458]
push eax
push 0xf013f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0x1458], 0
je 0x402f9a
xor ecx, ecx
mov dword [ebp - 0x145c], 0xa28
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x145c]
mov dword [ebp - 0x1460], ecx
push eax
lea eax, [ebp - 0xa2c]
push eax
push ecx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402f75
mov byte [ebp + 0x10], bl
mov ebx, dword [ebp - 0x1460]
lea eax, [ebp - 0xa2c]
inc ebx
push eax
push edi
push str._s_s
lea eax, [ebp - 0x1454]
push 0xa28
push eax
call fcn.00403cb5
push dword [ebp + 0x10]
lea eax, [ebp - 0x1454]
push eax
push esi
call fcn.00402e6d
add esp, 0x20
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x145c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push ebx
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x402f1e
push dword [ebp - 0x1458]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x100
push edi
push esi
call dword [ebp - 0x1464]
jmp 0x402f9a
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret
Function at 0x403d46
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
inc edi
push edi
call fcn.004080f7
push esi
push str._s_test.tmp
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00403cb5
add esp, 0x14
lea eax, [ebp - 0x108]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, ebx
push eax
cmove esi, edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call fcn.004080f7
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d595
leave
ret

Function at 0x403dd4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [ebp + 0x10]
call fcn.0040859e
pop ecx
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x403e51
push dword [ebp + 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathA]
test eax, eax
jne 0x403e51
push 0x10
push 0x40f
push dword [ebp + 8]
call fcn.00405b8a
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0xb1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x405be0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x20c]
push eax
call fcn.00408742
pop ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xfffffffffffffff4
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, dword [ebp + 0xc]
jne 0x405c44
push 0
push dword [0x433b90]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0040d595
leave
ret 8

Function at 0x405df5
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405e32
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x405e2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
pop ecx
push 0x1f
cmp eax, 0x20
pop edx
cmove ecx, edx
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
xor eax, eax
push eax
push eax
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f0b
add esp, 0x18
pop ebp
ret
Function at 0x405e49
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405e81
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405e81
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, esi
inc esi
cmp eax, 0xa
jl 0x405e4f
push 7
pop eax
jmp 0x405e83
xor eax, eax
pop esi
pop ebp
ret

Function at 0x405e86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405f03
cmp byte [edi], 0
je 0x405f03
push edi
call fcn.00411520
pop ecx
push edi
lea ebx, [edi + eax]
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405efa
test esi, esi
je 0x405ef6
push 0x5c
push edi
call fcn.0040eca0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x405ec7
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405eb0
jmp 0x405ef6
test esi, esi
je 0x405ede
mov byte [esi], 0x5c
jmp 0x405ee5
cmp byte [edi], 0
mov esi, edi
je 0x405eeb
inc esi
cmp byte [esi], 0
jne 0x405ee5
push edi
call fcn.00405e49
pop ecx
test eax, eax
jne 0x405efe
cmp esi, ebx
jb 0x405ed5
xor eax, eax
jmp 0x405f06
xor eax, eax
inc eax
jmp 0x405f06
push 2
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret