joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4303b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x494fe8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4303e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4304fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4303fd
mov eax, 0xffffffc7
jmp 0x4304fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43040e
cmp dword [esi + 8], eax
jne 0x4303fd
cmp dword [esi + 8], eax
jne 0x430427
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x430427
mov eax, 0xffffffc7
jmp 0x4304fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43043b
push eax
mov ecx, ebx
call fcn.0042fbe0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43046c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401be0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042f350
test eax, eax
mov dword [esp + 0x38], eax
je 0x43049f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x26d1f78
call fcn.00401dc0
mov eax, dword [esp + 0x38]
jmp 0x4304fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430210
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4304e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430230
mov esi, eax
test esi, esi
jne 0x430513
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430210
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4304b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x26d1f78
call fcn.00401dc0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x26d1f78
call fcn.00401dc0
mov eax, esi
jmp 0x4304fe

Function at 0x434f20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434f80
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434f80
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434f80
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434f80
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x440000
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4958d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048e4b0
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043f960
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048e3de
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048aca2
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048aca2
push 1
push 0
push 0
mov ecx, esi
call fcn.0048ac4a
push 1
push 0
push 1
mov ecx, esi
call fcn.0048ac4a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048e522
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440180
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4958f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048e4b0
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043f960
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048e3de
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440244
cmp dword [esp + 0x40], 1
jne 0x440242
cmp ecx, eax
jge 0x440244
mov eax, ecx
cmp eax, 0xc8
jge 0x440250
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440000
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048e522
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x440a50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4959a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004890c2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048e758
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048fc74
test eax, eax
je 0x440b6c
mov ecx, dword [esp + 0x3c]
call fcn.0048e785
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x440b30
push edi
mov ecx, esi
call fcn.0048bdee
mov ecx, esi
call fcn.00440d10
cmp dword [esp + 0x38], 1
jne 0x440b65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048bf29
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442d80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442db3
push esi
call fcn.00451130
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x442dac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442e39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442e22
mov eax, dword [esi + 8]
test eax, eax
je 0x442dd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442e1e
cmp eax, 2
je 0x442e22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x442dca
cmp eax, 3
je 0x442dfd
cmp eax, 1
jne 0x442dca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x442dca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x442dca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442e60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442e48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442e60
add esp, 4
pop esi
ret

Function at 0x4436d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4436f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4436f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4436f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4621e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x270bdc8]
xor edx, edx
cmp eax, edx
jne 0x462206
xor eax, eax
mov byte [eax + 0x270bcc8], al
inc eax
cmp eax, 0x100
jl 0x4621ee
mov dword [0x270bdc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x270bcc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x462297
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x46226a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x462238
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x462310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x462363
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46234a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x495e8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00469640
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x26d6804
call fcn.00487852
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x468db3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00487852
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x468dac
push 0
mov ecx, eax
call fcn.0045fe20
mov dword [esi + 0xc], eax
jmp 0x468db5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x468db5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x489eb8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489ef0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487f6c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00487f44
jmp 0x489efc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b5a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48b5e8
call fcn.00491064
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b5e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b5df
xor eax, eax
jmp 0x48b5f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b5f6
pop edi
pop esi
pop ebx
ret 4
Function at 0x491594
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4915c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4915e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004914fa
jmp 0x4915e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4915e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004914fa
test edi, edi
mov eax, edi
jne 0x4915ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403df5
Capabilities:
Download url
Receive data

Disassembly:
push 0x2c
mov eax, 0x561e0d
call fcn.00531cbc
mov esi, ecx
xor eax, eax
lea edi, [ebp - 0x26]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x28], ax
stosd dword es:[edi], eax
push 0xa
push 0xc
mov dword [ebp - 0x30], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0x5a77e8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.0052fc6d
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add esi, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x403e57
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
mov esi, ebx
cmovne esi, eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.urlDownloadToFile
call fcn.00402387
xor dl, dl
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0040516a
add esp, 0x48
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret 0x18
Function at 0x4071e3
Capabilities:
Set registry value

Disassembly:
push 0x24c
mov eax, 0x562619
call fcn.00531cbc
sub esp, 0x18
xor edi, edi
mov ecx, esp
mov dword [ebp - 0x238], esp
mov esi, edi
push 0x5a7870
call fcn.00402387
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, eax
call fcn.0040b4e7
xor ebx, ebx
xor eax, eax
inc ebx
mov dword [ebp - 4], ebx
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00532330
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x238], esp
push str.package
call fcn.00402387
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 2
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.0040b4e7
cmp dword [eax + 0x14], 8
jb 0x407285
mov eax, dword [eax]
push eax
push str.Software_s
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0053012d
add esp, 0x10
lea ecx, [ebp - 0x258]
push edi
push ebx
call fcn.004034f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call edi
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmovae ecx, dword [ebp - 0x230]
add eax, eax
push eax
push ecx
push ebx
push 0
push str.AppInstanceUid
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407351
push dword [ebp - 0x234]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push 0x5a8000
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005305e7
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push SysReAllocString
call edi
push dword [ebp - 0x234]
call esi
xor ecx, ecx
call fcn.0040ad5d
mov ecx, eax
call fcn.0040b9e2
mov esi, eax
xor ecx, ecx
call fcn.0040ad5d
call fcn.0040e826
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x238], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x240], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push str.PreInstallActions
call fcn.00402387
xor dl, dl
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.0040516a
add esp, 0x48
lea ecx, [ebp - 0x230]
push 0
push ebx
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret
Function at 0x409738
Capabilities:
Persist via run registry key

Disassembly:
push 0x26c
mov eax, 0x562a19
call fcn.00531cbc
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], ebx
call fcn.00403499
mov dword [ebp - 4], 1
lea edi, [ebp - 0x224]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
push 0x5a76b0
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00403499
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 0x2001f
cmovae eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x224]
push eax
push SysReAllocString
mov dword [ebp - 0x244], 1
call fcn.0040a275
test eax, eax
jne 0x4098ce
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00532330
add esp, 0xc
mov dword [ebp - 0x240], 0x104
lea eax, [ebp - 0x240]
lea ecx, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
push str.Local_AppData
call fcn.0040a194
test eax, eax
jne 0x4098ce
lea ecx, [ebp - 0x218]
call fcn.00403479
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403402
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push str.package
call fcn.00402387
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 3
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0040b4e7
push eax
mov edx, 0x5a77e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x260]
call fcn.0040636e
pop ecx
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00404640
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.004034f0
push ebx
push 1
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 2
call fcn.004034f0
mov edi, str.Uninstall
mov ecx, edi
call fcn.00403479
push eax
push edi
mov ecx, esi
call fcn.0040459f
lea ecx, [ebp - 0x224]
call fcn.0040a2ef
push ebx
push 1
lea ecx, [ebp - 0x23c]
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret
Function at 0x409e18
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0x864
mov eax, 0x562b91
call fcn.00531cbc
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push str.autolaunch
call fcn.00402387
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 4], ebx
call fcn.0040ad5d
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.0040b415
mov edi, eax
test edi, edi
je 0x40a088
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push str.package
call fcn.00402387
lea eax, [ebp - 0x870]
xor esi, esi
push eax
push ecx
inc esi
xor ecx, ecx
mov dword [ebp - 4], esi
call fcn.0040ad5d
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, eax
call fcn.0040b4e7
push eax
mov edx, 0x5a80d4
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x830]
call fcn.0040636e
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x870]
mov byte [ebp - 4], 4
call fcn.004034f0
xor eax, eax
push 0x7fe
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push ebx
push eax
call fcn.00532330
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
lea ecx, [ebp - 0x834]
add esp, 0xc
mov dword [ebp - 0x818], 0x400
cmp dword [ebp - 0x81c], 8
lea eax, [ebp - 0x830]
cmovae eax, dword [ebp - 0x830]
push ecx
push eax
push SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x40a025
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x814]
push eax
xor eax, eax
push eax
push eax
push str.InstallerSuccessLaunchCmdLine
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40a025
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x834]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x40a025
push str.____location0
mov esi, 0x400
lea eax, [ebp - 0x814]
push esi
push eax
call fcn.005305e7
add esp, 0xc
cmp edi, 1
jne 0x409fa2
push str.____no_startup_window
lea eax, [ebp - 0x814]
push esi
push eax
call fcn.005305e7
add esp, 0xc
lea ecx, [ebp - 0x814]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x409fad
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x814]
push eax
push 1
push edi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push str.package
call fcn.00402387
lea eax, [ebp - 0x858]
mov byte [ebp - 4], 5
push eax
push ecx
xor ecx, ecx
call fcn.0040ad5d
pop ecx
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.0040b4e7
cmp dword [eax + 0x14], 8
jb 0x40a006
mov eax, dword [eax]
push eax
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 1
lea ecx, [ebp - 0x858]
mov esi, eax
call fcn.004034f0
jmp 0x40a027
xor edi, edi
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x838], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x840], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
push str.addToSystemStart
call fcn.00402387
xor dl, dl
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.0040516a
add esp, 0x48
lea ecx, [ebp - 0x830]
push edi
push 1
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret