joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043db
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 0x404408
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404605
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x404418
push dword [ebp + 0xc]
call fcn.004034d2
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 0x404605
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 4
pop ecx
jb 0x404605
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 0x41c914
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 0x404605
cmp dword [ebp - 4], 0
je 0x4045f7
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 0x404585
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x404553
lea eax, [ebp - 0x214]
push eax
call fcn.004034d2
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00403dea
add esp, 0xc
jmp 0x4045d2
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 0x404571
mov dword [ebp - 4], edi
jmp 0x4045d2
cmp dword [ebp + 0x10], edi
je 0x4045d2
lea eax, [ebp - 0x214]
push eax
call fcn.004034d2
pop ecx
jmp 0x4045d2
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea eax, [ebp - 0x640]
push eax
push 0x41c6e4
call edi
pop ecx
test eax, eax
pop ecx
je 0x4045d2
lea eax, [ebp - 0x640]
push eax
push 0x41c6dc
call edi
pop ecx
test eax, eax
pop ecx
je 0x4045d2
push dword [ebp + 0x14]
lea eax, [ebp - 0x214]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.004043db
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 0x4045ed
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4044a5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
jmp 0x404607
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404b81
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x420a40], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
push edi
jne 0x404bc9
call ebx
test eax, 0x80000000
je 0x404bbf
push str.___.___
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.Unicows.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x420a44], eax
mov dword [0x420a40], 1
mov eax, dword [0x420a44]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404be5
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x404c16
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x404c0d
call ebx
test eax, 0x80000000
mov eax, dword [ebp + 8]
je 0x404c01
push dword [eax + 8]
call dword [eax]
jmp 0x404c07
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x404c16
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 0x405436
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 0x40546d
cmp dword [ebp - 0x110], 6
jb 0x40546d
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x405f36
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 0x405fa2
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 0x405fba
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 0x405ffe
cmp dword [ebp + 0x10], esi
jbe 0x405feb
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 0x4063af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x41ec08], 0
jne 0x40643c
and word [ebp - 0x20c], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
mov dword [0x41ec08], 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 0x41c6e4
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrW]
test eax, eax
pop edi
je 0x40643c
and word [eax], 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
pop ecx
mov dword [0x41ec0c], eax
mov eax, dword [0x41ec0c]
leave
ret

Function at 0x406a5e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00406a05
cmp dword [ebp + 0x10], 0
pop ecx
je 0x406ab9
cmp dword [ebp + 0x10], eax
jl 0x406ab9
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
and word [ecx], 0
cmp dword [ebp + 0x18], esi
jle 0x406ab3
push ebx
mov eax, esi
push 4
cdq
pop ebx
idiv ebx
mov al, byte [edx + 0x416834]
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 0x406a85
pop ebx
push 1
pop eax
pop esi
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40744a
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 [0x41ec38], ebx
mov word [ebp - 0x208], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x407495
xor eax, eax
jmp 0x40752f
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 0x40752c
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 0x41cdb8
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.00407535
mov esi, eax
cmp esi, ebx
je 0x40752c
push dword [ebp + 0xc]
push esi
call fcn.004073b8
cmp eax, ebx
je 0x407525
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 0x408576
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 [0x41ee49], bl
jne 0x408597
or byte [0x41ee49], bl
call fcn.0040874f
mov dword [0x41ee30], eax
mov eax, dword [ebp + 8]
cmp eax, 0xc
ja case.0x4085a3.8
jmp dword [eax*4 + 0x40871b]
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
and word [esi], 0
push esi
call fcn.0040ad35
pop ecx
test eax, eax
pop ecx
je 0x4085cf
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408710
push dword [ebp + 0x10]
push esi
call fcn.0040878a
jmp 0x4085e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402f84
pop ecx
pop ecx
jmp 0x408710
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x408710
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x408710
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402f84
pop ecx
pop ecx
push str.downlo1
jmp 0x408707
push ebx
push 0x1a
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x4085a3.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 0x408690
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.0x4085a3.8
cmp dword [0x41ee30], 0
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
je 0x40868a
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LocalLow
push edi
call esi
push str.TENCENTQQToolbar
push edi
call esi
jmp 0x408710
push ebx
push 0x1c
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je case.0x4085a3.8
push str.TENCENTQQToolbar
jmp 0x408707
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00408576
add esp, 0xc
push str.btns
jmp 0x408707
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00408576
add esp, 0xc
push str.dlls
jmp 0x408707
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00408576
add esp, 0xc
push str.users
jmp 0x408707
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 6
call fcn.00408576
add esp, 0xc
push str.config
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, ebx
jmp 0x408716
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40874f
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 0x408786
cmp dword [ebp - 0x110], 6
jb 0x408786
push 1
pop eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4087f7
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.00408576
add esp, 0xc
test eax, eax
pop edi
je 0x40888c
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 0x40886b
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00403bbe
pop ecx
test eax, eax
pop ecx
je 0x40888c
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.004034d2
pop ecx
push 1
pop eax
leave
ret
xor eax, eax
leave
ret

Function at 0x409222
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.00413cbf
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409295
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x409295
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4094f8
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 0x409585
cmp dword [ebp - 0x104], 1
jne 0x409541
cmp dword [ebp - 0x110], 4
jne 0x409585
mov al, 1
leave
ret
cmp dword [ebp - 0x104], 2
jne 0x409585
push 5
pop eax
cmp dword [ebp - 0x110], eax
jne 0x40957c
cmp dword [ebp - 0x10c], 0
jne 0x409562
mov al, 2
leave
ret
cmp dword [ebp - 0x10c], 1
jne 0x40956f
mov al, 3
leave
ret
cmp dword [ebp - 0x10c], 2
jne 0x409585
mov al, 4
leave
ret
cmp dword [ebp - 0x110], 6
je 0x409587
xor al, al
leave
ret
Function at 0x4098dd
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.0040b3ff
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.004145b1
test eax, eax
je 0x409946
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 0x409954
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 0x40995d
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 0x40a6ba
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 0x40a72f
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040a5c3
add esp, 0xc
test eax, eax
je 0x40a72f
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 0x40a733
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.0040a5c3
add esp, 0xc
test eax, eax
pop edi
jne 0x40a774
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 0x40a87c
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 0x40a8fc
test eax, eax
je 0x40a8fc
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040a5c3
add esp, 0xc
test eax, eax
je 0x40a8fc
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 0x40a900
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.0040a5c3
add esp, 0xc
test eax, eax
pop edi
jne 0x40a941
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x40a94b
xor eax, eax
jmp 0x40a958
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 0x40b5f5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x40b602
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 0x40b673
cmp dword [ebp + 0x14], 4
jbe 0x40b673
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 0x40b615
test edx, edx
je 0x40b6d5
cmp dword [ebp + 0x14], 4
jbe 0x40b6d5
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 0x40b6aa
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x40b6d0
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
Function at 0x40c1cd
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x414fa5
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x34]
push ebx
push eax
mov byte [ebp - 0xd], bl
call fcn.0040c2e8
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x40c1fd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
mov edi, 0x40000000
push 1
push edi
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x40c253
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0040c2e8
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c234
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push ebx
push 2
push ebx
push 1
push edi
push eax
call esi
push 1
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c27d
lea eax, [ebp + 8]
push ebx
push eax
push 0x10
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c274
cmp dword [ebp + 8], 0x10
jne 0x40c274
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40ca03
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
ret