joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409f7f
Capabilities:
Decode data using base64 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
jae 0x409faa
xor eax, eax
jmp 0x40a01f
test eax, eax
je 0x409fa6
test esi, esi
je 0x409fa6
xor ecx, ecx
cmp dword [ebx + 4], ecx
je 0x409fa6
push ecx
push ecx
push esi
test edi, edi
jne 0x409fcf
push ecx
push 1
push dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
jmp 0x40a01f
push edi
push 1
push dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x409fa6
push esi
push edi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x40a00f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.0057cc17
add esp, 0xc
jmp 0x409fa6
mov ecx, dword [esi]
xor eax, eax
inc eax
mov byte [edi + ecx], 0
mov ecx, dword [esi]
mov byte [ecx + edi + 1], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40a032
Capabilities:
Encode data using base64 via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edi, edi
je 0x40a0fe
xor esi, esi
cmp word [edi], si
je 0x40a0fe
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40a0fe
cmp dword [ebp + 0x10], esi
je 0x40a0fe
cmp dword [ebp + 0x14], esi
je 0x40a0fe
cmp dword [ecx + 4], esi
je 0x40a0fe
add eax, eax
push eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push esi
push esi
push 1
push esi
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.0057ae37
mov ebx, eax
pop ecx
test ebx, ebx
je 0x40a0fe
push dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov ecx, ebx
push edi
call fcn.0040a109
pop ecx
pop ecx
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push ebx
push esi
push 1
push esi
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x40a0f3
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
push edi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x40a0f3
mov eax, dword [ebp + 0x14]
xor ecx, ecx
inc esi
mov eax, dword [eax]
mov word [edi + eax*2], cx
push ebx
call fcn.0057ae42
pop ecx
mov eax, esi
jmp 0x40a100
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b08d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a24
call fcn.00571a00
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, ecx
push edi
xor edi, edi
push edi
push edi
push 0x188
push dword [ebx + 0x210]
call esi
push edi
push edi
push 0x184
push dword [ebx + 0x210]
mov dword [ebp - 0x1a24], eax
call esi
mov ecx, edi
movzx eax, word [ecx + 0x602950]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1a0e], ax
test ax, ax
jne 0x40b0d7
lea edi, [ebp - 0x1a0c]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, cx
jne 0x40b0f9
mov eax, dword [0x5d8e78]
mov dword [edi], eax
lea edi, [ebp - 0x1a0c]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40b115
push 0xe
pop ecx
mov esi, str.Groupy.iniGroupyExclusions
lea eax, [ebp - 0x1a18]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1a0c]
push eax
push SysReAllocString
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
mov dword [ebp - 0x1a20], 1
mov edi, ecx
mov dword [ebp - 0x1a14], 0x104
xor eax, eax
push 0x206
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x20e]
push ecx
push eax
call fcn.005744c0
add esp, 0xc
mov dword [ebp - 0x1a1c], 0x104
xor eax, eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x1a1c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x1a20]
push eax
push 0
lea eax, [ebp - 0x1a14]
push eax
lea eax, [ebp - 0x620]
push eax
push edi
push dword [ebp - 0x1a18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ecx, ecx
inc edi
mov word [ebp - 0xa], cx
mov word [ebp - 0x41a], cx
cmp eax, 0x103
je 0x40b218
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x1a10]
call fcn.00403242
push dword [ebp - 0x1a10]
push 0
push 0x180
push dword [ebx + 0x210]
call esi
mov ecx, dword [ebp - 0x1a10]
lea ecx, [ecx - 0x10]
call fcn.0040241e
xor ecx, ecx
jmp 0x40b15a
push dword [ebp - 0x1a18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp - 0x1a24]
push 0x186
push dword [ebx + 0x210]
call esi
mov ecx, ebx
call fcn.0040b256
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40ced4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
inc eax
mov dword [ebp - 0x67c], edx
mov dword [ebp - 0x680], eax
mov esi, ecx
mov dword [ebp - 0x678], esi
push edi
cmp eax, 4
jle 0x40cf0e
xor eax, eax
jmp 0x40d0b1
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.005744c0
lea edx, [ebp - 0x424]
add esp, 0xc
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40cf2f
lea edi, [ebp - 0x424]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40cf47
mov esi, str..
lea eax, [ebp - 0x21c]
push 0x208
push ebx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.005744c0
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d0af
mov edi, dword [ebp - 0x680]
push dword [ebp - 0x67c]
lea eax, [ebp - 0x648]
push eax
call fcn.00583654
pop ecx
pop ecx
test eax, eax
jne 0x40d008
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push dword [ebp - 0x678]
push eax
call fcn.0057c47b
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push 0x5d8e78
push eax
call fcn.0057c773
add esp, 0xc
lea eax, [ebp - 0x648]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c773
add esp, 0xc
lea ecx, [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x16], ax
call fcn.0040be62
jmp 0x40d07b
test byte [ebp - 0x674], 0x10
je 0x40d081
cmp word [ebp - 0x648], 0x2e
je 0x40d081
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push dword [ebp - 0x678]
push eax
call fcn.0057c47b
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push 0x5d8e78
push eax
call fcn.0057c773
add esp, 0xc
lea eax, [ebp - 0x648]
push ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c773
mov edx, dword [ebp - 0x67c]
lea ecx, [ebp - 0x21c]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x16], ax
push edi
call fcn.0040ced4
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x40d0a8
lea eax, [ebp - 0x674]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d09d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
cmp esi, 0xffffffff
jne 0x40cf96
jmp 0x40d0af
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40d0c2
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x688
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
inc ebx
mov dword [ebp - 0x678], edx
mov esi, ecx
mov dword [ebp - 0x680], esi
push edi
cmp ebx, 4
jle 0x40d0f6
xor eax, eax
jmp 0x40d336
push 0x208
xor edi, edi
lea eax, [ebp - 0x424]
push edi
push eax
mov dword [ebp - 0x684], edi
call fcn.005744c0
lea edx, [ebp - 0x424]
mov dword [ebp - 0x67c], edi
add esp, 0xc
mov ecx, esi
sub edx, esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d123
lea edi, [ebp - 0x424]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40d13d
mov esi, str..
lea eax, [ebp - 0x21c]
push 0x208
push ecx
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.005744c0
add esp, 0xc
lea eax, [ebp - 0x674]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [ebp - 0x678]
mov edi, eax
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x40d188
sub esi, ecx
sar esi, 1
cmp edi, 0xffffffff
je 0x40d330
test byte [ebp - 0x674], 0x10
push 0x2e
pop eax
jne 0x40d28a
lea ecx, [ebp - 0x648]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x684]
jne 0x40d1b9
sub ecx, edx
sar ecx, 1
cmp ecx, esi
jl 0x40d304
push esi
push dword [ebp - 0x678]
lea eax, [ebp - 0x648]
push esi
push eax
push 1
push 0xc00
call dword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x40d304
lea eax, [ebp - 0x648]
push 0x2e
push eax
call fcn.00573684
pop ecx
pop ecx
test eax, eax
je 0x40d304
add eax, 2
push 0x5db004
push eax
call fcn.00583654
pop ecx
pop ecx
test eax, eax
jne 0x40d304
push 0x104
push dword [ebp - 0x680]
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c47b
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push 0x5d8e78
push eax
call fcn.0057c773
add esp, 0xc
lea eax, [ebp - 0x648]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c773
add esp, 0xc
lea ecx, [ebp - 0x21c]
xor eax, eax
mov word [ebp - 0x16], ax
call fcn.0040be62
jmp 0x40d2fa
cmp word [ebp - 0x648], ax
je 0x40d304
push 0x104
push dword [ebp - 0x680]
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c47b
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push 0x5d8e78
push eax
call fcn.0057c773
add esp, 0xc
lea eax, [ebp - 0x648]
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0057c773
mov edx, dword [ebp - 0x678]
lea ecx, [ebp - 0x21c]
add esp, 0xc
xor eax, eax
mov word [ebp - 0x16], ax
push ebx
call fcn.0040d0c2
pop ecx
mov dword [ebp - 0x67c], eax
test eax, eax
jne 0x40d329
lea eax, [ebp - 0x674]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d197
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or edi, 0xffffffff
jmp 0x40d197
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x67c]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40dcca
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x4c4]
mov dword [ebp - 0x4c4], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x5da484
push 0x5db200
push 2
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
mov esi, 0x2b4
lea eax, [ebp - 0x4c0]
push esi
push 0
push eax
call fcn.005744c0
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x101
push esi
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x4c0]
xor ecx, ebp
pop esi
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40dd52
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc34
mov eax, dword [0x601ff0]
xor eax, esp
mov dword [esp + 0xc30], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [esp + 0x28]
mov ebx, ecx
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edi, [esp + 0x28]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x40dd91
push 5
pop ecx
mov esi, str.Stardock_
lea eax, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call fcn.0057c7b8
lea edi, [esp + 0x2c]
pop ecx
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40ddbd
mov esi, str.PY_
lea eax, [esp + 0x28]
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.0057c7b8
pop ecx
mov edx, ebx
xor ecx, ecx
mov esi, edx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x40dde3
lea edi, [esp + 0x28]
sub edx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40ddf7
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x28]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x40de1a
mov esi, str..ico
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp word [ebx], cx
je 0x40df2d
mov eax, dword [esp + 0x10]
xor ecx, ecx
or dword [esp + 0xc], 0xffffffff
mov edx, eax
mov word [eax], cx
lea ecx, [esp + 0x838]
push ecx
lea ecx, [esp + 0x63c]
push ecx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xa44]
push ecx
lea ecx, [esp + 0x448]
push ecx
mov ecx, ebx
call fcn.0040c8e8
add esp, 0x14
test eax, eax
je 0x40df24
push 0x10
xor ebx, ebx
lea eax, [esp + 0x2c]
push ebx
push ebx
push 1
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [esp + 0xc]
mov esi, eax
cmp edx, 0xffffffff
je 0x40df30
test esi, esi
jne 0x40df3b
movsd xmm0, qword [0x602ab8]
mov eax, edx
mulsd xmm0, qword [0x5e1638]
shr eax, 8
movzx ecx, al
movzx eax, dl
shl eax, 8
or ecx, eax
shr edx, 0x10
movzx eax, dl
lea edx, [esp + 0x438]
shl ecx, 8
or ecx, eax
cvttsd2si eax, xmm0
push eax
push ecx
lea ecx, [esp + 0x640]
call fcn.0040d347
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40df34
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_CreateIconIndirect]
push edi
mov esi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x40df30
cmp dword [0x61d970], 0
je 0x40df34
push 0xfffffffffffffffc
pop esi
test esi, esi
jne 0x40df3b
call fcn.0040dcca
mov esi, eax
mov ecx, dword [esp + 0xc3c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40e04e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebp + 0xc]
push 6
pop ecx
mov esi, 0x5db234
mov dword [ebp - 0x128], edx
mov edx, dword [ebp + 0x14]
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x12c], eax
xor ecx, ecx
movsb byte es:[edi], byte [esi]
mov al, byte [ebp + ecx - 0x20]
mov byte [ebp + ecx - 0x120], al
inc ecx
test al, al
jne 0x40e088
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e09f
mov ax, word [0x5db1fc]
mov esi, edx
mov word [edi], ax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40e0b2
lea edi, [ebp - 0x120]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e0c2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x120]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e0df
mov word [edi], ax
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40e0ec
lea edi, [ebp - 0x120]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e0fc
mov ecx, ebx
lea eax, [ebp - 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x120]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, dword [ebp - 0x12c]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 1
push eax
push 0
push dword [ebp - 0x128]
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 8]
test eax, eax
je 0x40e172
mov esi, ebx
mov ecx, edx
sub esi, edx
mov al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
test al, al
jne 0x40e168
mov ecx, ebx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e177
sub ecx, esi
jne 0x40e18e
sub ebx, edx
mov al, byte [edx]
mov byte [ebx + edx], al
inc edx
test al, al
jne 0x40e184
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40e1ad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
push ecx
mov dword [ebp - 0x12c], edx
mov edx, str.ForceGlobal
mov dword [ebp - 0x124], ecx
mov ecx, str.Groupy
push 0x5d89e8
push 0
mov dword [ebp - 0x134], edi
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x128], 0xff
call fcn.0040dfe7
add esp, 0xc
cmp eax, 1
jne 0x40e230
mov edx, dword [ebp - 0x12c]
push ecx
mov ecx, dword [ebp - 0x124]
push esi
push dword [ebp - 0x128]
push edi
push ebx
call fcn.0040e04e
add esp, 0x14
jmp 0x40e360
push 6
pop ecx
mov esi, 0x5db234
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsb byte es:[edi], byte [esi]
mov al, byte [ebp + ecx - 0x20]
mov byte [ebp + ecx - 0x120], al
inc ecx
test al, al
jne 0x40e240
lea edi, [ebp - 0x120]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e257
mov ax, word [0x5db1fc]
mov edx, dword [ebp - 0x138]
mov esi, edx
mov word [edi], ax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40e270
lea edi, [ebp - 0x120]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e280
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x120]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e29d
mov edx, dword [ebp - 0x124]
mov esi, edx
mov word [edi], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x40e2b0
lea edi, [ebp - 0x120]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e2c0
mov ecx, edx
lea eax, [ebp - 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
lea eax, [ebp - 0x120]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x128]
push eax
push esi
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 1
push eax
push 0
push dword [ebp - 0x12c]
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e336
mov edx, esi
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40e32c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e33b
sub ecx, edx
jne 0x40e352
sub esi, ebx
mov al, byte [ebx]
mov byte [esi + ebx], al
inc ebx
test al, al
jne 0x40e348
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret
Function at 0x40e371
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x601ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov dword [ebp - 0x20c], ecx
mov edx, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov al, byte [ecx + str.SOFTWAREStardockGroupy]
mov byte [ebp + ecx - 0x104], al
inc ecx
test al, al
jne 0x40e393
push edi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e3ad
mov ax, word [0x5db1fc]
mov esi, edx
mov word [edi], ax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40e3c0
lea edi, [ebp - 0x104]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e3d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x104]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e3ed
mov edx, dword [ebp - 0x20c]
mov esi, edx
mov word [edi], ax
mov al, byte [edx]
inc edx
test al, al
jne 0x40e400
lea edi, [ebp - 0x104]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e410
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.ForceGlobal
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ecx
push str.groupy.ini
xor esi, esi
mov ecx, str.Groupy
push esi
call fcn.0040dfe7
add esp, 0xc
pop edi
cmp eax, 1
jne 0x40e4ac
call fcn.00426b9d
cmp eax, 2
jne 0x40e4ac
test ebx, ebx
jne 0x40e463
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x40e4bc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0x2d
je 0x40e523
lea edx, [ebp - 0x208]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40e490
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e4a3
jmp 0x40e507
test ebx, ebx
jne 0x40e4c4
lea eax, [ebp - 0x104]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40e53c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x104]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0x2d
je 0x40e523
lea edx, [ebp - 0x208]
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40e4ed
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e500
sub ecx, edx
lea eax, [ebp - 0x208]
push ecx
push eax
push 1
push esi
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40e530
push ebx
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00570fd6
mov esp, ebp
pop ebp
ret