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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
push 0x208
push dword [ebp + 0xc]
call fcn.0040d80d
pop ecx
pop ecx
test al, al
jne 0x40cea7
xor eax, eax
jmp 0x40cf8d
push 0xc
push dword [ebp + 8]
call fcn.0040d7e6
pop ecx
pop ecx
test al, al
je 0x40cea0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x40cf8b
push dword [ebp - 8]
push ecx
push 0x2fec9840
push 0x3b
push 0x41676c
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0040c91e
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push esi
lea eax, [ebp - 0x420]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cf82
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push 0x4d85ebc9
push 0x10
push 0x4167a8
mov dword [ebp - 0xc], 0x208
call fcn.0040a71a
add esp, 0xc
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40cf79
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
mov ecx, 0x103
cmp ecx, eax
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
leave
ret

Function at 0x40cf90
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
push 2
push ebx
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov edi, eax
cmp edi, ebx
je 0x40cfd1
cmp edi, 0xea
jne 0x40d046
cmp dword [ebp - 4], ebx
je 0x40d03a
xor esi, esi
cmp dword [ebp - 0xc], ebx
jbe 0x40d031
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 0x17
mov dword [ebp - 8], ebx
push dword [eax + esi*4]
push ebx
call dword [sym.imp.NETAPI32.dll_NetUserGetInfo]
test eax, eax
jne 0x40d026
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x40d026
mov ecx, dword [ebp + 8]
cmp byte [ecx], bl
jne 0x40d00d
push dword [eax + 0x10]
call dword [ecx + 8]
jmp 0x40d016
push dword [ecx + 4]
push dword [eax + 0x10]
call dword [ecx + 8]
test eax, eax
je 0x40d01d
or edi, 0xffffffff
push dword [ebp - 8]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp edi, 0xffffffff
je 0x40d031
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x40cfdd
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp edi, 0xea
je 0x40cf9b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d07e
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
push 0x208
push dword [ebp + 8]
xor edi, edi
call fcn.0040d80d
pop ecx
pop ecx
test al, al
je 0x40d107
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x208]
push eax
push 1
push 0xffffffffffffffff
push 0x28
push edi
call esi
test eax, eax
jne 0x40d106
lea eax, [ebp - 0x410]
push eax
push 1
push 0xffffffffffffffff
push 7
push edi
call esi
test eax, eax
jne 0x40d106
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x40d106
lea eax, [ebp + esi*2 - 0x40e]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc edi
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x40d276
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
mov eax, 0x104
call fcn.0040d834
pop ecx
test al, al
jne 0x40d28f
xor eax, eax
pop ebx
ret
push ebp
push esi
push edi
push ebx
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov esi, eax
test esi, esi
jne 0x40d2a3
mov esi, ebx
movzx eax, word [esi]
cmp eax, 0x5c
je 0x40d2b5
cmp eax, 0x2f
je 0x40d2b5
test ax, ax
jne 0x40d2e1
mov edi, eax
xor eax, eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d2d5
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40d2d7
test al, 0x10
je 0x40d2e9
test di, di
je 0x40d2e6
mov word [esi], di
add esi, 2
jmp 0x40d2a3
xor ebp, ebp
inc ebp
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x40d385
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
push edi
mov ebx, 0x41b5d8
push ebx
mov eax, 0x104
xor esi, esi
call fcn.0040d834
pop ecx
test al, al
je 0x40d461
mov dword [ebp - 0x10], esi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
mov esi, 0x40fca8
mov dword [ebp - 0xc], ebx
call fcn.0040d04b
pop ecx
lea eax, [ebp - 0x228]
push eax
push 1
push 0xffffffffffffffff
push 7
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x40d3f7
lea eax, [ebp - 0x228]
push eax
push ebx
call fcn.0040fbd8
pop ecx
pop ecx
mov byte [ebp - 1], al
xor eax, eax
cmp byte [ebp - 1], al
lea edi, [ebp - 0x18]
setne al
and dword [ebp - 0x1c], 0
mov esi, 0x41019a
add dword [ebp - 0x10], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.0040d04b
mov dword [esp], 0x5b8f1579
push 8
push 0x4168f8
call fcn.0040a71a
add esp, 0xc
push eax
push ebx
call fcn.004100bf
pop ecx
pop ecx
xor ecx, ecx
test al, al
mov eax, dword [ebp - 0x1c]
setne cl
push 0
add eax, ecx
pop eax
setne al
xor ecx, ecx
cmp dword [ebp - 0x10], ecx
setne cl
add eax, ecx
neg eax
sbb eax, eax
neg eax
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40d468
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, 0x104
mov eax, esi
call fcn.0040d834
pop ecx
test al, al
jne 0x40d48c
xor eax, eax
jmp 0x40d518
push dword [ebp + 0xc]
mov eax, esi
call fcn.0040d834
pop ecx
test al, al
je 0x40d485
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
push eax
mov ebx, 0x2000000
push ebx
push 3
push eax
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40d515
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
call fcn.00409a17
xor eax, eax
push eax
push ebx
push 3
push eax
push eax
push 0x100
push dword [ebp + 0xc]
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x40d515
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
call fcn.00409a17
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d51d
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0xa
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d609
push 0x110
lea eax, [ebp - 0x168]
push edi
push eax
mov dword [ebp - 0x16c], 0x114
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d609
cmp dword [ebp - 0x168], 6
jb 0x40d5c4
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push 0x12
push dword [ebp - 8]
call esi
test eax, eax
je 0x40d609
cmp dword [ebp - 0x14], 3
jne 0x40d5c4
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x13
push dword [ebp - 8]
call esi
test eax, eax
je 0x40d609
cmp dword [ebp - 4], edi
jne 0x40d5dc
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x40d609
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push 0x1a
mov dword [ebp - 0xc], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x40d609
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, dword [ebp - 8]
call fcn.00409a17
mov esi, dword [ebp - 4]
call fcn.00409a17
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret

Function at 0x40d620
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40d674
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40d66b
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x40d67a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push edi
push 0x110
xor edi, edi
lea eax, [ebp - 0x11c]
push edi
push eax
mov dword [ebp - 0x120], 0x114
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
ja 0x40d6c2
call fcn.0040d620
jmp 0x40d704
lea eax, [ebp - 4]
push eax
push 8
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40d702
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40d6f8
mov edi, dword [ebp - 8]
push esi
mov esi, dword [ebp - 4]
call fcn.00409a17
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x40d70d
Capabilities:
Resolve dns

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d734
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40d734
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, esi
pop esi
ret
Function at 0x40dba3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
shl eax, 2
push eax
push dword [ebp + 0xc]
call fcn.0040d7e6
pop ecx
pop ecx
test al, al
jne 0x40dbc8
xor eax, eax
jmp 0x40dd56
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, 0x40
jbe 0x40dd41
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x40dd52
push esi
mov esi, ebx
shr esi, 6
mov dword [ebp + 8], esi
test bl, 0x3f
je 0x40dbff
inc esi
mov dword [ebp + 8], esi
mov eax, esi
push edi
shl eax, 2
call fcn.00408cd8
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40dd36
mov eax, esi
imul eax, eax, 0x118
push 8
call fcn.00408cd8
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x40dd2e
and dword [ebp - 8], 0
mov edi, ebx
test esi, esi
je 0x40dcd1
push 0xc
mov dword [ebp - 0xc], eax
pop ebx
mov eax, dword [ebp - 0xc]
movzx esi, byte [eax]
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [ebp - 8]
shl eax, 6
push 0x40
mov dword [esi + 4], eax
pop eax
cmp edi, eax
jae 0x40dc62
mov eax, edi
mov dword [esi + 8], eax
shl eax, 2
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + ebx - 0xc]
push dword [ebx + esi]
call sub.ntdll.dll_memcpy
or dword [esi + 0x110], 0xffffffff
add esp, 0xc
xor eax, eax
push eax
push eax
push esi
push 0x40db12
push eax
push eax
mov dword [esi + 0x10c], 1
mov dword [esi + 0x114], 0xfffffffe
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], 0x118
mov dword [edx + ecx*4], eax
sub edi, dword [esi + 8]
inc ecx
add ebx, 0x100
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp + 8]
jb 0x40dc45
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
push 0xffffffffffffffff
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor edi, edi
test esi, esi
je 0x40dd12
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
mov ecx, dword [eax + 0x114]
cmp ecx, 0x102
je 0x40dd0f
cmp ecx, 0xffffffff
je 0x40dd0f
inc edi
add edx, 0x118
mov dword [ebp - 4], ecx
cmp edi, esi
jb 0x40dce9
jmp 0x40dd12
mov dword [ebp - 4], ecx
xor edi, edi
test esi, esi
je 0x40dd26
mov esi, dword [ebx + edi*4]
call fcn.00409a17
inc edi
cmp edi, dword [ebp + 8]
jb 0x40dd18
mov esi, dword [ebp - 0x14]
call fcn.00408de5
mov esi, dword [ebp - 0x10]
call fcn.00408de5
mov esi, dword [ebp - 0x18]
call fcn.00409a17
pop esi
jmp 0x40dd52
push 0xffffffffffffffff
push 1
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x40dd9c
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor edi, edi
push edi
push 8
pop eax
call fcn.00408cd8
pop ecx
push edi
mov esi, eax
mov eax, dword [esp + 0x18]
push edi
push esi
push 0x40dd59
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
push edi
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
jne 0x40ddd5
call fcn.00408de5
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x40f985
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push ebx
push esi
push dword [ebp + 8]
xor bl, bl
push ecx
push 0x89b8ebd7
push 8
push 0x4167dc
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [esp + 0x468]
push eax
call fcn.0040c91e
add esp, 0xc
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
lea eax, [esp + 0x34]
push eax
push dword [ebp + 8]
push 0xc816f97a
push 5
push 0x416594
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [esp + 0x264]
push eax
call fcn.0040c91e
push dword [ebp + 0xc]
lea eax, [esp + 0x26c]
push eax
call fcn.0040f8c5
add esp, 0x18
test al, al
jne 0x40fa26
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f9d3
jmp 0x40fa28
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fa37
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0x634
push 0x416b58
call fcn.00414048
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0x1d], bl
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push dword [ebp + 8]
call fcn.0040f985
pop ecx
pop ecx
test al, al
jne 0x40fb8d
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x24]
push eax
push 0x415758
push 1
push ebx
push 0x415778
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40fb87
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push ebx
lea eax, [ebp - 0x232]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x234]
push eax
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push esi
call fcn.0040a92f
pop ecx
pop ecx
lea eax, [ebp - 0x43c]
push eax
push dword [ebp + 8]
push 0xf249cc38
push 9
push 0x4167e8
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [ebp - 0x644]
push eax
call fcn.0040c91e
push dword [ebp + 8]
call fcn.0040d276
add esp, 0x14
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x234]
push edx
push eax
call dword [ecx + 0x24]
push 6
push esi
call fcn.0040a994
pop ecx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
call fcn.00408de5
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push 0x415798
push eax
call dword [ecx]
test eax, eax
js 0x40fb75
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x644]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40fb87
or dword [ebp - 4], 0xffffffff
jmp 0x40fb91
mov byte [ebp - 0x1d], 1
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, byte [ebp - 0x1d]
call fcn.00414083
ret
Function at 0x40fbd8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x664
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [ebp + 0xc]
push ecx
push 0x89b8ebd7
push 8
push 0x4167dc
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [esp + 0x470]
push eax
call fcn.0040c91e
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
lea eax, [esp + 0x3c]
push eax
push dword [ebp + 0xc]
push 0xc816f97a
push 5
push 0x416594
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [esp + 0x26c]
push eax
call fcn.0040c91e
push dword [ebp + 8]
lea eax, [esp + 0x274]
push eax
call fcn.0040f8c5
add esp, 0x18
test al, al
jne 0x40fc81
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fc2e
jmp 0x40fc92
lea esi, [esp + 0x260]
call fcn.0040a874
test eax, eax
setne bl
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fd5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
lea eax, [ebp - 8]
push eax
push 0x20119
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov byte [ebp - 1], bl
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fe55
cmp dword [ebp + 0x10], ebx
je 0x40fdc3
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040fcf4
add esp, 0xc
test al, al
je 0x40fe4c
cmp dword [ebp + 0x14], ebx
je 0x40fdba
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 1], 1
jmp 0x40fe4c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push edi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x104
call esi
mov edi, 0x103
jmp 0x40fe2b
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040fcf4
add esp, 0xc
test al, al
jne 0x40fe31
inc dword [ebp - 0x10]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 0x104
push dword [ebp - 8]
call esi
cmp eax, edi
jne 0x40fdf1
jmp 0x40fe4a
cmp dword [ebp + 0x14], ebx
je 0x40fe46
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov byte [ebp - 1], 1
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop ebx
leave
ret
Function at 0x40ff3b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x684
push ebx
push esi
push edi
lea eax, [esp + 0x488]
push eax
push dword [ebp + 8]
call fcn.0040a92f
pop ecx
pop ecx
push dword [ebp + 8]
xor ebx, ebx
push ecx
push 0x6f518ae5
push 4
push 0x4168f0
mov dword [esp + 0x24], ebx
call fcn.0040a71a
add esp, 0x10
push eax
lea eax, [esp + 0x288]
push eax
call fcn.0040c91e
add eax, eax
add esp, 0xc
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
xor edi, edi
jmp 0x410069
push dword [esp + 0x1c]
push dword [ebp + 0xc]
push 0xc816f97a
push 5
push 0x416594
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0040c91e
push ebx
push dword [esp + 0x34]
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040fd5c
add esp, 0x20
test al, al
jne 0x41005d
lea esi, [esp + 0x488]
cmp dword [esp + 0x20], ebx
je 0x40fff1
mov esi, dword [esp + 0x20]
xor edi, edi
push edi
lea eax, [esp + 0x18]
push eax
push edi
push 0x20106
push edi
push edi
push edi
lea eax, [esp + 0x44]
push eax
push 0x80000003
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41004e
push dword [esp + 0x24]
lea eax, [esp + 0x284]
push eax
push 1
push edi
push esi
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [esp + 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test bl, bl
setne al
add dword [esp + 0x10], eax
xor ebx, ebx
jmp 0x410061
inc dword [esp + 0x10]
inc dword [esp + 0x18]
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x1c]
call fcn.0040fe5b
test al, al
jne 0x40ff9c
xor eax, eax
cmp dword [esp + 0x10], ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4100bf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
jmp 0x41017b
push dword [esp + 0x18]
push dword [ebp + 0xc]
push 0xc816f97a
push 5
push 0x416594
call fcn.0040a71a
add esp, 0xc
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040c91e
lea eax, [esp + 0x288]
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x38]
push dword [ebp + 8]
push eax
call fcn.0040fd5c
add esp, 0x20
test al, al
je 0x410173
xor eax, eax
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x20106
push eax
push eax
push eax
lea eax, [esp + 0x3c]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410173
lea eax, [esp + 0x278]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x10]
neg eax
sbb eax, eax
inc eax
add ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x14]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x18]
call fcn.0040fe5b
test al, al
jne 0x4100db
pop edi
xor eax, eax
test ebx, ebx
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret