joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1048f8a
Capabilities:
Start service
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f1d
call fcn.01022092
xor edi, edi
mov dword [ebp - 4], edi
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x1049078
push 0x80000030
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x1049051
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
push edi
push ebx
call esi
test eax, eax
je 0x1048ff5
push dword [ebp + 8]
push 0x1010cf8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x1049046
call dword [fcn.0100131c]
cmp eax, 0x420
je 0x104901a
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
push 0x1010c90
push 3
call fcn.0103aac4
add esp, 0x10
jmp 0x1049046
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1049043
push ebx
lea ebx, [ebp - 0x34]
call fcn.0104adfd
test eax, eax
je 0x1049043
push edi
push edi
push dword [ebp - 0x14]
call esi
test eax, eax
jne 0x1049046
mov dword [ebp - 0x10], edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104906d
mov dword [ebp - 0x10], edi
call dword [fcn.0100131c]
push eax
push dword [ebp + 8]
push 0x1010c10
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1049091
call dword [fcn.0100131c]
push eax
push 0x1010b80
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, dword [ebp - 0x10]
call fcn.0102217e
ret 4

Function at 0x10497ca
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x1058c75
call fcn.01022092
xor ebx, ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x18]
call fcn.01016a0f
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.010151a6
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x104984c
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
jmp 0x104989a
push ebx
push ebx
push ebx
push ebx
push dword [0x10645cc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104986b
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [entry0]
cmp dword [ebp - 0x1c], ebx
je 0x1049898
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x1049898
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011410
push 1
jmp 0x1049842
xor edi, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.010151a6
mov eax, edi
call fcn.0102217e
ret 4
Function at 0x10498b5
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x18
mov eax, 0x1058cad
call fcn.01022092
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x1c]
mov edi, 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x104995a
cmp eax, 2
push dword [esi]
je 0x1049949
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x1049995
push 0x10117d8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x1049995
cmp dword [ebp + 0x10], ebx
jne 0x1049968
mov dword [ebp - 0x24], 1
jmp 0x1049995
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104998e
push dword [esi]
push eax
push 0x1011718
jmp 0x104993a
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x10499a3
push dword [ebp - 0x10]
call dword [entry0]
cmp dword [ebp - 0x24], ebx
je 0x10499b2
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x18], ebx
je 0x1049a7c
lea ecx, [ebp + 0x10]
call fcn.010155dc
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push 2
call fcn.0103b658
test eax, eax
jne 0x10499ef
push 0x100c220
push 3
call fcn.0103aac4
pop ecx
pop ecx
mov dword [ebp - 0x18], ebx
jmp 0x1049a71
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.0103ae0c
test eax, eax
jne 0x1049a14
push dword [ebp + 0x10]
push 0x10116a8
push 3
call fcn.0103aac4
add esp, 0xc
jmp 0x10499e7
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 0x10]
inc edi
push 0x1011658
push edi
call fcn.0103aac4
add esp, 0x10
cmp dword [ebp + 0xc], edi
je 0x1049a47
jbe 0x1049a57
cmp dword [ebp + 0xc], 4
ja 0x1049a57
mov ecx, dword [ebp + 0x1c]
push esi
lea eax, [ebp + 0x10]
push eax
call fcn.010492eb
jmp 0x1049a54
push dword [ebp + 0x1c]
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.010490ad
mov dword [ebp + 0x1c], eax
cmp dword [ebp + 0x1c], ebx
je 0x1049a6e
push dword [ebp + 0x10]
push 0x1011600
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.010151a6
cmp dword [ebp - 0x14], ebx
je 0x1049a86
cmp dword [ebp - 0x18], ebx
jne 0x1049a8b
mov ebx, 0x643
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.010151a6
mov eax, ebx
call fcn.0102217e
ret 0x18
Function at 0x104a82e
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0x2c
mov eax, 0x1058ead
call fcn.01022092
mov eax, dword [ebp + 0x18]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [eax], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
push dword [0x10645c8]
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.010151a6
lea eax, [ebp - 0x10]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x18]
mov edi, 0x80000002
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x104a8d1
cmp eax, 2
push dword [esi]
je 0x104a8c0
push eax
push 0x1011520
push 3
call fcn.0103aac4
add esp, 0x10
mov dword [ebp - 0x14], ebx
jmp 0x104a90c
push 0x10117d8
push 1
call fcn.0103aac4
add esp, 0xc
jmp 0x104a90c
cmp dword [ebp + 0x10], ebx
jne 0x104a8df
mov dword [ebp - 0x20], 1
jmp 0x104a90c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 7
push ebx
push dword [0x10645cc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x104a905
push dword [esi]
push eax
push 0x1011718
jmp 0x104a8b1
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x10], ebx
je 0x104a91a
push dword [ebp - 0x10]
call dword [entry0]
cmp dword [ebp - 0x20], ebx
je 0x104a929
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x38]
call fcn.0101526d
mov byte [ebp - 4], 2
cmp dword [ebp + 0x10], ebx
je 0x104a945
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
call fcn.0103c2bd
push dword [ebp + 0x18]
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push esi
call fcn.010157a2
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
call fcn.0104a25c
cmp eax, ebx
jne 0x104a97e
push 0x1012388
push 3
call fcn.0103aac4
pop ecx
pop ecx
xor eax, eax
jmp 0x104a981
xor eax, eax
inc eax
cmp dword [ebp - 0x14], ebx
je 0x104a98e
cmp eax, ebx
je 0x104a98e
xor esi, esi
jmp 0x104a993
mov esi, 0x643
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x38]
call fcn.01014fc6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0x14

Function at 0x104adfd
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x104ae4b
cmp dword [ebx + 4], 1
push edi
je 0x104ae47
mov edi, 0x1f4
push edi
call dword [0x1001180]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x104ae5b
add dword [ebp - 4], edi
cmp dword [ebp - 4], 0x2710
ja 0x104ae50
cmp dword [ebx + 4], 1
jne 0x104ae24
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
push 0x41d
call dword [fcn.01001274]
xor eax, eax
jmp 0x104ae4a
Function at 0x104ae64
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push 0x20019
mov esi, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
xor ebx, ebx
mov dword [ebp - 0xc], edi
call fcn.0104ac41
test eax, eax
jne 0x104aea0
call dword [fcn.0100131c]
push eax
call dword [fcn.01001274]
xor eax, eax
jmp 0x104af58
mov ecx, esi
call fcn.0103ea35
lea eax, [ebp - 4]
push eax
push 0x20006
push edi
push 0x1012600
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104af1d
lea eax, [ebp - 8]
push eax
add esi, 8
push esi
call dword [0x1001544]
test eax, eax
jne 0x104af1d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], edi
je 0x104af08
lea eax, [ebp - 0xc]
push eax
call fcn.01035a81
mov ebx, eax
cmp ebx, edi
je 0x104af1d
mov eax, dword [ebp - 0xc]
add eax, eax
push eax
push ebx
push 7
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jmp 0x104af1b
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x104af2c
cmp eax, 2
je 0x104af2c
push 0x65b
call dword [fcn.01001274]
xor esi, esi
jmp 0x104af2f
xor esi, esi
inc esi
cmp dword [ebp - 4], edi
je 0x104af3d
push dword [ebp - 4]
call dword [entry0]
cmp ebx, edi
je 0x104af48
push ebx
call fcn.010213d8
pop ecx
cmp dword [ebp - 8], edi
je 0x104af56
push dword [ebp - 8]
call dword [0x1001534]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104af64
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push 0x28
mov eax, 0x1058f1d
call fcn.01022092
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
push 0xe0000000
push edi
push edi
mov dword [ebp - 0x10], 1
mov dword [eax], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x104b103
push 0x80010020
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x104b0e0
mov eax, dword [ebp + 0xc]
cmp eax, 2
mov edi, dword [fcn.0100131c]
je 0x104afd8
cmp eax, 3
je 0x104afd8
cmp eax, 4
je 0x104afd8
cmp eax, 1
jne 0x104b026
lea eax, [ebp - 0x34]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x104affe
call edi
push eax
push dword [ebp + 8]
push 0x1011020
push 3
call fcn.0103aac4
add esp, 0x10
push ebx
lea ebx, [ebp - 0x34]
call fcn.0104adfd
test eax, eax
jne 0x104b026
push dword [ebp + 8]
push 0x1010fe8
push 2
call fcn.0103aac4
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [eax], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x104b0c0
push dword [ebp + 8]
push 0x1010fb0
push 1
call fcn.0103aac4
add esp, 0xc
push dword [ebp - 0x14]
call esi
xor edi, edi
cmp dword [ebp + 0xc], 2
je 0x104b063
cmp dword [ebp + 0xc], 3
mov dword [ebp + 0xc], 6
jne 0x104b06a
mov dword [ebp + 0xc], 3
push 0x80000000
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
inc edi
test ebx, ebx
je 0x104b0fc
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebx
call esi
cmp edi, dword [ebp + 0xc]
jne 0x104b0ae
push 0x1010ed8
push 2
call fcn.0103aac4
mov eax, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], 1
jmp 0x104b0b9
push 0x1388
call dword [0x1001180]
cmp edi, dword [ebp + 0xc]
jb 0x104b06a
jmp 0x104b0fc
and dword [ebp - 0x10], 0
call edi
push eax
push dword [ebp + 8]
push 0x1010e60
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x14]
call esi
jmp 0x104b0fc
mov dword [ebp - 0x10], edi
call dword [fcn.0100131c]
push eax
push dword [ebp + 8]
push 0x1010dd0
push 3
call fcn.0103aac4
add esp, 0x10
push dword [ebp - 0x18]
call esi
jmp 0x104b11c
call dword [fcn.0100131c]
push eax
push 0x1010d30
push 3
call fcn.0103aac4
add esp, 0xc
mov dword [ebp - 0x10], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, dword [ebp - 0x10]
call fcn.0102217e
ret 0xc
Function at 0x104b492
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push 0x14
mov eax, 0x1058fad
call fcn.01022092
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
call fcn.010155dc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010155dc
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x104b4f2
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 0xc
push 0x1012778
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.010151a6
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
call fcn.01014f3a
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104b579
xor esi, esi
jmp 0x104b598
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 7
push ebx
push dword [0x10645d8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp dword [ebp - 0x10], ebx
je 0x104b4c5
push dword [ebp - 0x10]
call dword [entry0]
jmp 0x104b4c5
Function at 0x104b5b4
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1058fee
call fcn.01022092
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call fcn.010155dc
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.010155dc
mov byte [ebp - 4], 1
push 0x1012778
lea ecx, [ebp - 0x1c]
call fcn.01016a0f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.010151a6
push dword [0x10645d4]
lea ecx, [ebp - 0x20]
call fcn.01016a0f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.01035e1c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.010151a6
lea eax, [ebp - 0x14]
push eax
push 0x2001f
push ebx
push dword [ebp - 0x10]
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
je 0x104b66e
cmp edi, 2
je 0x104b6c2
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011520
push 3
jmp 0x104b6b8
push ebx
push ebx
push ebx
push ebx
push dword [0x10645d8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x104b68d
mov dword [ebp - 0x24], 1
push dword [ebp - 0x14]
call dword [entry0]
cmp dword [ebp - 0x24], ebx
je 0x104b6c2
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp edi, ebx
je 0x104b6c2
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0x1011410
push 1
call fcn.0103aac4
add esp, 0x10
jmp 0x104b6c4
xor edi, edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.010151a6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010151a6
mov eax, edi
call fcn.0102217e
ret 4
Function at 0x104b6ea
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x20019
push esi
mov ebx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], edi
call fcn.0104ac41
test eax, eax
jne 0x104b728
call dword [fcn.0100131c]
push eax
call dword [fcn.01001274]
xor eax, eax
jmp 0x104b7eb
mov ecx, ebx
call fcn.0103ea35
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x1012600
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x104b7a4
lea eax, [ebp - 0xc]
push eax
add ebx, 8
push ebx
call dword [0x1001544]
test eax, eax
jne 0x104b7a4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
cmp eax, edi
je 0x104b77b
cmp eax, 2
je 0x104b7bc
jmp 0x104b7a4
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.010542e0
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x10], ebx
je 0x104b7a4
lea eax, [ebp - 4]
push eax
push ebx
push edi
push edi
push dword [ebp - 0xc]
push dword [ebp - 8]
call esi
test eax, eax
je 0x104b7b3
push 0x65b
call dword [fcn.01001274]
xor esi, esi
jmp 0x104b7bf
mov ecx, dword [ebp + 8]
push ebx
call fcn.0103c2bd
xor esi, esi
inc esi
cmp dword [ebp - 8], edi
je 0x104b7cd
push dword [ebp - 8]
call dword [entry0]
cmp dword [ebp - 0x10], edi
je 0x104b7db
push dword [ebp - 0x10]
call fcn.010213d8
pop ecx
cmp dword [ebp - 0xc], edi
je 0x104b7e9
push dword [ebp - 0xc]
call dword [0x1001534]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x104f8f1
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x1059808
call fcn.01022092
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.01016a0f
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
call fcn.01036ec9
mov bl, al
neg bl
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010151a6
test bl, bl
je 0x104f936
push 0x52
pop eax
jmp 0x104f9ba
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
push 0x80000002
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x104f988
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.01016a0f
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
call fcn.010369b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
jmp 0x104f92e
cmp dword [ebp - 0x1c], 1
jne 0x104f9af
lea eax, [ebp - 0x18]
push eax
call dword [0x1001258]
push 8
lea eax, [ebp - 0x18]
push eax
push 3
push esi
push 0x1013a70
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
call dword [entry0]
xor eax, eax
call fcn.0102217e
ret 8

Function at 0x104ffcf
Capabilities:
Delete registry value
Set registry value

Disassembly:
push 0
mov eax, 0x105985b
call fcn.01022092
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0103ea35
push 0x20006
mov ecx, esi
call fcn.0104ac41
test eax, eax
jne 0x105000f
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
call fcn.0102217e
ret 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 8], ebx
jne 0x1050027
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
jmp 0x1050059
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], ebx
call fcn.01035a81
mov edi, eax
test edi, edi
je 0x1050059
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push 7
push 0
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov ebx, eax
call fcn.010213d8
pop ecx
mov ecx, esi
call fcn.0103ea35
xor eax, eax
test ebx, ebx
sete al
mov esi, eax
jmp 0x104fff9
Function at 0x1050937
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x1056548
call fcn.01022092
mov edi, ecx
mov dword [ebp - 0x18], edi
xor esi, esi
mov dword [ebp - 4], esi
push 0x20019
call fcn.0104ac41
test eax, eax
jne 0x105097e
call dword [fcn.0100131c]
push eax
call dword [fcn.01001274]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
xor eax, eax
call fcn.0102217e
ret 8
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push dword [edi + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call edi
cmp eax, esi
je 0x10509bf
cmp eax, 2
je 0x10509ba
push 0x65b
call dword [fcn.01001274]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.010151a6
mov eax, esi
jmp 0x1050976
xor esi, esi
inc esi
jmp 0x10509aa
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov dword [ebp - 0x14], eax
call fcn.010542e0
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x105099f
push dword [ebp - 0x14]
push esi
push ebx
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push ebx
push esi
push esi
push dword [ebp + 8]
push dword [eax + 0x18]
call edi
test eax, eax
push ebx
je 0x1050a01
call fcn.010213d8
pop ecx
jmp 0x105099f
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0103c2bd
push ebx
call fcn.010213d8
cmp dword [edi + 8], esi
pop ecx
jne 0x10509ba
jmp 0x105099f

Function at 0x1051e6b
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 1
push 0
push 0x26
push 0
call dword [0x100143c]
test eax, eax
je 0x1051eac
xor eax, eax
inc eax
jmp 0x1051f3c
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call dword [0x10011c8]
test eax, eax
je 0x1051f0d
push 0x1005f7c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010150a7
test eax, eax
jl 0x1051f0d
push 0x1013fe8
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010150a7
test eax, eax
jl 0x1051f0d
lea eax, [ebp - 0x210]
push eax
push 0x7fffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.010150e8
test eax, eax
jge 0x1051f12
xor eax, eax
inc eax
jmp 0x1051f3b
mov eax, dword [ebp - 0x210]
inc eax
test edi, edi
je 0x1051f3b
cmp dword [ebp + 0xc], eax
jb 0x1051f3b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0101506d
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0102177f
leave
ret 8