joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x73391148
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x48a575c9
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403767
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 4]
push esi
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0x20
and dword [0x599ba0], 0
lea ecx, [edi + eax]
mov edx, eax
shr edx, 5
add edx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
xor edx, eax
xor edx, ecx
push edx
lea eax, [ebp - 8]
push eax
call fcn.004036f3
mov esi, dword [ebp - 8]
shl esi, 4
cmp dword [0x5a8e60], 0x78c
jne 0x403815
push 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x830]
push eax
push 0x401280
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
or dword [0x599bac], 0xffffffff
mov eax, ecx
shr eax, 5
add eax, dword [ebp - 0x14]
add esi, edx
xor eax, esi
xor eax, dword [ebp - 4]
mov dword [0x599ba8], 0xff6b3619
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp + 8], eax
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x24]
add dword [ebp + 0xc], eax
sub edi, dword [ebp + 0xc]
dec dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edi
jne 0x4037b1
pop edi
pop esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
leave
ret 8

Function at 0x403875
Capabilities:
Copy file
Get thread local storage value
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
xor esi, esi
cmp dword [0x5a8e60], 0x516
jne 0x4038a0
push esi
push esi
push esi
push 0x4012e8
push 0x40135c
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x403907
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
cmp dword [0x5a8e60], 0xb7d
jne 0x4038c9
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
cmp dword [0x5a8e60], 0x1c
jne 0x4038f6
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push dword [ebp + 0x10]
push edi
call fcn.00403767
add edi, 8
dec ebx
jne 0x4038b1
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40390c
Capabilities:
Connect pipe
Get common file path
Get disk information
Get uefi variable
Manipulate console buffer
Read pipe
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d28
call fcn.004062f0
cmp dword [0x5a8e60], 0x37
jne 0x403a5e
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x2528]
push eax
push esi
push esi
push 0x401378
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x528]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0x4013ac
push 0x4013c8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
lea eax, [ebp - 0xd28]
push eax
push esi
call edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
lea eax, [ebp - 0x1528]
push eax
push esi
call edi
push dword [ebp + 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
lea eax, [ebp - 0x2128]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x401418
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFlags]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push esi
lea eax, [ebp - 0x2d28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push esi
lea eax, [ebp - 0x1928]
push eax
push 0x401434
push 0x401474
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
pop edi
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x5a8e64]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x599b9c]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x407089
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446ed0]
jne 0x407093
repz ret
jmp fcn.0040d1dc

Function at 0x40e7bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407f0f
and dword [ebp - 4], 0
cmp dword [0x5a9a5c], 0
mov ebx, eax
jne 0x40e86c
push 0x402fbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e91d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402fb0
push edi
call esi
test eax, eax
je 0x40e91d
push eax
call fcn.00407e9d
mov dword [esp], 0x402fa0
push edi
mov dword [0x5a9a5c], eax
call esi
push eax
call fcn.00407e9d
mov dword [esp], 0x402f8c
push edi
mov dword [0x5a9a60], eax
call esi
push eax
call fcn.00407e9d
mov dword [esp], 0x402f70
push edi
mov dword [0x5a9a64], eax
call esi
push eax
call fcn.00407e9d
pop ecx
mov dword [0x5a9a6c], eax
test eax, eax
je 0x40e86c
push 0x402f58
push edi
call esi
push eax
call fcn.00407e9d
pop ecx
mov dword [0x5a9a68], eax
mov eax, dword [0x5a9a68]
cmp eax, ebx
je 0x40e8c4
cmp dword [0x5a9a6c], ebx
je 0x40e8c4
push eax
call fcn.00407f18
push dword [0x5a9a6c]
mov esi, eax
call fcn.00407f18
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e8c4
test edi, edi
je 0x40e8c4
call esi
test eax, eax
je 0x40e8bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e8bb
test byte [ebp - 0xc], 1
jne 0x40e8c4
or dword [ebp + 0x10], 0x200000
jmp 0x40e8fd
mov eax, dword [0x5a9a60]
cmp eax, ebx
je 0x40e8fd
push eax
call fcn.00407f18
pop ecx
test eax, eax
je 0x40e8fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e8fd
mov eax, dword [0x5a9a64]
cmp eax, ebx
je 0x40e8fd
push eax
call fcn.00407f18
pop ecx
test eax, eax
je 0x40e8fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a9a5c]
call fcn.00407f18
pop ecx
test eax, eax
je 0x40e91d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e91f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000112e
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x10017088
mov dword [0x10018940], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.10002d97
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x1000117b
push 0x10
push dword [ebp + 0x10]
push 0x10018930
call fcn.1000a943
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.1000ac23
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x100011cc
cmp dword [ebp - 0xb4], 5
jae 0x10001222
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x10001222
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x100011ee
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x100011dc
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x1000120b
jmp 0x10001228
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x1000558d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
push esi
push edi
lea eax, [ebp - 0x184]
push str.rundll32
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [0x1001894c]
mov esi, 0x104
lea ecx, [ebp - 0x17b]
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x100056a1
lea eax, [ebp - 0x17b]
push esi
push eax
lea eax, [ebp - 0x17b]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
cmp eax, esi
jae 0x100056a1
xor ebx, ebx
cmp eax, ebx
jbe 0x100056a1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x184]
push str._Update
push eax
call esi
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
mov edx, eax
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 4], edx
call edi
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, 0x12c
jae 0x100056a1
push dword [ebp + 8]
lea eax, [ebp - 0x184]
push eax
call esi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
mov dword [ebp - 0x58], 0x44
push 0x40
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.1000ac23
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x184]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x100056a1
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1000568a
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x14], ebx
je 0x10005694
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push 1
mov dword [eax], ecx
pop eax
jmp 0x100056a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005f4d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x10005f67
xor esi, esi
jmp 0x10005f95
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.10012fc0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x10005fd0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x10005fc9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10006065
xor esi, esi
jmp 0x10006065
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x10005ff3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x10006006
xor esi, esi
jmp 0x1000605c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x10006018
jmp 0x10005fe3
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1000605c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x1000604e
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.10012fc0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.1000a943
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.100060cc
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10006a82
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.10006a44
mov edi, eax
cmp edi, esi
je 0x10006ac2
cmp dword [ebp - 4], esi
je 0x10006abb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x10006b5f
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x10006b33
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.10006a82
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x10006b20
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x10006ae5
cmp dword [ebp - 4], esi
je 0x10006b2e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x10006b5f
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x10006b46
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x10006b5d
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10006b66
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.10012fc0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.10006225
xor edi, edi
cmp eax, edi
jl 0x10006d20
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.10006d2d
pop ecx
test eax, eax
pop ecx
jne 0x10006bb1
mov eax, 0x80020009
jmp 0x10006d20
mov ecx, esi
call fcn.100061fd
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.10006225
cmp eax, edi
jl 0x10006d20
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x10006ce8
sub eax, 9
je 0x10006c4d
dec eax
dec eax
jne 0x10006d0f
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x10006bf6
xor ebx, ebx
jmp 0x10006c2b
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.10012fc0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call fcn.1000b7f0
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
jmp 0x10006d00
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x10006c89
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.10012fc0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.1000ac23
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x10006c93
mov eax, 0x80004005
jmp 0x10006d20
cmp dword [ebp - 8], 0
jle 0x10006ccd
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.10006db4
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x10006c99
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x10006d0f
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.10006225
cmp eax, edi
jl 0x10006d20
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10006fac
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
add ecx, 0xffffff94
neg esi
sbb esi, esi
and esi, ecx
mov ecx, dword [esi + 0x78]
lea eax, [esi + 0x78]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x10006fd2
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x10008e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov edi, dword [esi + 0x50]
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x10008ece
mov eax, dword [esi + 0x58]
cmp eax, ebx
je 0x10008ece
cmp dword [esi + 0x64], ebx
je 0x10008ece
cmp dword [esi + 0x68], ebx
je 0x10008ece
cmp dword [edi + 0x40c], ebx
jne 0x10008e69
mov ebx, dword [esi + 0x7c]
shl ebx, 1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x10008ea2
mov eax, dword [edi + 0xc]
sub eax, ebx
mov dword [edi + 8], eax
push dword [esi + 0x58]
mov dword [esi + 0x84], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x1f5
push dword [esi + 0x5c]
push 1
push 1
call fcn.1000f967
add esp, 0x10
xor ebx, ebx
cmp dword [edi + 0x40c], ebx
je 0x10008eda
lea eax, [edi + 0x10]
push ebx
push eax
push dword [esi + 0x68]
push str.Installerdownloaded
call fcn.1000dbce
add esp, 0x10
neg eax
sbb eax, eax
and al, 0x9e
add eax, 0xffffff35
mov dword [edi], eax
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebx
leave
ret
cmp byte [edi + 0x424], 0
mov ebx, dword [esi + 0x64]
lea eax, [edi + 0x424]
mov dword [ebp - 8], eax
je 0x10008f57
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx + 0xa]
push eax
call fcn.1000b9fd
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10008fd0
mov eax, dword [esi + 0x64]
cmp byte [eax], 0x22
jne 0x10008f2d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
jmp 0x10008f47
mov byte [ebx], 0x22
push dword [esi + 0x64]
lea eax, [ebx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 4]
mov byte [eax + ebx + 1], 0x22
inc eax
inc eax
push dword [ebp - 8]
add eax, ebx
mov byte [eax], 0x20
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], 0x44
push 0x40
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.1000ac23
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10008fdd
cmp dword [ebp - 0x18], edi
je 0x10008fa2
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
push 0x1d4c0
push 0x258
push eax
lea ecx, [esi + 0x90]
mov dword [esi + 0x8c], eax
call fcn.1001018d
test eax, eax
jne 0x10008ff4
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffff2d
jmp 0x10008fed
mov dword [edi], 0xffffff38
push 0
jmp 0x10008ecf
mov ecx, esi
call fcn.10009009
mov eax, dword [ebp - 0xc]
mov dword [eax], 0xffffff2e
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp ebx, dword [esi + 0x64]
je 0x10008ed5
push ebx
call fcn.1000ba08
pop ecx
jmp 0x10008ed5
Function at 0x10009009
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
cmp dword [esi + 0x64], ecx
je 0x10009033
mov eax, dword [esi + 0x68]
cmp eax, ecx
je 0x1000902a
push ecx
push ecx
push eax
push str.Installerdownloaded
call fcn.1000dbce
add esp, 0x10
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret