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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push esi
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [ebp - 8], eax
lea esi, [ebp - 0x14]
call fcn.0041f350
cmp dword [ebp - 0x14], 0
jne 0x40ae4a
xor eax, eax
jmp 0x40afa9
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40ae63
xor eax, eax
jmp 0x40afa9
mov dword [ebp - 0x260], 0x22c
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40ae88
xor eax, eax
jmp 0x40afa9
mov edx, dword [ebp - 0x258]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0x20
push 0x44
push 0
lea eax, [ebp - 0x2b0]
push eax
call fcn.0042f230
add esp, 0xc
mov dword [ebp - 0x2b0], 0x44
mov dword [ebp - 0x2a8], str.winsta0default
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x2b4], 0
push 1
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40aefc
mov ecx, dword [ebp - 4]
or ecx, 0x400
mov dword [ebp - 4], ecx
jmp 0x40af06
mov dword [ebp - 0x2b4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x2b0]
push eax
push 0
mov ecx, dword [ebp - 0x2b4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x264], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
je 0x40af5d
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x264], 0
je 0x40af88
cmp dword [ebp + 0x10], 0
je 0x40af86
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
jmp 0x40af90
xor ecx, ecx
jne 0x40ae88
cmp dword [ebp - 0x10], 0
je 0x40afa4
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406750
add esp, 4
jmp 0x40afa9
mov eax, 1
pop esi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret
Function at 0x40afc0
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b042
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b038
cmp dword [ebp + 0x14], 0
je 0x40b02e
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x40b050
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b0a8
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b09e
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret

Function at 0x40b0b0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40b12d
push 0xf01ff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40b123
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x40b119
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x40b12f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40b4b0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
cmp dword [ebp + 8], 0
jne 0x40b4d1
xor eax, eax
jmp 0x40b558
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x21c], 0x208
mov eax, dword [ebp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
push 0x44cf48
mov ecx, 0x104
lea ebx, [ebp - 0x428]
call fcn.00401590
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
lea ecx, [ebp - 0x428]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x40b556
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b556
mov eax, 1
jmp 0x40b558
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret

Function at 0x40b5c0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 4
push str.EnableLUA
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 4
push str.ConsentPromptBehaviorAdmin
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x40b642
cmp dword [ebp + 0xc], 0
jne 0x40b644
jmp 0x40b699
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 0xe], ax
add dword [ebp - 8], 2
cmp word [ebp - 0xe], 0
jne 0x40b653
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esp, ebp
pop ebp
ret
Function at 0x40b6a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
je 0x40b6e2
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
add dword [ebp - 0x18], 1
cmp byte [ebp - 0x1d], 0
jne 0x40b6c5
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
jne 0x40b6e9
xor eax, eax
jmp 0x40b7a2
call fcn.00401020
mov dword [ebp - 0xc], eax
mov edx, 0x45a1ac
test edx, edx
je 0x40b786
mov dword [ebp - 0x28], 0x45a1ac
mov eax, dword [ebp - 0x28]
add eax, 2
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
mov dx, word [ecx]
mov word [ebp - 0x2e], dx
add dword [ebp - 0x28], 2
cmp word [ebp - 0x2e], 0
jne 0x40b70e
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x2c]
sar eax, 1
mov dword [ebp - 0x34], eax
je 0x40b786
mov ecx, 0x45a1ac
test ecx, ecx
jne 0x40b742
mov dword [ebp - 0x38], 0
jmp 0x40b77e
push 0x45a1ac
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov dword [0x459d88], edx
mov eax, dword [0x459d88]
call fcn.00437d80
mov dword [ebp - 0x3c], esp
mov eax, dword [0x459d88]
push eax
push 0x45a1ac
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00409c30
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], edx
jmp 0x40b78d
mov dword [ebp - 0x40], 0x44bf2a
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea esp, [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret

Function at 0x40bb00
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40bb18
xor eax, eax
jmp 0x40bb39
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x40bb30
mov edx, dword [ebp - 4]
and edx, 1
jne 0x40bb30
mov eax, dword [ebp - 4]
and eax, 4
je 0x40bb37
mov eax, 1
jmp 0x40bb39
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40bb40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40bb67
xor eax, eax
jmp 0x40bbd5
mov edx, dword [ebp - 0x10]
push edx
call fcn.0042c175
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40bb80
xor eax, eax
jmp 0x40bbd5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40bbc6
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x44d080
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042b160
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bc90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x100000
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x40bcdc
mov eax, dword [ebp - 0x10]
jmp 0x40bd8f
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0042a027
add esp, 4
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x40bd82
lea eax, [ebp - 0x70]
call fcn.00414040
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bd46
cmp dword [ebp - 0x14], 0
je 0x40bd46
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x70]
call fcn.00414750
add esp, 4
jmp 0x40bd10
mov edx, dword [ebp - 4]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.0042b8d3
add esp, 4
lea esi, [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.004147f0
push 0x10
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040bc20
add esp, 0xc
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret
Function at 0x40bda0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4471f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x45636c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x40bdd3
cmp dword [ebp + 0xc], 0
jne 0x40bdda
xor eax, eax
jmp 0x40bf09
lea esi, [ebp - 0x18]
call fcn.004058b0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40be70
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffffe
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 0xc]
push edx
push str._s.bak
lea edi, [ebp - 0x18]
call fcn.004065d0
add esp, 8
push 1
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40be70
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00405a10
mov eax, dword [ebp - 0x28]
jmp 0x40bf09
push 3
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40be97
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40beb2
cmp dword [ebp - 0x10], 0
je 0x40beb2
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40bef0
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40bef0
push 4
push 0
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00405a10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bf20
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4471f8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x45636c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x40bf53
cmp dword [ebp + 0xc], 0
jne 0x40bf5a
xor eax, eax
jmp 0x40c089
lea esi, [ebp - 0x18]
call fcn.004058b0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40bff0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
and edx, 0xfffffffe
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp + 0xc]
push edx
push str._s.bak
lea edi, [ebp - 0x18]
call fcn.004065d0
add esp, 8
push 1
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40bff0
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00405a10
mov eax, dword [ebp - 0x28]
jmp 0x40c089
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40c017
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c032
cmp dword [ebp - 0x10], 0
je 0x40c032
push 1
mov ecx, dword [ebp + 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c070
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40c070
push 4
push 0
lea eax, [ebp - 0x18]
call fcn.00405c50
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
call fcn.00405a10
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c280
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x24]
push eax
call fcn.0040c0a0
add esp, 4
lea eax, [ebp - 0x24]
call fcn.00405e10
push eax
push 4
lea ecx, [ebp - 4]
push ecx
push 0x44c860
push str.AutoStart
push str.common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 4]
push edx
call fcn.0042c68c
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea esi, [ebp - 0x24]
call fcn.00405b80
mov eax, dword [ebp - 0x2c]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret
Function at 0x40cd30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x45636c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40cd6a
mov eax, 1
jmp 0x40cee6
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40cdae
cmp dword [ebp - 0x21c], 2
jne 0x40cda7
mov eax, 1
jmp 0x40cee6
xor eax, eax
jmp 0x40cee6
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x228], edx
mov eax, dword [ebp - 0x228]
movzx ecx, word [eax - 2]
cmp ecx, 0x5c
je 0x40cdfb
mov edx, 0x5c
mov eax, dword [ebp - 0x228]
mov word [eax], dx
mov ecx, dword [ebp - 0x228]
add ecx, 2
mov dword [ebp - 0x228], ecx
xor edx, edx
mov eax, dword [ebp - 0x228]
mov word [eax], dx
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40ce9c
lea edx, [ebp - 0x218]
push edx
mov ecx, 0x208
mov edx, dword [ebp - 0x228]
call fcn.00401560
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040cd30
add esp, 8
test eax, eax
jne 0x40ce62
jmp 0x40ce9c
mov dword [ebp - 4], 0x104
lea edx, [ebp - 0x224]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40ce35
mov eax, dword [ebp - 0x228]
sub eax, 2
mov dword [ebp - 0x228], eax
xor ecx, ecx
mov edx, dword [ebp - 0x228]
mov word [edx], cx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x40cee4
mov eax, 1
jmp 0x40cee6
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042a9a5
mov esp, ebp
pop ebp
ret

Function at 0x40e2b0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8
Function at 0x40e3b0
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x214
mov eax, dword [0x45636c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x21c]
push ebp
push edi
mov edi, dword [esp + 0x228]
mov ebp, ecx
test ebx, ebx
je 0x40e4e4
test edi, edi
je 0x40e4e4
cmp dword [esp + 0x22c], 1
je 0x40e4e4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.0042f230
lea eax, [esp + 0x24]
mov esi, edi
mov ecx, eax
add esp, 0xc
mov edx, 0x104
sub esi, ecx
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x40e446
movzx ecx, word [esi + eax]
test cx, cx
je 0x40e446
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x40e426
jmp 0x40e44a
test edx, edx
jne 0x40e44d
sub eax, 2
xor edx, edx
mov word [eax], dx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e4af
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042a9a5
add esp, 0x214
ret 0xc
mov edx, dword [ebp + 4]
push edx
lea eax, [esp + 0x14]
push eax
mov eax, ebx
mov dword [esp + 0x18], vtable.CDownloadFile.0
mov dword [esp + 0x1c], esi
call fcn.0040e500
add esp, 8
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040cb20
add esp, 4
mov eax, ebx
jmp 0x40e494
xor eax, eax
jmp 0x40e495