joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f363
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 [0x51a230]
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
je 0x41f4c4
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.gdiplus.dll_Ordinal_1
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41f4c4
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004bac70
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 0x41f4b0
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 0x41f48a
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.004bac70
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 0x41f47e
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004baf79
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x41f4b8
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 0x41f3f5
push dword [ebp - 0x418]
call ebx
mov eax, esi
jmp 0x41f4c6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret 4

Function at 0x41fea4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x41fec9
xor eax, eax
jmp 0x41ff5c
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.004bac70
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 0x41ff5a
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x41ff38
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c1d45
pop ecx
pop ecx
test eax, eax
je 0x41ff4a
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 0x41ff17
jmp 0x41ff4d
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.00490604
leave
ret 4
Function at 0x42039f
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x83c
mov eax, 0x4e339b
call fcn.004908c5
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x628]
push 0x208
xor edi, edi
push edi
push eax
call fcn.004bac70
add esp, 0xc
lea eax, [ebp - 0x628]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x848]
call fcn.0040c180
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
mov dword [ebp - 4], edi
call fcn.004ca0fb
pop ecx
push eax
push str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
lea ecx, [ebp - 0x848]
call fcn.00410290
push esi
call fcn.004ca0fb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00410290
mov esi, str..lnk
push esi
call fcn.004ca0fb
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00410290
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 0x42051f
push 0x208
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.004bac70
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004bac70
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004ca0d9
add esp, 0x20
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0041ec47
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004bac70
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x218]
push eax
call fcn.004ca0fb
pop ecx
test eax, eax
jne 0x42050f
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004ca0d9
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x42051f
xor edi, edi
inc edi
lea ecx, [ebp - 0x848]
call fcn.00407230
mov eax, edi
call fcn.00490880
ret 4

Function at 0x420534
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x51c930]
test bl, bl
jne 0x4205cb
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bac70
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 0x4205c5
lea eax, [ebp - 0x20c]
push eax
call fcn.004cae01
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004baf79
pop ecx
pop ecx
test eax, eax
jne 0x4205bd
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.004baf79
pop ecx
pop ecx
test eax, eax
je 0x4205c5
mov byte [0x51c930], bl
jmp 0x4205cb
mov bl, byte [0x51c930]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret
Function at 0x421096
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51a230]
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.004bac70
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 0x421101
lea eax, [ebp - 0x20c]
push 0x4eb0a8
push eax
call fcn.004ca068
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.004205da
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret 4

Function at 0x42122a
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor eax, eax
xor ecx, ecx
xor esi, esi
push edi
cmp dword [ebp + 0xc], eax
jle 0x42131c
mov edi, dword [ebp + 8]
mov dl, byte [esi + edi]
movzx ebx, dl
cmp dl, 0x3d
jne 0x421257
inc ecx
cmp ecx, 2
jg 0x421323
cmp dl, 0x7f
ja 0x421323
mov dl, byte [ebx + 0x4ec0a8]
cmp dl, 0x7f
je 0x421323
cmp dl, 0x40
jae 0x42127c
test ecx, ecx
jne 0x421323
inc eax
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x421242
test eax, eax
je 0x42131c
mov edi, dword [ebp + 0x14]
imul eax, eax, 6
add eax, 7
sar eax, 3
cmp dword [edi], eax
jge 0x4212a4
mov dword [edi], eax
push 0xfffffffffffffff0
jmp 0x421325
mov edx, dword [ebp + 0x10]
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x421317
mov eax, dword [ebp + 8]
push 3
pop edi
movzx eax, byte [eax]
mov cl, byte [eax + 0x4ec0a8]
xor eax, eax
cmp cl, 0x40
sete al
shl ebx, 6
sub edi, eax
movzx eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 0x3f
or ebx, eax
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, 4
jne 0x421308
xor eax, eax
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x4212f3
mov eax, ebx
shr eax, 0x10
mov byte [edx], al
inc edx
cmp edi, 1
jle 0x421300
mov eax, ebx
shr eax, 8
mov byte [edx], al
inc edx
cmp edi, 2
jle 0x421308
mov byte [edx], bl
inc edx
mov eax, dword [ebp + 8]
dec esi
inc eax
mov dword [ebp + 8], eax
test esi, esi
jg 0x4212b8
mov edi, dword [ebp + 0x14]
sub edx, dword [ebp + 0x10]
mov dword [edi], edx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push 0xffffffffffffffee
pop eax
jmp 0x42131e
Function at 0x421328
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x42133c
xor eax, eax
jmp 0x421472
mov eax, ebx
shl eax, 3
push 6
pop ecx
cdq
idiv ecx
mov edx, ebx
imul ecx, eax, 6
shl edx, 3
push 3
sub edx, ecx
dec edx
pop ecx
sub edx, 1
je 0x421365
dec edx
sub edx, 1
jne 0x421367
add eax, 2
jmp 0x421367
add eax, ecx
push esi
mov esi, dword [ebp + 0x14]
inc eax
cmp dword [esi], eax
jge 0x42137a
push 0xfffffffffffffff0
mov dword [esi], eax
pop eax
jmp 0x421471
mov eax, ebx
cdq
idiv ecx
xor ecx, ecx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x42140a
dec eax
mov ebx, dword [ebp + 8]
xor edx, edx
push 3
pop ecx
div ecx
inc eax
imul ecx, eax, 3
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
mov eax, ecx
movzx esi, byte [ebx + 2]
add ebx, 3
shr eax, 2
push 3
mov al, byte [eax + 0x4ec068]
mov byte [edi], al
pop eax
and ecx, eax
mov eax, edx
shr eax, 4
add ecx, ecx
and edx, 0xf
mov al, byte [eax + ecx*8 + 0x4ec068]
mov byte [edi + 1], al
mov eax, esi
shr eax, 6
and esi, 0x3f
mov al, byte [eax + edx*4 + 0x4ec068]
mov byte [edi + 2], al
mov al, byte [esi + 0x4ec068]
mov byte [edi + 3], al
add edi, 4
sub dword [ebp - 4], 1
jne 0x4213a1
mov esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x42140d
mov eax, dword [ebp + 8]
cmp ecx, ebx
jge 0x421464
movzx edx, byte [eax]
inc ecx
mov dword [ebp + 0xc], ecx
cmp ecx, ebx
jge 0x421422
movzx ecx, byte [eax + 1]
jmp 0x421424
xor ecx, ecx
mov eax, edx
shr eax, 2
push 3
mov al, byte [eax + 0x4ec068]
mov byte [edi], al
pop eax
and edx, eax
mov eax, ecx
add edx, edx
shr eax, 4
mov al, byte [eax + edx*8 + 0x4ec068]
mov byte [edi + 1], al
cmp dword [ebp + 0xc], ebx
jge 0x421458
and ecx, 0xf
mov al, byte [ecx*4 + 0x4ec068]
jmp 0x42145a
mov al, 0x3d
mov byte [edi + 2], al
mov byte [edi + 3], 0x3d
add edi, 4
mov eax, edi
sub eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
mov byte [edi], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4214f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x421574
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x421574
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x421576
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x421671
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.00490830
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.004bac70
push str.C:log_
mov ebx, 0x104
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.004cb854
push 0x800
lea eax, [ebp - 0x1024]
push esi
push eax
call fcn.004bac70
push 0x4ea3b4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.0041a238
push edi
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004bac70
add esp, 0x40
lea eax, [ebp - 0x20c]
push edi
push esi
push eax
call fcn.004bac70
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
pop ecx
test eax, eax
je 0x4218d0
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004bb32b
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call ebx
test eax, eax
je 0x4218d0
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004cb854
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.0041a238
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1024]
push 0x3ff
push 0x400
push eax
call fcn.0041ca20
push esi
call fcn.004c2c82
mov dword [ebp - 0x2034], eax
lea eax, [ebp - 0x2034]
push eax
mov dword [ebp - 0x2030], edx
call fcn.004cb82d
add esp, 0x40
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test edi, edi
je 0x4218d0
lea ecx, [ebp - 0x1024]
push ecx
push eax
push dword [edi]
mov eax, dword [edi + 0x10]
push dword [edi + 4]
inc eax
push dword [edi + 8]
push dword [edi + 0xc]
push eax
mov eax, dword [edi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2024]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00421653
xor eax, eax
add esp, 0x28
mov word [ebp - 0x826], ax
lea eax, [ebp - 0x414]
push eax
call ebx
xor ebx, ebx
inc ebx
test eax, eax
lea eax, [ebp - 0x414]
push 0x4ec1fc
push eax
cmovne esi, ebx
call fcn.004c2f3c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4218d0
test esi, esi
jne 0x421876
push edi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xfeff
push ebx
push eax
call fcn.004ca57a
add esp, 0x10
lea eax, [ebp - 0x2024]
push eax
call fcn.004ca0fb
push edi
add eax, eax
push eax
lea eax, [ebp - 0x2024]
push ebx
push eax
call fcn.004ca57a
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xd
push ebx
push eax
call fcn.004ca57a
push edi
push 2
lea eax, [ebp - 0x2028]
mov dword [ebp - 0x2028], 0xa
push ebx
push eax
call fcn.004ca57a
push edi
call fcn.004c2d3a
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret
Function at 0x421975
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004ca0fb
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490862
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.004ca0d9
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x4219ef
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x4219e6
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4219dc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4219ed
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x4219b9
jmp 0x4219ef
xor edi, edi
push esi
call fcn.00490615
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4219fd
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x1a
push eax
push 0
call fcn.00421ed8
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
add esp, 0x14
test eax, eax
je 0x421aa8
push ebx
mov ebx, 0x4eb0a8
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ca068
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004ca068
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ca068
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x421a8c
lea eax, [ebp - 0x20c]
push eax
call fcn.00421975
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.004ca0fb
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407d80
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00490604
leave
ret

Function at 0x421bd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51a230]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bl, byte [0x51c938]
test bl, bl
jne 0x421c70
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004bac70
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 0x421c6a
lea eax, [ebp - 0x20c]
push eax
call fcn.004cae01
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004baf79
pop ecx
pop ecx
test eax, eax
jne 0x421c62
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.004baf79
pop ecx
pop ecx
test eax, eax
je 0x421c6a
mov byte [0x51c938], bl
jmp 0x421c70
mov bl, byte [0x51c938]
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00490604
leave
ret
Function at 0x421c7f
Capabilities:
Check if file exists

Disassembly:
push 0xc50
mov eax, 0x4e3579
call fcn.004908c5
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
mov esi, 0x208
push esi
push 0
push eax
mov dword [ebp - 0xc5c], edi
call fcn.004bac70
push esi
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004bac70
push esi
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004bac70
push esi
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.004bac70
push esi
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bac70
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004bac70
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
call fcn.00421ed8
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x218]
push eax
call fcn.004ca0fb
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004bb32b
add esp, 0x24
test eax, eax
je 0x421e94
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x830]
push str.Local
push eax
call fcn.004ca068
add esp, 0x10
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
cmovne esi, ecx
push eax
call fcn.004ca0d9
lea eax, [ebp - 0x628]
push str.LocalLow
push eax
call fcn.004ca068
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc5c], ecx
push eax
call fcn.004ca0d9
lea eax, [ebp - 0xa38]
push str.Roaming
push eax
call fcn.004ca068
add esp, 0x10
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x421e94
cmp dword [ebp - 0xc5c], 0
je 0x421e94
test ecx, ecx
je 0x421e94
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_
push eax
call fcn.00407ea0
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421e72
lea eax, [ebp - 0x420]
push eax
call fcn.00421975
pop ecx
lea eax, [ebp - 0x420]
push eax
call fcn.004ca0fb
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00407d80
jmp 0x421ea3
lea eax, [ebp - 0xc58]
push ebx
push eax
call fcn.004219fd
pop ecx
pop ecx
xor eax, eax
mov ecx, edi
mov byte [ebp - 0xc5c], al
push dword [ebp - 0xc5c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
lea eax, [ebp - 0xc58]
push eax
call fcn.004163b3
lea ecx, [ebp - 0xc58]
call fcn.00407230
mov eax, edi
call fcn.00490880
ret
Function at 0x421f49
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x838
mov eax, 0x4e2574
call fcn.004908c5
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x828]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x82c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp + 0x1c]
push eax
call fcn.0040c180
xor ecx, ecx
lea eax, [ebp - 0x830]
push eax
push 0x20119
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push reloc.WS2_32.dll_closesocket
mov dword [ebp - 4], ecx
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x838], ecx
mov dword [ebp - 0x834], ecx
call esi
test eax, eax
je 0x421feb
xor eax, eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov byte [ebp - 0x82c], al
push dword [ebp - 0x82c]
mov ecx, edi
lea eax, [ebp - 0x828]
push eax
call fcn.004163b3
jmp 0x42213b
lea eax, [ebp - 0x83c]
push eax
push 0x20119
push 0
push str.SoftWare
push dword [ebp - 0x830]
call esi
test eax, eax
je 0x422018
push dword [ebp - 0x830]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421fc4
lea eax, [ebp - 0x838]
push eax
push 0x20119
push 0
push ebx
push dword [ebp - 0x83c]
call esi
test eax, eax
je 0x42204e
push dword [ebp - 0x83c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x830]
call esi
jmp 0x421fc4
lea eax, [ebp - 0x834]
xor ebx, ebx
push eax
push 0x20119
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x838]
call esi
test eax, eax
je 0x42209e
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x830]
call esi
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov byte [ebp - 0x82c], bl
jmp 0x421fd2
push 0x800
lea eax, [ebp - 0x810]
push ebx
push eax
call fcn.004bac70
add esp, 0xc
mov dword [ebp - 0x844], 0x400
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
push ebx
push dword [ebp - 0x840]
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x834]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x838]
call esi
push dword [ebp - 0x83c]
call esi
push dword [ebp - 0x830]
call esi
lea eax, [ebp - 0x810]
push eax
call fcn.004ca0fb
pop ecx
mov ecx, edi
test eax, eax
jne 0x42212f
mov byte [ebp - 0x840], bl
push dword [ebp - 0x840]
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
jmp 0x421fda
lea eax, [ebp - 0x810]
push eax
call fcn.0040c180
lea ecx, [ebp - 0x828]
call fcn.00407230
mov eax, edi
call fcn.00490880
ret