joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43de90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dec3
push esi
call fcn.00440f80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43debc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43df49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43df32
mov eax, dword [esi + 8]
test eax, eax
je 0x43dee7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43df2e
cmp eax, 2
je 0x43df32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43deda
cmp eax, 3
je 0x43df0d
cmp eax, 1
jne 0x43deda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43deda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43deda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043df70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43df58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043df70
add esp, 4
pop esi
ret

Function at 0x46589a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4658d2
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.00463951
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463929
jmp 0x4658de
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466f8c
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 0x466fce
call fcn.0046cc7b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466fce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466fc5
xor eax, eax
jmp 0x466fd6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466fdc
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d1ab
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 0x46d1d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d1f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d111
jmp 0x46d1f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d1f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d111
test edi, edi
mov eax, edi
jne 0x46d1e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4021bd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x581a70
call fcn.00510fdc
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edi, [esi + 0x38]
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
call fcn.00568023
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00568023
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00568023
and byte [ebp - 4], 0
lea ecx, [esi + 0x2c]
call fcn.00568023
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x1c]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40c602
Capabilities:
Check os version

Disassembly:
mov eax, 0x5826db
call fcn.00510fdc
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.0056d101
mov eax, dword [0x66cc08]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x59c0b0
jne 0x40c688
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00511000
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40c681
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40c688
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.005119ae
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40c69d
call fcn.00565a0a
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040c862
push eax
call fcn.00511000
push 0x200002
call fcn.00568612
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040c862
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040c862
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040c862
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040c862
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040c862
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040c862
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040c862
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40c75a
mov ecx, esi
call fcn.0040c862
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.0057c7fa
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040c862
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040c862
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40c48b
je 0x40c793
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40c7d2
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.005681ba
push ebx
mov ecx, edi
call fcn.00568468
push 0x7c
push eax
call fcn.00511985
pop ecx
cmp eax, ebx
pop ecx
je 0x40c7c5
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40c7af
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040c862
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x40e018
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5828bc
call fcn.00510fdc
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00568097
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x40e052
push eax
mov ecx, esi
call fcn.0056b91f
or ebx, 0xffffffff
jmp 0x40e0e4
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e0c4
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.00566efa
cmp dword [ebp - 0x10], edi
jge 0x40e0ae
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e0ae
push edi
push 1
push dword [ebp + 8]
call fcn.004118ff
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x40e0d2
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4101cc
Capabilities:
Read clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x6749b4
mov ecx, edi
call fcn.005681ba
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x4101fe
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x410202
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x410229
push eax
mov ecx, edi
call fcn.005681ba
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
je 0x410226
mov ecx, edi
call fcn.0056540b
mov ecx, edi
call fcn.0056537f
push 1
pop eax
pop edi
pop esi
ret 8
Function at 0x4102f3
Capabilities:
Copy file

Disassembly:
mov eax, 0x582b10
call fcn.00510fdc
mov eax, 0x1024
call fcn.00511420
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.00568097
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x410343
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.0041111c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0056816a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00568023
push dword [ebp - 0x10]
call fcn.00411391
cmp eax, 0xffffffff
pop ecx
jne 0x410358
push 0xfffffffffffffffe
jmp 0x41041e
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.00511058
lea eax, [ebp - 0x830]
push eax
call fcn.00511362
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.00511985
add esp, 0x18
cmp eax, ebx
je 0x4103a9
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.00511985
pop ecx
pop ecx
jmp 0x410393
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.00511058
lea eax, [ebp - 0x1030]
push eax
call fcn.00511362
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00511000
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
je 0x410417
or ebx, 0xffffffff
jmp 0x41041f
cmp dword [ebp - 0x1e], ebx
je 0x41041f
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4104ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.00511058
lea eax, [ebp - 0x820]
push eax
call fcn.00511362
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00511000
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41055f
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret
Function at 0x410deb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x410e19
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x410e68
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x410e66
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410e66
test esi, esi
jne 0x410e66
push 1
pop eax
jmp 0x410e68
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x410e6d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.0051137f
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x410ee9
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410ee9
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410ec6
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x410ee9
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.00511bd1
pop ecx
pop ecx
jmp 0x410e8d
push esi
call fcn.00511ae8
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x410f1a
Capabilities:
Get file version info

Disassembly:
mov eax, 0x582ca0
call fcn.00510fdc
sub esp, 0x50
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
je 0x410fbc
mov esi, 0x59d474
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jbe 0x410f61
push ebx
lea ecx, [ebp - 0x28]
call fcn.0041102b
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410fa8
push 0x34
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00511000
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5dd200
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x410fd2
cmp dword [ebp - 0x14], 0x34
je 0x410fc1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
je 0x410fbc
lea ecx, [ebp - 0x28]
call fcn.00411067
or eax, 0xffffffff
jmp 0x41100a
push 0x34
lea eax, [ebp - 0x5c]
push dword [ebp - 0x18]
push eax
call fcn.00511650
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
movzx ecx, word [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x50]
shr ecx, 0x10
cmp dword [ebp - 0x24], edi
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x50]
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x28], esi
je 0x411008
lea ecx, [ebp - 0x28]
call fcn.00411067
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41157c
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x582d4b
call fcn.00510fdc
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00568097
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.005653c8
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00568097
mov eax, dword [0x66cc08]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005652d9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x4115fd
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567d90
mov dword [ebp - 0x1c], ebx
jmp 0x411653
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.005652d9
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005652d9
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x411640
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x411609
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567d90
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00568023
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.00568023
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x411689
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x582d87
call fcn.00510fdc
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00568097
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.005653c8
push dword [ebp + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00568097
mov eax, dword [0x66cc08]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 3
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005652d9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
jne 0x41170a
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567d90
mov dword [ebp - 0x1c], ebx
jmp 0x411760
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.005652d9
add esp, 0x10
lea eax, [ebp + 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005652d9
add esp, 0x14
push dword [ebp + 0x14]
call esi
test eax, eax
je 0x41174d
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x411716
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567d90
mov dword [ebp - 0x1c], 1
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.00568023
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00568023
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41184b
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2b4
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov edi, 0x2b4
mov esi, ecx
push edi
push 0
push eax
call fcn.00511000
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
add esp, 0xc
lea eax, [esp + 0x10]
mov ebp, 0x5ddf08
push 0x4001
push edi
push eax
push 0
push ebp
call ebx
mov dword [esi + 4], eax
push 0x4000
lea eax, [esp + 0x14]
push edi
push eax
push 0
push ebp
call ebx
mov ecx, dword [esi + 4]
mov dword [esi + 8], eax
test ecx, ecx
je 0x4118d4
test eax, eax
je 0x4118d4
push ecx
lea ecx, [esi + 0xc]
call fcn.005665a8
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
push 0xffffffffffffffff
push dword [esi + 0x10]
call edi
push dword [esi + 8]
lea ecx, [esi + 0x14]
call fcn.005665a8
push 0xffffffffffffffff
push dword [esi + 0x18]
call edi
xor eax, eax
jmp 0x4118d7
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret
Function at 0x4118ff
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
push esi
mov esi, 0x2b4
push esi
lea eax, [ebp - 0x2b4]
push 0
push eax
call fcn.00511000
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
mov ecx, 0x4010
and al, 0x90
add eax, 0x80
cmp dword [ebp + 0xc], 0
je 0x411940
inc ecx
cmp dword [ebp + 0x10], 0
je 0x411949
or ecx, 2
push ecx
lea ecx, [ebp - 0x2b4]
push esi
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
pop esi
jne 0x411966
or eax, 0xffffffff
leave
ret
mov eax, dword [ebp - 0x2b0]
leave
ret

Function at 0x411a0c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x582ddc
call fcn.00510fdc
push ecx
push ecx
push ebx
push 0x6749b4
lea ecx, [ebp - 0x10]
call fcn.00568097
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041126c
pop ecx
test eax, eax
pop ecx
je 0x411a48
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.005681ba
mov eax, dword [0x66cc08]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._select___s_
push eax
call fcn.005652d9
add esp, 0xc
push 1
push ebx
push dword [ebp - 0x14]
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00568023
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x411aa1
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x582df8
call fcn.00510fdc
push ecx
push ecx
push ebx
push 0x6749b4
lea ecx, [ebp - 0x10]
call fcn.00568097
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.0041126c
pop ecx
test eax, eax
pop ecx
je 0x411add
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.005681ba
mov eax, dword [0x66cc08]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._e___s_
push eax
call fcn.005652d9
add esp, 0xc
push 1
push ebx
push dword [ebp - 0x14]
push str.explorer.exe
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.00568023
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x411c48
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x411caa
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x411caa
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x411cac
xor eax, eax
pop esi
leave
ret

Function at 0x411cf0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x582e0c
call fcn.00510fdc
sub esp, 0x808
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00568097
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.00568560
push 0x5de018
push dword [ebp - 0x10]
call fcn.00511095
pop ecx
cmp eax, esi
pop ecx
je 0x411d38
or esi, 0xffffffff
jmp 0x411d90
push edi
mov ecx, 0x200
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], si
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x814]
push 0x400
push eax
push esi
push 0x5de010
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x814]
push eax
call fcn.00511362
pop ecx
pop edi
test eax, eax
je 0x411d33
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x814]
push eax
call fcn.005681ba
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00568023
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret