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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00406c0c
mov eax, dword [ebp - 8]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x459f7c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [edi], eax
xor ebx, ebx
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
je 0x459eb2
call fcn.0040a830
cmp byte [eax + 0x15], 0
je 0x459e9f
mov ebx, pe_nt_image_headers32
jmp 0x459eb2
call fcn.0040a830
cmp byte [eax + 0x14], 0
je 0x459eb2
mov ebx, 0x200
lea eax, [ebp - 0x18]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.0040774c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x459f61
cmp dword [ebp - 8], 0
jne 0x459ee3
xor ebx, ebx
jmp 0x459eed
mov eax, dword [ebp - 8]
call fcn.0040774c
mov ebx, eax
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x459f58
mov eax, dword [ebp - 0x20]
call fcn.004044d8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x459f50
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x459f46
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x459f58
mov eax, dword [ebp - 0x1c]
call fcn.004044f4
jmp 0x459f58
mov eax, dword [ebp - 0x1c]
call fcn.004044f4
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459f83
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x45a264
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov edi, edx
mov esi, eax
mov byte [esp], 0
xor ebx, ebx
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
je 0x45a2a9
call fcn.0040a830
cmp byte [eax + 0x15], 0
je 0x45a296
mov ebx, pe_nt_image_headers32
jmp 0x45a2a9
call fcn.0040a830
cmp byte [eax + 0x14], 0
je 0x45a2a9
mov ebx, 0x200
lea eax, [esp + 4]
push eax
or ebx, 0x20006
push ebx
push 0
mov eax, edi
call fcn.0040774c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x45a2f3
mov eax, ebp
call fcn.0040774c
push eax
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete byte [esp]
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
movzx eax, byte [esp]
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x45a300
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
jne 0x45a332
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov ebx, eax
jmp 0x45a3b3
xor eax, eax
push ebp
push 0x45a395
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
je 0x45a374
call fcn.0040a830
cmp byte [eax + 0x15], 0
je 0x45a361
mov ebx, pe_nt_image_headers32
jmp 0x45a374
call fcn.0040a830
cmp byte [eax + 0x14], 0
je 0x45a374
mov ebx, 0x200
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a3b3
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x45a4d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x11], cl
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45a6c0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, 0x45a6dc
call fcn.00407cc4
test eax, eax
je 0x45a69d
cmp byte [ebp - 0x11], 0
je 0x45a690
xor edx, edx
push ebp
push 0x45a686
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [0x4b73a8]
cmp byte [eax], 0
je 0x45a55e
call fcn.0040a830
cmp byte [eax + 0x15], 0
je 0x45a54b
mov esi, pe_nt_image_headers32
jmp 0x45a55e
call fcn.0040a830
cmp byte [eax + 0x14], 0
je 0x45a55e
mov esi, 0x200
lea eax, [ebp - 0x18]
push eax
or esi, 0x2000f
push esi
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040774c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
xor edx, edx
push ebp
push 0x45a675
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x45a654
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x45a654
mov esi, dword [ebp - 0x20]
dec esi
cmp esi, 0
jl 0x45a654
mov eax, dword [0x4b6aa8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.004078d0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.004070dc
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x45a64a
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.004078d0
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.00422f2c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004079a8
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0045a4d0
test al, al
jne 0x45a64a
call fcn.00406294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a69d
dec esi
cmp esi, 0xffffffff
jne 0x45a5ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a67c
lea eax, [ebp - 4]
xor edx, edx
call fcn.004078d0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0045a3bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a6c7
lea eax, [ebp - 0x24]
call fcn.00406b28
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret
Function at 0x45aa10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov byte [ebp - 1], 6
xor edx, edx
push ebp
push 0x45aaf3
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x45aaae
mov byte [ebp - 1], 4
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x45aa8a
mov byte [ebp - 1], 9
cmp byte [ebp - 6], 1
jne 0x45aa77
cmp dword [ebp - 0x118], 1
jb 0x45aae9
mov byte [ebp - 1], 0xc
jmp 0x45aae9
mov byte [ebp - 1], 0xa
cmp dword [ebp - 0x118], 1
jb 0x45aae9
mov byte [ebp - 1], 0xb
jmp 0x45aae9
cmp eax, 5
jb 0x45aae9
mov byte [ebp - 1], 5
cmp dword [ebp - 0x118], 1
jb 0x45aae9
cmp byte [ebp - 6], 1
jne 0x45aaa8
mov byte [ebp - 1], 6
jmp 0x45aae9
mov byte [ebp - 1], 8
jmp 0x45aae9
cmp eax, 1
jne 0x45aae5
mov byte [ebp - 1], 0
cmp dword [ebp - 0x11c], 4
jne 0x45aacd
cmp dword [ebp - 0x118], 0xa
jne 0x45aacd
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x45aae9
cmp dword [ebp - 0x118], 0x5a
jne 0x45aae9
mov byte [ebp - 1], 2
jmp 0x45aae9
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45aafd
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b460
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c0c
xor eax, eax
push ebp
push 0x45b5bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406b28
mov edx, dword [ebp - 4]
mov eax, 0x45b5dc
call fcn.00407cc4
test eax, eax
jne 0x45b52f
lea eax, [ebp - 8]
mov edx, 1
call fcn.004078d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040774c
mov edi, eax
push edi
push 0
call sub.kernel32.dll_SearchPathW
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004078d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
push ebx
push 0
push edi
push 0
call sub.kernel32.dll_SearchPathW
test eax, eax
je 0x45b523
mov eax, dword [ebp - 8]
call fcn.0040774c
call fcn.00407040
lea edx, [ebp - 8]
xchg edx, eax
call fcn.004078d0
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f08
jmp 0x45b5a4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f08
jmp 0x45b5a4
lea eax, [ebp - 8]
mov edx, 1
call fcn.004078d0
push 0
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
mov eax, dword [ebp - 4]
call fcn.0040774c
mov edi, eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004078d0
push ebx
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x45b59a
mov eax, dword [ebp - 8]
call fcn.0040774c
call fcn.00407040
lea edx, [ebp - 8]
xchg edx, eax
call fcn.004078d0
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f08
jmp 0x45b5a4
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b5c6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x45baa8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x208], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45bb77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b28
xor edx, edx
push ebp
push 0x45bb54
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff
lea eax, [ebp - 0x200]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
test eax, eax
je 0x45bb4a
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004077a4
mov eax, dword [ebx]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x45bb1a
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45bb30
mov eax, ebx
mov edx, 0x45bb94
call fcn.00407950
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045ba58
mov edx, dword [ebp - 0x208]
mov eax, ebx
call fcn.00406f08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bb5e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb7e
lea eax, [ebp - 0x208]
call fcn.00406b28
ret
Function at 0x45bb98
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x204], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45bc8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b28
xor edx, edx
push ebp
push 0x45bc64
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x200]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathW
test eax, eax
je 0x45bc5a
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004077a4
lea edx, [ebp - 0x204]
mov eax, dword [ebx]
call fcn.0045cd54
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.00406f08
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045ba58
mov edx, dword [ebp - 0x208]
mov eax, ebx
call fcn.00406f08
mov eax, dword [ebx]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x45bc44
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45bc5a
mov eax, ebx
mov edx, 0x45bca8
call fcn.00407950
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bc6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bc93
lea eax, [ebp - 0x208]
mov edx, 2
call fcn.00406b88
ret
Function at 0x45bcac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x45be40
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x45be13
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.0045ab08
cmp al, 9
jb 0x45bd8b
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.004078d0
xor edx, edx
push ebp
push 0x45bd84
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.0040774c
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x45bd6c
mov eax, dword [ebp - 4]
call fcn.0040774c
mov edx, dword [ebp - 8]
call fcn.0041d730
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bd3e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45bd5a
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00422f2c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00406f08
call fcn.00406294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45be1d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd8b
lea eax, [ebp - 4]
xor edx, edx
call fcn.004078d0
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4b7530]
mov eax, dword [eax]
mov ecx, 0x45be5c
mov edx, 0x45be78
call fcn.0045a078
test al, al
je 0x45be09
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0045ba58
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00406f08
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bdd7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45be09
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bdec
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45be09
mov eax, dword [ebp - 8]
mov edx, 0x45bf08
call fcn.00407950
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45be1d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be47
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 4]
call fcn.00406b28
ret
Function at 0x45c57c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
mov esi, eax
xor eax, eax
push ebp
push 0x45c715
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
xor eax, eax
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x11], 0
je 0x45c5bc
call fcn.0045b370
mov dword [ebp - 0x18], eax
mov eax, esi
test eax, eax
je 0x45c5c7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45c5d2
xor ebx, ebx
jmp 0x45c6ed
cmp byte [ebp - 0x12], 0
je 0x45c6d6
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00406f50
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00422f7c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406f50
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041cfbc
mov eax, dword [ebp - 8]
test eax, eax
je 0x45c613
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jne 0x45c640
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00407b18
mov eax, dword [ebp - 0x1c]
mov edx, 0x45c730
call fcn.00407ae0
sete al
jmp 0x45c642
xor eax, eax
test al, al
je 0x45c64a
mov al, 1
jmp 0x45c654
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041c92c
test al, al
je 0x45c65c
mov al, 1
jmp 0x45c66a
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407ae0
sete al
test al, al
jne 0x45c6ed
cmp dword [ebp - 4], 0
jne 0x45c68e
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x45c6ed
mov eax, dword [ebp - 4]
call fcn.0040774c
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004077a4
mov eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 0x12]
movzx edx, byte [ebp - 0x11]
call fcn.0045c57c
mov ebx, eax
test bl, bl
je 0x45c6cc
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x45c6d0
xor eax, eax
jmp 0x45c6d2
mov al, 1
mov ebx, eax
jmp 0x45c6ed
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.0040774c
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c71c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406b88
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040774c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45c74d
test al, 0x10
jne 0x45c751
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45cce8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0045cd30
test al, al
je 0x45cd28
mov eax, esi
call fcn.0041cdac
mov ebx, eax
test bl, bl
jne 0x45cd28
mov eax, esi
call fcn.0045cc38
push 0x80
mov eax, esi
call fcn.0040774c
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, esi
call fcn.0041cdac
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45cd30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040774c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45cd49
test al, 0x10
je 0x45cd4d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45dbf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040774c
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
test ebx, ebx
jbe 0x45dc9e
xor eax, eax
push ebp
push 0x45dc8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004044d8
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, esi
xor ecx, ecx
call fcn.00404a4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0040774c
push eax
call sub.version.dll_GetFileVersionInfoW
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45dc9e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x461a4c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x461b28
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00407774
mov eax, dword [ebp - 0x18]
push eax
call fcn.00463be4
pop edx
call fcn.00460e7c
test al, al
je 0x461a94
mov ebx, 1
jmp 0x461b12
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x461ac1
call sub.kernel32.dll_GetLastError_2
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x461b12
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x461af5
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x461af5
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle_1
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461b2f
lea eax, [ebp - 0x18]
call fcn.00406b28
ret
Function at 0x461b3c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x461b87
lea eax, [esp + 0x105]
push eax
push 0
push 0x461bb8
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x461b87
lea eax, [esp + 0x105]
call fcn.0040702c
cmp ebx, eax
setg al
jmp 0x461b89
xor eax, eax
mov ebx, eax
test bl, bl
je 0x461ba3
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0041d434
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x4b73fc]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x462584
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x46258d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x46270a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
inc dword [ebx + 0x18]
lea ecx, [ebp - 0x10]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00462404
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407404
lea eax, [ebx + 0x22]
mov edx, dword [ebp - 4]
call fcn.0041d514
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.00462264
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407404
lea eax, [ebx + 0x122]
mov edx, dword [ebp - 4]
call fcn.0041d514
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.00462348
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.00407404
lea eax, [ebx + 0x222]
mov edx, dword [ebp - 4]
call fcn.0041d514
cmp word [esi + 0x4a], 0
je 0x46264a
push edi
lea eax, [ebp - 9]
push eax
mov ecx, ebx
mov edx, esi
mov eax, dword [esi + 0x4c]
call dword [esi + 0x48]
cmp byte [ebp - 9], 0
jne 0x4626bb
lea eax, [ebp - 8]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.004077e0
mov eax, dword [ebp - 8]
call fcn.0041c9fc
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.004077e0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
lea edx, [ebx + 0x122]
mov ecx, pe_nt_image_headers32
call fcn.004077e0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
mov edx, 1
call fcn.00461424
mov eax, dword [ebp - 8]
call fcn.0040774c
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
mov dword [esi + 0x3ac], eax
xor eax, eax
mov dword [esi + 0x3b0], eax
movzx ebx, byte [ebp - 9]
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462711
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00406b88
lea eax, [ebp - 8]
call fcn.00406b28
lea eax, [ebp - 4]
call fcn.00406b4c
ret