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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42c760]
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.004090c0
add esp, 4
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]
test eax, eax
jne 0x406934
push eax
push dword [0x42fdf0]
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x400
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, ax
push eax
push 0x406850
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret

Function at 0x406a40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push ebx
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
call fcn.004087c0
add esp, 4
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeA]
test eax, eax
je 0x406ab8
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsNetworkPathA]
test eax, eax
jne 0x406ab8
push 0x10
push 0x40f
push esi
call fcn.00404da0
add esp, 0xc
push 0xffffffffffffffff
push 0
push 0xb1
push ebx
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push ebx
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret

Function at 0x406ac0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x422a64
call fcn.00408f30
lea eax, [ebp - 0x20c]
push eax
call fcn.004087c0
lea eax, [ebp - 0x20c]
push eax
push str._sCheckFolderAccess.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404c40
lea eax, [ebp - 0x108]
push eax
push str.CheckFolderAccess.exe
call fcn.00406ca0
add esp, 0x28
test eax, eax
je 0x406b40
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00409e70
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
jne 0x406b8d
cmp dword [ebp - 0x210], esi
jne 0x406b8d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x406be0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406c78
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x406c78
push ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
add ecx, ebx
push ecx
push 1
call fcn.004166f8
mov esi, eax
add esp, 8
test esi, esi
je 0x406c5f
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp - 8]
je 0x406c5f
push esi
call fcn.00416679
add esp, 4
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x406c6f
mov dword [eax], ebx
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push dword [ebp + 0xc]
push eax
push 0
push 0
push esi
call fcn.00407420
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
cmp eax, 0xffffffff
je 0x406ce3
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ecx, 8
mov edx, 0x1f
cmove ecx, edx
mov eax, ecx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
push 0
push 0
push 1
push dword [ebp + 0xc]
push esi
call fcn.00407420
add esp, 0x18
pop esi
pop ebp
ret
Function at 0x406d00
Capabilities:
Check if file exists
Copy file
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [ebp + 0x10]
push 0
cmp eax, 0xffffffff
je 0x406d4a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x406d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov edi, 8
mov ecx, 0x1f
cmove edi, ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x406d64
push 0
push 0
push 1
push esi
push edi
call fcn.00407420
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x406e17
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x406d90
pop edi
mov eax, 0x18
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call fcn.00406be0
add esp, 0xc
mov dword [ebp - 0x10], eax
test eax, eax
je 0x406d85
mov esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
test eax, eax
jle 0x406e03
push ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
add esi, 8
push 0
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x406dfd
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], ebx
jne 0x406dfd
mov ecx, dword [ebp - 8]
mov eax, 0xfffffff8
sub eax, ebx
add esi, ebx
add ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jg 0x406db5
jmp 0x406e02
mov edi, 0x18
pop ebx
push dword [ebp - 0x10]
call fcn.00416679
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4070b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40715f
push esi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040f453
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0040c820
add esp, 0x14
test eax, eax
je 0x40711b
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.004071b0
add esp, 4
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40715f
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push 0
push eax
push esi
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 2
cmp esi, dword [ebp - 0x10c]
pop edi
cmovne eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret

Function at 0x4071b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40726f
cmp byte [ebx], 0
je 0x40726f
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4071d0
push esi
sub ecx, edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
lea eax, [ecx + ebx]
mov dword [ebp + 8], eax
mov esi, eax
call edi
cmp eax, 0xffffffff
jne 0x407268
test esi, esi
je 0x407211
push 0x5c
push ebx
call fcn.0040c820
mov esi, eax
add esp, 8
test esi, esi
je 0x407209
mov byte [esi], 0
push ebx
call edi
cmp eax, 0xffffffff
je 0x4071f1
cmp esi, dword [ebp + 8]
jae 0x407268
test esi, esi
je 0x40721f
mov byte [esi], 0x5c
jmp 0x407221
mov esi, ebx
cmp byte [esi], 0
je 0x40722c
inc esi
cmp byte [esi], 0
jne 0x407226
xor edi, edi
nop
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x407263
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407263
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
inc edi
cmp eax, 0xa
jl 0x407230
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
cmp esi, dword [ebp + 8]
jb 0x407216
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x408210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
push dword [ebp + 8]
mov dword [0x42f7c0], 0
je 0x408241
push 0
push fcn.00407db0
call fcn.0041697c
add esp, 0xc
cmp eax, 0xffffffff
jne 0x408249
mov eax, 0xe
pop ebp
ret
call fcn.00407db0
add esp, 4
xor eax, eax
pop ebp
ret

Function at 0x408b10
Capabilities:
Create process on windows
Get installed programs
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
lea eax, [ebp - 0x108]
mov dword [ebp - 0x114], 0x104
push 0x104
push eax
call fcn.00404c40
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408ba1
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
push str.UninstallString
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x110]
test eax, eax
je 0x408bb2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea eax, [ebp - 0x164]
mov dword [ebp - 0x168], 0x44
push 0
push eax
call fcn.0040cfa0
add esp, 0xc
lea eax, [ebp - 0x124]
xorps xmm0, xmm0
movups xmmword [ebp - 0x124], xmm0
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x408c1f
mov eax, 0xfffffffe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
mov dword [ebp - 0x10c], 0x103
call edi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 1
jne 0x408c7c
nop dword [eax + eax]
cmp dword [ebp - 0x10c], 0x103
jne 0x408c7c
call fcn.00404e00
push 0xc8
call esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x124]
call edi
cmp eax, 1
je 0x408c50
push 0x423254
call fcn.0040a1d0
add esp, 4
test eax, eax
je 0x408cad
nop dword [eax]
call fcn.00404e00
push 0xc8
call esi
push 0x423254
call fcn.0040a1d0
add esp, 4
test eax, eax
jne 0x408c90
push dword [ebp - 0x124]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x120]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
xor ecx, ebp
pop edi
pop esi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x409240
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x18]
xor bl, bl
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
movzx ebx, bl
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 2
push eax
push str.SeShutdownPrivilege
mov esi, 1
push 0
cmove ebx, esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
test eax, eax
movzx ebx, bl
push 0
lea eax, [ebp - 0x14]
cmove ebx, esi
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4092be
test bl, bl
jne 0x4092be
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x4092d0
Capabilities:
Enumerate gui resources
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x120], eax
xor esi, esi
mov dword [ebp - 0x110], esi
nop
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push 0x423120
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x409326
xor al, al
jmp 0x40936c
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 0x118]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov esi, dword [ebp - 0x110]
sete al
inc edi
mov dword [ebp - 0x114], edi
test al, al
je 0x4094b4
push dword [ebp - 0x120]
lea eax, [ebp - 0x108]
push eax
call fcn.0040c960
add esp, 8
test eax, eax
je 0x409300
push 0
call fcn.00416637
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], edx
nop
lea eax, [ebp - 0x108]
mov dword [0x42f844], 0
push eax
push 0x40a450
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x42f844]
mov edi, dword [ebp - 0x114]
test eax, eax
je 0x409300
lea ecx, [ebp - 0x124]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x124]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x12
push dword [0x42f844]
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10c], 0x103
xor esi, esi
cmp esi, 0x64
jge 0x409444
lea eax, [ebp - 0x10c]
push eax
push edi
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp dword [ebp - 0x10c], 0x103
je 0x409420
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10c], 0x103
mov eax, 1
mov esi, dword [ebp - 0x110]
mov edi, dword [ebp - 0x114]
cmove esi, eax
cmp dword [0x42f844], 0
mov dword [ebp - 0x110], esi
je 0x409300
push 0
call fcn.00416637
add esp, 4
sub eax, dword [ebp - 0x128]
sbb edx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], edx
js 0x4093b0
jg 0x4094a9
cmp eax, 0x3c
jb 0x4093b0
mov edi, dword [ebp - 0x114]
jmp 0x409300
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x409780
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4097ac
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x42f848]
sub esi, 1
jne 0x409792
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x4097c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x423134
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4097eb
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x409821
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push edi
push eax
push 1
call fcn.004166f8
mov edi, eax
add esp, 8
test edi, edi
je 0x409853
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409864
push edi
call fcn.00416679
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov ecx, 0x52e
cmp dword [ebp - 8], ecx
cmovb ecx, dword [ebp - 8]
push ecx
push edi
push esi
call fcn.0040d680
push edi
call fcn.00416679
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 1
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4098a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push dword [ebp + 8]
push 0
push str.SoftwareDeskSoft
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4098fe
mov eax, dword [ebp + 0xc]
mov ecx, 1
push 0x52e
push eax
push 3
push 0
push dword [ebp + 8]
mov word [eax], cx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
je 0x409904
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x409910
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x63c
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x638]
push edi
mov edi, dword [ebp + 8]
push 0x52e
push 0
push eax
call fcn.0040cfa0
lea eax, [ebp - 0x638]
push eax
push edi
call fcn.004097c0
add esp, 0x14
test al, al
jne 0x409962
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
push 1
call fcn.00409180
mov ax, word [ebp - 0x628]
add esp, 4
test ax, ax
jne 0x4099b3
push esi
push 0x1a
call fcn.00408810
push edi
push str.DeskSoft_s
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404c40
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
call fcn.0040f8ef
mov ax, word [ebp - 0x628]
add esp, 0x24
cmp ax, 1
jne 0x409a1e
lea eax, [ebp - 0x520]
push eax
push 0x104
push esi
call fcn.0040f453
add esp, 0xc
cmp word [ebp - 0x626], 0
je 0x409a1e
push 0x42316c
push 0x104
push esi
call fcn.0040f8ef
add esp, 0xc
mov dword [ebp - 0x63c], 0x104
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x108]
push eax
push 0x104
push esi
call fcn.0040f8ef
add esp, 0xc
cmp dword [0x42fc4c], 0x258
jl 0x409a30
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x409dd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
push 0x423358
push 0x104
push eax
call fcn.00404c40
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push edi
push str._sfile
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00404c40
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
Function at 0x409e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68c
mov eax, dword [0x42c760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push str.CreateProcessWithTokenW
push str.Advapi32.dll
mov dword [ebp - 0x630], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x634], eax
test eax, eax
jne 0x409ede
push 1
push eax
push edi
push ebx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0x20
cmp ecx, eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b37e
mov esp, ebp
pop ebp
ret
push 0
push str.Progman
mov dword [ebp - 0x62c], 1
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40a0b5
lea ecx, [ebp - 0x620]
mov dword [ebp - 0x620], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x620]
test eax, eax
je 0x40a0b5
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x638], eax
test eax, eax
je 0x40a0b5
lea ecx, [ebp - 0x628]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a0ad
lea eax, [ebp - 0x624]
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40a0a5
test edi, edi
je 0x409f90
cmp byte [edi], 0
je 0x409f90
mov cl, 1
jmp 0x409f92
xor cl, cl
test cl, cl
mov eax, 0x4230c2
mov edx, 0x4230c3
cmovne eax, edi
push eax
mov eax, 0x4230fc
cmove eax, edx
push eax
push dword [ebp - 0x630]
lea eax, [ebp - 0x20c]
push str.__s__s_s
push 0x208
push eax
call fcn.00404c40
add esp, 0x18
lea eax, [ebp - 0x61c]
push 0x104
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x40
lea eax, [ebp - 0x688]
mov dword [ebp - 0x68c], 0x44
push 0
push eax
call fcn.0040cfa0
add esp, 0xc
lea eax, [ebp - 0x648]
xorps xmm0, xmm0
movups xmmword [ebp - 0x648], xmm0
push eax
lea eax, [ebp - 0x68c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x61c]
push eax
push 0
push 0
push dword [ebp - 0x624]
call dword [ebp - 0x634]
test eax, eax
je 0x40a09d
test esi, esi
je 0x40a083
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
push dword [ebp - 0x648]
mov dword [esi], 0x103
call edi
cmp eax, 1
jne 0x40a083
nop dword [eax]
cmp dword [esi], 0x103
jne 0x40a083
call fcn.00404e00
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp - 0x648]
call edi
cmp eax, 1
je 0x40a060
push dword [ebp - 0x648]
mov dword [ebp - 0x62c], 0
call ebx
push dword [ebp - 0x644]
call ebx
push dword [ebp - 0x624]
call ebx
push dword [ebp - 0x628]
call ebx
push dword [ebp - 0x638]
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x62c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040b37e
mov esp, ebp
pop ebp
ret