joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102f090
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0xc], 0
jne 0x102f0b0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102f1d8
cmp dword [ebp + 8], 4
jne 0x102f0bf
mov dword [ebp - 8], 0x1008dd4
jmp 0x102f0f3
cmp dword [ebp + 8], 9
jne 0x102f0ce
mov dword [ebp - 8], 0x1008dac
jmp 0x102f0f3
cmp dword [ebp + 8], 0xa
jne 0x102f0dd
mov dword [ebp - 8], 0x1008d7c
jmp 0x102f0f3
cmp dword [ebp + 8], 8
jne 0x102f0ec
mov dword [ebp - 8], 0x1008d48
jmp 0x102f0f3
xor eax, eax
jmp 0x102f1d8
mov ecx, dword [ebp - 0x1c]
call fcn.01030230
test eax, eax
jne 0x102f106
xor eax, eax
jmp 0x102f1d8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102f132
cmp dword [ebp - 4], 1
ja 0x102f139
xor eax, eax
jmp 0x102f1d8
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x102f161
xor eax, eax
jmp 0x102f1d8
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102f1aa
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0101da1e
add esp, 4
xor eax, eax
jmp 0x102f1d8
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0102f1f0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0101da1e
add esp, 4
mov ecx, dword [ebp + 0xc]
call fcn.010106d5
movzx eax, al
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret 8
Function at 0x102f290
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], 0
jne 0x102f2b0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x102f377
cmp dword [ebp + 8], 6
jne 0x102f2bf
mov dword [ebp - 8], 0x1008e00
jmp 0x102f2d5
cmp dword [ebp + 8], 5
jne 0x102f2ce
mov dword [ebp - 8], 0x1008de8
jmp 0x102f2d5
xor eax, eax
jmp 0x102f377
mov ecx, dword [ebp - 0x14]
call fcn.01030230
test eax, eax
jne 0x102f2e8
xor eax, eax
jmp 0x102f377
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102f312
xor eax, eax
jmp 0x102f377
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.0101e5e0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x102f337
xor eax, eax
jmp 0x102f377
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x102f372
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.0101da1e
add esp, 4
xor eax, eax
jmp 0x102f377
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x102fdd0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1058328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
call fcn.01030230
test eax, eax
jne 0x102fe2d
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x14]
jmp 0x102ff9a
lea eax, [ebp + 8]
push eax
push 0x100419c
call fcn.01030c70
movzx ecx, al
test ecx, ecx
je 0x102feb4
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 2
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 8
push ecx
call fcn.01025680
lea edx, [ebp - 0x10]
push edx
call fcn.01025920
movzx eax, al
test eax, eax
jne 0x102fea8
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x18]
jmp 0x102ff9a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
lea ecx, [ebp + 8]
push ecx
push 0x100419c
call fcn.01030c70
movzx edx, al
test edx, edx
jne 0x102ff1d
lea eax, [ebp + 8]
push eax
push 0x1008d30
call fcn.01030c70
movzx ecx, al
test ecx, ecx
jne 0x102ff1d
lea edx, [ebp + 8]
push edx
push 0x1008d0c
call fcn.01030c70
movzx eax, al
test eax, eax
jne 0x102ff1d
lea ecx, [ebp + 8]
push ecx
push 0x1006d40
call fcn.01030c70
movzx edx, al
test edx, edx
jne 0x102ff1d
lea eax, [ebp + 8]
push eax
push 0x1008ce8
call fcn.01030c70
movzx ecx, al
test ecx, ecx
je 0x102ff75
lea ecx, [ebp + 0xc]
call fcn.01010a68
lea edx, [eax + eax + 2]
push edx
lea ecx, [ebp + 0xc]
call fcn.0101bb76
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.0101bb76
push eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x102ff9a
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10300a0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1058428
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.01030230
test eax, eax
jne 0x10300f1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x1c]
jmp 0x103021a
lea eax, [ebp + 8]
push eax
push 0x1008dd4
call fcn.01030c70
movzx ecx, al
test ecx, ecx
jne 0x1030149
lea edx, [ebp + 8]
push edx
push 0x1008dac
call fcn.01030c70
movzx eax, al
test eax, eax
jne 0x1030149
lea ecx, [ebp + 8]
push ecx
push 0x1008d7c
call fcn.01030c70
movzx edx, al
test edx, edx
jne 0x1030149
lea eax, [ebp + 8]
push eax
push 0x1008d48
call fcn.01030c70
movzx ecx, al
test ecx, ecx
je 0x1030201
mov ecx, dword [ebp + 0xc]
call fcn.010106d5
movzx edx, al
test edx, edx
je 0x103018c
lea ecx, [ebp + 8]
call fcn.01010987
push eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
jmp 0x103021a
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.01027cd0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1030201
mov eax, dword [ebp - 0x14]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 7
push 0
lea ecx, [ebp + 8]
call fcn.0101bb76
push eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0101da1e
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], 0
sete al
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x28]
jmp 0x103021a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1033a50
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.01025920
movzx ecx, al
test ecx, ecx
jne 0x1033a77
mov eax, 0xe0000303
jmp 0x1033b0b
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
call fcn.010529c3
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1033b08
push 0
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1033ab5
mov dword [ebp - 4], 0
jmp 0x1033b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jne 0x1033b08
push 0x80
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
mov ecx, dword [ebp + 0xc]
call fcn.010107dc
push eax
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1033aff
mov dword [ebp - 4], 0
jmp 0x1033b08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x103ccf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
push 0x104
mov ecx, dword [ebp + 0x10]
call fcn.01011310
mov dword [ebp - 8], eax
push 0x20019
push 2
push 0
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x103cd74
mov ecx, dword [ebp + 0x10]
call fcn.01010a68
shl eax, 1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x100a370
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x103cd6a
cmp dword [ebp - 0x10], 0
jbe 0x103cd6a
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x10]
call fcn.01010a85
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10417f0
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1059ef8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x100afd8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10418d8
push 0x100afc0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10418d8
lea ecx, [ebp - 0x1c]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.01010c62
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.01010900
lea ecx, [ebp - 0x20]
call fcn.01010900
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.01025540
movzx ecx, al
test ecx, ecx
je 0x10418c0
lea ecx, [ebp - 0x20]
call fcn.01010a73
movzx edx, al
test edx, edx
jne 0x10418c0
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.010107dc
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10418c0
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.01010c92
cmp dword [ebp - 0x10], 0
jne 0x1041952
push 0x80
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1041952
mov dword [ebp - 0x10], 1
lea ecx, [ebp + 8]
call fcn.010112e6
push 0x100afb4
push 0x100580c
lea ecx, [ebp + 8]
call fcn.01016ce0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1041952
push 0x80
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 0
je 0x1041962
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1044e90
Capabilities:
Start service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
push 0xe0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1044fef
mov dword [ebp - 0x18], 0
push 0x80000030
lea ecx, [ebp + 8]
call fcn.010107dc
push eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1044fc2
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1044f34
mov edx, dword [ebp + 8]
push edx
push 0x100cae0
push 1
call fcn.0102e650
add esp, 0xc
jmp 0x1044fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x420
je 0x1044f66
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x100ca78
push 3
call fcn.0102e650
add esp, 0x10
jmp 0x1044fb6
lea edx, [ebp - 0x38]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1044f83
mov dword [ebp - 0x14], 0
jmp 0x1044fb6
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.01045040
test eax, eax
jne 0x1044f9d
mov dword [ebp - 0x14], 0
jmp 0x1044fb6
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1044fb6
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1044fe3
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
push 0x100c9f8
push 3
call fcn.0102e650
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x104500c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100c968
push 3
call fcn.0102e650
add esp, 0xc
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1045040
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1045063
xor eax, eax
jmp 0x10450b8
mov edx, dword [ebp + 0xc]
cmp dword [edx + 4], 1
je 0x10450b3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x104508d
xor eax, eax
jmp 0x10450b8
mov edx, dword [ebp - 4]
add edx, 0x1f4
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x2710
jbe 0x10450b1
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10450b8
jmp 0x1045063
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1045900
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.01010c62
mov dword [ebp - 4], 0
mov eax, dword [0x10649d4]
push eax
lea ecx, [ebp - 0x20]
call fcn.0101236d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.01025680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01010c92
lea ecx, [ebp - 0x1c]
push ecx
push 0x2001f
push 0
lea ecx, [ebp - 0x14]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10459b3
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x100c508
push 3
call fcn.0102e650
add esp, 0x10
jmp 0x1045a2b
push 0
push 0
push 0
push 0
mov edx, dword [0x10649d8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jne 0x10459dc
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x1045a24
lea ecx, [ebp - 0x14]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1045a24
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x100ce78
push 1
call fcn.0102e650
add esp, 0x10
jmp 0x1045a2b
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x1047480
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105a898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.01010c62
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x10474ff
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x20]
jmp 0x1047601
push 0x100dcd8
lea ecx, [ebp - 0x24]
call fcn.0101236d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.01010c92
mov eax, dword [0x10649e0]
push eax
lea ecx, [ebp - 0x28]
call fcn.0101236d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.01025680
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.01010c92
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.01010987
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1047590
mov dword [ebp - 0x18], 0
jmp 0x10475c1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [0x10649e4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x10475ba
mov dword [ebp - 0x18], 0
jmp 0x10475c1
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x14], 0
je 0x10475d1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.01010c92
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1049d50
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x105ab70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
call fcn.01010c62
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01010c62
mov byte [ebp - 4], 1
push 0x100dcd8
lea ecx, [ebp - 0x24]
call fcn.0101236d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.01010c92
mov eax, dword [0x10649e0]
push eax
lea ecx, [ebp - 0x28]
call fcn.0101236d
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.01025680
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.01010c92
lea ecx, [ebp - 0x1c]
push ecx
push 0x2001f
push 0
lea ecx, [ebp - 0x20]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1049e4c
cmp dword [ebp - 0x18], 2
je 0x1049e43
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x100c508
push 3
call fcn.0102e650
add esp, 0x10
jmp 0x1049e4a
mov dword [ebp - 0x18], 0
jmp 0x1049ec4
push 0
push 0
push 0
push 0
mov edx, dword [0x10649e4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jne 0x1049e75
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x1049ebd
lea ecx, [ebp - 0x20]
call fcn.010107dc
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1049ebd
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0x100ce78
push 1
call fcn.0102e650
add esp, 0x10
jmp 0x1049ec4
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.01010c92
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4