joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40988d
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.0040b3af
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.00414561
test eax, eax
je 0x4098f6
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 0x409904
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 0x40990d
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 0x40a66a
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 0x40a6df
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040a573
add esp, 0xc
test eax, eax
je 0x40a6df
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 0x40a6e3
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.0040a573
add esp, 0xc
test eax, eax
pop edi
jne 0x40a724
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 0x40a82c
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 0x40a8ac
test eax, eax
je 0x40a8ac
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040a573
add esp, 0xc
test eax, eax
je 0x40a8ac
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 0x40a8b0
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.0040a573
add esp, 0xc
test eax, eax
pop edi
jne 0x40a8f1
leave
ret
cmp dword [ebp + 0x10], 0
jne 0x40a8fb
xor eax, eax
jmp 0x40a908
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 0x40b5a5
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
jne 0x40b5b2
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 0x40b623
cmp dword [ebp + 0x14], 4
jbe 0x40b623
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 0x40b5c5
test edx, edx
je 0x40b685
cmp dword [ebp + 0x14], 4
jbe 0x40b685
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 0x40b65a
shr ecx, 0xc
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
mov byte [eax], 0x3d
jmp 0x40b680
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 0x40c17d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x414f55
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.0040c298
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x40c1ad
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 0x40c203
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.0040c298
mov eax, dword [ebp - 0x20]
pop ecx
cmp eax, ebx
pop ecx
jne 0x40c1e4
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 0x40c22d
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 0x40c224
cmp dword [ebp + 8], 0x10
jne 0x40c224
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 0x40c9b3
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
Function at 0x40e801
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2a20
call fcn.00402cc0
and word [ebp - 0x220], 0
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, str.iphlpapi.dll
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x40e872
xor al, al
jmp 0x40e974
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40e950
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x2800
push ecx
lea ecx, [ebp - 0x2a20]
push ecx
call eax
test eax, eax
jne 0x40e950
lea eax, [ebp - 0x2a20]
lea esi, [ebp - 0x2a20]
test eax, eax
mov dword [ebp - 0xc], 3
je 0x40e950
push ebx
lea eax, [esi + 8]
push eax
call fcn.0040e978
mov dword [ebp + 8], eax
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, edi
lea eax, [ebp - 8]
add esp, 0x10
xor edx, edx
sub ecx, eax
lea eax, [ebp + edx - 8]
mov bl, byte [ecx + eax]
cmp bl, byte [eax]
jne 0x40e8f9
inc edx
cmp edx, 6
jb 0x40e8e6
jmp 0x40e90a
cmp dword [esi + 0x1a0], 6
jne 0x40e945
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jle 0x40e945
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov esi, dword [esi]
test esi, esi
jne 0x40e8c1
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 6
lea eax, [ebp - 8]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0040eb1a
pop edi
pop esi
leave
ret
Function at 0x40e978
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov edi, 0x20019
xor ebx, ebx
push eax
push edi
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call esi
test eax, eax
jne 0x40eae6
push dword [ebp + 8]
lea eax, [ebp - 0x11c]
push str._sConnection
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x11c]
push ebx
push eax
push dword [ebp - 0x18]
call esi
test eax, eax
jne 0x40eadd
push 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.MediaSubType
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40ead4
push 1
lea eax, [ebp - 0x11c]
pop edi
mov dword [ebp - 8], 0x103
push 0x104
push ebx
push eax
mov dword [ebp - 0x14], edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push str.PnpInstanceID
push dword [ebp - 4]
call esi
test eax, eax
jne 0x40ead4
cmp dword [ebp - 0x10], edi
jne 0x40eac2
mov esi, 0x41da04
push esi
call sub.MSVCRT.dll_strlen
mov edi, dword [sym.imp.MSVCRT.dll_strncmp]
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
jne 0x40ea9b
mov dword [ebp - 0xc], ebx
jmp 0x40ead4
cmp dword [ebp - 0x10], 1
jne 0x40eac2
push esi
call sub.MSVCRT.dll_strlen
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
call edi
add esp, 0x10
test eax, eax
je 0x40eac2
mov dword [ebp - 0xc], 2
jmp 0x40ead4
xor eax, eax
cmp dword [ebp - 0x10], 2
setne al
dec eax
and al, 0xfe
add eax, 3
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fee2
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x41534c
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
mov ebx, ecx
jne 0x40ff0d
push esi
push esi
push esi
push 2
mov ecx, ebx
call fcn.00411808
xor al, al
jmp 0x410073
mov ecx, ebx
call fcn.0040ee00
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
or dword [ebx + 8], 0xffffffff
or dword [ebx + 4], 0xffffffff
push 2
push esi
push dword [ebp + 8]
call edi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov esi, eax
call edi
xor eax, eax
add esp, 0x1c
cmp esi, eax
jne 0x40ff4e
push eax
push eax
push eax
push 0xd
jmp 0x40feff
mov edi, 0x4207e8
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.0041254e
lea eax, [esi + 1]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push dword [ebp + 8]
and byte [eax], 0
mov dword [ebp - 0x14], eax
push 1
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x40ffb0
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 2
call fcn.00411808
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], edi
je 0x40ff06
push dword [ebp - 0x10]
call fcn.00402c68
pop ecx
jmp 0x40ff06
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edi, eax
and byte [ecx + esi], 0
cmp byte [ecx], 0
je 0x41001b
mov cl, byte [edi]
cmp cl, 0xa
jne 0x40ffd9
mov ecx, edi
sub ecx, eax
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00412657
inc edi
jmp 0x41000d
cmp cl, 0xd
jne 0x410015
mov ecx, edi
sub ecx, eax
test ecx, ecx
jle 0x40fff0
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00412657
lea eax, [ebp + 0xb]
push 1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + 0xb], 0xa
call fcn.00412657
cmp byte [edi + 1], 0xa
lea eax, [edi + 1]
jne 0x410011
inc edi
inc edi
mov eax, edi
jmp 0x410016
mov edi, eax
jmp 0x41000d
inc edi
cmp byte [edi], 0
jne 0x40ffc0
sub edi, eax
je 0x410029
push edi
push eax
lea ecx, [ebp - 0x10]
call fcn.00412657
push dword [ebp - 0x14]
call fcn.00402c68
mov eax, dword [ebx]
pop ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, 8
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
cmp byte [ebx + 0x2c], 0
je 0x41005b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x4207e8
jmp 0x40ff9c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], 0x4207e8
je 0x410071
push dword [ebp - 0x10]
call fcn.00402c68
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4136e3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x262]
mov word [ebp - 0x264], bx
mov word [ebp - 0x46c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x46a]
mov word [ebp - 0x674], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x672]
push 0x13
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x208
pop ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x5a]
mov word [ebp - 0x5c], bx
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 1
movzx ecx, byte [eax + 0xf]
push ecx
movzx ecx, byte [eax + 0xe]
push ecx
movzx ecx, byte [eax + 0xd]
push ecx
movzx ecx, byte [eax + 0xc]
push ecx
movzx ecx, byte [eax + 0xb]
push ecx
movzx ecx, byte [eax + 0xa]
push ecx
movzx ecx, byte [eax + 9]
push ecx
movzx ecx, byte [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push ecx
movzx ecx, word [eax + 4]
push ecx
push dword [eax]
lea eax, [ebp - 0x5c]
push str._08lX__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
push 0x27
push eax
call esi
lea eax, [ebp - 0x5c]
mov edi, 0x103
push eax
push str.CLSID_sInprocServer32
lea eax, [ebp - 0x46c]
push edi
push eax
call esi
add esp, 0x48
lea eax, [ebp - 0x5c]
push eax
push str.CLSID_sLocalServer32
lea eax, [ebp - 0x674]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x264]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x46c]
push ebx
mov edi, 0x80000000
push eax
push edi
call esi
test eax, eax
je 0x41381d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x674]
push ebx
push eax
push edi
call esi
test eax, eax
je 0x41381d
xor eax, eax
jmp 0x413833
push dword [ebp + 0x10]
lea eax, [ebp - 0x264]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41384d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x415618
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x214
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esi
push 0x2001f
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push dword [ebx]
call fcn.00413945
mov edi, eax
cmp edi, esi
je 0x413897
cmp dword [ebp - 0x10], esi
je 0x413890
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x413934
lea eax, [ebp - 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x413908
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041384d
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x4138f5
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0x10]
jmp 0x4138ba
cmp dword [ebp - 0x10], esi
je 0x413903
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x413934
cmp dword [ebp - 0x10], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x41391b
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], esi
mov ebx, eax
je 0x413932
push dword [ebp - 0x10]
call edi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x413fb7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
push 0
lea ebx, [esi + 0x30]
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x414007
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push edi
push 0
push eax
mov dword [esi + 8], eax
call sub.MSVCRT.dll_memset
add esp, 0x10
push dword [esi + 8]
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x414007
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00413d7f
test eax, eax
jne 0x41400e
xor eax, eax
jmp 0x4140b0
mov eax, dword [ebp - 0x2c]
mov edi, 0x104
mov ecx, eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x28]
push edi
shr ecx, 0x10
mov word [esi + 0xc], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x12], ax
mov eax, dword [ebp - 0x24]
mov word [esi + 0x10], cx
mov ecx, eax
shr ecx, 0x10
mov word [esi + 0x16], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 0x14], cx
mov ecx, eax
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x238]
shr ecx, 0x10
mov word [esi + 0x18], cx
push eax
push str.CompanyName
mov ecx, esi
call fcn.00413e94
lea eax, [esi + 0x648]
push edi
push eax
push str.FileDescription
mov ecx, esi
call fcn.00413e94
lea eax, [esi + 0x440]
push edi
push eax
push str.ProductName
mov ecx, esi
call fcn.00413e94
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41436c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov esi, 0x2000000
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4144fd
lea eax, [ebp - 4]
push eax
push 1
push 2
push ebx
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4144f8
push str.advapi32.dll
call fcn.00405855
push str.ConvertStringSidToSidW
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4144ea
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
call eax
test eax, eax
je 0x4144ea
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], 0x20
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x14]
push eax
push 0x19
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x4144e1
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x68]
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x28], ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x24]
mov ecx, 0x103
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x47a]
cmp dword [ebp + 0x10], ebx
mov word [ebp - 0x47c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x414480
push dword [ebp + 0x10]
lea eax, [ebp - 0x47c]
push dword [ebp + 0xc]
push str.__s___s
push 0x207
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x414498
push 0x207
lea eax, [ebp - 0x47c]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x47c]
push ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4144db
cmp dword [ebp + 0x14], ebx
jbe 0x4144cc
push dword [ebp + 0x14]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push 1
pop ebx
jmp 0x4144e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret