joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fc55
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00543220
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
call fcn.0042088b
test al, al
je 0x51fcc8
push ebx
pop eax
push ecx
pop ebp
push edi
pop ecx
push ecx
pop ecx
push eax
pop esi
push ebx
push ecx
push esi
push ebx
push esp
push ebp
pop ebp
push esi
push edi
pop esp
pop ebp
push eax
pop edx
push eax
push ebp
push edi
pop esp
pop ebx
pop ebx
call fcn.0042099f
test al, al
je 0x51fcef
pop eax
pop edi
pop ecx
pop edi
push ebp
pop esp
pop ecx
push edi
pop ebp
push ebp
pop edx
push edi
push edi
push esi
push edi
push edi
push esi
push esi
pop esi
pop ebx
push esi
pop edx
push ecx
pop edx
pop eax
push ecx
push eax
pop ebp
pop esi
push ecx
mov edi, dword [ebp - 0x11c]
mov esi, dword [ebp - 0x118]
call fcn.0042054f
test al, al
je 0x51fd23
push esi
pop ebx
pop ecx
push ebp
pop ecx
push ecx
push esi
pop eax
pop ebp
pop eax
push edi
push edx
push esi
push edi
push edi
pop edx
pop ebx
push eax
push edi
push ebp
push edx
pop ebp
pop ebp
push ebx
pop eax
push edx
push ebp
push ebp
push edx
push esp
push edi
cmp edi, 5
jg 0x51fd32
cmp esi, 2
jg 0x51fd32
xor eax, eax
inc eax
jmp 0x51fd34
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x5222f9
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x5f6872
call fcn.0044ea0c
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.0052a2d9
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.0052a30d
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x522339
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x522399
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x522374
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x522399
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.0052a2ec
call fcn.0044e9d5
ret 0xc
Function at 0x522821
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5f690d
call fcn.0044ea40
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x522918
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x52289d
lea eax, [ebp - 0x218]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403bdf
and dword [ebp - 4], 0
push 0x5fc284
call fcn.00546031
pop ecx
push eax
push 0x5fc284
lea ecx, [ebp - 0x230]
call fcn.004049a5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.00522484
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x522909
call fcn.004037bf
mov eax, edi
jmp 0x5229ca
or dword [ebp - 4], 0xffffffff
call fcn.004037bf
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x5229c8
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x52295f
lea eax, [ebp - 0x218]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403bdf
mov esi, 0x5fc284
mov dword [ebp - 4], 1
push esi
call fcn.00546031
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.004049a5
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.00522484
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.004037bf
test esi, esi
je 0x5229c8
mov eax, esi
jmp 0x5229ca
xor eax, eax
call fcn.0044e9ea
ret 4
Function at 0x5229d2
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x5229fa
xor eax, eax
jmp 0x522b30
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5229f3
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00543220
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x522b1e
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x522af8
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.00543220
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x522aec
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.005437be
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x522b26
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x20c]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x522a63
push dword [ebp - 0x418]
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret 4
Function at 0x52361e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x523643
xor eax, eax
jmp 0x5236d6
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push esi
push str.SYSTEMCurrentControlSetServices_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5236d4
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x5236b2
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0054a9b6
pop ecx
pop ecx
test eax, eax
je 0x5236c4
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x523691
jmp 0x5236c7
xor esi, esi
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret 4
Function at 0x523ad4
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x5f6a93
call fcn.0044ea40
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x523b3f
lea eax, [ebp - 0x218]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.00403bdf
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.00546031
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.004049a5
xor ebx, ebx
cmp word [esi], bx
jne 0x523b79
mov eax, ebx
jmp 0x523b80
push esi
call fcn.00546031
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.004049a5
mov esi, str..lnk
push esi
call fcn.00546031
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.004049a5
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x523c8e
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.00543220
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00543220
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0054ab6b
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.005221df
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.00546031
pop ecx
test eax, eax
jne 0x523c7c
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0054ab6b
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x523c8e
xor esi, esi
inc esi
jmp 0x523c90
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.004037bf
mov eax, esi
call fcn.0044e9ea
ret 4
Function at 0x523ca8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x6b10f0]
test al, al
jne 0x523d41
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x523d38
lea eax, [ebp - 0x20c]
push eax
call fcn.0054fe94
lea eax, [ebp - 0x20c]
mov dword [esp], 0x65f084
push eax
call fcn.005437be
pop ecx
pop ecx
test eax, eax
jne 0x523d30
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.005437be
pop ecx
pop ecx
test eax, eax
je 0x523d38
mov byte [0x6b10f0], bl
jmp 0x523d3e
mov bl, byte [0x6b10f0]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x52480a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x524875
lea eax, [ebp - 0x20c]
push 0x5fc284
push eax
call fcn.0054f904
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00523d4f
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret 4

Function at 0x524cdd
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00546031
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00421070
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 4], edi
call fcn.0054ab6b
add esp, 0x10
call fcn.00420a29
test al, al
je 0x524d30
push edx
push ebp
pop esp
pop edx
push esi
pop esi
pop edx
push eax
pop edx
pop ebx
pop ebx
pop esp
pop edx
push edi
push esp
push edi
mov eax, dword [ebp - 8]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 0xc], ebx
test eax, eax
js 0x524dfa
cmp word [edi + ebx*2], 0x5c
jne 0x524deb
call fcn.00420777
test al, al
je 0x524d6b
push ebp
pop ebp
push eax
push esp
pop ebp
push ebx
pop ebp
push esi
pop ebx
push edi
pop eax
pop esp
push esi
push eax
push ebp
pop eax
pop esi
push ecx
push ebx
push edx
call fcn.00420594
test al, al
je 0x524d95
push ebp
push ecx
push edi
push edx
push ebx
push ecx
pop esp
pop ebx
pop ebp
pop edx
pop ecx
pop edi
pop ebx
push esp
push eax
push edi
pop ebx
push edi
pop ebx
push eax
pop edx
push ebp
pop ecx
pop eax
pop eax
pop ebx
push ebx
pop ebx
push esp
push ebp
mov edi, dword [ebp - 4]
call fcn.00420663
test al, al
je 0x524dc0
push esi
push esp
push esp
push eax
pop ebx
pop esi
push ebp
push ecx
push eax
push esp
push esp
push edi
pop ebp
pop ebx
push edi
pop ecx
pop esi
push edi
push ecx
push esp
pop ebp
pop ecx
pop ebp
push eax
pop ebp
pop edi
push ecx
pop ebp
pop eax
pop ecx
push ecx
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
xor eax, eax
push edi
movzx esi, word [edi + ebx*2]
mov word [edi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x524de4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x524e0a
mov eax, dword [ebp - 8]
mov word [edi + ebx*2], si
inc ebx
mov dword [ebp - 0xc], ebx
cmp ebx, eax
jle 0x524d43
xor esi, esi
inc esi
push edi
call fcn.00421079
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x524dfa
Function at 0x5250e1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.005264e0
lea eax, [ebp - 0x20c]
push eax
call fcn.00546031
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.0042050a
test al, al
je 0x525158
pop esp
push ecx
pop ebx
push ecx
pop ecx
pop edi
pop ecx
pop esi
push ebx
pop esp
pop ecx
push esi
push edx
push edx
push ebx
push edi
push ebx
push esi
pop esp
pop edx
push ebp
pop eax
push ebx
push edx
push ebp
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x525264
mov esi, 0x5fc284
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0054f904
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0054f904
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0054f904
add esp, 0x18
call fcn.00420ab3
test al, al
je 0x5251b8
pop ebx
pop ecx
push ecx
push edx
pop ebp
push edx
pop esp
push ecx
pop ecx
push esp
push ecx
push esp
pop esi
pop eax
push esp
push ebp
push edi
pop ecx
pop ebx
push ebp
pop edi
push ebx
push esi
push ebx
push ebx
pop ebp
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5251d6
lea eax, [ebp - 0x20c]
push eax
call fcn.00524cdd
pop ecx
call fcn.004205d9
test al, al
je 0x5251f3
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.0042088b
test al, al
je 0x525218
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.00420ab3
test al, al
je 0x525236
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
cmp word [ebp - 0x20c], 0
jne 0x525244
xor eax, eax
jmp 0x525251
lea eax, [ebp - 0x20c]
push eax
call fcn.00546031
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403bdf
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x525e26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6a1564]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6b111c], 0
push ebx
push esi
push edi
je 0x525eae
call fcn.004205d9
test al, al
je 0x525e62
push ebp
push eax
pop ecx
push edx
pop ecx
pop ebx
pop ecx
pop ebp
push esp
push edi
pop ebx
pop esi
pop ebp
pop edx
push esp
push ebp
push edx
pop edi
pop eax
push esi
call fcn.0042088b
test al, al
je 0x525e87
pop edi
push edi
pop esp
pop edi
push ebp
push edi
push ebx
pop esi
pop esi
pop edi
pop ebp
push ecx
push edx
pop ebx
pop ebx
pop eax
push ebp
pop esi
push edx
pop esi
pop edi
push esi
push ebp
pop ebp
push eax
pop edi
pop edx
push edi
call fcn.00420ab3
test al, al
je 0x525fa5
push esp
pop edx
push edi
pop ebp
pop eax
push ebp
push ecx
pop esi
push esp
pop edi
pop ecx
pop edx
push edx
pop ecx
push esp
push ebx
pop edx
pop edi
push edx
push edi
push ebp
jmp 0x525fa5
call fcn.00420ab3
test al, al
je 0x525ed2
pop edx
push ecx
pop edi
push esi
pop ebp
push ebp
push esp
pop ebp
push ebx
push ecx
push ecx
pop esi
push ebp
push ebp
pop esp
push eax
pop edi
push esp
push ebx
push ebp
push eax
pop ecx
pop ebx
pop edi
pop esp
pop esi
pop ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x525f42
lea eax, [ebp - 0x20c]
push eax
call fcn.0054fe94
lea eax, [ebp - 0x20c]
mov dword [esp], 0x65f084
push eax
call fcn.005437be
pop ecx
pop ecx
test eax, eax
jne 0x525f3b
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.005437be
pop ecx
pop ecx
test eax, eax
je 0x525f42
mov byte [0x6b111c], 1
call fcn.00420915
test al, al
je 0x525f5d
pop ecx
push ecx
push esi
push edx
push eax
pop esi
push eax
push ebx
pop ebx
push esi
push eax
push eax
push edi
push ebp
pop esi
push esp
pop eax
push esp
call fcn.004205d9
test al, al
je 0x525f81
push edx
push esi
push esi
push edi
push esi
push edi
pop edi
push esi
push ecx
push esp
push esp
push edx
push ecx
pop esp
push esp
push ebx
pop edi
pop edx
pop ebp
pop ebx
pop esi
push esp
pop ebx
pop edx
pop eax
pop esi
push ebx
call fcn.004205d9
test al, al
je 0x525fa5
push ebx
pop ebp
pop edi
push esi
pop esp
pop ecx
pop ebx
pop edi
pop eax
pop edi
pop edi
push edx
pop eax
pop ecx
push eax
push edi
push ecx
pop edi
pop esi
push ebp
push esp
push esi
push edx
push edi
push esi
push edx
push ebp
mov ecx, dword [ebp - 4]
mov al, byte [0x6b111c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044e9c4
mov esp, ebp
pop ebp
ret
Function at 0x525fbd
Capabilities:
Get common file path

Disassembly:
push 0x138
mov eax, 0x5f6cb4
call fcn.0044ea40
mov al, byte [0x6b111d]
test al, al
jne 0x526086
push 0x104
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00543220
add esp, 0xc
lea eax, [ebp - 0x114]
xor edi, edi
inc edi
push edi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x526081
push str.config_systemprofile
lea ecx, [ebp - 0x12c]
call fcn.004021d9
lea eax, [ebp - 0x114]
mov dword [ebp - 4], esi
push eax
lea ecx, [ebp - 0x144]
call fcn.004021d9
push dword [ebp - 0x11c]
cmp dword [ebp - 0x118], 0x10
lea eax, [ebp - 0x12c]
push esi
cmovae eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x144]
push eax
call fcn.0042014a
movzx ecx, byte [0x6b111d]
cmp eax, 0xffffffff
push esi
cmovne ecx, edi
mov byte [0x6b111d], cl
lea ecx, [ebp - 0x144]
push edi
call fcn.0040376a
push esi
push edi
lea ecx, [ebp - 0x12c]
call fcn.0040376a
mov al, byte [0x6b111d]
call fcn.0044e9ea
ret
Function at 0x526eb4
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x244
mov eax, 0x5f6ded
call fcn.0044ea40
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
and dword [ebp - 0x24c], 0
push 0x208
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00543220
add esp, 0xc
call fcn.004207bc
test al, al
je 0x526f07
push eax
push esi
push esi
push esi
pop esp
pop eax
pop esi
push ecx
push edi
push ecx
pop edx
push ecx
pop esp
pop esp
push ecx
pop edi
pop ebp
pop ebp
push 0x104
lea eax, [ebp - 0x218]
xor esi, esi
push eax
push esi
jmp 0x52700f
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x527001
call fcn.0042088b
test al, al
je 0x526f51
pop eax
pop ecx
push ebp
push edi
pop ecx
push esp
pop edx
pop ebp
pop edx
pop esp
push eax
push ebx
push ebx
push edx
push esp
push edx
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x526f81
lea eax, [ebp - 0x218]
push eax
call fcn.00546031
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403bdf
and dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0052c265
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 2
call fcn.004037bf
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x250]
call fcn.00526e14
pop ecx
pop ecx
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
push 0
push 1
call fcn.0040376a
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x526f1b
call fcn.0044e9ea
ret