joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d798
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 0x44d854
xor eax, eax
push ebp
push 0x44d84d
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 0x44d82f
mov edx, dword [ebp - 8]
shr edx, 1
dec edx
mov eax, ebx
call fcn.00407b08
jmp 0x44d836
mov eax, ebx
call fcn.00406b40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d854
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 0x450c9c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x450cee
test eax, edx
je 0x450cf1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x450cb1
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 0x450cd7
add ecx, 4
js 0x450cc7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x450cd4
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 0x450cfd
test edx, edx
jne 0x450ca4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4588c4
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 0x4589d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
mov eax, dword [0x4c2488]
cmp byte [eax], 0
je 0x45892a
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x458917
mov ebx, pe_nt_image_headers32
jmp 0x45892a
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x45892a
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 0x4589bc
cmp dword [ebp - 8], 0
jne 0x458985
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 0x4589ad
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 0x4589de
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x4589ec
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 0x458b2c
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 [0x4c2488]
cmp byte [eax], 0
je 0x458a62
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x458a4f
mov ebx, pe_nt_image_headers32
jmp 0x458a62
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x458a62
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 0x458b11
cmp dword [ebp - 8], 0
jne 0x458a93
xor ebx, ebx
jmp 0x458a9d
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 0x458b08
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 0x458b00
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x458af6
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov byte [ebp - 0xd], 1
jmp 0x458b08
mov eax, dword [ebp - 0x1c]
call fcn.0040450c
jmp 0x458b08
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 0x458b33
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x458e68
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 [0x4c2488]
cmp byte [eax], 0
je 0x458ead
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x458e9a
mov ebx, pe_nt_image_headers32
jmp 0x458ead
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x458ead
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 0x458ef7
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 0x458f04
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 [0x4c2488]
cmp byte [eax], 0
jne 0x458f36
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 0x458fb7
xor eax, eax
push ebp
push 0x458f99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [0x4c2488]
cmp byte [eax], 0
je 0x458f78
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x458f65
mov ebx, pe_nt_image_headers32
jmp 0x458f78
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x458f78
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 0x458fb7
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4590d4
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 0x4592c4
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov edx, dword [ebp - 0x10]
mov eax, 0x4592e0
call fcn.00407efc
test eax, eax
je 0x4592a1
cmp byte [ebp - 0x11], 0
je 0x459294
xor edx, edx
push ebp
push 0x45928a
push dword fs:[edx]
mov dword fs:[edx], esp
xor esi, esi
mov eax, dword [0x4c2488]
cmp byte [eax], 0
je 0x459162
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x45914f
mov esi, pe_nt_image_headers32
jmp 0x459162
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x459162
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 0x459279
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x459258
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 0x459258
mov esi, dword [ebp - 0x20]
dec esi
cmp esi, 0
jl 0x459258
mov eax, dword [0x4c0e70]
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 0x45924e
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00407b08
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0042331c
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.004590d4
test al, al
jne 0x45924e
call fcn.004062ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4592a1
dec esi
cmp esi, 0xffffffff
jne 0x4591d2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459280
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.00458fc0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4592cb
lea eax, [ebp - 0x24]
call fcn.00406b40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x4592e4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406c24
mov eax, dword [ebp + 0xc]
call fcn.00406c24
xor eax, eax
push ebp
push 0x459461
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0xc]
call fcn.00406b40
xor ebx, ebx
mov eax, dword [0x4c2488]
cmp byte [eax], 0
je 0x459358
call fcn.0040abf8
cmp byte [eax + 0x15], 0
je 0x459345
mov ebx, pe_nt_image_headers32
jmp 0x459358
call fcn.0040abf8
cmp byte [eax + 0x14], 0
je 0x459358
mov ebx, 0x200
lea eax, [ebp - 0x14]
push eax
or ebx, 0x20019
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.00407984
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x45943e
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], 0x800
mov eax, dword [ebp - 0x18]
call fcn.004044f0
mov edi, eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x18], 0x800
cmp byte [ebp + 0x10], 0
je 0x4593bd
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov ebx, eax
jmp 0x4593d6
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumValueW
mov ebx, eax
test ebx, ebx
jne 0x459426
cmp dword [ebp - 0x18], 0
jbe 0x459425
cmp dword [ebp + 8], 0
je 0x4593eb
mov eax, dword [ebp + 8]
inc dword [eax]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov edx, edi
call fcn.00406cc8
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x45940d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00406f20
jmp 0x459425
mov eax, dword [ebp - 0xc]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.00407c68
inc esi
test ebx, ebx
je 0x459395
mov eax, edi
call fcn.0040450c
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 0x459468
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp + 0xc]
call fcn.00406b40
ret
Function at 0x459f10
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 0x45a018
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 0x459fd3
mov byte [ebp - 1], 5
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x459faf
mov byte [ebp - 1], 0xa
cmp byte [ebp - 6], 1
jne 0x459f8f
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x459f80
mov byte [ebp - 1], 0xe
jmp 0x45a00e
cmp eax, 1
jb 0x45a00e
mov byte [ebp - 1], 0xd
jmp 0x45a00e
mov byte [ebp - 1], 0xb
mov eax, dword [ebp - 0x118]
cmp eax, 2
jb 0x459fa4
mov byte [ebp - 1], 0xf
jmp 0x45a00e
cmp eax, 1
jb 0x45a00e
mov byte [ebp - 1], 0xc
jmp 0x45a00e
cmp eax, 5
jb 0x45a00e
mov byte [ebp - 1], 6
cmp dword [ebp - 0x118], 1
jb 0x45a00e
cmp byte [ebp - 6], 1
jne 0x459fcd
mov byte [ebp - 1], 7
jmp 0x45a00e
mov byte [ebp - 1], 9
jmp 0x45a00e
cmp eax, 1
jne 0x45a00a
mov byte [ebp - 1], 1
cmp dword [ebp - 0x11c], 4
jne 0x459ff2
cmp dword [ebp - 0x118], 0xa
jne 0x459ff2
mov byte [ebp - 1], 2
cmp dword [ebp - 0x11c], 4
jne 0x45a00e
cmp dword [ebp - 0x118], 0x5a
jne 0x45a00e
mov byte [ebp - 1], 3
jmp 0x45a00e
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45a022
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a9a8
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 0x45ab07
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406b40
mov edx, dword [ebp - 4]
mov eax, 0x45ab24
call fcn.00407efc
test eax, eax
jne 0x45aa77
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 0x45aa6b
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 0x45aaec
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406f20
jmp 0x45aaec
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 0x45aae2
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 0x45aaec
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 0x45ab0e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret

Function at 0x45aff8
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 0x45b0c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b40
xor edx, edx
push ebp
push 0x45b0a4
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 0x45b09a
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 0x45b06a
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45b080
mov eax, ebx
mov edx, 0x45b0e4
call fcn.00407b88
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045afa8
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 0x45b0ae
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b0ce
lea eax, [ebp - 0x208]
call fcn.00406b40
ret
Function at 0x45b0e8
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 0x45b1dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00406b40
xor edx, edx
push ebp
push 0x45b1b4
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 0x45b1aa
mov eax, ebx
lea edx, [ebp - 0x200]
call fcn.004079dc
lea edx, [ebp - 0x204]
mov eax, dword [ebx]
call fcn.0045c324
mov edx, dword [ebp - 0x204]
mov eax, ebx
call fcn.00406f20
lea edx, [ebp - 0x208]
mov eax, dword [ebx]
call fcn.0045afa8
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 0x45b194
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45b1aa
mov eax, ebx
mov edx, 0x45b1f8
call fcn.00407b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b1be
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b1e3
lea eax, [ebp - 0x208]
mov edx, 2
call fcn.00406ba0
ret
Function at 0x45b1fc
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 0x45b390
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x45b363
push dword fs:[ecx]
mov dword fs:[ecx], esp
call fcn.0045a030
cmp al, 0xa
jb 0x45b2db
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00407b08
xor edx, edx
push ebp
push 0x45b2d4
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 0x45b2bc
mov eax, dword [ebp - 4]
call fcn.00407984
mov edx, dword [ebp - 8]
call fcn.0041db20
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45b28e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45b2aa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0042331c
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 0x45b36d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b2db
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407b08
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4c261c]
mov eax, dword [eax]
mov ecx, 0x45b3ac
mov edx, 0x45b3c8
call fcn.00458c28
test al, al
je 0x45b359
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0045afa8
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 0x45b327
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x45b359
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x45b33c
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45b359
mov eax, dword [ebp - 8]
mov edx, 0x45b458
call fcn.00407b88
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45b36d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b397
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 4]
call fcn.00406b40
ret
Function at 0x45bacc
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 0x45bc65
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 0x45bb0c
call fcn.0045a8b8
mov dword [ebp - 0x18], eax
mov eax, esi
test eax, eax
je 0x45bb17
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45bb22
xor ebx, ebx
jmp 0x45bc3d
cmp byte [ebp - 0x12], 0
je 0x45bc26
lea eax, [ebp - 0xc]
mov edx, esi
call fcn.00406f68
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042336c
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00406f68
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0041d3ac
mov eax, dword [ebp - 8]
test eax, eax
je 0x45bb63
sub eax, 4
mov eax, dword [eax]
cmp eax, 2
jne 0x45bb90
lea eax, [ebp - 0x1c]
push eax
mov ecx, 1
mov edx, 2
mov eax, dword [ebp - 8]
call fcn.00407d50
mov eax, dword [ebp - 0x1c]
mov edx, 0x45bc80
call fcn.00407d18
sete al
jmp 0x45bb92
xor eax, eax
test al, al
je 0x45bb9a
mov al, 1
jmp 0x45bba4
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.0041cd1c
test al, al
je 0x45bbac
mov al, 1
jmp 0x45bbba
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407d18
sete al
test al, al
jne 0x45bc3d
cmp dword [ebp - 4], 0
jne 0x45bbde
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x45bc3d
mov eax, dword [ebp - 4]
call fcn.00407984
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.004079dc
mov eax, dword [ebp - 0x20]
movzx ecx, byte [ebp - 0x12]
movzx edx, byte [ebp - 0x11]
call fcn.0045bacc
mov ebx, eax
test bl, bl
je 0x45bc1c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
call fcn.00407984
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x45bc20
xor eax, eax
jmp 0x45bc22
mov al, 1
mov ebx, eax
jmp 0x45bc3d
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00407984
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 0x45bc6c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406ba0
ret

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

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

Function at 0x45c2b8
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0045c300
test al, al
je 0x45c2f8
mov eax, esi
call fcn.0041d19c
mov ebx, eax
test bl, bl
jne 0x45c2f8
mov eax, esi
call fcn.0045c19c
push 0x80
mov eax, esi
call fcn.00407984
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, esi
call fcn.0041d19c
mov ebx, eax
mov eax, ebx
pop esi
pop ebx
ret