joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6bfe50
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
call fcn.006bcd30
test eax, eax
jne 0x6bfe6e
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x6dfbd0]
push ebx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0x65
xor ebx, ebx
push ecx
mov dword [ebp - 0x1c], 0x6d5b2c
mov dword [ebp - 0x18], str.62ED02D1_A332_4696_AC4B_8236667A2053
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.006bfb90
cmp eax, ebx
jl 0x6bffa0
push esi
push 0x20006
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.006bba80
cmp eax, ebx
je 0x6bfeea
push eax
call fcn.006bb610
mov esi, eax
mov eax, dword [ebp - 0x18]
add esp, 4
cmp eax, ebx
je 0x6bfedf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x18]
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.62ED02D1_A332_4696_AC4B_8236667A2053
push esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.006bb9e0
cmp eax, ebx
je 0x6bff40
push eax
call fcn.006bb610
mov edi, eax
mov eax, dword [ebp - 0xc]
add esp, 4
cmp eax, ebx
je 0x6bff2a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x6bff35
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0xc]
push str.LocalService
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [ebp - 0xc]
cmp byte [ebp + 8], bl
je 0x6bff90
push 1
lea eax, [edi + 0x40]
push eax
push str.LocalService
call fcn.006bbbd0
mov ecx, edi
call fcn.006bcb80
lea ecx, [ebp - 0xc]
test eax, eax
jne 0x6bff90
call fcn.006bd020
lea ecx, [ebp - 0x18]
call fcn.006bd020
pop esi
pop ebx
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 4
call fcn.006bd020
lea ecx, [ebp - 0x18]
call fcn.006bd020
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x6c0160
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.006bcd30
test eax, eax
jne 0x6c0178
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x20006
xor esi, esi
push str.AppID
push SysReAllocString
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.006bba80
cmp eax, esi
je 0x6c01c1
push eax
call fcn.006bb610
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 4
cmp eax, esi
je 0x6c01b9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x10]
push 0x20006
push str.62ED02D1_A332_4696_AC4B_8236667A2053
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.006bba80
cmp eax, esi
je 0x6c0212
push eax
call fcn.006bb610
mov edi, eax
mov eax, dword [ebp - 0x1c]
add esp, 4
cmp eax, esi
je 0x6c01fe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x6c0209
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x6dfbd0]
lea eax, [ebp - 0x20]
push eax
push esi
push 0x65
push ecx
mov dword [ebp - 0x20], 0x6d5b2c
mov dword [ebp - 0x1c], str.62ED02D1_A332_4696_AC4B_8236667A2053
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.006bfb90
mov dword [ebp - 4], eax
cmp edi, esi
je 0x6c0256
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
je 0x6c0261
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6c0270
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push eax
mov esi, ecx
mov byte [ebp - 1], 0
call fcn.006bfe50
test eax, eax
jne 0x6c02e5
push edi
push 1
push str.ServicesActive
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x6c02e4
push ebx
push 0xf01ff
add esi, 0x40
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x6c02e0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x6c02dd
mov byte [ebp - 1], 1
push esi
call ebx
push edi
call ebx
pop ebx
pop edi
xor eax, eax
cmp byte [ebp - 1], al
pop esi
setne al
dec eax
and eax, 0x80004005
mov esp, ebp
pop ebp
ret 4
Function at 0x6c0820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
cmp eax, 0xffffffff
je 0x6c0880
push 0x20019
push 2
push edi
push 1
add ecx, 4
push ecx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
cmp esi, 0xffffffff
je 0x6c0880
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6c086a
lea edi, [eax + 1]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x6c0880
mov eax, dword [ebx]
pop edi
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov dword [ebx], eax
pop ebx
pop ebp
ret 0x10

Function at 0x6c1060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x214], eax
xor ebx, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x6c1086
sub eax, edx
sar eax, 1
add eax, eax
mov dword [ebp - 0x210], eax
xor eax, eax
nop
movzx ecx, word [eax + 0x6d7b78]
mov word [ebp + eax - 0x204], cx
add eax, 2
cmp cx, bx
jne 0x6c10a0
mov eax, esi
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x6c10c0
push edi
lea edi, [ebp - 0x204]
sub eax, esi
add edi, 0xfffffffe
jmp 0x6c10e0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x6c10e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x20c]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp - 0x20c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
push edx
push 1
push ebx
push 0x6d7b68
push eax
call esi
mov edx, dword [ebp - 0x20c]
push 4
lea ecx, [ebp - 0x208]
push ecx
push 3
push ebx
push str.Display
push edx
mov dword [ebp - 0x208], ebx
call esi
pop edi
test eax, eax
jne 0x6c1170
lea ebx, [eax + 1]
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.006c7820
mov esp, ebp
pop ebp
ret 8
Function at 0x6c11a0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6ded78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], edi
cmp dword [ebx], edi
jne 0x6c11de
xor esi, esi
jmp 0x6c11e1
lea esi, [ebx + 4]
cmp esi, edi
je 0x6c1263
test esi, esi
je 0x6c1218
sub esi, ebx
sub esi, 3
lea eax, [esi - 1]
cmp eax, 0x1f3
ja 0x6c1218
mov ecx, dword [ebx]
cmp esi, ecx
jae 0x6c1204
lea esi, [esi + ebx + 4]
jmp 0x6c1206
xor esi, esi
cmp eax, ecx
jae 0x6c121a
cmp eax, 0xffffffff
je 0x6c121a
mov edi, dword [ebx + eax*4 + 0x1f8]
jmp 0x6c121c
xor esi, esi
xor edi, edi
push 0x31
lea ecx, [ebp - 0x18]
call fcn.006c0670
mov edx, dword [ebp - 0x18]
mov eax, str.SystemCurrentControlSetControlMediaCategories_
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x6c1230
mov eax, dword [edi + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.006c0e10
mov edi, dword [ebp - 0x18]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x6c125f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x6c11e9
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x6c1280
mov eax, dword [ebp - 0x14]
push eax
call fcn.006c743e
push edi
call fcn.006c743e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6c1ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x418]
push eax
push 0x20119
push 0
push 0x6d7b78
mov esi, 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c1f9f
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x420]
push eax
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6c1f92
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x414]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x6c1f87
test ax, ax
je 0x6c1f83
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x6c1f87
add ecx, 4
add edx, 4
test ax, ax
jne 0x6c1f61
xor eax, eax
jmp 0x6c1f8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x6c1f92
xor esi, esi
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.006c7820
mov esp, ebp
pop ebp
ret 4
Function at 0x6c2990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x20106
xor edi, edi
push edi
push 0x6d7b78
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c29f4
mov eax, dword [ebp + 8]
push esi
test eax, eax
jne 0x6c29fd
xor esi, esi
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov ecx, dword [ebp - 4]
push eax
push esi
push 1
push 0
push str.Locale
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x6c29e2
lea edi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x6c29bf
push 0x8007000e
call fcn.006bb270
int3
Function at 0x6c2cb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x6c2ccb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x6c2d02
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x6c2cfe
jmp 0x6c2cf0
cmp esi, eax
jae 0x6c2d02
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x6c2cf0
cmp esi, eax
jb 0x6c2d09
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x6c2ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x6c2f16
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x6c2f27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret
push esi
jmp 0x6c2f30
lea ecx, [ebp - 0x20c]
push 0x6d7f34
push ecx
call fcn.006c8a8b
add esp, 8
test eax, eax
je 0x6c2f5b
lea edx, [ebp - 0x230]
push edx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x6c2f30
jmp 0x6c2f92
mov eax, dword [ebp - 0x228]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x6c2f82
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop edi
call fcn.006c7820
mov esp, ebp
pop ebp
ret
Function at 0x6c2fb0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6c304c
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push eax
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6c3003
inc dword [ebp - 4]
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareConexant
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x6c3042
push 4
lea edx, [ebp - 4]
push edx
push 4
push eax
mov eax, dword [ebp - 8]
push str.CallApps
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x6c4d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1400
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ded78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test ebx, ebx
je 0x6c4e5d
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6c4e5d
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x6c4e5d
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x6c4e5d
push esi
push edi
xor eax, eax
push ebx
push 0x6de9b0
mov word [ecx], ax
call fcn.006c4840
add esp, 0x10
cmp eax, 1
je 0x6c4dd5
push esi
push edi
push ebx
push 0x6de510
call fcn.006c4840
add esp, 0x10
cmp eax, 1
jne 0x6c4e3e
lea ecx, [ebp + 0xc]
push ecx
push 0x20119
push 0
push edi
push ebx
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c4e3e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6c4e3e
mov ecx, dword [ebp + 0x18]
lea edx, [ebp + 0x14]
push edx
push ecx
lea edx, [ebp + 0x10]
push edx
push 0
push esi
mov edi, 4
push eax
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6c4e3e
cmp dword [ebp + 0x10], edi
jne 0x6c4e3e
cmp dword [ebp + 0x14], edi
jne 0x6c4e3e
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6c4e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1420
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6ded78]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, 0x80004004
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x6c5026
test edi, edi
je 0x6c5026
test ebx, ebx
je 0x6c5026
test edx, edx
je 0x6c5026
test ecx, ecx
je 0x6c5026
push ebx
push edi
xor eax, eax
push esi
push 0x6de9b0
mov word [ecx], ax
call fcn.006c4840
add esp, 0x10
cmp eax, 1
je 0x6c4f39
push ebx
push edi
push esi
push 0x6de510
call fcn.006c4840
add esp, 0x10
cmp eax, 1
jne 0x6c5016
lea ecx, [ebp - 0x418]
push ecx
push 0x20119
push 0
push edi
push esi
mov dword [ebp - 0x418], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c5016
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x6c5016
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push ebx
mov edi, 1
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x420], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6c5016
cmp dword [ebp - 0x41c], edi
jne 0x6c5016
cmp dword [ebp - 0x420], 0x400
ja 0x6c5016
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x6c4fed
push 0x8007000e
call fcn.006bb270
mov edx, dword [ebp - 0x424]
push edx
lea ecx, [ebp - 0x430]
call fcn.006c30b0
test eax, eax
jne 0x6c500f
mov ecx, dword [ebp - 0x42c]
or eax, 0xffffffff
mov word [ecx], ax
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
jmp 0x6c5026
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006c7820
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6c5050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1450
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ded78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x6c515e
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x6c515e
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x6c515e
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x6c515e
push ebx
push esi
xor eax, eax
push edi
push 0x6de510
mov word [ecx], ax
call fcn.006c4840
add esp, 0x10
cmp eax, 1
jne 0x6c513f
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x6c513f
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c513f
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x6c513f
push 4
lea edx, [ebp + 0x18]
push edx
push 4
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6c513f
mov edx, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov word [edx], cx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6c5180
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d1470
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ded78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0xc]
mov eax, 0x80004004
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test edi, edi
je 0x6c52c1
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x6c52c1
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x6c52c1
cmp dword [ebp + 0x18], 0
je 0x6c52c1
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x6c52c1
push ebx
push esi
xor eax, eax
push edi
push 0x6de510
mov word [ecx], ax
call fcn.006c4840
add esp, 0x10
cmp eax, 1
jne 0x6c52a2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
push esi
push edi
push eax
mov eax, dword [ecx + 0x24]
mov dword [ebp + 0x10], 0
call eax
cmp word [ebp + 0x10], 0xffff
jne 0x6c52a2
lea ecx, [ebp + 0xc]
push ecx
push 0x20106
push 0
push esi
push edi
mov dword [ebp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6c52a2
cmp dword [ebp + 0xc], eax
je 0x6c52a2
mov edx, dword [ebp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
jne 0x6c526a
push 0x8007000e
call fcn.006bb270
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x6c529b
mov eax, dword [ebp + 0x1c]
or edx, 0xffffffff
mov word [eax], dx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6c7820
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6ded78]
jne 0x6c782a
repz ret
jmp fcn.006ca5ff

Function at 0x6c8eb8
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub esp, 0xc
call fcn.0056b7c7
add esp, 0xc
jmp 0x6c9009
push 0x58
push 0x6dc730
call fcn.006c9650
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor esi, esi
cmp dword [0x6e2208], esi
outsb dx, byte [esi]
add byte [ebp + 0xb], dh
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x6c8eda
mov dword [ebp - 0x1c], esi
jmp 0x6c8f10
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x6c8ed5
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x6c8ed5
cmp dword [eax + 0x400074], 0xe
jbe 0x6c8ed5
xor ecx, ecx
cmp dword [eax + 0x4000e8], esi
setne cl
mov dword [ebp - 0x1c], ecx
call fcn.006cabfe
test eax, eax
jne 0x6c8f21
push 0x1c
call fcn.006c8e73
pop ecx
call fcn.006cc1d9
test eax, eax
jne 0x6c8f32
push 0x10
call fcn.006c8e73
pop ecx
call fcn.006ce251
mov dword [ebp - 4], esi
call fcn.006ce00c
test eax, eax
jns 0x6c8f4b
push 0x1b
call fcn.006ca9d2
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x6e2204], eax
call fcn.006cdfb4
mov dword [0x6e0318], eax
call fcn.006cdf06
test eax, eax
jns 0x6c8f71
push 8
call fcn.006ca9d2
pop ecx
call fcn.006cdcd4
test eax, eax
jns 0x6c8f82
push 9
call fcn.006ca9d2
pop ecx
push 1
call fcn.006ca7b1
pop ecx
cmp eax, esi
je 0x6c8f95
push eax
call fcn.006ca9d2
pop ecx
call fcn.006cdc8e
test byte [ebp - 0x3c], 1
je 0x6c8fa6
movzx ecx, word [ebp - 0x38]
jmp 0x6c8fa9
push 0xa
pop ecx
push ecx
push eax
push esi
push 0x400000
call fcn.006c05d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], esi
jne 0x6c8fc4
push eax
call fcn.006ca988
call fcn.006ca9b4
jmp 0x6c8ff9
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.006c9695
ret
call fcn.006ce29d
jmp 0x6c8e9c