joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a694
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 0x45a884
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, 0x45a8a0
call fcn.00407d0c
test eax, eax
je 0x45a861
cmp byte [ebp - 0x11], 0
je 0x45a854
xor edx, edx
push ebp
push 0x45a84a
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [0x4bf48c]
cmp byte [eax], 0
je 0x45a722
call fcn.0040a878
cmp byte [eax + 0x15], 0
je 0x45a70f
mov esi, pe_nt_image_headers32
jmp 0x45a722
call fcn.0040a878
cmp byte [eax + 0x14], 0
je 0x45a722
mov esi, 0x200
lea eax, [ebp - 0x18]
push eax
or esi, 0x2000f
push esi
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407794
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
xor edx, edx
push ebp
push 0x45a839
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x45a818
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 0x45a818
mov esi, dword [ebp - 0x20]
dec esi
cmp esi, 0
jl 0x45a818
mov eax, dword [0x4beab8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407918
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 0x45a80e
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407918
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.004230bc
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.004079f0
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0045a694
test al, al
jne 0x45a80e
call fcn.00406294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a861
dec esi
cmp esi, 0xffffffff
jne 0x45a792
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a840
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407918
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.0045a580
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a88b
lea eax, [ebp - 0x24]
call fcn.00406b28
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret
Function at 0x45abd4
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 0x45acb7
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 0x45ac72
mov byte [ebp - 1], 4
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x45ac4e
mov byte [ebp - 1], 9
cmp byte [ebp - 6], 1
jne 0x45ac3b
cmp dword [ebp - 0x118], 1
jb 0x45acad
mov byte [ebp - 1], 0xc
jmp 0x45acad
mov byte [ebp - 1], 0xa
cmp dword [ebp - 0x118], 1
jb 0x45acad
mov byte [ebp - 1], 0xb
jmp 0x45acad
cmp eax, 5
jb 0x45acad
mov byte [ebp - 1], 5
cmp dword [ebp - 0x118], 1
jb 0x45acad
cmp byte [ebp - 6], 1
jne 0x45ac6c
mov byte [ebp - 1], 6
jmp 0x45acad
mov byte [ebp - 1], 8
jmp 0x45acad
cmp eax, 1
jne 0x45aca9
mov byte [ebp - 1], 0
cmp dword [ebp - 0x11c], 4
jne 0x45ac91
cmp dword [ebp - 0x118], 0xa
jne 0x45ac91
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x45acad
cmp dword [ebp - 0x118], 0x5a
jne 0x45acad
mov byte [ebp - 1], 2
jmp 0x45acad
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45acc1
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b624
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 0x45b783
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406b28
mov edx, dword [ebp - 4]
mov eax, 0x45b7a0
call fcn.00407d0c
test eax, eax
jne 0x45b6f3
lea eax, [ebp - 8]
mov edx, 1
call fcn.00407918
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407794
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.00407918
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
push ebx
push 0
push edi
push 0
call sub.kernel32.dll_SearchPathW
test eax, eax
je 0x45b6e7
mov eax, dword [ebp - 8]
call fcn.00407794
call fcn.00407040
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00407918
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f08
jmp 0x45b768
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f08
jmp 0x45b768
lea eax, [ebp - 8]
mov edx, 1
call fcn.00407918
push 0
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
mov eax, dword [ebp - 4]
call fcn.00407794
mov edi, eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00407918
push ebx
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x45b75e
mov eax, dword [ebp - 8]
call fcn.00407794
call fcn.00407040
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00407918
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f08
jmp 0x45b768
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 0x45b78a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b88
ret

Function at 0x45bc6c
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 0x45bd3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b28
xor edx, edx
push ebp
push 0x45bd18
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 0x45bd0e
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004077ec
mov eax, dword [ebx]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x45bcde
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45bcf4
mov eax, ebx
mov edx, 0x45bd58
call fcn.00407998
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045bc1c
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 0x45bd22
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bd42
lea eax, [ebp - 0x208]
call fcn.00406b28
ret
Function at 0x45bd5c
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 0x45be50
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b28
xor edx, edx
push ebp
push 0x45be28
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 0x45be1e
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004077ec
lea edx, [ebp - 0x204]
mov eax, dword [ebx]
call fcn.0045cf18
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.00406f08
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045bc1c
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 0x45be08
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45be1e
mov eax, ebx
mov edx, 0x45be6c
call fcn.00407998
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45be32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be57
lea eax, [ebp - 0x208]
mov edx, 2
call fcn.00406b88
ret
Function at 0x45be70
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 0x45c004
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x45bfd7
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.0045accc
cmp al, 9
jb 0x45bf4f
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00407918
xor edx, edx
push ebp
push 0x45bf48
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00407794
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x45bf30
mov eax, dword [ebp - 4]
call fcn.00407794
mov edx, dword [ebp - 8]
call fcn.0041d8c0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bf02
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45bf1e
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.004230bc
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 0x45bfe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf4f
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407918
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4bf618]
mov eax, dword [eax]
mov ecx, 0x45c020
mov edx, 0x45c03c
call fcn.0045a23c
test al, al
je 0x45bfcd
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0045bc1c
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 0x45bf9b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45bfcd
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45bfb0
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45bfcd
mov eax, dword [ebp - 8]
mov edx, 0x45c0cc
call fcn.00407998
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bfe1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c00b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 4]
call fcn.00406b28
ret
Function at 0x45c740
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 0x45c8d9
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 0x45c780
call fcn.0045b534
mov dword [ebp - 0x18], eax
mov eax, esi
test eax, eax
je 0x45c78b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45c796
xor ebx, ebx
jmp 0x45c8b1
cmp byte [ebp - 0x12], 0
je 0x45c89a
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00406f50
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042310c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406f50
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041d14c
mov eax, dword [ebp - 8]
test eax, eax
je 0x45c7d7
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jne 0x45c804
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00407b60
mov eax, dword [ebp - 0x1c]
mov edx, 0x45c8f4
call fcn.00407b28
sete al
jmp 0x45c806
xor eax, eax
test al, al
je 0x45c80e
mov al, 1
jmp 0x45c818
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041cabc
test al, al
je 0x45c820
mov al, 1
jmp 0x45c82e
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407b28
sete al
test al, al
jne 0x45c8b1
cmp dword [ebp - 4], 0
jne 0x45c852
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x45c8b1
mov eax, dword [ebp - 4]
call fcn.00407794
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004077ec
mov eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 0x12]
movzx edx, byte [ebp - 0x11]
call fcn.0045c740
mov ebx, eax
test bl, bl
je 0x45c890
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.00407794
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x45c894
xor eax, eax
jmp 0x45c896
mov al, 1
mov ebx, eax
jmp 0x45c8b1
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00407794
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 0x45c8e0
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406b88
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407794
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45c911
test al, 0x10
jne 0x45c915
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45ceac
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0045cef4
test al, al
je 0x45ceec
mov eax, esi
call fcn.0041cf3c
mov ebx, eax
test bl, bl
jne 0x45ceec
mov eax, esi
call fcn.0045cdfc
push 0x80
mov eax, esi
call fcn.00407794
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, esi
call fcn.0041cf3c
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45cef4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407794
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x45cf0d
test al, 0x10
je 0x45cf11
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x45ddb4
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.00407794
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
test ebx, ebx
jbe 0x45de62
xor eax, eax
push ebp
push 0x45de51
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.00407794
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 0x45de62
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x461c10
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 0x461cec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.004077bc
mov eax, dword [ebp - 0x18]
push eax
call fcn.00463da8
pop edx
call fcn.00461040
test al, al
je 0x461c58
mov ebx, 1
jmp 0x461cd6
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 0x461c85
call sub.kernel32.dll_GetLastError_2
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x461cd6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x461cb9
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x461cb9
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 0x461cf3
lea eax, [ebp - 0x18]
call fcn.00406b28
ret
Function at 0x461d00
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 0x461d4b
lea eax, [esp + 0x105]
push eax
push 0
push 0x461d7c
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x461d4b
lea eax, [esp + 0x105]
call fcn.0040702c
cmp ebx, eax
setg al
jmp 0x461d4d
xor eax, eax
mov ebx, eax
test bl, bl
je 0x461d67
lea edx, [esp + 0x105]
mov eax, esi
call fcn.0041d5c4
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x4bf4e0]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x462748
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x462751
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 0x4628ce
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.004625c8
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.0041d6a4
lea ecx, [ebp - 0x14]
mov edx, dword [ebx + 0x14]
mov eax, esi
call fcn.00462428
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.0041d6a4
lea ecx, [ebp - 0x18]
mov edx, dword [ebx + 0x18]
mov eax, esi
call fcn.0046250c
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.0041d6a4
cmp word [esi + 0x4a], 0
je 0x46280e
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 0x46287f
lea eax, [ebp - 8]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00407828
mov eax, dword [ebp - 8]
call fcn.0041cb8c
lea eax, [ebp - 0x24]
lea edx, [ebx + 0x222]
mov ecx, pe_nt_image_headers32
call fcn.00407828
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.00407828
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 8]
mov edx, 1
call fcn.004615e8
mov eax, dword [ebp - 8]
call fcn.00407794
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 0x4628d5
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
Function at 0x464a54
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, dword [0x4bf8e0]
cmp dword [eax], 2
je 0x464a75
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_EnterCriticalSection_1
mov bl, 1
jmp 0x464ab9
cmp edi, 0xffffffff
jne 0x464a87
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_EnterCriticalSection_1
mov bl, 1
jmp 0x464ab9
call sub.kernel32.dll_GetTickCount_1
mov ebp, eax
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_TryEnterCriticalSection
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x464ab9
push 0xa
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_WaitForSingleObject
call sub.kernel32.dll_GetTickCount_1
sub eax, ebp
cmp edi, eax
jae 0x464a8e
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x465df4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x465ef4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x465f10
call fcn.00406f50
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x59
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
cmp eax, 3
sete bl
test bl, bl
je 0x465e5a
push 0xa
lea eax, [ebp - 0xe]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
cmp eax, 3
je 0x465e5e
xor eax, eax
jmp 0x465e60
mov al, 1
mov ebx, eax
test bl, bl
je 0x465e7b
lea eax, [ebp - 4]
lea edx, [ebp - 0x18]
call fcn.004077ec
mov eax, esi
lea edx, [ebp - 0xe]
call fcn.004077ec
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041b514
mov eax, dword [ebp - 0x1c]
mov edx, 0x465f24
call fcn.00407b28
jne 0x465ec2
lea edx, [ebp - 0x20]
mov eax, dword [esi]
call fcn.0041b514
mov eax, dword [ebp - 0x20]
mov edx, 0x465f38
call fcn.00407b28
jne 0x465ec2
mov eax, edi
mov edx, dword [0x4beb74]
mov ecx, 0
call fcn.00407404
jmp 0x465ed1
mov eax, edi
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00407404
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465efb
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406b88
lea eax, [ebp - 4]
call fcn.00406b28
ret