joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a70
Capabilities:
Check if file exists
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov ecx, dword [ebp + 8]
call fcn.00405510
movzx eax, al
test eax, eax
je 0x403a8f
xor eax, eax
jmp 0x403c78
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403aa9
xor eax, eax
jmp 0x403c78
lea ecx, [ebp - 4]
call fcn.00404180
push 0x208
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.0049ed70
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x428]
push edx
call fcn.0049ed70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [ebp - 0x428]
push ecx
call fcn.004ce304
add esp, 4
push 0
mov ecx, dword [ebp + 8]
call fcn.00404450
mov word [ebp - 8], ax
movzx edx, word [ebp - 8]
push edx
call fcn.004bc082
add esp, 4
mov word [ebp - 8], ax
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x428]
movzx eax, word [ebp - 8]
cmp edx, eax
jne 0x403b49
lea ecx, [ebp - 0x220]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x403b9f
push 0
mov ecx, dword [ebp + 8]
call fcn.00405060
movzx edx, ax
push edx
push 0x520a20
push 0x104
lea eax, [ebp - 0x220]
push eax
call fcn.00405c60
add esp, 0x10
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403b9f
lea edx, [ebp - 0x220]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00404140
lea edx, [ebp - 4]
push edx
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00405320
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004042d0
lea ecx, [ebp - 4]
call fcn.00404490
push eax
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x403c16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.move__s_to__s__failed__error_d
call fcn.00433750
add esp, 0x10
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 4]
call fcn.004042d0
mov eax, dword [ebp - 0x10]
jmp 0x403c78
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403c50
lea ecx, [ebp - 4]
call fcn.00404490
push eax
call fcn.00403840
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004042d0
mov eax, dword [ebp - 0x14]
jmp 0x403c78
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00404410
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 4]
call fcn.004042d0
mov eax, dword [ebp - 0x18]
jmp 0x403c78
mov esp, ebp
pop ebp
ret
Function at 0x405320
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.0046ce90
mov ecx, dword [ebp + 8]
call fcn.004052b0
cmp eax, 0x104
jle 0x405343
xor eax, eax
jmp 0x405452
mov dword [ebp - 8], 0x400
push 0x800
push 0
lea eax, [ebp - 0x110c]
push eax
call fcn.0049ed70
add esp, 0xc
push 0x800
push 0
lea ecx, [ebp - 0x90c]
push ecx
call fcn.0049ed70
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00404490
push eax
lea edx, [ebp - 0x110c]
push edx
call fcn.00404050
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4053af
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x4053af
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0xc], 0xa
push 0x100
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0049ed70
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x4053de
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xa
jge 0x405450
push 0x80
lea eax, [ebp - 0x10c]
push eax
call fcn.00405670
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x110c]
push edx
lea eax, [ebp - 0x90c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str..tmp
lea ecx, [ebp - 0x90c]
push ecx
call fcn.00404030
add esp, 8
lea edx, [ebp - 0x90c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40544e
lea eax, [ebp - 0x90c]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00404430
mov eax, 1
jmp 0x405452
jmp 0x4053d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405d10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405d34
xor eax, eax
jmp 0x405db4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405d4b
xor eax, eax
jmp 0x405db4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405d97
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405d97
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x405d6e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405da3
xor eax, eax
jmp 0x405db4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405db1
xor eax, eax
jmp 0x405db4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4094f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x409574
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40954b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x409542
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
jmp 0x409576
mov edx, dword [ebp - 8]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.0040b470
mov ecx, dword [ebp - 8]
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409670
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4096a1
jmp 0x409759
push 0x22c
push 0
lea eax, [ebp - 0x240]
push eax
call fcn.0049ed70
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4096e1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409759
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x238]
je 0x40973b
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.004bc0b2
add esp, 8
test eax, eax
jne 0x40973b
mov ecx, dword [ebp - 0x238]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00409760
test eax, eax
je 0x40973b
mov edx, dword [ebp - 0x238]
mov dword [ebp - 8], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040b450
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4096f1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0046ce90
mov ax, word [0x520d58]
mov word [ebp - 0x4010], ax
push 0x3ffe
push 0
lea ecx, [ebp - 0x400e]
push ecx
call fcn.0049ed70
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x40bd7a
cmp dword [ebp + 0x10], 0
jne 0x40bd81
xor eax, eax
jmp 0x40be5d
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40bda0
cmp dword [ebp - 4], 0x3fff
jbe 0x40bda7
xor eax, eax
jmp 0x40be5d
lea ecx, [ebp - 0x4010]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40be5b
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0x520d5c
lea eax, [ebp - 0x4010]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40be5b
mov ecx, dword [ebp + 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
call fcn.0049ed70
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push 0x520d60
mov eax, dword [ebp + 0x14]
sub eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0040ea50
add esp, 0x1c
mov eax, 1
jmp 0x40be5d
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40be70
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
je 0x40bea3
mov ecx, dword [ebp - 4]
and ecx, 2
jne 0x40be9c
mov edx, dword [ebp - 4]
and edx, 1
jne 0x40be9c
mov eax, dword [ebp - 4]
and eax, 4
je 0x40bea3
mov eax, 1
jmp 0x40beb1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [edx + 0xc]
call ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.00405510
movzx eax, al
test eax, eax
je 0x40c36f
push 0x104
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0040db40
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x14]
call ecx
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0040df10
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.00405510
movzx edx, al
test edx, edx
je 0x40c3b2
push 0x104
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0040db40
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x18]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x18
call fcn.0040df10
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00405510
movzx ecx, al
test ecx, ecx
je 0x40c449
push 0x208
push 0
lea edx, [ebp - 0x214]
push edx
call fcn.0049ed70
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x520c0c
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x104
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0040db40
push eax
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 4]
call ecx
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.0040df10
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.00405510
movzx edx, al
test edx, edx
je 0x40c4a4
mov dword [ebp - 8], 0x104
mov dword [ebp - 0xc], 1
lea eax, [ebp - 8]
push eax
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.0040db40
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x520c28
push 0x520c30
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x10
call fcn.0040df10
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.00405510
movzx edx, al
test edx, edx
je 0x40c518
push 0x208
push 0
lea eax, [ebp - 0x41c]
push eax
call fcn.0049ed70
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
push 0x104
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.0040db40
push eax
lea edx, [ebp - 0x41c]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 4]
call eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x14
call fcn.0040df10
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00405510
movzx ecx, al
test ecx, ecx
je 0x40c53a
push 0x520c54
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00404430
mov esp, ebp
pop ebp
ret
Function at 0x40c790
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5468f8
push 0x4a0348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x40c854
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x40c854
cmp dword [ebp + 0xc], 0
je 0x40c7eb
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x40c836
push 0x410
push 0
lea ecx, [ebp - 0x430]
push ecx
call fcn.0049ed70
add esp, 0xc
push 0
push 0
push 0x104
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x40c834
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x20], 1
jmp 0x40c854
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jl 0x40c854
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x40c86d
cmp dword [ebp - 0x20], 0
je 0x40c879
mov byte [ebp - 0x19], 1
jmp 0x40c87d
mov byte [ebp - 0x19], 0
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ddb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x40ddb9
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
shl edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ddfc
mov eax, dword [ebp - 8]
jmp 0x40de62
cmp dword [ebp - 0xc], 1
je 0x40de0f
cmp dword [ebp - 0xc], 2
je 0x40de0f
mov eax, 0xd
jmp 0x40de62
cmp dword [ebp + 0xc], 0
je 0x40de56
cmp dword [ebp - 4], 0
je 0x40de45
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x40de3c
mov edx, dword [ebp - 4]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x40de43
mov eax, 0xd
jmp 0x40de62
jmp 0x40de56
mov edx, 2
imul eax, edx, 0
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov word [edx + eax], cx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0040dcc0
test eax, eax
je 0x40e187
xor eax, eax
jmp 0x40e1c5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
jne 0x40e194
xor eax, eax
jmp 0x40e1c5
mov ecx, dword [ebp - 4]
add ecx, 8
push ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
push 0
push 0
call fcn.004c9aa2
add esp, 0x18
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
call fcn.0040dcc0
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x4116ec
jmp 0x41173f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4116fc
jmp 0x41173f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x41172f
sub esp, 0x28
mov ecx, esp
push 0
call fcn.00413fb0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411750
add esp, 0x30
jmp 0x41173f
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00411910
add esp, 8
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x41195a
mov ecx, dword [ebp - 8]
and ecx, 0x10
je 0x41195a
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
push edx
call fcn.00403290
add esp, 4
test eax, eax
je 0x411958
jmp 0x4119d5
jmp 0x41197b
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41197b
mov ecx, dword [ebp + 8]
push ecx
push 0x5211a8
call fcn.00433750
add esp, 8
jmp 0x4119d5
push 0x80
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4119cd
cmp dword [ebp - 4], 0
jne 0x4119b5
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4119b5
mov ecx, dword [ebp + 8]
push ecx
push str.DeleteFile:_s_suceesss
call fcn.00433750
add esp, 8
jmp 0x4119d5
cmp dword [ebp - 4], 0
je 0x4119cd
mov edx, dword [ebp + 8]
push edx
call fcn.00403290
add esp, 4
test eax, eax
je 0x4119cd
jmp 0x4119d5
xor eax, eax
jne 0x41191d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411a09
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc]
call fcn.00404140
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00415b90
lea ecx, [ebp - 0xc]
call fcn.004042d0
xor eax, eax
jmp 0x411a0e
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x412450
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov byte [ebp - 1], 0
mov dword [ebp - 0x1c], 0x6c
push 0xd8
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.0049ed70
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6c
jae 0x412589
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jae 0x412589
push 0x410
push 0
lea eax, [ebp - 0x534]
push eax
call fcn.0049ed70
add esp, 0xc
mov ecx, dword [0x521544]
mov dword [ebp - 0x10], ecx
mov dx, word [0x521548]
mov word [ebp - 0xc], dx
mov eax, 2
imul ecx, eax, 0
mov edx, dword [ebp - 8]
mov ax, word [ebp + edx*2 - 0x124]
mov word [ebp + ecx - 0x10], ax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
push 0x207
lea edx, [ebp - 0x534]
push edx
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x412510
jmp 0x41249d
lea ecx, [ebp - 0x534]
push ecx
call fcn.004bb901
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x534]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e840
push eax
call fcn.004cbdda
add esp, 0xc
test eax, eax
jne 0x412584
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415ec0
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004129e0
add esp, 0xc
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00414190
lea ecx, [ebp - 0x34]
call fcn.0040d140
lea ecx, [ebp - 0x4c]
call fcn.0040d140
mov byte [ebp - 1], 1
jmp 0x412589
jmp 0x41249d
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x412610
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [ebp - 8]
call fcn.00404140
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.004044e0
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
call fcn.00404490
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x412689
mov dword [ebp - 0xc], 0x52154c
cmp dword [ebp - 0xc], 0
je 0x412689
push 4
lea edx, [ebp + 0xc]
push edx
push 4
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x412689
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x412699
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 8]
call fcn.004042d0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret