joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40215f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor edx, edx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov word [ebp - 0x20c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 4], edx
push edx
mov ebx, 0x80000003
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
je 0x402218
push esi
lea eax, [ebp - 0x20c]
push 0x41d844
push eax
call fcn.00406064
and word [ebp - 0x414], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0040a9c4
lea eax, [ebp - 0x414]
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00406064
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
inc dword [ebp - 4]
lea eax, [ebp - 0x20c]
push esi
push eax
push dword [ebp - 4]
jmp 0x40219b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4024fd
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0x439
jne 0x402521
push 5
push 0
push str.shell32_Control_RunDLL_Appwiz.cpl__0
push str.rundll32.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x10]
and dword [eax], 0
xor eax, eax
ret 0x10

Function at 0x4031ba
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4031d0
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 1
pop eax
pop esi
ret
Function at 0x404020
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x404031
push edi
call fcn.00403708
pop ecx
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404040
push esi
call fcn.00403708
pop ecx
call fcn.004055d7
test eax, eax
je 0x40405e
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x404067
push esi
push edi
call fcn.0040406a
pop ecx
pop ecx
pop edi
pop esi
ret
Function at 0x404611
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40463e
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40483b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40464e
push dword [ebp + 0xc]
call fcn.00403708
pop ecx
push dword [ebp + 8]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x872]
mov word [ebp - 0x874], bx
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], 1
call esi
test eax, eax
je 0x40483b
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 4
pop ecx
jb 0x40483b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x874]
push eax
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x874]
push 0x41da7c
push eax
call ebx
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x874]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40483b
cmp dword [ebp - 4], 0
je 0x40482d
and word [ebp - 0x41c], 0
mov edx, 0x81
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x41a]
and word [ebp - 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x104
lea eax, [ebp - 0x41c]
push edi
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
push edi
lea eax, [ebp - 0x214]
push dword [ebp + 0xc]
push eax
call esi
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
test byte [ebp - 0x66c], 0x10
jne 0x4047bb
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x404789
lea eax, [ebp - 0x214]
push eax
call fcn.00403708
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00404020
add esp, 0xc
jmp 0x404808
lea eax, [ebp - 0x214]
push edi
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4047a7
mov dword [ebp - 4], edi
jmp 0x404808
cmp dword [ebp + 0x10], edi
je 0x404808
lea eax, [ebp - 0x214]
push eax
call fcn.00403708
pop ecx
jmp 0x404808
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x640]
push eax
push 0x41d834
call edi
pop ecx
test eax, eax
pop ecx
je 0x404808
lea eax, [ebp - 0x640]
push eax
push 0x41d82c
call edi
pop ecx
test eax, eax
pop ecx
je 0x404808
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00404611
add esp, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404823
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4046db
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
jmp 0x40483d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404db7
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x421f10], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push edi
jne 0x404dff
call ebx
test eax, 0x80000000
je 0x404df5
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x421f14], eax
mov dword [0x421f10], 1
mov eax, dword [0x421f14]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404e1b
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x404e4c
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x404e43
call ebx
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x404e37
push dword [eax + 8]
call dword [eax]
jmp 0x404e3d
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404e4c
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40566c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x4056a3
cmp dword [ebp - 0x110], 6
jb 0x4056a3
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40616c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push esi
push edi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
xor esi, esi
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x462]
mov word [ebp - 0x464], si
rep stosd dword es:[edi], eax
add esp, 0xc
cmp dword [ebp + 0xc], esi
stosw word es:[edi], ax
je 0x4061d8
push dword [ebp + 0xc]
lea eax, [ebp - 0x464]
push dword [ebp + 8]
push str.__s___s
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4061f0
push 0x207
lea eax, [ebp - 0x464]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x464]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x406234
cmp dword [ebp + 0x10], esi
jbe 0x406221
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4065e5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x4200c8], 0
jne 0x406672
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov dword [0x4200c8], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push str.Version
push str.SOFTWAREMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x20c]
push 0x41d834
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
pop edi
je 0x406672
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov dword [0x4200cc], eax
mov eax, dword [0x4200cc]
leave
ret

Function at 0x406c94
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00406c3b
cmp dword [ebp + 0x10], 0
pop ecx
je 0x406cef
cmp dword [ebp + 0x10], eax
jl 0x406cef
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x406ce9
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x417884]
mov edx, dword [ebp + 0x14]
add al, byte [ebp + 8]
xor al, byte [esi + edx]
xor al, 0x80
movzx ax, al
mov word [ecx], ax
and word [ecx + 2], 0
inc esi
inc ecx
inc ecx
cmp esi, dword [ebp + 0x18]
jl 0x406cbb
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40769f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
cmp dword [0x4200f8], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4076ea
xor eax, eax
jmp 0x407784
push esi
mov esi, 0x104
lea eax, [ebp - 0x410]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x407781
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push 0x41df48
push eax
call esi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x208]
push eax
call esi
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040778a
mov esi, eax
cmp esi, ebx
je 0x407781
push dword [ebp + 0xc]
push esi
call fcn.0040760d
cmp eax, ebx
je 0x40777a
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 0x10
Function at 0x4087cb
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop ebx
test byte [0x420309], bl
jne 0x4087ec
or byte [0x420309], bl
call fcn.004089a4
mov dword [0x4202f0], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x4087f8.8
jmp dword [eax*4 + 0x408970]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.0040b136
pop ecx
test eax, eax
pop ecx
je 0x408824
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408965
push dword [ebp + 0x10]
push esi
call fcn.004089df
jmp 0x40883a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004031ba
pop ecx
pop ecx
jmp 0x408965
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x408965
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x408965
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004031ba
pop ecx
pop ecx
push str.downlo1
jmp 0x40895c
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x4087f8.8
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.LocalVirtualStoreProgram_Files
push dword [ebp + 0xc]
call esi
push str.TENCENTQQToolbar
push dword [ebp + 0xc]
jmp 0x4088e5
mov edi, dword [ebp + 0xc]
push ebx
push 0x1a
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x4087f8.8
cmp dword [0x4202f0], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x4088df
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x408965
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x4087f8.8
push str.TENCENTQQToolbar
jmp 0x40895c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.004087cb
add esp, 0xc
push str.btns
jmp 0x40895c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.004087cb
add esp, 0xc
push str.dlls
jmp 0x40895c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.004087cb
add esp, 0xc
push str.users
jmp 0x40895c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.004087cb
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x40896b
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4089a4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
jne 0x4089db
cmp dword [ebp - 0x110], 6
jb 0x4089db
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x408a4c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 6
call fcn.004087cb
add esp, 0xc
test eax, eax
pop edi
je 0x408ae1
lea eax, [ebp - 0x208]
push str.Update
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408ac0
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00403df4
pop ecx
test eax, eax
pop ecx
je 0x408ae1
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
call fcn.00403708
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x409477
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push esi
mov edx, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
lea eax, [ebp - 0x208]
push 0x103
add edx, 4
push eax
push edx
call fcn.00414e9f
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4094ea
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4094ea
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4097d7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
push 0x44
pop ecx
xor eax, eax
lea edi, [ebp - 0x110]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
pop edi
je 0x409864
cmp dword [ebp - 0x104], 1
jne 0x409820
cmp dword [ebp - 0x110], 4
jne 0x409864
mov al, 1
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x409864
push 5
pop eax
cmp dword [ebp - 0x110], eax
jne 0x40985b
cmp dword [ebp - 0x10c], 0
jne 0x409841
mov al, 2
leave
ret
cmp dword [ebp - 0x10c], 1
jne 0x40984e
mov al, 3
leave
ret
cmp dword [ebp - 0x10c], 2
jne 0x409864
mov al, 4
leave
ret
cmp dword [ebp - 0x110], 6
je 0x409866
xor al, al
leave
ret
Function at 0x409c74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and byte [ebp - 0x10], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
pop esi
stosb byte es:[edi], al
push esi
lea eax, [ebp - 0x10]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040b87c
mov ebx, eax
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x20
call fcn.004157a3
test eax, eax
je 0x409cdd
lea eax, [ebp - 0x20]
push esi
push eax
push 3
push str.Custom_ID2
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov edi, dword [ebp + 8]
test edi, edi
je 0x409ceb
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 4

Function at 0x409cf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.Owner_ID2
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [ebp - 8], 2
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ax, word [ebp - 4]
leave
ret

Function at 0x40aabb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop eax
pop edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
je 0x40ab30
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040a9c4
add esp, 0xc
test eax, eax
je 0x40ab30
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push dword [ebp + 0xc]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40ab34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040a9c4
add esp, 0xc
test eax, eax
pop edi
jne 0x40ab75
leave
ret
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x40ac7d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
cmp dword [ebp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 1
pop edi
lea ecx, [eax + eax]
mov dword [ebp + 0x14], ecx
je 0x40acfd
test eax, eax
je 0x40acfd
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040a9c4
add esp, 0xc
test eax, eax
je 0x40acfd
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 4]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x40ad01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.0040a9c4
add esp, 0xc
test eax, eax
pop edi
jne 0x40ad42
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x40ad4c
xor eax, eax
jmp 0x40ad59
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push eax
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x40ba72
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x40ba7f
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0xc]
push ebx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 3
pop edi
cmp edx, edi
jb 0x40baf0
cmp dword [ebp + 0x14], 4
jbe 0x40baf0
movzx ebx, byte [esi + 2]
xor ecx, ecx
sub edx, edi
mov ch, byte [esi]
sub dword [ebp + 0x14], 4
mov cl, byte [esi + 1]
add esi, edi
shl ecx, 8
or ecx, ebx
mov ebx, ecx
shr ebx, 0x12
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov ebx, ecx
shr ebx, 0xc
and ebx, 0x3f
inc eax
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov ebx, ecx
shr ebx, 6
and ebx, 0x3f
inc eax
and ecx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp edx, edi
jae 0x40ba92
test edx, edx
je 0x40bb52
cmp dword [ebp + 0x14], 4
jbe 0x40bb52
movzx ecx, byte [esi]
shl ecx, 0x10
mov edi, ecx
shr edi, 0x12
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], bl
inc eax
cmp edx, 1
jne 0x40bb27
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x40bb4d
xor edx, edx
mov dh, byte [esi + 1]
or ecx, edx
mov edx, ecx
shr edx, 0xc
and edx, 0x3f
shr ecx, 6
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
inc eax
and byte [eax], 0
sub eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret