joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d640
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
mov eax, 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea esi, [eax - 3]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d67b
xor eax, eax
pop esi
add esp, 0xc
ret
mov ecx, dword [esp + 0x20]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d6a2
xor esi, esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x40d6c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
mov esi, 1
push edx
mov dword [esp + 0x1c], esi
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d6f9
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d71c
xor esi, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40d730
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d76b
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 4]
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40d78c
xor esi, esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x40d7a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40d7db
xor eax, eax
pop edi
add esp, 8
ret
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
add eax, 1
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x40d807
xor edi, edi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 8
ret
Function at 0x40d820
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push eax
push ecx
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x40d860
mov eax, dword [esp + 8]
mov ecx, dword [esp]
push esi
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
test esi, esi
setne al
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x40e5e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x520
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [esp + 0x524]
mov ecx, dword [esp + 0x528]
push ebx
mov ebx, dword [esp + 0x530]
push ebp
mov ebp, dword [esp + 0x53c]
push esi
mov esi, dword [esp + 0x53c]
push edi
mov edi, dword [esp + 0x548]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call fcn.0040f890
test eax, eax
je 0x40e745
test dword [0x4330b8], 0x40000
je 0x40e745
lea edx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x14]
mov ecx, 0x19
call fcn.0040d820
add esp, 4
test eax, eax
jne 0x40e685
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x11c]
push eax
xor ecx, ecx
call fcn.0040d820
add esp, 4
test eax, eax
jne 0x40e685
xor eax, eax
jmp 0x40e77f
push edi
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x120]
mov edx, ecx
push ecx
push edx
mov edx, ebp
mov ecx, esi
call fcn.0040e200
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40e741
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call fcn.00413690
lea edx, [esp + 0x24]
push edx
call fcn.0040e9f0
push ebx
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.004136f5
push str..lnk
lea ecx, [esp + 0x38]
push 0x104
push ecx
call fcn.004136f5
push 0
lea edx, [esp + 0x454]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.0040f320
add esp, 0x34
test eax, eax
je 0x40e741
lea ecx, [esp + 0x324]
push ecx
push edi
call fcn.0040e0c0
add esp, 8
lea edx, [esp + 0x324]
push edx
lea eax, [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e741
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x40e77f
lea edx, [esp + 0x220]
push edx
mov edx, dword [esp + 0x14]
xor ecx, ecx
call fcn.0040d820
add esp, 4
test eax, eax
je 0x40e67e
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x224]
mov ecx, eax
push eax
push ecx
mov edx, ebp
mov ecx, esi
call fcn.0040e200
add esp, 0xc
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412c09
add esp, 0x520
ret

Function at 0x40ea80
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea ecx, [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00412c09
add esp, 0x108
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40eeaa
test al, 0x10
jne 0x40eeaa
mov eax, 1
ret
xor eax, eax
ret
Function at 0x40eeb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
call fcn.0040e9f0
add esp, 4
push str.url.dll
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
push eax
call fcn.0040ee90
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
call fcn.00412c09
add esp, 0x108
ret

Function at 0x40ef60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push str.shfolder.dll
mov dword [esp + 0x14], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [esp + 0x124]
mov ebx, eax
test ebx, ebx
je 0x40efd3
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40efc8
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push esi
push ebp
call eax
xor edx, edx
test eax, eax
setge dl
mov edi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40f029
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov edx, ebp
call fcn.0040ef20
mov edi, eax
add esp, 4
test edi, edi
jne 0x40f029
cmp esi, 0x24
je 0x40effe
cmp esi, 0x25
je 0x40effe
cmp esi, 0x26
je 0x40effe
cmp esi, 0x2b
jne 0x40f025
push str.shell32.dll
call fcn.0040e8e0
add esp, 4
cmp eax, 0x50000
jb 0x40f054
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov edx, ebp
call fcn.0040ef20
add esp, 4
mov edi, eax
test edi, edi
je 0x40f039
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412c09
add esp, 0x10c
ret
cmp esi, 0x26
je 0x40f092
cmp esi, 0x2b
je 0x40f092
cmp esi, 0x24
jne 0x40f078
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esi - 0x23]
jmp 0x40f029
cmp esi, 0x25
jne 0x40f0c7
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esi - 0x24]
jmp 0x40f029
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Program_Files
lea edx, [esp + 0x1b]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, 0x2b
jne 0x40f0c7
push str.Common_Files
lea eax, [esp + 0x1b]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 1
jmp 0x40f029
Function at 0x40f170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
mov ebx, dword [esp + 0x26c]
push esi
mov esi, dword [esp + 0x26c]
push edi
mov edi, dword [esp + 0x278]
push esi
lea eax, [esp + 0x168]
push 0x104
push eax
call fcn.00413690
lea ecx, [esp + 0x170]
push ecx
call fcn.0040f120
add esp, 0x10
push str..exe
push esi
call fcn.0040f140
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40f219
mov edi, 1
push edi
lea edx, [esp + 0x168]
push edx
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40f2f9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00412c09
add esp, 0x260
ret
push esi
lea eax, [esp + 0x65]
push eax
mov byte [esp + 0x68], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x427c64
lea ecx, [esp + 0x64]
push ecx
call esi
test ebx, ebx
je 0x40f248
push ebx
lea edx, [esp + 0x64]
push edx
call esi
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x16c]
push eax
push 0
push 0x4000020
push 0
push 0
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test edi, edi
mov esi, eax
je 0x40f2cb
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [edi], edx
mov edx, dword [esp + 0x18]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00412c09
add esp, 0x260
ret
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0x10]
push ecx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00412c09
add esp, 0x260
ret
mov ecx, dword [esp + 0x268]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412c09
add esp, 0x260
ret

Function at 0x40fb20
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x4424ac], 0
jne 0x40fbb4
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fb7c
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret
mov eax, dword [esp + 0xc]
shr eax, 0x10
mov edx, 1
cmp dword [esp + 0x10], edx
movzx ecx, ah
movzx eax, al
jne 0x40fbae
cmp ecx, 4
jne 0x40fba4
cmp eax, 0xa
mov dword [0x4424a8], edx
jb 0x40fbae
mov dword [0x4424a8], 0
mov dword [0x4424ac], edx
mov ecx, dword [esp + 0x94]
mov eax, dword [0x4424a8]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret
Function at 0x40fbd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x4424b1], 0
je 0x40fc09
movzx eax, byte [0x4424b0]
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fc48
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40fc6f
cmp dword [esp + 4], 5
sete al
test al, al
mov byte [0x4424b0], al
je 0x40fc74
cmp dword [esp + 8], 0
sete al
mov byte [0x4424b0], al
jmp 0x40fc74
mov al, byte [0x4424b0]
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov byte [0x4424b1], 1
movzx eax, al
call fcn.00412c09
add esp, 0x98
ret

Function at 0x40fca0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x94], eax
cmp byte [0x4424b3], 0
jne 0x40fd16
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fcfc
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret
cmp dword [esp + 0x10], 2
jne 0x40fd0f
cmp dword [esp + 4], 5
setae byte [0x4424b2]
mov byte [0x4424b3], 1
mov ecx, dword [esp + 0x94]
movzx eax, byte [0x4424b2]
xor ecx, esp
call fcn.00412c09
add esp, 0x98
ret

Function at 0x40fd40
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x4424b5], 0
je 0x40fd79
movzx eax, byte [0x4424b4]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fdb8
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
jne 0x40fdd5
cmp dword [esp + 4], 6
jne 0x40fdd5
cmp dword [esp + 8], 0
sete al
mov byte [0x4424b4], al
jmp 0x40fdda
mov al, byte [0x4424b4]
test al, al
mov cl, 1
je 0x40fdf0
cmp byte [esp + 0x9a], cl
je 0x40fdf0
xor al, al
mov byte [0x4424b4], al
mov byte [0x4424b5], cl
mov ecx, dword [esp + 0x9c]
xor ecx, esp
movzx eax, al
call fcn.00412c09
add esp, 0xa0
ret
Function at 0x40fe10
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x4424b7], 0
je 0x40fe49
movzx eax, byte [0x4424b6]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40fe88
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
mov ecx, 1
jne 0x40feb6
mov eax, dword [esp + 4]
cmp eax, 6
jbe 0x40fea6
mov al, cl
mov byte [0x4424b6], al
jmp 0x40febf
jne 0x40feb6
cmp dword [esp + 8], ecx
setae al
mov byte [0x4424b6], al
jmp 0x40febb
mov al, byte [0x4424b6]
test al, al
je 0x40fecf
cmp byte [esp + 0x9a], cl
je 0x40fecf
xor al, al
mov byte [0x4424b6], al
mov byte [0x4424b7], cl
mov ecx, dword [esp + 0x9c]
xor ecx, esp
movzx eax, al
call fcn.00412c09
add esp, 0xa0
ret

Function at 0x40fef0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x9c], eax
cmp byte [0x4424b9], 0
je 0x40ff29
movzx eax, byte [0x4424b8]
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.00412dc0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40ff68
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.00412c09
add esp, 0xa0
ret
cmp dword [esp + 0x10], 2
mov cl, 1
jne 0x40ff81
cmp dword [esp + 4], 6
jb 0x40ff81
mov al, cl
mov byte [0x4424b8], al
jmp 0x40ff8a
mov al, byte [0x4424b8]
test al, al
je 0x40ff9a
cmp byte [esp + 0x9a], cl
jne 0x40ff9a
xor al, al
mov byte [0x4424b8], al
mov byte [0x4424b9], cl
mov ecx, dword [esp + 0x9c]
xor ecx, esp
movzx eax, al
call fcn.00412c09
add esp, 0xa0
ret
Function at 0x4101b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x4101bd
xor eax, eax
pop ebp
ret
mov eax, dword [esp + 8]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4101e7
pop ebx
xor eax, eax
pop ebp
ret
push esi
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x41020c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop ebp
ret
push edi
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x410266
push 0x28
call fcn.00412b28
add esp, 4
test eax, eax
je 0x41025f
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [ebp], edi
mov dword [eax + 8], edi
pop edi
mov dword [eax + 4], esi
pop esi
mov dword [eax], ebx
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret

Function at 0x410360
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x4dc
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x4d8], eax
mov eax, dword [esp + 0x4e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
push 0x168
lea ecx, [esp + 0x114]
push ecx
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x27c]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x427c9c
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x168
lea edx, [esp + 0x114]
push edx
push edi
call ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x27c]
push ecx
call esi
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.0040e9f0
add esp, 4
push str.WININIT.INI
lea ecx, [esp + 0x10]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x7fff
push 0x4424c0
push str.Rename
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov esi, eax
lea eax, [esp + 0x278]
push eax
lea ecx, [esi + 0x4424c0]
push ecx
call ebp
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax + esi + 0x4424c1], 0
lea eax, [esp + 0xc]
push eax
push 0x4424c0
push str.Rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov ecx, dword [esp + 0x4e4]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412c09
add esp, 0x4dc
ret
Function at 0x410480
Capabilities:
Move file

Disassembly:
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
ret
call fcn.0040f890
test eax, eax
mov eax, dword [esp + 8]
je 0x410496
mov ecx, dword [esp + 4]
jmp 0x410350
push edi
mov edi, dword [esp + 8]
push eax
call fcn.00410360
add esp, 4
pop edi
ret

Function at 0x410530
Capabilities:
Shutdown system

Disassembly:
call fcn.0040f890
test eax, eax
je 0x41057b
push 0x427964
push str.SeShutdownPrivilege
mov eax, 1
call fcn.004104b0
add esp, 8
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x410561
xor eax, eax
ret
push 0x427964
push str.SeShutdownPrivilege
xor eax, eax
call fcn.004104b0
add esp, 8
mov eax, 1
ret
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x41055e
mov eax, 1
ret
Function at 0x410590
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x11c
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x10]
push edx
push 0x427d50
push 1
xor esi, esi
push esi
push 0x427d70
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x410727
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x427d60
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x41071b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
test edi, edi
je 0x410635
cmp byte [edi], 0
je 0x410635
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e950
add esp, 4
test eax, eax
je 0x410675
lea edx, [esp + 0x20]
push edx
mov byte [eax], 0
call fcn.0040ea30
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test ebp, ebp
je 0x41068c
cmp byte [ebp], 0
je 0x41068c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebp
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4106d8
cmp byte [eax], 0
je 0x4106d8
push eax
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2c
push ecx
call fcn.00413342
add esp, 8
xor ecx, ecx
test eax, eax
je 0x4106c6
mov byte [eax], cl
add eax, 1
push eax
call fcn.00413bb6
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
push 0x104
push 0x44a4c0
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push 0x44a4c0
push eax
call edx
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
setge cl
push eax
mov eax, dword [edx + 8]
mov esi, ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x128]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00412c09
add esp, 0x11c
ret