joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071f3
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push ebx
push esi
push edi
lea edi, [ebp - 0x190]
push 0x64
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20
pop ecx
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x98], 0
and dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 8
jae 0x4073ac
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 8
jae 0x40728f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
jmp 0x407296
and dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xa4], 8
jae 0x4072cc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xa4]
movzx eax, byte [eax]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0xa4]
inc eax
mov dword [ebp - 0xa4], eax
jmp 0x4072d3
and dword [ebp - 0x190], 0
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
shr eax, 2
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xbc]
shr eax, 4
mov ecx, dword [ebp - 0xb0]
and ecx, 3
shl ecx, 4
or eax, ecx
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xc8]
shr eax, 6
mov ecx, dword [ebp - 0xbc]
and ecx, 0xf
shl ecx, 2
or eax, ecx
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xc8]
and eax, 0x3f
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov ax, word [ebp + eax*2 - 0x8c]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
jmp 0x407239
mov eax, dword [ebp - 0x98]
dec eax
mov dword [ebp - 0x98], eax
push 0x3d
pop eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 0x98]
inc eax
mov dword [ebp - 0x98], eax
xor eax, eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ebp + 0xc]
mov word [edx + ecx*2], ax
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x40740b]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413fa1
mov esp, ebp
pop ebp
ret
Function at 0x40893c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415488
mov eax, dword fs:[0]
push eax
sub esp, 0xb14
push ebx
push esi
push edi
lea edi, [ebp - 0xb20]
mov ecx, 0x2c5
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov byte [ebp - 0xa2d], 0
push 0x400
lea eax, [ebp - 0xa24]
push eax
call fcn.00408494
pop ecx
pop ecx
mov dword [ebp - 0xa3c], eax
cmp dword [ebp - 0xa3c], 0
je 0x408a0e
mov esi, esp
push str.HKEY_USERS_
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
mov esi, esp
lea eax, [ebp - 0xa24]
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
jmp 0x408a31
mov esi, esp
push str.HKEY_CURRENT_USER
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
lea ecx, [ebp - 0xa50]
call fcn.0041338d
and dword [ebp - 4], 0
push dword [ebp + 8]
push str.Local_AppData
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xa50]
call fcn.004138d6
mov esi, esp
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x408ab9
mov esi, esp
push 0
push 0x1c
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x408ab7
mov byte [ebp - 0xa2d], 1
jmp 0x408ac0
mov byte [ebp - 0xa2d], 1
mov al, byte [ebp - 0xa2d]
mov byte [ebp - 0xb19], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa50]
call fcn.004133cf
mov al, byte [ebp - 0xb19]
push edx
mov ecx, ebp
push eax
lea edx, [0x408b1c]
call fcn.00413f26
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413fa1
add esp, 0xb20
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret
Function at 0x408f56
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
push ebx
push esi
push edi
lea edi, [ebp - 0x344]
mov ecx, 0xd1
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x41c3e4
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x409091
mov esi, esp
push dword [ebp - 0x21c]
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40907c
mov esi, esp
push str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgram
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x40907c
and dword [ebp - 0x268], 0
push 0x40
push 0
lea eax, [ebp - 0x264]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
and dword [ebp - 0x280], 0
xor eax, eax
lea edi, [ebp - 0x27c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x268], 0x44
mov esi, esp
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp esi, esp
call fcn.00413f7e
push edx
mov ecx, ebp
push eax
lea edx, [0x4090c2]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413fa1
add esp, 0x344
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret
Function at 0x4126a0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
lea edi, [ebp - 0x110]
push 0x44
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
and dword [ebp - 0x18], 0
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0x20008
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.00413f7e
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x41281b
and dword [ebp - 0x24], 0
and dword [ebp - 0x30], 0
mov esi, esp
lea eax, [ebp - 0x30]
push eax
push 0
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x412809
mov esi, esp
push dword [ebp - 0x30]
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00413f7e
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x412809
mov esi, esp
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push 1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x4127e5
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x3b], 5
mov esi, esp
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x4127e5
mov esi, esp
mov eax, dword [ebp - 0x24]
push dword [eax]
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x4127e5
mov dword [ebp - 0xc], 1
mov esi, esp
push dword [ebp - 0x24]
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.00413f7e
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00413f7e
mov eax, dword [ebp - 0xc]
push edx
mov ecx, ebp
push eax
lea edx, [0x412850]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413fa1
add esp, 0x110
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret
Function at 0x413453
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x120]
push 0x48
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041352c
mov dword [ebp - 0x14], eax
push 0x208
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x20], eax
push 0x208
push 0
push dword [ebp - 0x20]
call sub.MSVCR120.dll_memset
add esp, 0xc
and dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0x200
cmp dword [ebp + 0xc], 0
je 0x4134c6
mov dword [ebp - 0x44], 0x100
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00413a90
mov esi, esp
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4134fe
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
add esp, 0x120
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 8
Function at 0x413760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x138]
push 0x4e
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041352c
mov dword [ebp - 0x14], eax
push 0x208
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x20], eax
push 0x208
push 0
push dword [ebp - 0x20]
call sub.MSVCR120.dll_memset
add esp, 0xc
and dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 4
mov dword [ebp - 0x5c], 0x20019
cmp dword [ebp + 0x10], 0
je 0x4137de
mov eax, dword [ebp - 0x5c]
or eax, 0x100
mov dword [ebp - 0x5c], eax
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00413a90
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x5c]
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x413839
mov esi, esp
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
je 0x413839
and dword [ebp - 0x44], 0
mov esi, esp
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x128], eax
push dword [ebp - 0x128]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x44]
push edx
mov ecx, ebp
push eax
lea edx, [0x41388c]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x138
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4138d6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x144]
push 0x51
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041352c
mov dword [ebp - 0x14], eax
push 0x208
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x20], eax
push 0x208
push 0
push dword [ebp - 0x20]
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0x20a
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x44], eax
push 0x20a
push 0
push dword [ebp - 0x44]
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x208
push dword [ebp - 0x20]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00413a90
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x4139f1
mov esi, esp
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, esp
call fcn.00413f7e
test eax, eax
jne 0x4139d6
mov esi, esp
push dword [ebp - 0x44]
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
cmp eax, 0x104
jb 0x4139dc
and dword [ebp + 0x10], 0
jmp 0x4139f1
mov esi, esp
push dword [ebp - 0x44]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x128], eax
push dword [ebp - 0x128]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x11c], eax
push dword [ebp - 0x11c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x413a56]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x144
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413ba0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x150]
push 0x54
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
and dword [ebp - 0x14], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041352c
mov dword [ebp - 0x20], eax
push 0x208
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x2c], eax
push 0x208
push 0
push dword [ebp - 0x2c]
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 4
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 4
mov dword [ebp - 0x74], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x413c29
mov eax, dword [ebp - 0x74]
or eax, 0x100
mov dword [ebp - 0x74], eax
push dword [ebp - 0x2c]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00413a90
mov esi, esp
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x74]
push 0
push 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x44], eax
mov esi, esp
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x413cd4
mov esi, esp
push dword [ebp - 0x50]
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
push dword [ebp + 0xc]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x140], eax
push dword [ebp - 0x140]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x413d14]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413d2d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x150]
push 0x54
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 8], ecx
and dword [ebp - 0x14], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041352c
mov dword [ebp - 0x20], eax
push 0x208
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0x2c], eax
push 0x208
push 0
push dword [ebp - 0x2c]
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x50], 0x104
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x74], 0xf003f
cmp dword [ebp + 0x14], 0
je 0x413db6
mov eax, dword [ebp - 0x74]
or eax, 0x100
mov dword [ebp - 0x74], eax
push dword [ebp - 0x2c]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00413a90
mov esi, esp
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x50], eax
mov esi, esp
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0x74]
push 0
push 0
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x44], eax
mov esi, esp
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x413e78
mov eax, dword [ebp - 0x50]
shl eax, 1
mov esi, esp
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
push dword [ebp + 0xc]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, esp
call fcn.00413f7e
mov esi, esp
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x140], eax
push dword [ebp - 0x140]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x14]
push edx
mov ecx, ebp
push eax
lea edx, [0x413eb9]
call fcn.00413f26
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402ab0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x4129e8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
xor eax, eax
push esi
xor esi, esi
cmp dword [esp + 0x30], esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], al
mov byte [esp + 0x25], al
mov byte [esp + 0x26], al
mov byte [esp + 0x27], al
mov byte [esp + 0x28], al
mov byte [esp + 0x29], 5
jne 0x402afb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x14], ebx
je 0x402bd8
or edi, 0xffffffff
cmp ebx, edi
je 0x402bd8
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402b3f
mov dword [esp + 0x10], edi
jmp 0x402be0
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x402b68
mov dword [esp + 0x10], edi
jmp 0x402be0
push 0x400
call fcn.00403e92
push 0x400
mov edi, eax
push esi
push edi
call fcn.00403910
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x402be4
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x402bc8
add esi, 1
add ebx, 8
cmp esi, ebp
jl 0x402ba4
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x402be4
jmp 0x419c80
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x402bf1
push edi
call fcn.00404267
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x402c00
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp ebx, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402c12
cmp ebx, 0xffffffff
je 0x402c12
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x402c22
cmp eax, 0xffffffff
je 0x402c22
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004038f9
add esp, 0x20
ret
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x4094b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4094ec
mov edi, dword [esp + 0x14]
jmp loc.0041a068
xor eax, eax
pop edi
pop esi
pop ebx
ret