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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00406b40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00407984
push eax
push edi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x44d818
xor eax, eax
push ebp
push 0x44d811
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407b08
mov eax, dword [ebp - 8]
add eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00407984
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d7f3
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, ebx
call fcn.00407b08
jmp 0x44d7fa
mov eax, ebx
call fcn.00406b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d818
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x450c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x450cb2
test eax, edx
je 0x450cb5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x450c75
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x450c9b
add ecx, 4
js 0x450c8b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x450c98
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x450cc1
test edx, edx
jne 0x450c68
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x456fd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4570ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
xor esi, esi
push ebp
push 0x457081
push dword fs:[esi]
mov dword fs:[esi], esp
test dl, dl
je 0x457032
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00407a80
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0041bad4
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072e0
jmp 0x457041
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.0040763c
mov eax, 1
mov edx, dword [ebp - 4]
test edx, edx
je 0x457052
sub edx, 4
mov edx, dword [edx]
test edx, edx
jle 0x457074
mov ecx, 1
imul eax, eax, 0x5517e877
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + ecx - 1]
xor eax, dword [ebx*4 + 0x4bae3c]
inc ecx
dec edx
jne 0x45705b
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45708b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4570b5
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406c00
lea eax, [ebp - 4]
call fcn.00406b64
ret

Function at 0x4570c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x4571e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor ecx, ecx
push ebp
push 0x4571b3
push dword fs:[ecx]
mov dword fs:[ecx], esp
test dl, dl
je 0x45712b
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00407a80
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.0041bad4
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0xfde9
call fcn.004072e0
jmp 0x45713a
lea eax, [ebp - 4]
mov edx, ebx
mov ecx, 0xfde9
call fcn.0040763c
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
test eax, eax
je 0x457154
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
test ebx, ebx
jle 0x45719d
mov esi, 1
push 0
push 0x5517e877
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004087a0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi - 1]
mov edx, dword [eax*8 + 0x4bb244]
mov eax, dword [eax*8 + 0x4bb240]
xor eax, dword [ebp - 0x18]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc esi
dec ebx
jne 0x45715f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4571bd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4571e7
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406c00
lea eax, [ebp - 4]
call fcn.00406b64
ret
Function at 0x45a614
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406c24
mov eax, dword [ebp - 8]
call fcn.00406c24
xor eax, eax
push ebp
push 0x45a727
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4bc3f4]
cmp byte [eax], 0
je 0x45a67a
call fcn.0040ac20
cmp byte [eax + 0x15], 0
je 0x45a667
mov ebx, pe_nt_image_headers32
jmp 0x45a67a
call fcn.0040ac20
cmp byte [eax + 0x14], 0
je 0x45a67a
mov ebx, 0x200
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
or ebx, 0x20006
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x45a70c
cmp dword [ebp - 8], 0
jne 0x45a6d5
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
jmp 0x45a6fd
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
sete byte [ebp - 9]
push ebx
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a72e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x45a73c
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.00406c24
mov eax, dword [ebp - 8]
call fcn.00406c24
xor eax, eax
push ebp
push 0x45a87c
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 [0x4bc3f4]
cmp byte [eax], 0
je 0x45a7b2
call fcn.0040ac20
cmp byte [eax + 0x15], 0
je 0x45a79f
mov ebx, pe_nt_image_headers32
jmp 0x45a7b2
call fcn.0040ac20
cmp byte [eax + 0x14], 0
je 0x45a7b2
mov ebx, 0x200
lea eax, [ebp - 0x18]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x45a861
cmp dword [ebp - 8], 0
jne 0x45a7e3
xor ebx, ebx
jmp 0x45a7ed
mov eax, dword [ebp - 8]
call fcn.00407984
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 0x45a858
mov eax, dword [ebp - 0x20]
call fcn.004044f0
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 0x45a850
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x45a846
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x45a858
mov eax, dword [ebp - 0x1c]
call fcn.0040450c
jmp 0x45a858
mov eax, dword [ebp - 0x1c]
call fcn.0040450c
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 0x45a883
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x45aacc
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 [0x4bc3f4]
cmp byte [eax], 0
je 0x45ab11
call fcn.0040ac20
cmp byte [eax + 0x15], 0
je 0x45aafe
mov ebx, pe_nt_image_headers32
jmp 0x45ab11
call fcn.0040ac20
cmp byte [eax + 0x14], 0
je 0x45ab11
mov ebx, 0x200
lea eax, [esp + 4]
push eax
or ebx, 0x20006
push ebx
push 0
mov eax, edi
call fcn.00407984
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
mov ebx, eax
push ebx
call sub.kernel32.dll_SetLastError
test ebx, ebx
jne 0x45ab5b
mov eax, ebp
call fcn.00407984
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 0x45ab68
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 [0x4bc3f4]
cmp byte [eax], 0
jne 0x45ab9a
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov ebx, eax
jmp 0x45ac1b
xor eax, eax
push ebp
push 0x45abfd
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4bc3f4]
cmp byte [eax], 0
je 0x45abdc
call fcn.0040ac20
cmp byte [eax + 0x15], 0
je 0x45abc9
mov ebx, pe_nt_image_headers32
jmp 0x45abdc
call fcn.0040ac20
cmp byte [eax + 0x14], 0
je 0x45abdc
mov ebx, 0x200
push 0
push ebx
mov eax, dword [ebp - 8]
call fcn.00407984
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 0x45ac1b
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x45ad38
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 0x45af28
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, 0x45af44
call fcn.00407efc
test eax, eax
je 0x45af05
cmp byte [ebp - 0x11], 0
je 0x45aef8
xor edx, edx
push ebp
push 0x45aeee
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [0x4bc3f4]
cmp byte [eax], 0
je 0x45adc6
call fcn.0040ac20
cmp byte [eax + 0x15], 0
je 0x45adb3
mov esi, pe_nt_image_headers32
jmp 0x45adc6
call fcn.0040ac20
cmp byte [eax + 0x14], 0
je 0x45adc6
mov esi, 0x200
lea eax, [ebp - 0x18]
push eax
or esi, 0x2000f
push esi
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407984
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
xor edx, edx
push ebp
push 0x45aedd
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x45aebc
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 0x45aebc
mov esi, dword [ebp - 0x20]
dec esi
cmp esi, 0
jl 0x45aebc
mov eax, dword [0x4bbaa8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407b08
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
call fcn.004070f4
push eax
push esi
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x45aeb2
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407b08
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0042332c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.00407be0
movzx ecx, byte [ebp - 0x11]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0045ad38
test al, al
jne 0x45aeb2
call fcn.004062ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45af05
dec esi
cmp esi, 0xffffffff
jne 0x45ae36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aee4
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407b08
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.0045ac24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45af2f
lea eax, [ebp - 0x24]
call fcn.00406b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x45b6b8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov byte [ebp - 1], 7
xor edx, edx
push ebp
push 0x45b7c0
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 0x45b77b
mov byte [ebp - 1], 5
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x45b757
mov byte [ebp - 1], 0xa
cmp byte [ebp - 6], 1
jne 0x45b737
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x45b728
mov byte [ebp - 1], 0xe
jmp 0x45b7b6
cmp eax, 1
jb 0x45b7b6
mov byte [ebp - 1], 0xd
jmp 0x45b7b6
mov byte [ebp - 1], 0xb
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x45b74c
mov byte [ebp - 1], 0xf
jmp 0x45b7b6
cmp eax, 1
jb 0x45b7b6
mov byte [ebp - 1], 0xc
jmp 0x45b7b6
cmp eax, 5
jb 0x45b7b6
mov byte [ebp - 1], 6
cmp dword [ebp - 0x118], 1
jb 0x45b7b6
cmp byte [ebp - 6], 1
jne 0x45b775
mov byte [ebp - 1], 7
jmp 0x45b7b6
mov byte [ebp - 1], 9
jmp 0x45b7b6
cmp eax, 1
jne 0x45b7b2
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x45b79a
cmp dword [ebp - 0x118], 0xa
jne 0x45b79a
mov byte [ebp - 1], 2
cmp dword [ebp - 0x11c], 4
jne 0x45b7b6
cmp dword [ebp - 0x118], 0x5a
jne 0x45b7b6
mov byte [ebp - 1], 3
jmp 0x45b7b6
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b7ca
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c150
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.00406c24
xor eax, eax
push ebp
push 0x45c2af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406b40
mov edx, dword [ebp - 4]
mov eax, 0x45c2cc
call fcn.00407efc
test eax, eax
jne 0x45c21f
lea eax, [ebp - 8]
mov edx, 1
call fcn.00407b08
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
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.00407b08
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
push ebx
push 0
push edi
push 0
call sub.kernel32.dll_SearchPathW
test eax, eax
je 0x45c213
mov eax, dword [ebp - 8]
call fcn.00407984
call fcn.00407058
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00407b08
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f20
jmp 0x45c294
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f20
jmp 0x45c294
lea eax, [ebp - 8]
mov edx, 1
call fcn.00407b08
push 0
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
mov eax, dword [ebp - 4]
call fcn.00407984
mov edi, eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
inc ebx
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00407b08
push ebx
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x45c28a
mov eax, dword [ebp - 8]
call fcn.00407984
call fcn.00407058
lea edx, [ebp - 8]
xchg edx, eax
call fcn.00407b08
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00406f20
jmp 0x45c294
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c2b6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x45c798
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 0x45c867
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b40
xor edx, edx
push ebp
push 0x45c844
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 0x45c83a
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004079dc
mov eax, dword [ebx]
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
test eax, eax
je 0x45c80a
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45c820
mov eax, ebx
mov edx, 0x45c884
call fcn.00407b88
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045c748
mov edx, dword [ebp - 0x208]
mov eax, ebx
call fcn.00406f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c84e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c86e
lea eax, [ebp - 0x208]
call fcn.00406b40
ret
Function at 0x45c888
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 0x45c97c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b40
xor edx, edx
push ebp
push 0x45c954
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 0x45c94a
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004079dc
lea edx, [ebp - 0x204]
mov eax, dword [ebx]
call fcn.0045dac4
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.00406f20
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045c748
mov edx, dword [ebp - 0x208]
mov eax, ebx
call fcn.00406f20
mov eax, dword [ebx]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x20c]
test eax, eax
je 0x45c934
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45c94a
mov eax, ebx
mov edx, 0x45c998
call fcn.00407b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45c95e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c983
lea eax, [ebp - 0x208]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x45c99c
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 0x45cb30
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x45cb03
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.0045b7d8
cmp al, 0xa
jb 0x45ca7b
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00407b08
xor edx, edx
push ebp
push 0x45ca74
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x45ca5c
mov eax, dword [ebp - 4]
call fcn.00407984
mov edx, dword [ebp - 8]
call fcn.0041db30
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45ca2e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45ca4a
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0042332c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00406f20
call fcn.004062ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45cb0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ca7b
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407b08
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4bc57c]
mov eax, dword [eax]
mov ecx, 0x45cb4c
mov edx, 0x45cb68
call fcn.0045a978
test al, al
je 0x45caf9
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0045c748
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00406f20
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 0x45cac7
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45caf9
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45cadc
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45caf9
mov eax, dword [ebp - 8]
mov edx, 0x45cbf8
call fcn.00407b88
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45cb0d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cb37
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b40
ret