joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f20c0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x534760
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4f2267
mov ecx, dword [0x6894b4]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x4f21bc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004f0de0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0051ea82
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0051e949
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x68610c
call fcn.0051e9b7
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.004f11a0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0051ea82
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0051e949
lea ecx, [esp + 0xc]
call fcn.0051ee6f
mov ecx, dword [esp + 0xc]
push 0x686b4c
push ecx
call fcn.0050c064
add esp, 8
test eax, eax
je 0x4f21e4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4f211d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0051e949
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0051e949
jmp 0x4f226b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004f1e60
test eax, eax
push 0
je 0x4f224f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004f0500
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4f2235
cmp eax, 0x64
jg 0x4f2223
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4f21c0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4f21c0
cmp eax, 0x64
jge 0x4f21bc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x4f21c0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004f0500
mov esi, eax
jmp 0x4f21c0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x4f2275
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x50dc4c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x50dc6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0050fc4a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x50dc8f
test byte [esp + 8], 2
je 0x50dc8f
call fcn.0050fcbd
mov dword [eax], 0xd
call fcn.0050fcc6
mov dword [eax], 5
jmp 0x50dc68
xor eax, eax
ret

Function at 0x520ea9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x520ee1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051edf0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051edc8
jmp 0x520eed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5226a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5226e5
call fcn.00528f8a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5226e5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5226dc
xor eax, eax
jmp 0x5226ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005226f3
pop edi
pop esi
pop ebx
ret 4

Function at 0x5294ba
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5294e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x529506
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00529420
jmp 0x529506
mov eax, dword [esi + 0x14]
test eax, eax
je 0x529506
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00529420
test edi, edi
mov eax, edi
jne 0x5294f0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5fcd4df1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [0x5fcf6374]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 4], eax
push edi
je 0x5fcd4f01
test ebx, ebx
je 0x5fcd4f01
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
mov edi, dword [ecx]
push edi
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
je 0x5fcd4f01
push 5
lea eax, [ebp - 0x10]
push eax
push 0x1e
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [ebp - 0x14], 2
jne 0x5fcd4e64
mov al, byte [edi]
sub al, 0x30
mov cl, 0xa
imul cl
add al, byte [edi + 2]
sub al, 0x30
mov byte [ebx + 2], al
jmp 0x5fcd4efd
lea eax, [ebp - 0x10]
push eax
call esi
lea eax, [eax + eax*2 + 8]
cmp dword [ebp - 0x14], eax
pop ecx
jb 0x5fcd4e93
lea eax, [ebp - 0x10]
push eax
call esi
inc eax
inc eax
lea eax, [eax + eax*2]
pop ecx
lea ecx, [edi + eax*2]
mov al, byte [ecx]
sub al, 0x30
mov dl, 0xa
imul dl
add al, byte [ecx + 2]
sub al, 0x30
mov byte [ebx + 3], al
lea eax, [ebp - 0x10]
push eax
call esi
lea eax, [eax + eax + 6]
cmp dword [ebp - 0x14], eax
pop ecx
jb 0x5fcd4ebe
lea eax, [ebp - 0x10]
push eax
call esi
pop ecx
lea ecx, [edi + eax*4 + 8]
mov al, byte [ecx]
sub al, 0x30
mov dl, 0xa
imul dl
add al, byte [ecx + 2]
sub al, 0x30
mov byte [ebx + 2], al
lea eax, [ebp - 0x10]
push eax
call esi
add eax, 4
cmp dword [ebp - 0x14], eax
pop ecx
jb 0x5fcd4ee8
lea eax, [ebp - 0x10]
push eax
call esi
lea esi, [edi + eax*2 + 4]
mov al, byte [esi]
sub al, 0x30
pop ecx
mov cl, 0xa
imul cl
add al, byte [esi + 2]
sub al, 0x30
mov byte [ebx + 1], al
cmp dword [ebp - 0x14], 2
jb 0x5fcd4efd
mov al, byte [edi]
sub al, 0x30
mov cl, 0xa
imul cl
add al, byte [edi + 2]
sub al, 0x30
mov byte [ebx], al
xor eax, eax
jmp 0x5fcd4f06
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5fcedaff
leave
ret 8

Function at 0x5fcd6853
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5fcf6374]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x5fcd68d6
test ebx, ebx
je 0x5fcd68d6
push edi
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
push 5
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push eax
push 0x1e
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, byte [esi + 3]
push eax
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi + 2]
push eax
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi + 1]
push eax
lea eax, [ebp - 0x10]
push eax
movzx eax, byte [esi]
push eax
push 0x5fcd1830
lea eax, [ebp - 0x3c]
push 0x15
push eax
call fcn.5fcd5b15
add esp, 0x28
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
xor eax, eax
pop edi
jmp 0x5fcd68db
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.5fcedaff
leave
ret 8
Function at 0x5fce31a3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_malloc]
push edi
mov ebx, ecx
mov edi, 0x2000
push edi
mov dword [ebp - 0x18], ebx
call esi
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jne 0x5fce31d3
mov eax, 0x8007000e
jmp 0x5fce333c
push eax
mov ecx, ebx
call fcn.5fce30aa
test eax, eax
jge 0x5fce31e6
mov edi, eax
jmp 0x5fce332c
lea eax, [ebp - 2]
push eax
push dword [ebp - 0x10]
call fcn.5fce2f20
test eax, eax
jne 0x5fce3200
mov edi, 0x80020009
jmp 0x5fce332c
push edi
call esi
mov esi, eax
test esi, esi
pop ecx
mov dword [ebp - 0xc], esi
jne 0x5fce3217
mov edi, 0x8007000e
jmp 0x5fce332c
mov ecx, ebx
call fcn.5fce3081
push esi
mov ecx, ebx
call fcn.5fce30aa
test eax, eax
jl 0x5fce3322
movzx eax, word [ebp - 2]
sub eax, 8
je 0x5fce3307
sub eax, 9
je 0x5fce326a
dec eax
dec eax
jne 0x5fce3313
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push esi
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.5fce2c4d
jmp 0x5fce3313
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test al, 1
mov dword [ebp - 8], eax
je 0x5fce3282
mov edi, 0x80004005
jmp 0x5fce3324
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.5fcede10
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, esp
mov dword [ebp - 4], edi
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp esp, edi
je 0x5fce3278
cmp dword [ebp - 8], edi
jle 0x5fce32ee
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
push eax
call fcn.5fce2faa
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x5fce32b8
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 4]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x5fce3313
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
call fcn.5fce2c70
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.5fce30aa
test eax, eax
jge 0x5fce333a
mov edi, eax
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, edi
jmp 0x5fce333c
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5fce4cae
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x5fceee90
call fcn.5fcedd04
sub esp, 0x218
mov eax, dword [0x5fcf6374]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.5fce2c11
cmp eax, esi
jne 0x5fce4d57
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x5fce4d0e
lea eax, [ebp - 0x210]
push eax
call fcn.5fce4cae
cmp eax, esi
jne 0x5fce4d56
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x5fce4cfe
call fcn.5fce2b9e
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.5fce2b9e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.5fcedaff
leave
ret 4
Function at 0x5fce7c6b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x5fce7cbd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x5fce7ca8
call esi
mov esi, eax
jmp 0x5fce7d83
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5fce7d83
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x5fce7cde
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x5fce7d03
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x5fce7cf1
call esi
jmp 0x5fce7d78
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5fce7d7a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x5fce7d42
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.5fcede10
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x5fce7d4a
xor eax, eax
jmp 0x5fce7d6c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.5fcede10
mov eax, esp
push esi
push edi
push eax
call fcn.5fce2b4a
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.5fce6451
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x5fce9180
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff80
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x5c]
test esi, esi
je 0x5fce91aa
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x5fcea145
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 1
push 0
push 0x5fcd3010
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5fcea1a9
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp + 0x10]
je 0x5fcea1a3
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x5fcea1b0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x5fcea1bc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x5fcd3010
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x5fcea1fd
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x5fcea20e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5fcd3010
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5fcea25c
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5fcea252
and dword [esi], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
test ebx, ebx
sete al
pop ebx
leave
ret 0xc

Function at 0x5fcea26d
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x5fcd3010
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5fcea2d5
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x5fcea2b0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x5fcea2ab
cmp eax, 2
jne 0x5fcea2cc
xor esi, esi
inc esi
jmp 0x5fcea2cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x5fcea2e1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 1
push 0
push 0x5fcd3010
push SysReAllocString
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5fcea345
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 8]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], 4
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push dword [ebp + 0x10]
je 0x5fcea33f
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x5fcea34c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x5fcea358
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x5fcd3010
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x5fcea399
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8

Function at 0x5fcea3aa
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x5fcd3010
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x5fcea3f8
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5fcea3ee
and dword [esi], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
test ebx, ebx
sete al
pop ebx
leave
ret 0xc

Function at 0x5fcea409
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x5fcd3010
xor esi, esi
push SysReAllocString
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5fcea471
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x5fcea44c
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x5fcea447
cmp eax, 2
jne 0x5fcea468
xor esi, esi
inc esi
jmp 0x5fcea468
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x5fceb93b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x5fcf6374]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x61c], eax
push 0x27
lea eax, [ebp - 0x414]
push eax
push edi
mov dword [ebp - 0x618], edi
call esi
test eax, eax
mov ebx, 0x104
jne 0x5fceb9ab
push edi
push 5
lea eax, [ebp - 0x414]
push eax
push edi
call esi
test eax, eax
jne 0x5fceb9ab
push ebx
push 0x5fcd36c4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x16
pop ecx
xor eax, eax
lea edi, [ebp - 0x678]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x620]
lea ecx, [ebp - 0x20c]
push 0x100
mov dword [ebp - 0x65c], ecx
lea ecx, [ebp - 0x614]
push ecx
mov dword [ebp - 0x674], eax
mov eax, dword [0x5fcf63a0]
push 0xe1
push eax
mov dword [ebp - 0x678], 0x58
mov dword [ebp - 0x670], eax
mov dword [ebp - 0x63c], 0x5fcd36bc
mov dword [ebp - 0x658], ebx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x614]
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x414]
push ebx
mov dword [ebp - 0x64c], eax
push 0x5fcd36ac
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x644], 0x82002
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x678]
push eax
mov dword [ebp - 0x66c], 0x5fcd3668
mov dword [ebp - 0x660], 1
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x5fcebae6
mov eax, dword [ebp - 0x660]
dec eax
dec eax
lea eax, [ebp - 0x20c]
push eax
je 0x5fcebaad
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.5fcede10
mov eax, esp
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.5fcd3fad
push dword [ebp - 0x61c]
push eax
call fcn.5fcec3fe
jmp 0x5fcebae0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.5fcede10
mov eax, esp
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.5fcd3fad
push dword [ebp - 0x61c]
push eax
call fcn.5fcec40b
mov dword [ebp - 0x618], eax
mov eax, dword [ebp - 0x618]
lea esp, [ebp - 0x684]
mov ecx, dword [ebp - 4]
call fcn.5fcedaff
pop edi
pop esi
pop ebx
leave
ret 8