joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x39c35c43
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7094c
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x41a550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e45b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0041a380
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x1c], edx
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [esi + 0x20], ecx
mov ecx, esi
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov dword [esi], 0x4ee0dc
call fcn.0041a8d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4343ec
Capabilities:
Encode data using xor

Disassembly:
call 0x9048a73b
nop
push ebp
mov eax, 0xe8000001
insb byte es:[edi], dx
adc byte [eax], dl
test esp, edi
in eax, 0x53
add byte [edi], cl
mov edi, 0xc303a091
nop
push edx
lea ecx, [ebp - 0x72000008]
invalid

Function at 0x45d01c
Capabilities:
Encode data using xor

Disassembly:
pop eax
inc ebp
inc ecx
sub esp, 0x450214
push esi
mov edx, dword [ebp - 0x75]
in al, dx
xchg dword [ebp + 0xc], edi
lea eax, [ebp - 0x74fd0214]
push eax
push edi
ror byte [edx + 0xbfdc82], 0
inc edi
push edi
call 0x2fb9d4a8
lea ecx, [ebp - 0x74fd0214]
push ecx
push edi
call 0x7e4d396c
nop
nop
nop
inc ebx
xor byte [edi], cl
test byte [eax + 0x66b88b0c], cl
xchg ebp, eax
in al, dx
std
add cl, byte [ebx + 0x74c05752]
xchg dword [esi - 0xffff70], ebp
invalid

Function at 0x45db20
Capabilities:
Encode data using xor

Disassembly:
add ah, cl
add esi, ebx
movsb byte es:[edi], byte [esi]
dec eax
sbb edx, dword [edx + 0x56]
call fcn.0045e04c
sbb al, cl
jmp 0x16b9df2e
dec eax
pop esi
pop es
jle 0x45dab5
nop
nop
inc ebx
xor byte [edx - 0x73], dh
xchg ebp, eax
add dh, bh
add cl, byte [ebx - 0xeadbf96]
je 0x45db28
je 0x45db8f
call 0xe856d1cc
nop
nop
adc al, 0x64
add al, 0x75
rcr byte [edi - 0x18], cl
invalid
push ecx
call 0x93e9180
mov edi, eax
push esi
call fcn.0045e09c
sbb al, cl
jmp 0x9045e1f3
Function at 0x4a0bf0
Capabilities:
Get number of processors

Disassembly:
into
call 0x51c70c7c
mov edx, dword [ebp - 0x1c]
push 0x44f0a0
push edx
push 0x5325ac
lea ecx, [ebp - 0x40]
call 0xe044eb6c
mov dword [esi - 0x17], ecx
mov dword [ebp - 0x10], edx
push edx
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x24]
mov dword [esi + 0x34], eax
push esi
add al, 0x46
mov ebp, eax
aam 0x7b
invalid
jae 0x4a0bb2
jmp 0x4a0c32
in al, dx
fdivp st(2)
fild qword [eax - 0x60]
invalid
call fcn.004987bc
mov eax, dword [esi + 0x34]
jne 0x4a0bfc
jne 0x4a0c60
mov eax, dword [esi + 0x30]
add al, 0x74
sbb ecx, dword [ebp + 0x5053d045]
call 0xa382121c
sbb al, cl
or byte [ebp - 0x77972fb3], bh
push eax
dec edi
mov edx, dword [ecx - 0x18]
jbe 0x4a0caf
add eax, dword [eax]
mov esi, esp
hlt
jnp 0x4a0cb0
invalid
dec dword [ebx + 0x548b1c4e]
mov cs, word [eax]
lea ecx, [ebp + 8]
push ecx
in al, dx
xor cl, byte [ecx - 0xf97632]
push eax
or al, 0x64
add al, 0x74
aas
lea ecx, [ebp - 0x40]
call 0xe85a866c
mov ebp, 0xce8be855
push edx
call fcn.004a0dc5
add byte [ebx + 0x107818e8], cl
call 0x8c3a52d4
iretd
Function at 0x40541d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4097c0
cmp edx, dword [eax]
je 0x40543f
add eax, 8
inc ecx
cmp eax, 0x409850
jl 0x405430
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4097c0]
jne 0x40556d
mov eax, dword [0x4fe3e0]
cmp eax, 1
je 0x405547
test eax, eax
jne 0x405470
cmp dword [0x409704], 1
je 0x405547
cmp edx, 0xfc
je 0x40556d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4054a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407180
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403dd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4054ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403dd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4084c4
push edi
call fcn.00407300
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407180
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407190
lea eax, [ebp - 0xa0]
push 0x4084a4
push eax
call fcn.00407190
push dword [esi + 0x4097c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407190
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407270
add esp, 0x2c
pop edi
jmp 0x40556d
lea eax, [ebp + 8]
lea esi, [esi + 0x4097c4]
push 0
push eax
push dword [esi]
call fcn.00403dd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x72e75125
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x74dc0795
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402c8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402cef
cmp dword [ebp + 0xc], 1
je 0x402cc8
cmp dword [ebp + 0xc], 2
je 0x402cc8
push 0xd
pop eax
jmp 0x402cef
test edi, edi
mov eax, dword [ebp - 4]
je 0x402ce9
test eax, eax
je 0x402ce5
test al, 1
jne 0x402cc3
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x402ce9
jmp 0x402cc3
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4030e7
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
push ebx
xor ebx, ebx
cmp byte [eax + 0xd], bl
jne 0x4031d5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
push ebx
lea eax, [ebp - 4]
push eax
push ebx
mov edi, 0xf003f
push edi
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x4031d3
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.InstallerData
push dword [ebp - 4]
call esi
cmp eax, ebx
jne 0x4031d3
push 0xfffe
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4031d3
mov edi, dword [ebp + 8]
cmp byte [edi + 0xc], bl
jne 0x403186
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 8], 0x7fff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, ebx
jne 0x403186
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x40315c
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [edi + 4]
mov edi, dword [edi + 8]
imul edi, edi, 0xc
add edi, esi
jmp 0x4031cf
cmp byte [esi + 8], bl
je 0x4031cc
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xc
cmp esi, edi
jne 0x40319a
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4034a7
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4499ae
call fcn.00433676
mov eax, dword [esi + 0xa0]
cmp eax, 1
jge 0x4034dd
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00407b52
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.00404af3
lea edi, [esi + 0x98]
dec eax
mov ecx, edi
call fcn.00404441
mov ebx, str.CFinishedPage
push ebx
mov ecx, eax
call fcn.00401e8b
test eax, eax
je 0x403507
push ebx
push dword [edi + 8]
mov ecx, edi
call fcn.00426324
mov eax, dword [esi + 0xa0]
dec eax
lea ecx, [esi + 0x90]
cmp dword [ecx], eax
je 0x40353a
mov dword [ecx], eax
mov ecx, edi
call fcn.00404441
push dword [eax]
call fcn.0042f762
pop ecx
push eax
push 0
push 0x8002
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00433715
ret

Function at 0x403563
Capabilities:
Terminate process

Disassembly:
push 0xc
mov eax, 0x4499ae
call fcn.00433676
mov ebx, ecx
lea esi, [ebx + 0xa0]
mov eax, dword [esi]
cmp eax, 1
jne 0x40358c
cmp dword [ebx + 0x90], 0
jne 0x40358c
call fcn.004036fa
mov esi, dword [esi]
cmp esi, 1
jge 0x4035b2
push 0xbd2
lea eax, [ebp - 0x18]
push eax
call fcn.00407b52
and dword [ebp - 4], 0
lea eax, [ebp - 0x18]
mov ecx, 0x466540
jmp fcn.00404af3
dec esi
cmp dword [ebx + 0x90], esi
je 0x4035cd
push 0
push 0
push 0x8002
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.00433715
ret

Function at 0x4036fa
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x449989
call fcn.00433676
lea ecx, [ebp - 0x10]
call fcn.00409258
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x4517e8
mov ecx, 0x4666bc
call fcn.00422ee7
test eax, eax
jne 0x403748
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.00407b52
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
mov ecx, 0x466540
jmp fcn.00404af3
lea ecx, [ebp - 0x38]
call fcn.0042600c
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4517fc
lea edi, [ebp - 0x38]
call fcn.00401555
mov byte [ebp - 4], 3
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00402ec7
mov byte [ebp - 4], 4
mov byte [ebp - 4], 2
call fcn.0040ae5e
mov edi, dword [ebp - 0x30]
xor esi, esi
inc esi
cmp edi, esi
pop ecx
pop ecx
jbe 0x403807
test esi, esi
jl 0x403825
cmp esi, dword [ebp - 0x30]
jge 0x403825
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x403802
push str.CProgressPage
push eax
call fcn.00404107
test al, al
pop ecx
pop ecx
je 0x4037cb
push ebx
call fcn.0040396c
jmp 0x4037e7
cmp esi, dword [ebp - 0x30]
jge 0x403825
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
push 0x450f00
push eax
call fcn.00404107
test al, al
pop ecx
pop ecx
jne 0x403802
cmp esi, dword [ebp - 0x30]
jge 0x403825
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*4]
lea ecx, [ebx + 0x98]
mov edx, dword [ecx + 8]
push eax
push edx
call fcn.004262d4
inc esi
cmp esi, edi
jb 0x403793
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004261bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00409282
call fcn.00433715
ret
jmp fcn.00423df4
Function at 0x40483c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
call fcn.00425684
push dword [esp + 0xc]
mov esi, dword [eax + 0xc]
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40485c
xor eax, eax
jmp 0x40486f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404858
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
ret 8

Function at 0x404af3
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x404b2c
push ebx
mov ebx, ecx
add ebx, 0x1b4
push edi
mov edi, dword [ebx]
test edi, edi
je 0x404b1f
call fcn.0040995a
mov edx, dword [ebx]
push 0
push str.InstallBroken
call fcn.00409202
pop ecx
pop ecx
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
call dword [eax + 0x14]
pop edi
pop ebx
push 1
call fcn.0042fa45
pop esi
Function at 0x405456
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x449841
call fcn.00433676
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CProgressPage.0
mov dword [ebp - 4], 3
xor edi, edi
cmp dword [esi + 0x118], edi
je 0x40549e
lea ebx, [esi + 0x110]
mov eax, edi
mov ecx, ebx
call fcn.00404441
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x118]
jne 0x405484
mov byte [ebp - 4], 2
lea ecx, [esi + 0x178]
call fcn.0042994e
mov byte [ebp - 4], 1
lea ecx, [esi + 0x124]
call fcn.0042994e
mov byte [ebp - 4], 0
lea ecx, [esi + 0x110]
call fcn.004261bd
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0040f0eb
call fcn.00433715
ret

Function at 0x405898
Capabilities:
Delete file
Move file

Disassembly:
push 4
mov eax, 0x447c4b
call fcn.00433676
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.RememberTempFile.0
mov dword [ebp - 4], 1
lea esi, [edi + 4]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4058da
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4058da
mov eax, dword [esi]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.00409282
or dword [ebp - 4], 0xffffffff
mov dword [edi], vtable.CProgressPageProxy::Caller.0
call fcn.00433715
ret
Function at 0x409a1e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x10000
mov edi, 0x8007000e
call fcn.0042fdc2
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x409acc
push 0x7fff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x409a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x409a67
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x409acc
push esi
push esi
push 3
push esi
push 1
push SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409a53
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x409a53
cmp dword [ebp - 4], 0x7fffffff
jg 0x409acc
push esi
push esi
push esi
push 8
push esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
je 0x409a53
push esi
push esi
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x409a53
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40abb3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x50]
push esi
push eax
mov dword [ebp - 0x54], 0x44
call fcn.0042f1e0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x1000000
push esi
push esi
push esi
call fcn.00402c09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
mov ebx, eax
call fcn.00402d22
cmp edi, esi
jne 0x40ac12
xor eax, eax
jmp 0x40ac25
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40af0a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x448225
call fcn.00433676
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
push 0x453980
mov ecx, edi
call fcn.00401555
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x218]
mov dword [ebp - 0x1c], esi
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x40af8c
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040165e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00409282
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042f1cb
add ebp, 0x20c
leave
ret
Function at 0x40afbf
Capabilities:
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x34
mov eax, 0x448a8c
call fcn.00433676
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x214]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x3c], ebx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea edi, [ebp + 0x218]
call fcn.0040b9eb
mov ecx, dword [ebp - 0x20]
push 0x452084
call fcn.00401555
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x3c], esi
call fcn.00401555
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push dword [ebp - 0x24]
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp eax, ebx
jne 0x40b18a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], ebx
je 0x40b18a
mov dword [ebp - 0x1c], ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, ebx
mov dword [ebp - 0x30], eax
jne 0x40b177
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401555
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00409258
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push eax
push 0xf003f
push ebx
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
cmp eax, ebx
jne 0x40b15f
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.DisplayName
call fcn.00401555
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x40]
call fcn.0040af0a
pop ecx
pop ecx
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x14]
call fcn.00401aea
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00409282
lea edi, [ebp - 0x14]
call fcn.0040b9eb
push dword [ebp + 0x218]
mov ecx, edi
call fcn.00401e8b
test eax, eax
jne 0x40b15f
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push str.UninstallString
call fcn.00401555
mov byte [ebp - 4], 7
push dword [ebp - 0x28]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x34]
call fcn.0040af0a
pop ecx
pop ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00401aea
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00409282
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.00409282
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00409282
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 0x104
je 0x40b06b
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00409282
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x218]
call fcn.00409282
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042f1cb
add ebp, 0x20c
leave
ret
Function at 0x40b317
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x461de0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x110
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.0042f1e0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jne 0x40b366
cmp dword [ebp - 0x78], 2
jae 0x40b36c
cmp dword [ebp - 0x7c], 6
ja 0x40b36c
xor eax, eax
jmp 0x40b36f
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042f1cb
add ebp, 0x98
leave
ret
Function at 0x412df7
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0x6c
mov eax, 0x448815
call fcn.00433676
and dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00409258
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
push eax
push 0x4512c4
mov ecx, 0x4666bc
call fcn.00422ee7
test eax, eax
mov edi, 0xbdd
je 0x412f5e
mov esi, dword [ebp + 8]
push 0
push edi
call fcn.00413140
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00402ec7
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x10]
call fcn.0040b384
pop ecx
mov byte [ebp - 4], 3
push 0x5c
mov esi, ebx
call fcn.00402a82
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.00402de7
mov byte [ebp - 4], 4
call fcn.00402a3e
push 0x22
mov ecx, ebx
call fcn.00402dbd
push str.__installscan
mov ecx, ebx
call fcn.00402d47
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], 0x44
call fcn.0042f1e0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c09
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00402c09
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
mov ecx, esi
mov dword [ebp - 0x24], eax
call fcn.00402d22
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402d22
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x1f40
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
jne 0x412f38
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
jle 0x412f38
add dword [ebp - 0x14], 7
push dword [ebp - 0x14]
mov esi, dword [ebp + 8]
push edi
call fcn.00413140
mov eax, 0x1f4
sub dword [ebp - 0x18], eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp + 0xc]
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, ebx
je 0x412f01
cmp dword [ebp - 0x24], ebx
je 0x412f46
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409282
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00409282
mov esi, dword [ebp + 8]
push 0x5f
push edi
call fcn.00413140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00409282
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00409282
xor eax, eax
inc eax
call fcn.00433715
ret 8