joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bdb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [edx]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push esi
push edi
xor esi, esi
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00494f20
test al, al
jne 0x46bdf0
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x46bde5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x46be1a
cmp eax, 0xffffffff
je 0x46be1a
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Codepage
push esi
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x46be40
test ebx, ebx
je 0x46be40
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x10]
cmp dword [ebx - 0xc], 0
je 0x46be69
test ebx, ebx
je 0x46be69
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x46be92
test ebx, ebx
je 0x46be92
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x18]
cmp dword [ebx - 0xc], 0
je 0x46bebb
test ebx, ebx
je 0x46bebb
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x46bee0
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.ShowSearchSuggestions
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x46bf06
test ebx, ebx
je 0x46bf06
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x46bf2f
test ebx, ebx
je 0x46bf2f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push 0x5c715c
push esi
call edi
test esi, esi
je 0x46bf3a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x46bf50
Capabilities:
Delete registry key

Disassembly:
push ecx
mov ecx, dword [esi]
push eax
push str.DefaultScope
push ecx
xor ecx, ecx
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
call fcn.0046a8c0
add esp, 0xc
test al, al
jne 0x46bf71
xor al, al
pop ecx
ret
mov edx, dword [esi]
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x46bf88
cmp eax, 2
jne 0x46bf6d
mov al, 1
pop ecx
ret
Function at 0x46c260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
push esi
push edi
xor esi, esi
mov eax, 0x100
mov edx, reloc.OLEAUT32.dll_SysReAllocString
lea edi, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00494f20
test al, al
jne 0x46c2a4
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x46c29b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
mov esi, dword [ebp - 0xc]
je 0x46c2ce
cmp eax, 0xffffffff
je 0x46c2ce
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Codepage
push esi
call edi
mov ebx, dword [ebx + 0xc]
cmp dword [ebx - 0xc], 0
je 0x46c2f4
test ebx, ebx
je 0x46c2f4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.DisplayName
push esi
call edi
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x10]
cmp dword [ebx - 0xc], 0
je 0x46c31d
test ebx, ebx
je 0x46c31d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.FaviconPath
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x14]
cmp dword [ebx - 0xc], 0
je 0x46c346
test ebx, ebx
je 0x46c346
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push str.FaviconURL
push esi
call edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x18]
cmp dword [ebx - 0xc], 0
je 0x46c36f
test ebx, ebx
je 0x46c36f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push str.OSDFileURL
push esi
call edi
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0x1c], eax
setne al
cmp eax, 0xffffffff
je 0x46c394
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.ShowSearchSuggestions
push esi
mov dword [ebp - 8], eax
call edi
mov ebx, dword [ebx + 0x20]
cmp dword [ebx - 0xc], 0
je 0x46c3ba
test ebx, ebx
je 0x46c3ba
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push str.SuggestionsURL_JSON
push esi
call edi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x24]
cmp dword [ebx - 0xc], 0
je 0x46c3e3
test ebx, ebx
je 0x46c3e3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
push edx
push ebx
push 1
push 0
push 0x5c715c
push esi
call edi
test esi, esi
je 0x46c3ee
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46c400
Capabilities:
Delete registry key

Disassembly:
push ecx
push eax
push str.DefaultScope
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, 0x100
mov eax, str.SOFTWAREMicrosoftInternet_ExplorerSearchScopes
call fcn.0046a8c0
add esp, 0xc
test al, al
jne 0x46c426
xor al, al
pop ecx
ret
push str.SOFTWAREMicrosoftInternet_ExplorerUser_Preferences
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x46c43f
cmp eax, 2
jne 0x46c422
mov al, 1
pop ecx
ret

Function at 0x476c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
je 0x476d6d
mov eax, 0x5c
cmp ax, word [edi + 2]
je 0x476d58
mov ecx, eax
cmp cx, word [edi + 4]
je 0x476d58
push ebx
push esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0055e2a0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.system32
lea edx, [ebp - 0x20c]
push edx
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x20c]
push ecx
call ebx
test eax, eax
jne 0x476d48
push 0x5c78ac
lea edx, [ebp - 0x20c]
push edx
call esi
push 0x5c78ac
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
lea ecx, [ebp - 0x20c]
push ecx
call esi
lea edx, [ebp - 0x20c]
push edx
call ebx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0055e289
mov esp, ebp
pop ebp
ret
Function at 0x4781f0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x10
mov esi, 0x5c7ad8
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*2 + 3]
lea edx, [ecx*4]
cmp edx, eax
mov dword [ebp - 0x54], ebx
movsb byte es:[edi], byte [esi]
jle 0x478243
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
mov eax, 0x55555556
imul ecx
mov edi, edx
shr edi, 0x1f
add edi, edx
lea eax, [edi*4]
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x4782d5
mov eax, dword [ebp + 8]
lea esi, [ebx + 2]
add eax, 2
mov dword [ebp - 0x50], edi
jmp 0x478270
mov cl, byte [eax - 2]
movzx edx, cl
shr edx, 2
movzx edx, byte [ebp + edx - 0x48]
mov byte [esi - 2], dl
mov dl, byte [eax - 1]
and cl, 3
shl cl, 4
movzx ebx, dl
movzx ecx, cl
shr ebx, 4
or ecx, ebx
movzx ecx, byte [ebp + ecx - 0x48]
and dl, 0xf
mov byte [esi - 1], cl
movzx ecx, byte [eax]
add dl, dl
add dl, dl
mov ebx, ecx
movzx edx, dl
shr ebx, 6
or edx, ebx
movzx edx, byte [ebp + edx - 0x48]
and ecx, 0x3f
movzx ecx, byte [ebp + ecx - 0x48]
mov byte [esi], dl
mov byte [esi + 1], cl
add eax, 3
add esi, 4
sub dword [ebp - 0x50], 1
jne 0x478270
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
lea edx, [edi + edi*2]
sub ecx, edx
mov edx, ecx
test edx, edx
jle 0x478345
mov eax, dword [ebp + 8]
add dword [ebp - 0x4c], 4
lea ecx, [eax + edi*2]
lea esi, [edi + ecx]
mov cl, byte [esi]
movzx eax, cl
shr eax, 2
mov al, byte [ebp + eax - 0x48]
and cl, 3
shl cl, 4
mov byte [ebx + edi*4], al
mov al, 0x3d
movzx ecx, cl
cmp edx, 1
jne 0x47831a
mov dl, byte [ebp + ecx - 0x48]
mov byte [ebx + edi*4 + 1], dl
mov byte [ebx + edi*4 + 2], al
jmp 0x478341
mov dl, byte [esi + 1]
movzx esi, dl
and dl, 0xf
shr esi, 4
or ecx, esi
movzx ecx, byte [ebp + ecx - 0x48]
add dl, dl
add dl, dl
movzx edx, dl
mov byte [ebx + edi*4 + 1], cl
movzx ecx, byte [ebp + edx - 0x48]
mov byte [ebx + edi*4 + 2], cl
mov byte [ebx + edi*4 + 3], al
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov byte [ebx + eax], 0
xor ecx, ebp
pop ebx
call fcn.0055e289
mov esp, ebp
pop ebp
ret
Function at 0x479b60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, eax
test edi, edi
je 0x479cf9
mov edx, dword [ebp + 8]
test edx, edx
je 0x479cf9
test ebx, ebx
je 0x479cf9
cmp dword [ebp + 0x10], 0
je 0x479cf9
push esi
xor esi, esi
cmp edx, 2
jbe 0x479c3d
mov dword [ebp - 4], 4
mov al, byte [edi]
mov cl, byte [edi + 1]
sub dword [ebp + 8], 3
mov bl, al
inc edi
mov dl, byte [edi + 1]
shr bl, 2
and al, 3
mov byte [ebp - 8], bl
mov bl, cl
shl al, 4
inc edi
shr bl, 4
add al, bl
and cl, 0xf
mov byte [ebp - 7], al
add cl, cl
mov al, dl
shr al, 6
add cl, cl
add cl, al
mov eax, dword [ebp - 4]
and dl, 0x3f
inc edi
mov byte [ebp - 5], dl
cmp eax, dword [ebp + 0x10]
ja 0x479ce2
movzx edx, byte [ebp - 8]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp + 0xc]
mov byte [esi + ebx], dl
movzx edx, byte [ebp - 7]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx ecx, byte [ebp - 5]
inc esi
inc eax
mov byte [esi + ebx], dl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
inc esi
inc eax
mov byte [esi + ebx], dl
inc eax
inc esi
cmp dword [ebp + 8], 2
mov dword [ebp - 4], eax
ja 0x479ba5
mov edx, dword [ebp + 8]
test edx, edx
je 0x479cdd
xor al, al
xor cl, cl
mov byte [ebp - 2], 0
mov byte [ebp - 3], al
mov byte [ebp - 4], cl
test edx, edx
jbe 0x479c6b
push edx
lea eax, [ebp - 4]
push edi
push eax
call fcn.00562ba0
mov al, byte [ebp - 3]
mov cl, byte [ebp - 4]
add esp, 0xc
mov dl, cl
shr dl, 2
mov byte [ebp - 8], dl
mov dl, al
and cl, 3
shr dl, 4
and al, 0xf
shl cl, 4
add cl, dl
mov dl, byte [ebp - 2]
add al, al
shr dl, 6
add al, al
add al, dl
lea edx, [esi + 4]
cmp edx, dword [ebp + 0x10]
jbe 0x479ca2
pop esi
pop edi
mov eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [ebp - 8]
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], dl
movzx ecx, cl
movzx edx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc esi
mov byte [esi + ebx], dl
inc esi
cmp dword [ebp + 8], 1
jne 0x479ccb
mov byte [esi + ebx], 0x3d
jmp 0x479cd7
movzx eax, al
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], cl
inc esi
mov byte [esi + ebx], 0x3d
inc esi
cmp esi, dword [ebp + 0x10]
jb 0x479cec
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a090
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
mov bl, 1
call edi
test eax, eax
jne 0x47a0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x47a0d1
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
push esi
call edi
test eax, eax
jne 0x47a0da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47a0da
pop edi
xor al, al
pop ebx
ret
pop edi
mov al, bl
pop ebx
ret

Function at 0x48fff0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a37e5
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x5e6468]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebx], vtable.TS::Registry::CUserRegHelper.0
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebx + 8], eax
mov byte [ebp - 4], 2
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebx + 0xc], eax
lea eax, [ebp + 0xf]
push eax
lea edx, [ebp + 0xb]
lea ecx, [ebx + 0x10]
push edx
mov byte [ebp - 4], 3
call fcn.004968e0
lea eax, [ebp + 0xf]
push eax
lea edx, [ebp + 0xb]
lea ecx, [ebx + 0x30]
push edx
mov byte [ebp - 4], 4
call fcn.004968e0
lea eax, [ebp + 0xf]
push eax
lea edx, [ebp + 0xb]
lea ecx, [ebx + 0x50]
push edx
mov byte [ebp - 4], 5
call fcn.00496d10
lea ecx, [ebx + 0x70]
mov byte [ebp - 4], 6
call fcn.00446b40
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 7
call fcn.00493d70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4900e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x494320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1a68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x5e6468]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 4]
lea edi, [ebx + 0x30]
push ecx
mov ecx, edi
call fcn.00496bf0
mov eax, dword [edi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [edi + 0x18]
mov dword [edi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [edi + 0x18]
mov dword [eax + 8], eax
mov edx, dword [ebx + 0x68]
mov eax, dword [edx + 4]
lea esi, [ebx + 0x50]
push eax
mov ecx, esi
call fcn.00496fa0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [eax], eax
mov eax, dword [esi + 0x18]
lea ecx, [ebp - 0x2c]
push ecx
mov dword [eax + 8], eax
call fcn.004965e0
mov dword [ebp - 4], 0
mov edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.userprofile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00426f30
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00495700
lea edx, [ebx + 8]
push edx
mov ecx, eax
call fcn.004275f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49440d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx + 4]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorer
push ecx
lea edx, [ebp - 0x10]
push str._s_sUser_Shell_Folders
push edx
call fcn.0042fa10
push SysStringLen
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.00491780
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x494459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
xor esi, esi
cmp eax, esi
je 0x49447a
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push ecx
call fcn.0049b3f0
mov edx, dword [ebp - 0x20]
push edx
call fcn.0055dfce
add esp, 8
mov eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0055dfce
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x494e60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [esi]
sub eax, 0x10
mov dword [ebp - 4], 0x104
mov edx, dword [eax + 8]
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, 0x104
or ecx, edx
jge 0x494e93
push 0x104
mov ecx, esi
call fcn.00427e70
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x494efb
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x494ed3
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x494ed7
push ecx
push eax
call fcn.0055e719
add esp, 8
test eax, eax
jl 0x494ef1
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x494ef1
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00425c60
mov eax, dword [esi]
cmp dword [eax - 8], 0
jl 0x494ef1
mov dword [eax - 0xc], 0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x49f620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cb7d
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x224], ebx
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
mov dword [ebp - 4], ebx
push ecx
mov word [ebp - 0x218], ax
call fcn.0055e2a0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x49f721
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49f6b0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00427a50
push 0x208
lea ecx, [ebp - 0x218]
push 0
push ecx
call fcn.0055e2a0
mov eax, dword [ebp - 0x21c]
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x5c88d8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x49f721
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00427020
lea eax, [ebp - 0x21c]
jmp 0x49f74f
mov edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
mov ebx, 1
mov byte [ebp - 4], 1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00427bb0
add eax, 0x10
or ebx, 2
add esp, 4
mov dword [esi], eax
mov dword [ebp - 4], 0
test bl, 1
je 0x49f793
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49f793
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49f7bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
Function at 0x4a4040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0055e2a0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4a4097
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret
push str.ntdll.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4a4087
push str.RtlGetVersion
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e289
mov esp, ebp
pop ebp
ret

Function at 0x4a4150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5e6468]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0055e2a0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0055e289
mov esp, ebp
pop ebp
ret