joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
add esp, 4
jmp 0x406de7
sub ebx, 0x10247
pop ebx
push ebx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push edi
push eax
add esp, 4
or edi, 0x11d94
call 0x406e80
add byte [ecx + 0x38], cl
dec edx
inc edi
dec esi
inc eax
inc ebp
xor al, byte [ebx - 0x7d]
les eax, [edi + ebx*2]
push esi
add esi, 0x805f
pop esi
push ecx
push esi
add esp, 4
xor ecx, 0xafa1
pop ecx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x406eb5
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1668], edx
jmp 0x406f0f
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x406ddd
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x406ddd
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x406ef9
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x406f03
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx
cmp dword [ebp - 0x1668], 0
jne 0x406f58
push ecx
sub ecx, 0x5d60
pop ecx
push edi
push ebx
add esp, 4
call 0x406f34
add byte [ebx + 0x3f], cl
push eax
aaa
dec ebx
cmp al, byte [ebx + 0x36]
add esp, 4
add edi, 0x13fa4
and edi, 0x3fcd
sub edi, 0x541c
pop edi
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x406fc0
push edi
push edi
add esp, 4
call 0x406f6c
add byte [edx], bh
dec eax
inc ebx
push eax
cmp al, 0x46
cmp dword [ecx + 0x39], eax
add esp, 4
or edi, 0xe877
jmp 0x406f7b
xor edi, 0x93fe
pop edi
push ecx
xor ecx, 0x541b
pop ecx
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
invalid
Function at 0x406f34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
add esp, 4
jmp 0x406de7
sub ebx, 0x10247
pop ebx
push ebx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push edi
push eax
add esp, 4
or edi, 0x11d94
call 0x406e80
add byte [ecx + 0x38], cl
dec edx
inc edi
dec esi
inc eax
inc ebp
xor al, byte [ebx - 0x7d]
les eax, [edi + ebx*2]
push esi
add esi, 0x805f
pop esi
push ecx
push esi
add esp, 4
xor ecx, 0xafa1
pop ecx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x406eb5
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1668], edx
jmp 0x406f0f
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x406ddd
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x406ddd
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x406ef9
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x406f03
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx
cmp dword [ebp - 0x1668], 0
jne 0x406f58
push ecx
sub ecx, 0x5d60
pop ecx
push edi
push ebx
add esp, 4
call 0x406f34
add byte [ebx + 0x3f], cl
push eax
aaa
dec ebx
cmp al, byte [ebx + 0x36]
add esp, 4
add edi, 0x13fa4
and edi, 0x3fcd
sub edi, 0x541c
pop edi
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x406fc0
push edi
push edi
add esp, 4
call 0x406f6c
add byte [edx], bh
dec eax
inc ebx
push eax
cmp al, 0x46
cmp dword [ecx + 0x39], eax
add esp, 4
or edi, 0xe877
jmp 0x406f7b
xor edi, 0x93fe
pop edi
push ecx
xor ecx, 0x541b
pop ecx
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
invalid
Function at 0x406f6c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
add esp, 4
jmp 0x406de7
sub ebx, 0x10247
pop ebx
push ebx
mov ax, word [ebp - 0x1044]
mov word [ebp - 0x3c], ax
push edi
push eax
add esp, 4
or edi, 0x11d94
call 0x406e80
add byte [ecx + 0x38], cl
dec edx
inc edi
dec esi
inc eax
inc ebp
xor al, byte [ebx - 0x7d]
les eax, [edi + ebx*2]
push esi
add esi, 0x805f
pop esi
push ecx
push esi
add esp, 4
xor ecx, 0xafa1
pop ecx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x406eb5
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1668], edx
jmp 0x406f0f
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x406ddd
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x406ddd
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x406ef9
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x406f03
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx
cmp dword [ebp - 0x1668], 0
jne 0x406f58
push ecx
sub ecx, 0x5d60
pop ecx
push edi
push ebx
add esp, 4
call 0x406f34
add byte [ebx + 0x3f], cl
push eax
aaa
dec ebx
cmp al, byte [ebx + 0x36]
add esp, 4
add edi, 0x13fa4
and edi, 0x3fcd
sub edi, 0x541c
pop edi
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x406fc0
push edi
push edi
add esp, 4
call 0x406f6c
add byte [edx], bh
dec eax
inc ebx
push eax
cmp al, 0x46
cmp dword [ecx + 0x39], eax
add esp, 4
or edi, 0xe877
jmp 0x406f7b
xor edi, 0x93fe
pop edi
push ecx
xor ecx, 0x541b
pop ecx
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
invalid

Function at 0x40705e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push es
inc ebx
inc esp
inc edx
cmp dword [edi], esi
inc ecx
pop ebx
push eax
push edx
add esp, 4
and eax, 0xa0ee
call 0x40705e
add byte [eax + 0x42], cl
cmp eax, 0x4e324738
add esp, 4
add al, 0x81
invalid
scasb al, byte es:[edi]
mov byte [eax], al
add byte [ecx + 0xcab5f0], al
add byte [eax - 0x75], bl
lea ecx, [eax + edi*8 + 0x518bffff]
sbb byte [ecx - 0x3a36b], cl
inc edi
test dword [eax + edi*8 - 1], edi
inc dword [eax]
add byte [eax], al
add byte [ebx - 0x3a37b], cl
dec dword [ecx - 0x166b7b]
inc dword [ebx - 0x166b43]
inc dword [eax]
jne 0x4070ad
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], ecx
jmp 0x40739e
mov edx, dword [ebp - 0x166c]
mov eax, dword [ebp - 0x3a4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1670], eax
jne 0x4070d5
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], ecx
jmp 0x40739e
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1670]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1678], edx
xchg ebp, eax
mov cl, ch
invalid
inc dword [ebx - 0x167743]
inc dword [eax]
jne 0x407107
mov eax, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], eax
jmp 0x40739e
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x778], ecx
jne 0x40712c
mov edx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], edx
jmp 0x40739e
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x19a4], ecx
Function at 0x407083
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push es
inc ebx
inc esp
inc edx
cmp dword [edi], esi
inc ecx
pop ebx
push eax
push edx
add esp, 4
and eax, 0xa0ee
call 0x40705e
add byte [eax + 0x42], cl
cmp eax, 0x4e324738
add esp, 4
add al, 0x81
invalid
scasb al, byte es:[edi]
mov byte [eax], al
add byte [ecx + 0xcab5f0], al
add byte [eax - 0x75], bl
lea ecx, [eax + edi*8 + 0x518bffff]
sbb byte [ecx - 0x3a36b], cl
inc edi
test dword [eax + edi*8 - 1], edi
inc dword [eax]
add byte [eax], al
add byte [ebx - 0x3a37b], cl
dec dword [ecx - 0x166b7b]
inc dword [ebx - 0x166b43]
inc dword [eax]
jne 0x4070ad
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], ecx
jmp 0x40739e
mov edx, dword [ebp - 0x166c]
mov eax, dword [ebp - 0x3a4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1670], eax
jne 0x4070d5
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], ecx
jmp 0x40739e
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1670]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1678], edx
xchg ebp, eax
mov cl, ch
invalid
inc dword [ebx - 0x167743]
inc dword [eax]
jne 0x407107
mov eax, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], eax
jmp 0x40739e
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x778], ecx
jne 0x40712c
mov edx, dword [ebp - 0x784]
mov dword [ebp - 0x3f8], edx
jmp 0x40739e
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x19a4], ecx
Function at 0x407172
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add byte [eax], al
add bl, ch
jnp 0x38f601
inc dword [ebx - 0x7a76fe40]
test al, bh
invalid
Function at 0x41b0c3
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x1041ec82
add dword [ecx], eax
and ah, 0x61
fiadd word [ecx]
add esp, ebp
push es
dec ebx
dec edi
cmp esi, dword [0x57545c44]
xor eax, 0x57545c44
test ch, al
add eax, 0x3c3406ec
inc edi
dec edi
invalid
pop esp
invalid

Function at 0x429697
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x314]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, eax
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x10000000
je 0x4296f6
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4296f6
push 0xfffffffffffffff0
push esi
call edi
shr eax, 0x10
test al, 1
je 0x4296f6
push 0
push 0
push 0x87
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xd
test al, 1
jne 0x4296f6
push esi
call dword [sym.imp.USER32.dll_SetFocus]
mov al, 1
jmp 0x429728
push 0
push esi
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov edi, eax
test edi, edi
je 0x429726
cmp edi, esi
je 0x429726
push 0
push 0
push 0x87
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
shr eax, 0xd
test al, 1
jne 0x429726
push edi
jmp 0x4296ec
xor al, al
pop edi
pop esi
pop ebp
ret
Function at 0x45317a
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xffffffffffffffff
push 0x5086ed
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4531e4
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x45322d
cmp dword [edi + 0x14], 8
jb 0x4531ec
mov edi, dword [edi]
lea eax, [ebp + 0x208]
push eax
push ebx
push edi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x453212
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x45322d
lea eax, [ebp + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x208]
mov ecx, esi
push eax
call fcn.00404285
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004d5b75
add ebp, 0x414
leave
ret
Function at 0x469c50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50be61
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 0x14]
mov edx, esi
cmp edi, 8
jb 0x469c8c
mov edx, dword [esi]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x469ca3
mov eax, edx
cmp word [eax], 0x2a
je 0x469ccd
add eax, 2
sub ecx, 1
jne 0x469c95
cmp edi, 8
jb 0x469caa
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5b75
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x469ca3
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x469ca3
lea ecx, [ebp - 0x478]
call fcn.00469df0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x469cf4
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x478]
call fcn.0047e530
test eax, eax
je 0x469dc9
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [ebp - 0x18], 0
je 0x469d52
mov eax, dword [ebp - 0x478]
shr eax, 4
and eax, 1
je 0x469d4e
cmp word [ebp - 0x44c], 0x2e
jne 0x469d4e
mov cx, word [ebp - 0x44a]
test cx, cx
je 0x469da7
cmp cx, 0x2e
jne 0x469d4e
cmp word [ebp - 0x448], 0
je 0x469da7
test eax, eax
jne 0x469da7
lea eax, [ebp - 0x47c]
push eax
lea ecx, [ebp - 0x478]
call fcn.0047e970
mov byte [ebp - 4], 1
push dword [ebp - 0x47c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x47c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x469da7
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x52b690
jne 0x469de0
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call edi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x469dc9
cmp dword [ebp - 0x18], 0
je 0x469dc9
lea ecx, [ebp - 0x478]
push ecx
push eax
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x469d14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00469ea0
jmp 0x469cb1
mov ecx, edx
call esi
jmp 0x469da7

Function at 0x46b170
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov edx, dword [esi]
test edx, edx
jne 0x46b1a0
cmp dword [esi + 0x20], 8
lea ecx, [esi + 0xc]
jb 0x46b184
mov ecx, dword [ecx]
mov eax, dword [esi + 0x40]
sub esp, 8
or eax, 0xf003f
push eax
sub esp, 8
push ecx
push dword [esi + 0x3c]
mov ecx, esi
call fcn.004580cd
mov edx, dword [esi]
mov ecx, dword [esp + 8]
pop esi
cmp dword [ecx + 0x14], 8
jb 0x46b1ad
mov ecx, dword [ecx]
mov eax, dword [esp + 8]
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
ret 8
Function at 0x48aca6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x74], 1
push ebx
push esi
push edi
je 0x48ad31
test dword [ecx + 0x74], 0x2000
jne 0x48ad31
call fcn.0048b5b1
mov edi, eax
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 3
jl 0x48ad31
xor esi, esi
mov ecx, edi
push esi
call fcn.0046ec10
push 0x5c
pop ebx
cmp ax, bx
jne 0x48ad05
push 1
mov ecx, edi
call fcn.0046ec10
cmp ax, bx
jne 0x48ad05
push 2
mov ecx, edi
call fcn.0046ec10
cmp ax, bx
jne 0x48ad31
push esi
mov ecx, edi
call fcn.0046ec10
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x48ad05
xor ecx, ecx
mov word [ebp - 6], cx
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x48ad31
mov al, 1
jmp 0x48ad33
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5b75
leave
ret
Function at 0x490340
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, ecx
push esi
xor esi, esi
push edi
lea edi, [ebx + 0xe0]
cmp dword [ebx + 0xe4], esi
jle 0x49036e
push esi
mov ecx, edi
call fcn.004125c0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [ebx + 0xe4]
jl 0x490355
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00457206

Function at 0x49072e
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff2f9
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x573080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x2c], 0
je 0x490766
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esi + 0xc]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4907bd
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ebx, str.SoftwareCaphyonSetups
push ebx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 0x10], 0
je 0x4907bd
push dword [edi]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040d91c
lea edx, [ebp - 0x14]
call fcn.004973d2
lea ecx, [ebp - 0x14]
call fcn.0040d133
lea ecx, [esi + 0x1c]
call fcn.00409ff3
lea ecx, [esi + 0x10]
call fcn.00409ff3
mov ecx, edi
call fcn.0040d133
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x490a51
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x573080]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x490ae3
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x575298]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x490ae3
push esi
lea esi, [eax + eax]
cmp esi, 0x208
jae 0x490af9
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push str.SoftwareCaphyonSetups
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x490ae2
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop edi
call fcn.004d5b75
add ebp, 0x190
leave
ret
call fcn.004d6401
int3
Function at 0x4959b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov edi, edx
push eax
lea eax, [ebp - 8]
mov ebx, ecx
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 0xea
jne 0x495a16
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
call fcn.0040d74e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov esi, dword [edi]
push eax
call fcn.004116fd
push eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0xffffffffffffffff
call fcn.00410c89
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
leave
ret

Function at 0x496583
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x573080]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
test ecx, ecx
je 0x4966c8
movzx eax, word [ecx]
lea esi, [esp + 0x20]
test ax, ax
je 0x4965c7
mov edx, esi
sub ecx, edx
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4965b8
xor eax, eax
mov dword [esp + 0x10], esi
mov word [esi], ax
xor cl, cl
push 0x5c
xor al, al
sub esi, 2
pop edi
mov byte [esp + 0xf], al
cmp word [esp + 0x20], di
jne 0x4965fb
cmp word [esp + 0x22], di
jne 0x4965fb
xor ebx, ebx
inc ebx
cmp word [esi], di
mov byte [esp + 0xf], bl
setne cl
jmp 0x496607
xor ebx, ebx
movzx eax, al
inc ebx
cmp word [esi], di
cmove eax, ebx
push 0x5c
pop edx
cmp word [esp + 0x24], dx
lea edi, [esp + 0x24]
mov edx, dword [esp + 0x10]
je 0x496628
push 0x5c
pop edx
add edi, 2
cmp word [edi], dx
jne 0x49661c
mov edx, dword [esp + 0x10]
test cl, cl
jne 0x496632
test al, al
je 0x496645
jmp 0x49663d
mov esi, edx
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
push eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x4966ae
push 0x5c
pop ecx
cmp word [esi], cx
lea eax, [esi - 2]
cmovne eax, esi
mov esi, eax
jmp 0x49668a
cmp word [esi], cx
je 0x496692
sub esi, 2
lea eax, [esp + 0x20]
cmp esi, eax
ja 0x496682
cmp esi, edi
jb 0x4966c8
cmp byte [esp + 0xf], 0
jne 0x4966a1
cmp esi, edi
jne 0x4966a4
add esi, 2
xor eax, eax
mov word [esi], ax
sub esi, 2
jmp 0x49664e
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x1c]
ja 0x4966c2
jb 0x4966c4
mov eax, dword [ebp + 8]
cmp eax, dword [esp + 0x18]
jb 0x4966c4
xor bl, bl
mov al, bl
jmp 0x4966ca
xor al, al
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d5b75
mov esp, ebp
pop ebp
ret
Function at 0x497086
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x51131f
call fcn.004d6783
mov edi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push eax
mov dword [ebp - 0x10], 0xc8
call fcn.004d62d0
xor edx, edx
mov dword [ebp - 0x14], edx
jmp 0x4970c1
add dword [ebp - 0x10], 2
push esi
call fcn.004d62d0
xor eax, eax
mov dword [ebp - 0x14], eax
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00486acb
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
xor eax, eax
push eax
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4970b2
test eax, eax
je 0x4970f9
xor eax, eax
mov bl, al
jmp 0x4971b6
mov eax, dword [ebp - 0x18]
xor ebx, ebx
inc ebx
cmp eax, ebx
je 0x497129
cmp eax, 2
je 0x497129
cmp eax, 7
je 0x497129
cmp eax, 4
jne 0x4970f0
push dword [esi]
push 0x5393f8
push dword [ebp + 8]
call fcn.00411714
add esp, 0xc
jmp 0x4971b6
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
xor eax, eax
mov edi, dword [ebp - 0x10]
jmp 0x497142
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], ax
je 0x49713e
inc edi
mov dword [ebp - 0x10], edi
call fcn.0040d32d
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call 0x407083
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx]
sub ecx, 0x10
lea edi, [eax - 0x10]
mov dword [ebp - 0x20], ecx
cmp edi, ecx
je 0x4971a9
xor edx, edx
cmp dword [ecx + 0xc], edx
jl 0x49719d
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49719d
mov ecx, edi
call fcn.004070e8
mov ecx, dword [ebp - 0x20]
mov edi, eax
call fcn.0040d635
mov ecx, dword [ebp + 8]
lea eax, [edi + 0x10]
mov dword [ecx], eax
jmp 0x4971a9
push dword [eax - 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040d89e
xor eax, eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], al
call fcn.0040d133
or dword [ebp - 4], 0xffffffff
push esi
call fcn.004d62d0
xor eax, eax
mov dword [ebp - 0x14], eax
mov al, bl
pop ecx
call fcn.004d674c
ret