joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459f90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemDefaultUILanguage]
movzx eax, ax
and eax, 0x1ff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, 2
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x83
ja case.0x459fc1.1
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x45a030]
jmp dword [eax*4 + 0x45a014]
mov dword [0x495a98], 1
jmp case.0x459fc1.1
mov dword [0x495a98], 3
jmp case.0x459fc1.1
mov dword [0x495a98], 2
jmp case.0x459fc1.1
mov dword [0x495a98], 4
jmp case.0x459fc1.1
mov dword [0x495a98], 5
jmp case.0x459fc1.1
mov dword [0x495a98], 6
mov esp, ebp
pop ebp
ret

Function at 0x45b240
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
pop ebp
ret

Function at 0x45dde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1200
call fcn.00446f90
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7d0
lea eax, [ebp - 0x7d8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
je 0x45decd
lea ecx, [ebp - 0x7d8]
push ecx
lea edx, [ebp - 0x1200]
push edx
call fcn.00445969
add esp, 8
push str.WinSxSx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8
lea eax, [ebp - 0x1200]
push eax
call fcn.0044593b
add esp, 8
lea ecx, [ebp - 0xa30]
push ecx
lea edx, [ebp - 0x1200]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x7dc], eax
cmp dword [ebp - 0x7dc], 0xffffffff
je 0x45de6f
mov eax, dword [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
jmp 0x45decf
lea ecx, [ebp - 0x7d8]
push ecx
lea edx, [ebp - 0x1200]
push edx
call fcn.00445969
add esp, 8
push str.WinSxSx86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729
lea eax, [ebp - 0x1200]
push eax
call fcn.0044593b
add esp, 8
lea ecx, [ebp - 0xa30]
push ecx
lea edx, [ebp - 0x1200]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x7dc], eax
cmp dword [ebp - 0x7dc], 0xffffffff
je 0x45decd
mov eax, dword [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, 1
jmp 0x45decf
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret
Function at 0x45dee0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x45df12
xor al, al
jmp 0x45dfbc
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x45df40
mov eax, dword [ebp + 0x10]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jl 0x45df4e
jg 0x45df40
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x18]
jbe 0x45df4e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
jmp 0x45dfbc
mov eax, dword [ebp - 8]
add eax, 1
mov ecx, dword [ebp - 4]
adc ecx, 0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401b40
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00418f20
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x45df9f
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [ebp - 8]
jne 0x45df9f
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 4]
je 0x45dfa1
jmp 0x45df40
mov ecx, dword [ebp + 0xc]
call fcn.00418f20
mov ecx, dword [ebp - 8]
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x45e9f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476046
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x495bd4]
and eax, 1
jne 0x45ea4b
mov ecx, dword [0x495bd4]
or ecx, 1
mov dword [0x495bd4], ecx
mov ecx, 0x495bb8
call fcn.00401620
push 0x479e40
call fcn.004444ee
add esp, 4
mov ecx, 0x495bb8
call fcn.00401880
test eax, eax
jne 0x45eb2d
lea edx, [ebp - 0x21c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0045f720
add esp, 8
mov dword [ebp - 0x23c], eax
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x240]
push eax
mov ecx, 0x495bb8
call fcn.004016f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004016d0
mov ecx, 0x495bb8
call fcn.00401880
test eax, eax
jbe 0x45eb1e
mov ecx, 0x495bb8
call fcn.00401880
sub eax, 1
push eax
mov ecx, 0x495bb8
call fcn.0040a970
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x45eb1e
mov ecx, 0x495bb8
call fcn.00401880
sub eax, 1
push eax
mov ecx, 0x495bb8
call fcn.0040a970
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x45eb1e
push 0x4851a8
mov ecx, 0x495bb8
call fcn.00403120
push str.mediaget_installer_tmp_
mov ecx, 0x495bb8
call fcn.00403120
mov eax, 0x495bb8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret

Function at 0x45eb50
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476a15
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4922f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401bb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f220
add esp, 8
mov ecx, 0x495ab8
call fcn.004017e0
lea edx, [ebp - 0x14]
push edx
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
test eax, eax
je 0x45ebe0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x45ec47
lea edx, [ebp - 0x40]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004016d0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x45ec47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45ec60
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476a59
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov dword [ebp - 4], 0
call fcn.00445bb3
push eax
push str.mediaget_tmp__d.tmp
lea eax, [ebp - 0x414]
push eax
call fcn.00444fb4
add esp, 0xc
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x430]
call fcn.00401650
mov dword [ebp - 0x490], eax
mov edx, dword [ebp - 0x490]
mov dword [ebp - 0x494], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x494]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x44c]
push edx
call fcn.00402df0
add esp, 0xc
mov dword [ebp - 0x498], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x498]
push ecx
call fcn.0045f220
add esp, 8
lea ecx, [ebp - 0x44c]
call fcn.004016d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x430]
call fcn.004016d0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x45edbb
lea edx, [ebp - 0x468]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x49c], eax
mov eax, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4a0]
push ecx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x468]
call fcn.004016d0
mov byte [ebp - 0x469], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov al, byte [ebp - 0x469]
jmp 0x45ee94
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x24], str.test_data
mov edx, dword [ebp - 0x24]
push edx
call fcn.00444070
add esp, 4
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x45edf9
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x18]
je 0x45ee42
mov byte [ebp - 0x1d], 1
lea edx, [ebp - 0x488]
push edx
call fcn.00401380
add esp, 4
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp - 0x4a4]
mov dword [ebp - 0x4a8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4a8]
push ecx
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x488]
call fcn.004016d0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x45ee6e
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
movzx eax, byte [ebp - 0x1d]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x489], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov al, byte [ebp - 0x489]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret
Function at 0x45f2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
lea ecx, [ebp - 8]
call fcn.00401bb0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f220
add esp, 8
lea ecx, [ebp - 8]
call fcn.00418f20
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov byte [ebp - 9], dl
lea ecx, [ebp - 8]
call fcn.00401bf0
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x45f340
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0
lea ecx, [ebp - 8]
call fcn.00401bb0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0045f220
add esp, 8
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 2
push 0
push 0
push 0
lea ecx, [ebp - 8]
call fcn.00418f20
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45f39d
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 8]
call fcn.00401bf0
mov al, byte [ebp - 0x1a]
jmp 0x45f41f
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0045f220
add esp, 8
push 0
lea ecx, [ebp - 0x10]
call fcn.00401bb0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0045f220
add esp, 8
lea ecx, [ebp - 0x10]
call fcn.00401b20
shl eax, 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00418f20
push eax
push 1
push 0
lea ecx, [ebp - 8]
call fcn.00418f20
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x19], al
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dl, byte [ebp - 0x19]
mov byte [ebp - 0x1b], dl
lea ecx, [ebp - 0x10]
call fcn.00401bf0
lea ecx, [ebp - 8]
call fcn.00401bf0
mov al, byte [ebp - 0x1b]
mov esp, ebp
pop ebp
ret
Function at 0x45f7b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475d7b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4922f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea ecx, [ebp - 0x28]
call fcn.00401bb0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00401bb0
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f220
add esp, 8
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045f220
add esp, 8
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0045f220
add esp, 8
push 5
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418f20
push eax
lea ecx, [ebp - 0x28]
call fcn.00418f20
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x20
jle 0x45f89a
mov byte [ebp - 0x29], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401bf0
mov al, byte [ebp - 0x29]
jmp 0x45f956
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0045f4f0
add esp, 8
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x70]
push eax
push str.ShellExecute_error:
lea ecx, [ebp - 0x64]
push ecx
call fcn.00402cb0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x78]
push eax
mov ecx, 0x495ab8
call fcn.004016f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x64]
call fcn.004016d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.004016d0
mov byte [ebp - 0x65], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401bf0
mov al, byte [ebp - 0x65]
jmp 0x45f956
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45f970
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475da1
mov eax, dword fs:[0]
push eax
mov eax, 0x1808
call fcn.00446f90
mov eax, dword [0x4922f8]
xor eax, ebp
mov dword [ebp - 0x1018], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1010]
push eax
push 0x1000
lea ecx, [ebp - 0x100c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x45f9c5
xor eax, eax
jmp 0x45fadc
mov edx, dword [ebp - 0x1010]
shr edx, 2
mov dword [ebp - 0x1014], edx
mov dword [ebp - 0x17f0], 0
jmp 0x45f9ef
mov eax, dword [ebp - 0x17f0]
add eax, 1
mov dword [ebp - 0x17f0], eax
mov ecx, dword [ebp - 0x17f0]
cmp ecx, dword [ebp - 0x1014]
jae 0x45fada
mov edx, dword [ebp - 0x17f0]
mov eax, dword [ebp + edx*4 - 0x100c]
push eax
push 0
push 0x100411
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x17f4], eax
cmp dword [ebp - 0x17f4], 0
je 0x45fad5
push 0x3e8
lea ecx, [ebp - 0x17ec]
push ecx
push 0
mov edx, dword [ebp - 0x17f4]
push edx
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x17ec]
push eax
lea ecx, [ebp - 0x1810]
push ecx
call fcn.0045f720
add esp, 8
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1810]
push edx
call fcn.0045f290
add esp, 4
push 0x4855c8
lea eax, [ebp - 0x1810]
push eax
call fcn.00402d40
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x45fab6
mov edx, dword [ebp - 0x17f4]
mov dword [ebp - 0x1814], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1810]
call fcn.004016d0
mov eax, dword [ebp - 0x1814]
jmp 0x45fadc
mov eax, dword [ebp - 0x17f4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1810]
call fcn.004016d0
jmp 0x45f9e0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1018]
xor ecx, ebp
call fcn.00442777
mov esp, ebp
pop ebp
ret
Function at 0x45fb00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475ddc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4922f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0045f220
add esp, 8
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45fb97
mov ecx, dword [ebp + 8]
call fcn.00401620
mov ecx, dword [ebp - 0x2c]
or ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x45fccd
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.0045f220
add esp, 8
push 0x400
lea ecx, [ebp - 0x28]
call fcn.00401bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00401b20
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00418f20
push eax
lea edx, [ebp - 0x18]
push edx
push 0
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45fc2b
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
call fcn.00401620
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x45fccd
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 1
je 0x45fc41
cmp dword [ebp - 0x18], 7
jne 0x45fc81
lea ecx, [ebp - 0x28]
call fcn.00418f20
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045f720
add esp, 8
mov edx, dword [ebp - 0x2c]
or edx, 1
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x45fccd
mov ecx, dword [ebp + 8]
call fcn.00401620
mov eax, dword [ebp - 0x2c]
or eax, 1
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00401bf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, dword [ebp + 8]
jmp 0x45fccd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45fce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476086
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4922f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x495bf4]
and eax, 1
jne 0x45fd35
mov ecx, dword [0x495bf4]
or ecx, 1
mov dword [0x495bf4], ecx
mov ecx, 0x495bd8
call fcn.00401620
push 0x479e30
call fcn.004444ee
add esp, 4
mov ecx, 0x495bd8
call fcn.004018a0
movzx edx, al
test edx, edx
je 0x45fdec
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov dword [ebp - 4], 0
push 1
push 2
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0045f720
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
push str.MediaGet2_
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00402d60
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, 0x495bd8
call fcn.004016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004016d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, 0x495bd8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x45fe00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4760b9
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4922f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x495c14]
and eax, 1
jne 0x45fe55
mov ecx, dword [0x495c14]
or ecx, 1
mov dword [0x495c14], ecx
mov ecx, 0x495bf8
call fcn.00401620
push 0x479e20
call fcn.004444ee
add esp, 4
mov ecx, 0x495bf8
call fcn.004018a0
movzx edx, al
test edx, edx
je 0x45ff0c
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401bb0
mov dword [ebp - 4], 0
push 1
push 0x10
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x14]
call fcn.00418f20
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0045f720
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 1
push 0x485474
mov edx, dword [ebp - 0x54]
push edx
lea eax, [ebp - 0x4c]
push eax
call fcn.00402d60
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x5c]
push edx
mov ecx, 0x495bf8
call fcn.004016f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.004016d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004016d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bf0
mov eax, 0x495bf8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret