joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b873c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b8774
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b67c6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b679e
jmp 0x4b8780
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b9e2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b9e6c
call fcn.004bff9f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b9e6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b9e63
xor eax, eax
jmp 0x4b9e74
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b9e7a
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c04cf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c04fd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c051b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c0435
jmp 0x4c051b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c051b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c0435
test edi, edi
mov eax, edi
jne 0x4c0505
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401140
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x24
push ebp
push 0xf003f
push 0
push 0
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 8], ebp
jne 0x401170
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebp
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
push ebx
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x4011a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
push edi
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4011cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
mov esi, eax
call edi
push ebp
call edi
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4011ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
cmp dword [esp + 0x1c], 2
jne 0x40127a
mov eax, 0xcccccccd
mul dword [esp + 0x30]
shr edx, 3
cmp edx, 0x3e8
jae 0x40121d
mov edx, 0x3e8
jmp 0x40122a
cmp edx, 0x2710
jbe 0x40122a
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401266
cmp dword [esp + 0x2c], ebp
jbe 0x401251
call edi
mov ebp, dword [esp + 0x2c]
mov esi, eax
jmp 0x40125d
call edi
mov ecx, dword [esp + 0x30]
sub eax, esi
cmp eax, ecx
ja 0x401272
cmp dword [esp + 0x1c], 2
je 0x401202
jmp 0x40127a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
jmp 0x40127a
mov dword [esp + 0x10], 0x41d
cmp dword [esp + 0x1c], 4
jne 0x401289
mov dword [esp + 0x10], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x24
ret
Function at 0x4012b0
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
sub esp, 0x54
push ebx
push esi
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x68]
mov edi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push 1
push esi
call edi
test eax, eax
je 0x4012ea
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x401455
mov edx, dword [esp + 0xc]
push ebp
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x40144d
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push ebp
push 1
push esi
call edi
test eax, eax
je 0x401443
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x18], 0
jbe 0x401429
nop
mov ecx, 9
mov esi, ebp
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x68]
push 0x24
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401401
lea edx, [esp + 0x24]
push edx
mov edi, 1
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4013f0
cmp dword [esp + 0x28], edi
je 0x4013f8
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4013d5
cmp dword [esp + 0x28], edi
je 0x4013f8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x20]
cmp eax, 0xea60
jbe 0x4013e1
push esi
mov ebx, 0xfffffffe
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x4013f8
cmp dword [esp + 0x28], edi
jne 0x401395
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x401425
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
inc eax
add ebp, 0x24
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x401350
mov ebp, dword [esp + 0x1c]
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x401429
mov ebx, 0xe
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret
Function at 0x401470
Capabilities:
Check os version
Create service
Persist via windows service

Disassembly:
sub esp, 0xa4
mov eax, dword [str._q_]
mov ecx, dword [esp + 0xb8]
xor eax, esp
push ebx
mov ebx, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push esi
push edi
mov edi, dword [esp + 0xb8]
push 0xf003f
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xc8]
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x401572
mov edx, dword [esp + 0x18]
push 0
push 0
push edx
push 0
push 0
push ebp
push 1
push 2
push 0x10
push 0xf01ff
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x401563
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x401555
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401555
cmp dword [esp + 0x20], 5
jb 0x401555
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401555
push str.ChangeServiceConfig2A
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401555
lea ecx, [esp + 0x10]
push ecx
push 1
push edi
mov dword [esp + 0x1c], ebx
call eax
push edi
call ebp
mov edi, dword [esp + 0x14]
push esi
call ebp
mov eax, edi
jmp 0x401578
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebp
mov eax, edi
jmp 0x401578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0xa4
ret
Function at 0x4015a0
Capabilities:
Modify service
Query service configuration

Disassembly:
sub esp, 0x10
push ebx
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4016ed
mov eax, dword [esp + 0x1c]
push esi
push 0xf01ff
push eax
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x40169f
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
jne 0x401694
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x401694
push ebp
mov ebp, dword [esp + 0x10]
push ebp
call fcn.0040f6e7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401693
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x401686
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x2c]
push eax
push edi
call fcn.0040f315
add esp, 8
test eax, eax
je 0x401686
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x401686
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
push ebx
call fcn.0040f5cf
mov edi, dword [esp + 0x20]
add esp, 4
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
jmp 0x4016b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0x10], eax
jne 0x4016b8
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esp + 0x14], ebx
pop esi
je 0x4016f9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.00401470
add esp, 0x14
pop edi
pop ebx
add esp, 0x10
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0xc]
pop edi
pop ebx
add esp, 0x10
ret

Function at 0x4017d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
push 0x20006
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401831
mov edx, dword [esp + 0x10]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401800
mov ecx, dword [esp + 0x10]
sub eax, esi
inc eax
push eax
push edx
mov edx, dword [esp + 0x10]
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, edi
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ecx
ret
Function at 0x4018c0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
push 0x80000002
or esi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401902
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret
mov eax, esi
pop esi
pop ecx
ret

Function at 0x401aa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
mov edx, dword [esp + 0x5c]
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401afb
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
add esp, 0x54
ret

Function at 0x401b10
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b33
test al, 1
je 0x401b33
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401b46
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401b50
Capabilities:
Delete registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
push edi
mov dword [esp + 4], 0
je 0x401bac
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401bac
mov edi, dword [esp + 0x14]
test edi, edi
je 0x401bac
push esi
lea edx, [esp + 8]
push edx
push 0x20006
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401ba6
mov eax, dword [esp + 8]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ecx
ret
mov eax, 0x57
pop edi
pop ecx
ret
Function at 0x401bc0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x114
mov eax, dword [str._q_]
mov ecx, dword [esp + 0x11c]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
test eax, eax
mov dword [esp], 0
je 0x401ca2
test ecx, ecx
je 0x401ca2
lea edx, [esp]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ca7
push eax
mov ecx, dword [esp + 4]
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x401c81
push esi
mov esi, dword [esp + 8]
dec esi
js 0x401c80
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401c7f
mov ecx, dword [esp + 8]
push eax
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x104
call edi
test eax, eax
jne 0x401c7c
mov eax, dword [esp + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00401bc0
add esp, 8
dec esi
jns 0x401c44
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040f175
add esp, 0x114
ret
mov eax, 0x57
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0040f175
add esp, 0x114
ret

Function at 0x401cc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
push edi
xor edi, edi
cmp ecx, edi
mov dword [esp + 4], edi
je 0x401dbb
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x401dbb
push esi
mov dword [eax], edi
lea eax, [esp + 8]
push eax
push 1
push edi
push ecx
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x401db3
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x20]
push edx
push edi
push edi
push edi
push ebx
push eax
mov dword [esp + 0x38], edi
call ebp
mov esi, eax
cmp esi, edi
jne 0x401da6
mov ecx, dword [esp + 0x20]
add ecx, 2
push ecx
call fcn.0040f6e7
mov edi, eax
add esp, 4
test edi, edi
je 0x401da1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push ecx
call ebp
mov esi, eax
test esi, esi
jne 0x401d83
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x401d68
cmp eax, 2
jne 0x401d83
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
push eax
mov dword [edx], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov eax, esi
pop esi
pop edi
add esp, 8
ret
push edi
call fcn.0040f5cf
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov eax, esi
pop esi
pop edi
add esp, 8
ret
mov esi, 0xe
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov eax, esi
pop esi
pop edi
add esp, 8
ret
mov eax, 0x57
pop edi
add esp, 8
ret
Function at 0x402150
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
lea eax, [esp + 0xc]
push eax
push esi
mov bl, 0x2b
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, ecx
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
jb 0x4021a8
ja 0x402192
cmp edx, edi
jbe 0x4021a8
push 0
sub edx, edi
push 0x23c34600
sbb eax, ecx
push eax
push edx
call fcn.0040f760
mov bl, 0x2d
jmp 0x4021ba
push 0
sub edi, edx
push 0x23c34600
sbb ecx, eax
push ecx
push edi
call fcn.0040f760
cdq
mov ecx, 0x3c
idiv ecx
movzx ecx, word [esi + 0xa]
push edx
push eax
movzx eax, word [esi + 0xc]
movsx edx, bl
push edx
movzx edx, word [esi + 8]
push eax
movzx eax, word [esi + 6]
push ecx
movzx ecx, word [esi + 2]
push edx
movzx edx, word [esi]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push str._d__02d__02d__02d:_02d:_02d__c_02d:_02d
push eax
call fcn.0040f6f9
add esp, 0x2c
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x402580
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
mov eax, dword [str._q_]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x124]
mov dword [esp + 0x114], eax
push esi
mov esi, dword [esp + 0x124]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x402697
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0xc]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
mov dword [esp + 0x10], eax
jl 0x402689
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x40266e
lea eax, [esp + 0x14]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402606
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402615
sub eax, edx
test esi, esi
je 0x402676
test eax, eax
push edi
jle 0x40262e
cmp byte [eax + ebp - 1], 0x5c
je 0x402643
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402631
mov dx, word [0x41b960]
mov word [edi], dx
mov eax, esi
mov edx, esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402647
sub eax, edx
dec ebp
mov edi, ebp
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402653
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
jmp 0x402676
mov dword [esp + 0x10], 0x80004005
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x402689
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
xor ecx, esp
call fcn.0040f175
add esp, 0x114
ret

Function at 0x402750
Capabilities:
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [str._q_]
xor eax, esp
push esi
mov esi, dword [esp + 0x114]
push edi
mov edi, dword [esp + 0x11c]
push 0
push 0
mov dword [esp + 0x114], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4027d8
mov ecx, dword [esp + 0x114]
lea eax, [esp + 8]
push eax
push edi
push esi
push ecx
call fcn.004026b0
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x4027d0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4027d0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4027c0
call esi
mov esi, eax
jmp 0x4027d0
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0040f175
add esp, 0x108
ret
Function at 0x4027f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x34c
mov eax, dword [str._q_]
xor eax, esp
push esi
mov esi, dword [esp + 0x358]
test esi, esi
mov dword [esp + 0x34c], eax
je 0x402902
cmp byte [esi], 0
je 0x402902
push edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jl 0x4028e9
mov ecx, dword [esp + 0x358]
lea eax, [esp + 0x148]
push eax
push esi
push ecx
call fcn.00402580
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x4028e3
push ebx
lea edx, [esp + 0x14c]
push edx
lea eax, [esp + 0x254]
push str._s
push eax
call fcn.0040f6f9
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4028cb
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x38]
push 0x41b968
push eax
call fcn.0040f281
add esp, 8
test eax, eax
je 0x4028bf
lea ecx, [esp + 0x38]
push 0x41b964
push ecx
call fcn.0040f281
add esp, 8
test eax, eax
jne 0x4028db
lea edx, [esp + 0xc]
push edx
push esi
call ebx
test eax, eax
jne 0x402893
lea eax, [esp + 0x14c]
push eax
call fcn.0040f847
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.0040f175
add esp, 0x34c
ret
mov ecx, dword [esp + 0x34c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0040f175
add esp, 0x34c
ret

Function at 0x402920
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
push edi
je 0x402993
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402993
mov edi, dword [esp + 0x14]
test edi, edi
je 0x402993
push esi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x40298e
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402961
mov ecx, dword [esp + 0xc]
sub eax, edx
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
ret
mov eax, 0x57
pop edi
ret