joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbb380
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0xbb431
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0xbb440
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbb40f
cmp byte [ebp - 1], 0
je 0xbb3db
mov dword [ebp - 0xc], 4
jmp 0xbb3e2
mov dword [ebp - 0xc], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0xbb474
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbb438
cmp dword [ebp - 0x14], 0
je 0xbb42b
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret

Function at 0xbb47c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0xbb52b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0xbb53c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbb509
cmp byte [ebp - 1], 0
je 0xbb4d7
mov dword [ebp - 0xc], 1
jmp 0xbb4dc
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0xbb578
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbb532
cmp dword [ebp - 0x18], 0
je 0xbb525
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
ret

Function at 0xbb594
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0xbb61e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xbb62c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0xbb5fc
mov dword [ebp - 0xc], 1
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0xbb658
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbb625
cmp dword [ebp - 8], 0
je 0xbb618
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 8], eax
ret
Function at 0xccdb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xcce74
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xcce57
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
call fcn.00075e7c
mov eax, dword [ebp - 0x10]
call fcn.000140bc
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xcce35
push 0xcce84
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xcce5e
cmp dword [ebp - 0xc], 0
je 0xcce51
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret
Function at 0xd2a7c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0xd2a84
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd2c33
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 0xd2c44
call fcn.0007a2b0
push dword [ebp - 0x18]
push dword [ebp - 8]
lea edx, [ebp - 0x1c]
mov eax, 0xd2c4c
call fcn.0007a2b0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00013fb8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.000d2a28
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xd2c11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0xd2c5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xd2b73
mov eax, dword [0xfb260]
cmp dword [eax], 0
je 0xd2b4e
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, 0xd2c6c
call fcn.00013f44
mov eax, dword [ebp - 0x20]
call fcn.000140bc
mov edx, eax
mov eax, dword [ebp - 0x10]
call fcn.00079198
mov dword [ebp - 0xc], eax
jmp 0xd2b73
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, 0xd2c6c
call fcn.00013f44
mov eax, dword [ebp - 0x24]
call fcn.000140bc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteKeyA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xd2bb6
lea edx, [ebp - 0x2c]
mov eax, 0xd2cb4
call fcn.0007a2b0
push dword [ebp - 0x2c]
push dword [ebp - 8]
lea edx, [ebp - 0x30]
mov eax, 0xd2c4c
call fcn.0007a2b0
push dword [ebp - 0x30]
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00013fb8
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 4]
call fcn.000d2a28
jmp 0xd2bef
lea edx, [ebp - 0x34]
mov eax, 0xd2cc0
call fcn.0007a2b0
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00013f00
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 4]
call fcn.000d29d4
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.000766dc
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
call fcn.000d29d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd2c18
cmp dword [ebp - 0x10], 0
je 0xd2c0b
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0xd3574
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0xd357c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd3899
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xd382d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x70]
mov eax, 0xd38a8
call fcn.0007a2b0
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 8]
call fcn.00013f00
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 4]
call fcn.000d2a28
lea eax, [ebp - 0xc]
call fcn.000756f4
lea eax, [ebp - 0x6c]
xor ecx, ecx
mov edx, 0x44
call fcn.00012b38
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00012b38
mov dword [ebp - 0x6c], 0x44
mov word [ebp - 0x3c], 0
mov dword [ebp - 0x40], 1
push dword [ebp - 0xc]
lea edx, [ebp - 0x74]
mov eax, 0xd38b8
call fcn.0007a2b0
push dword [ebp - 0x74]
push dword [ebp - 8]
lea edx, [ebp - 0x78]
mov eax, 0xd38dc
call fcn.0007a2b0
push dword [ebp - 0x78]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00013fb8
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0xd381c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0xfb18c]
mov eax, dword [eax]
call fcn.00078df4
xor eax, eax
push ebp
push 0xd36e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x80]
mov eax, 0xd38e4
call fcn.0007a2b0
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
mov edx, dword [0xfb18c]
mov edx, dword [edx]
call fcn.00078fa8
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 4]
call fcn.000d2a28
push 0
call sub.kernel32.dll_SetLastError
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.000140bc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0x18], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd36f0
mov eax, dword [0xfb18c]
mov eax, dword [eax]
call fcn.00078ec8
ret
Function at 0xd48dc
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd4a64
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 7], 0
xor eax, eax
push ebp
push 0xd4a22
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0xd49f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0xd499b
lea eax, [ebp - 0x34]
push eax
push 0xd4a78
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x10], 0x10
xor eax, eax
mov dword [ebp - 0xc], eax
cmp byte [ebp - 0x15], 0
je 0xd499b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp byte [ebp - 5], 0
je 0xd49d1
test byte [ebp - 4], 2
je 0xd49bd
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x80020004
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.000d4844
jmp 0xd49d1
push 0xffffffffffffffff
push 0
push 0x80020004
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.000d4844
push 0x80020004
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 6], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xd4a00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd4a29
cmp dword [ebp - 0x14], 0
je 0xd4a1c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret
Function at 0xd4f00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0xd4f09
push ecx
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd50a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0006b29c
test al, al
je 0xd5010
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.0006b234
push dword [ebp - 0x18]
push dword [ebp - 4]
push 0xd50b4
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.000145ac
mov eax, dword [ebp - 0x14]
call fcn.0006b2d4
test al, al
je 0xd4fcc
mov eax, dword [ebp - 0x14]
call fcn.000144cc
push eax
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0xd4fba
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x1c]
mov eax, 0xd50c0
call fcn.0007a2b0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x10]
call fcn.000766dc
mov edx, dword [ebp - 0x20]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00014458
jmp 0xd5052
mov eax, dword [ebp - 0xc]
mov edx, 0xd50d0
call fcn.000142e4
jmp 0xd5052
lea edx, [ebp - 0x28]
mov eax, 0xd50ec
call fcn.0007a2b0
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
mov eax, 2
call fcn.000766dc
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
call fcn.00014458
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
mov edx, 0xd50f4
call fcn.00014548
jmp 0xd5052
lea edx, [ebp - 0x34]
mov eax, 0xd50ec
call fcn.0007a2b0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, 2
call fcn.000766dc
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00013f00
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00014458
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov edx, 0xd5110
call fcn.00014548
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd50ab
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00013c9c
lea eax, [ebp - 0x30]
call fcn.000142a8
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00013c9c
lea eax, [ebp - 0x24]
call fcn.000142a8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00013c9c
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.000142c0
ret
Function at 0xd5128
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x45
push 0
push 0
dec ecx
jne 0xd5130
mov dword [ebp - 4], eax
lea eax, [ebp - 0x168]
mov edx, dword [0x1836c]
call fcn.0001489c
xor eax, eax
push ebp
push 0xd5841
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
inc dword [eax - 4]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.000768e8
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x158
call fcn.00012b38
xor eax, eax
push ebp
push 0xd5392
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x170]
mov eax, 0xd584c
call fcn.0007a2b0
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x16c]
mov edx, dword [ebp - 0x10]
call fcn.00013f44
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x29bf
call fcn.00019604
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xd5379
lea edx, [ebp - 0x174]
mov eax, 0xd5850
call fcn.0007a2b0
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 0x15c]
call fcn.00014008
je 0xd5361
lea edx, [ebp - 0x178]
mov eax, 0xd5854
call fcn.0007a2b0
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x15c]
call fcn.00014008
je 0xd5361
mov eax, dword [ebp + 8]
cmp byte [eax + 8], 0
jne 0xd5273
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 0x15c]
call fcn.00077404
mov eax, dword [ebp - 0x180]
lea edx, [ebp - 0x17c]
call fcn.000765e4
mov eax, dword [ebp - 0x17c]
push eax
lea edx, [ebp - 0x184]
mov eax, 0xd5858
call fcn.0007a2b0
mov edx, dword [ebp - 0x184]
pop eax
call fcn.00014008
je 0xd5361
lea eax, [ebp - 0x188]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x10]
call fcn.00013f44
mov eax, dword [ebp - 0x188]
xor edx, edx
call fcn.000768b0
lea eax, [ebp - 0x18c]
mov ecx, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x10]
call fcn.00013f44
mov eax, dword [ebp - 0x18c]
call fcn.000140bc
push eax
call sub.kernel32.dll_DeleteFileA
test eax, eax
jne 0xd534e
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0xd5342
lea edx, [ebp - 0x198]
mov eax, 0xd5860
call fcn.0007a2b0
push dword [ebp - 0x198]
push dword [ebp - 0x10]
push dword [ebp - 0x15c]
lea edx, [ebp - 0x19c]
mov eax, 0xd5874
call fcn.0007a2b0
push dword [ebp - 0x19c]
lea edx, [ebp - 0x1a0]
mov eax, dword [ebp - 0xc]
call fcn.000766dc
push dword [ebp - 0x1a0]
lea eax, [ebp - 0x194]
mov edx, 5
call fcn.00013fb8
mov edx, dword [ebp - 0x194]
lea ecx, [ebp - 0x190]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00082e04
mov eax, dword [ebp + 8]
mov dword [eax - 0xc], 3
jmp 0xd5361
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 1
jne 0xd5361
mov eax, dword [ebp + 8]
mov dword [eax - 0xc], 2
lea eax, [ebp - 0x168]
call fcn.00019654
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0xd51d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd5399
lea eax, [ebp - 0x168]
call fcn.00019678
ret
Function at 0xd66cc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0xd66d5
xchg dword [ebp - 4], ecx
push ebx
mov byte [ebp - 0x15], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0xd694b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0xd678b
push 0xd6960
push dword [ebp - 0x14]
lea edx, [ebp - 0x38]
mov eax, 0xd699c
call fcn.0007a2b0
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov al, byte [ebp - 0x15]
call fcn.000779d8
push dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov eax, 0xd69a0
call fcn.0007a2b0
push dword [ebp - 0x40]
lea edx, [ebp - 0x44]
mov al, byte [ebp + 8]
call fcn.000779d8
push dword [ebp - 0x44]
lea edx, [ebp - 0x48]
mov eax, 0xd69a4
call fcn.0007a2b0
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00013fb8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00014458
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.000145ac
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.000826bc
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x14]
call fcn.00013ec0
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x1c]
call fcn.000772cc
mov eax, 0x400
call fcn.0007b580
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0xd68b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
call fcn.0007ac40
push eax
mov eax, dword [ebp - 0x20]
call fcn.0007ac04
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0x1c]
call fcn.000768e8
mov eax, dword [ebp - 0x50]
call fcn.000140bc
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x14]
call fcn.0006b234
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0x1c]
call fcn.00014458
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x24]
call fcn.000145f4
je 0xd6877
mov eax, dword [ebp - 0x14]
call fcn.0006b29c
test al, al
je 0xd6838
push ebp
mov eax, dword [ebp - 0x24]
call fcn.000d5aa4
pop ecx
jmp 0xd6877
cmp dword [ebp - 0xc], 0
je 0xd6877
lea eax, [ebp - 0x5c]
mov ecx, dword [ebp - 0x14]
mov edx, 0xd69ac
call fcn.00014548
mov edx, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
call fcn.00082e78
lea edx, [ebp - 0x64]
mov eax, 2
call fcn.000766dc
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.00082e04
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x20]
call fcn.0007ac20
mov eax, dword [ebp - 0x68]
call fcn.0006b29c
test al, al
je 0xd689c
mov eax, dword [ebp - 0x20]
call fcn.0007ac40
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd68b9
lea eax, [ebp - 0x20]
call fcn.0007b5a4
ret
Function at 0xd69fc
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0xd6a04
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd6d81
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xd6af6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
mov eax, 0xd6d94
call fcn.000768e8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov ecx, 0xd6dac
call fcn.00013f44
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.000140bc
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0xd6aa4
mov eax, dword [0xfb260]
cmp dword [eax], 0
je 0xd6a94
mov edx, 0xd6db8
mov eax, dword [ebp - 0x10]
call fcn.0007913c
jmp 0xd6ad4
push 0xd6db8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteKeyA
jmp 0xd6ad4
lea edx, [ebp - 0x18]
mov eax, 0xd6dc0
call fcn.0007a2b0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.000766dc
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00013f00
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.0007bc10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd6afd
cmp dword [ebp - 0x10], 0
je 0xd6af0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0xd88bc
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xd8a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0xd8a14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
mov eax, 0xd8a48
call fcn.0007a2b0
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 4]
call fcn.00013f44
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.000140bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xd89f2
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 4
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xd8a6c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xd89f2
cmp dword [ebp - 0x10], 4
jne 0xd89f2
cmp dword [ebp - 0x18], 0
je 0xd8995
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.000140bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xd89f2
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x10], 3
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0xd8a6c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xd8a1b
cmp dword [ebp - 0x18], 0
je 0xd8a0e
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
ret