joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fb03
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 9
push esi
mov ebx, edx
mov dword [ebp - 0xc], esi
mov edi, ecx
push ebx
push edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40fb34
push ebx
push edi
jmp 0x40fbe2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
test edi, edi
je 0x40fb76
cmp edi, 0xea
je 0x40fb76
cmp edi, 0x7a
jne 0x40fb92
mov eax, dword [ebp - 8]
lea eax, [eax*2 + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x40fb9f
push 8
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40fbe8
mov eax, dword [ebp - 8]
inc eax
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40fbc1
mov ecx, dword [ebp - 4]
mov edx, edi
call fcn.0040fb03
test eax, eax
je 0x40fbc2
inc esi
cmp eax, 0x103
je 0x40fbce
cmp esi, dword [ebp - 0x10]
jb 0x40fb9f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40fbf3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x1c]
xor eax, eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
push ebx
push esi
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x40fc5f
test edi, edi
je 0x40fc5f
cmp dword [edi], 1
je 0x40fc2f
cmp dword [edi], 2
je 0x40fc2f
cmp dword [edi], 7
jne 0x40fc5f
test ebx, ebx
je 0x40fc5f
test esi, esi
je 0x40fc5f
mov eax, dword [ebx]
shr eax, 1
je 0x40fc4c
xor edx, edx
cmp word [esi + eax*2 - 2], dx
je 0x40fc5f
mov word [esi + eax*2], dx
jmp 0x40fc5f
xor eax, eax
cmp dword [ebx], 1
jne 0x40fc5c
mov word [esi + 1], ax
mov byte [esi + 3], al
jmp 0x40fc5f
mov word [esi], ax
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret 0x18
Function at 0x410a2c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x220], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x218], eax
mov dword [eax], edi
mov dword [ebp - 0x214], edi
cmp dword [ebx + 0x10], edi
jne 0x410a78
mov eax, dword [ebx + 0x2c]
mov ebx, dword [ebp - 0x218]
mov dword [ebp - 0x214], eax
jmp 0x410ae1
mov esi, 0x8007000e
call fcn.0041064f
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x410acd
lea ecx, [ebp - 0x214]
push ecx
push dword [ebp + 8]
push edi
push eax
push dword [ebx + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jle 0x410ab0
movzx esi, si
or esi, 0x80070000
mov ebx, dword [ebp - 0x218]
mov eax, esi
push dword [ebp - 0x21c]
not eax
shr eax, 0x1f
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x410ad3
mov ebx, dword [ebp - 0x218]
test esi, esi
js 0x410b6c
mov eax, dword [ebp - 0x214]
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
test esi, esi
jle 0x410b1c
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x410b52
cmp dword [ebp - 0x218], edi
je 0x410b6c
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jle 0x410b50
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x410b6c
cmp esi, 0x80070005
je 0x410b6c
cmp dword [ebx], edi
je 0x410b72
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410b72
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
call fcn.0041dc30
leave
ret 0xc
Function at 0x412201
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x41f024]
xor eax, esp
mov dword [esp + 0x818], eax
mov edx, dword [0x401248]
push ebx
push esi
push edi
call fcn.00411af5
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
push 2
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41241b
lea ecx, [esp + 0x10]
call fcn.00412c77
test eax, eax
je 0x412405
dec dword [0x45fe24]
push 0x20
pop ebx
push 0x5c
pop ecx
call fcn.00412dbf
mov esi, 0x401f68
test eax, eax
jne 0x41227a
mov esi, dword [0x401248]
movzx eax, word [esi]
test ax, ax
je 0x41229e
mov ecx, eax
lea esi, [esi + 2]
call fcn.00412dbf
test eax, eax
je 0x4123f7
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x412284
push 0x5c
pop ecx
call fcn.00412dbf
test eax, eax
je 0x4123f7
xor esi, esi
jmp 0x4122d7
mov cx, word [esp + 0x10]
cmp cx, bx
je 0x4122e4
call fcn.00412df3
test eax, eax
jne 0x4122e4
cmp esi, 0x3ff
jae 0x4123f7
mov word [esp + esi*2 + 0x20], cx
inc esi
lea ecx, [esp + 0x10]
call fcn.00412c77
test eax, eax
jne 0x4122b2
add esi, esi
mov dword [esp + 0x18], 0x100
cmp esi, 0x800
jae 0x41243a
xor eax, eax
mov word [esp + esi + 0x20], ax
call fcn.00412bf9
push 0x3d
pop ecx
call fcn.00412dbf
test eax, eax
je 0x412319
mov ecx, ebx
call fcn.00412dbf
push 0x200
push 0x40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebx, ebx
test esi, esi
setne bl
jmp 0x41238b
test ebx, ebx
je 0x4123da
mov cx, word [esp + 0x10]
call fcn.00412df3
test eax, eax
jne 0x41239c
mov ecx, dword [esp + 0x18]
lea eax, [ecx - 1]
cmp edi, eax
jb 0x412381
lea eax, [ecx + 0x100]
cmp eax, ecx
jb 0x4123d8
mov dword [esp + 0x18], eax
add eax, eax
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
xor ebx, ebx
test eax, eax
setne bl
mov ecx, ebx
test eax, eax
je 0x412398
mov esi, eax
test ecx, ecx
je 0x41238b
mov ax, word [esp + 0x10]
mov word [esi + edi*2], ax
inc edi
lea ecx, [esp + 0x10]
call fcn.00412c77
test eax, eax
jne 0x412333
test ebx, ebx
je 0x4123da
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
call fcn.00411ac1
test eax, eax
js 0x412401
push dword [esp + 0x1c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
lea eax, [esp + 0x28]
push 1
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
je 0x4123e4
mov dword [0x41fe18], 0x84
jmp 0x4123e4
xor ebx, ebx
mov dword [0x41fe18], 0x132
test esi, esi
je 0x4123ef
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jne 0x412249
call fcn.00412c2b
jmp 0x412249
xor ebx, ebx
jmp 0x4123e4
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x412425
mov dword [0x41fe18], 0x83
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dc30
mov esp, ebp
pop ebp
ret
call fcn.0041dd8a
int3
Function at 0x412c77
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x45fe24]
mov ebx, ecx
push edi
mov edi, dword [0x45fe2c]
cmp esi, edi
jne 0x412d99
xor esi, esi
lea eax, [ebp - 4]
cmp dword [0x41f18c], 1
push esi
push eax
jne 0x412cce
push 0x10000
push 0x43fe20
push dword [0x45fe20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412ce9
mov ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x412d27
mov edi, 0x10000
push edi
push 0x41fe20
push dword [0x45fe20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412cfa
mov dword [0x41fe18], 0x82
xor eax, eax
jmp 0x412db4
mov eax, dword [0x461240]
push edi
push 0x43fe20
push dword [ebp - 4]
neg eax
push 0x41fe20
sbb eax, eax
and eax, 0xfde6
push 1
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [0x45fe34]
add eax, ecx
mov dword [0x45fe2c], edi
mov ecx, dword [0x45fe30]
mov dword [0x45fe24], esi
mov dword [0x45fe34], eax
test ecx, ecx
je 0x412d52
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x412d55
push 0x64
pop eax
cmp dword [0x45fe38], eax
je 0x412d97
mov ecx, dword [0x41fe08]
mov dword [0x45fe38], eax
test ecx, ecx
je 0x412d97
push esi
push eax
push 0x402
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x41fe08]
call fcn.0040f937
test eax, eax
jne 0x412d7c
mov edi, dword [0x45fe2c]
mov esi, dword [0x45fe24]
cmp esi, edi
jge 0x412cf3
movzx ecx, word [esi*2 + 0x43fe20]
xor eax, eax
inc esi
inc eax
mov dword [0x45fe24], esi
mov word [ebx], cx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412e0c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x864
mov eax, dword [0x41f024]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [0x461250]
and dword [esp + 4], 0
push ebx
push esi
push edi
push 0
push 9
push 0x110a
push dword [eax + 0x60]
mov edi, edx
mov ebx, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41fe18], 0x88
mov esi, eax
test edi, edi
je 0x412e88
mov ecx, dword [0x461250]
push 0
push edi
push esi
call fcn.0040a839
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.00411bfd
test eax, eax
je 0x412e88
mov dword [0x41fe18], 0x89
jmp 0x412f9e
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x45fe20], eax
cmp eax, 0xffffffff
je 0x412f86
and dword [0x45fe24], 0
lea ecx, [esp + 0x14]
and dword [0x45fe28], 0
push 0
push ecx
push 2
push 0x4020cc
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0x401f98
call fcn.00413469
mov ecx, 0x402094
call fcn.00413469
mov ecx, 0x401fd8
call fcn.00413469
mov ecx, 0x402098
call fcn.00413469
test edi, edi
je 0x412f12
push edi
mov edx, 0x428
lea ecx, [esp + 0x1c]
call fcn.004051fc
mov ecx, dword [esp + 0x10]
jmp 0x412f6a
mov ecx, dword [0x461250]
push esi
call fcn.0040a839
push dword [0x401260]
mov ebx, 0x428
lea ecx, [esp + 0x1c]
mov edx, ebx
mov esi, eax
call fcn.004051fc
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00411af5
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.004131d6
push dword [0x40126c]
mov edx, ebx
lea ecx, [esp + 0x1c]
call fcn.004051fc
lea edx, [esp + 0x18]
mov ecx, esi
call fcn.00411af5
mov ecx, eax
lea edx, [esp + 0x18]
call fcn.004131d6
call fcn.004136a9
push dword [0x45fe20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412f90
mov dword [0x41fe18], 0x8a
test edi, edi
je 0x412f9e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041dc30
mov esp, ebp
pop ebp
ret

Function at 0x412fb9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x461250]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, edx
push ebx
push 9
push 0x110a
mov dword [esp + 0x18], ebx
mov esi, ecx
push dword [eax + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x41fe18], 0x88
test edi, edi
je 0x41301c
mov ecx, dword [0x461250]
push ebx
push edi
push eax
call fcn.0040a839
lea edx, [esp + 0x14]
mov ecx, eax
call fcn.00411bfd
test eax, eax
je 0x41301c
mov dword [0x41fe18], 0x89
jmp 0x413075
push 1
mov edi, 0x4020a0
push edi
call fcn.0040fc6e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyW]
test eax, eax
je 0x41306e
cmp eax, 6
je 0x41305d
xor ecx, ecx
cmp eax, 0x522
sete cl
add ecx, 0x8d
mov dword [0x41fe18], ecx
jmp 0x413067
mov dword [0x41fe18], 0x8f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push edi
call fcn.0040fc6e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41360b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1c
pop esi
push 0x30
mov edi, ecx
pop ebx
mov ecx, esi
mov eax, edi
shr eax, cl
and eax, 0xf
movzx ecx, word [eax*2 + 0x401ffc]
test edx, edx
jne 0x413632
cmp cx, bx
je 0x41363a
call fcn.00413655
xor edx, edx
inc edx
sub esi, 4
jns 0x413618
pop edi
pop esi
test edx, edx
jne 0x41364d
mov ecx, ebx
pop ebx
jmp fcn.00413655
pop ebx
ret

Function at 0x413655
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push esi
mov si, cx
cmp si, 0xa
je 0x413669
inc dword [0x45fe28]
jmp 0x413678
push 0xd
pop ecx
call fcn.00413655
and dword [0x45fe28], 0
mov eax, dword [0x45fe24]
mov ecx, 0x10000
cmp eax, ecx
jae 0x413699
mov word [eax*2 + 0x43fe20], si
mov eax, dword [0x45fe24]
inc eax
mov dword [0x45fe24], eax
pop esi
cmp eax, ecx
je fcn.004136a9
ret

Function at 0x413f28
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x4000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45fe68], eax
test eax, eax
je 0x413fea
mov ecx, 0xfeff
xor edi, edi
mov word [eax], cx
xor eax, eax
inc eax
mov dword [0x45fe6c], 0x2000
mov dword [0x45fe70], eax
mov dword [0x45fe3c], eax
mov dword [0x45fe40], edi
mov dword [0x45fe74], 0x402114
call fcn.00414012
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x413fd4
mov ecx, dword [0x45fe70]
lea eax, [ebp - 4]
push edi
push eax
add ecx, ecx
mov dword [ebp - 4], edi
push ecx
push dword [0x45fe68]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x413fcb
mov dword [0x45fe40], 0x8d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413fde
mov dword [0x45fe40], 0x8a
push dword [0x45fe68]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x45fe40]
mov eax, ecx
sub eax, 0x90
je 0x413fff
dec eax
sub eax, 1
jne 0x414004
mov ecx, 0xd5
pop edi
mov eax, ecx
pop esi
leave
ret 8
Function at 0x41427c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
cmp dword [0x45fe3c], edi
je 0x414424
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0x400
push eax
push 0
lea eax, [ebp - 0x80c]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x814]
mov esi, edi
push eax
mov eax, dword [0x461250]
inc edi
add eax, 0x878
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x414424
mov ecx, 0x1fa8
call fcn.004146b6
push esi
push 0x40211c
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.00402b26
add esp, 0x10
lea ecx, [ebp - 0x808]
call fcn.00414766
mov ecx, dword [0x45fe74]
call fcn.00414766
mov ecx, 0x1fa9
call fcn.004146b6
cmp dword [ebp - 0x814], 0
je 0x414347
mov ecx, dword [0x461250]
lea ecx, [ecx + 0x878]
call fcn.00414766
jmp 0x414351
mov ecx, 0x1fad
call fcn.004146b6
mov ecx, dword [0x45fe74]
call fcn.00414766
mov ecx, dword [ebp - 0x80c]
call fcn.004146dc
mov ecx, 0x1faa
mov esi, eax
call fcn.004146b6
mov ecx, esi
call fcn.004146b6
mov ecx, dword [0x45fe74]
call fcn.00414766
cmp dword [ebp - 0x80c], 1
je 0x4143a4
cmp dword [ebp - 0x80c], 2
je 0x4143a4
cmp dword [ebp - 0x80c], 7
je 0x4143a4
xor ecx, ecx
jmp 0x4143a7
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41441a
mov ecx, dword [0x461250]
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x80c]
add ecx, 0x878
push eax
push ecx
push ecx
push ebx
call fcn.0040fbf3
test eax, eax
jne 0x4143fa
push dword [ebp - 0x80c]
mov edx, dword [ebp - 0x810]
mov ecx, esi
call fcn.00414439
jmp 0x414404
mov dword [0x45fe40], 0x92
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x45fe3c], 0
jne 0x4142a4
jmp 0x414424
mov dword [0x45fe40], 0x90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret
Function at 0x414f6c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x814], eax
xor ebx, ebx
cmp dword [edi + 0x64], ebx
je 0x415107
xor eax, eax
inc eax
mov dword [ebp - 0x818], eax
push eax
push dword [edi + 0x2c]
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00402b26
add esp, 0x10
lea eax, [ebp - 0x81c]
push eax
push 0
push eax
push ecx
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x414ffa
mov eax, dword [ebp - 0x818]
inc eax
mov dword [ebp - 0x818], eax
cmp eax, 0x64
jb 0x414fa3
xor ebx, ebx
cmp eax, 0x64
jne 0x415073
add eax, 0x46
jmp 0x415052
cmp esi, 2
jbe 0x415028
cmp esi, 3
je 0x415024
cmp esi, 4
je 0x41501d
cmp esi, 7
je 0x415028
cmp esi, 0xb
jne 0x415031
and dword [ebp - 0xc], ebx
and dword [ebp - 8], ebx
push 8
jmp 0x415030
and dword [ebp - 0xc], ebx
push 4
jmp 0x415030
xor ebx, ebx
jmp 0x415031
xor eax, eax
mov word [ebp - 0xc], ax
push 2
pop ebx
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push 0
lea eax, [ebp - 0x810]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x415073
mov eax, 0xa9
push 0x10
push 0xa8
push eax
push dword [ebp - 0x814]
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
jmp 0x415107
push 0
push 0
push 0x1004
push dword [edi]
lea eax, [ebp - 0x810]
mov dword [ebp - 0x858], 3
mov dword [ebp - 0x844], eax
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [ebp - 0x850], 0
mov dword [ebp - 0x854], eax
cmp esi, 1
je 0x4150c0
cmp esi, 2
je 0x4150c0
mov dword [ebp - 0x83c], 5
cmp esi, 7
jne 0x4150ca
mov dword [ebp - 0x83c], 4
lea eax, [ebp - 0x858]
push eax
push 0
push 0x104d
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x814], eax
cmp eax, 0xffffffff
je 0x415107
push esi
push ebx
lea ecx, [ebp - 0xc]
mov edx, eax
push ecx
mov ecx, dword [edi]
call fcn.00415f1a
mov edx, dword [ebp - 0x814]
mov ecx, dword [edi]
call fcn.00416290
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 8
Function at 0x415182
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x854
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x818], eax
xor esi, esi
mov dword [ebp - 0x814], ebx
xor eax, eax
inc esi
mov byte [edi + 0x5c], al
cmp dword [ebx + 0x20], eax
je 0x415308
mov dword [ebp - 0x84c], eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push dword [ebx + 0x10]
mov dword [ebp - 0x83c], 0x400
push 0x1073
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebx + 0x20]
xor esi, esi
cmp word [eax], si
jne 0x415203
push 0x4b
jmp 0x4152e7
lea ecx, [ebp - 0x810]
push ecx
push esi
push ecx
push ecx
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
push 2
pop ebx
cmp eax, ebx
je 0x415224
push 0x4a
jmp 0x4152e7
lea eax, [ebp - 0x80c]
push eax
push 0
lea eax, [ebp - 0x808]
push eax
push ecx
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
cmp dword [ebp - 0x808], 1
je 0x415260
cmp dword [ebp - 0x808], ebx
je 0x415260
cmp dword [ebp - 0x808], 7
je 0x415260
xor ebx, ebx
mov eax, dword [ebp - 0x80c]
add eax, ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4152e5
lea eax, [ebp - 0x80c]
push eax
push ebx
lea eax, [ebp - 0x808]
push eax
push ecx
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
test eax, eax
jne 0x4152d5
push dword [ebp - 0x80c]
push ebx
push dword [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x814]
push dword [eax + 0x20]
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4152d5
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4152d5
xor esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x49
pop eax
test esi, esi
jne 0x415308
jmp 0x4152e8
push 0x76
pop eax
lea ecx, [ebp - 0x804]
push ecx
push 0x10
push 0x48
push eax
push dword [ebp - 0x818]
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x18
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 8
Function at 0x415a8f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x818], ebx
push edi
mov esi, ecx
push edi
push 0x1032
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
cmp eax, 1
push 0x34
sete cl
push 0x33
lea ecx, [ecx*2 + 0x32]
push ecx
push ebx
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
cmp eax, 6
jne 0x415c00
push edi
push edi
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 0x814], 0xffffffff
push 2
push 0xffffffffffffffff
push 0x100c
push dword [esi]
mov dword [ebp - 0x810], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
je 0x415bd4
mov ebx, dword [ebp - 0x814]
test edi, edi
je 0x415b62
and dword [ebp - 0x84c], 0
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x854]
push eax
push edi
push 0x1073
push dword [esi]
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x415b6b
xor eax, eax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80c]
push eax
push dword [esi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x415ba7
test edi, edi
je 0x415b94
push eax
push edi
push 0x1008
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x415bb3
mov ecx, dword [esi]
xor edx, edx
push 1
push 0
push 0
call fcn.00415f1a
xor ebx, ebx
jmp 0x415bb3
mov dword [ebp - 0x810], 1
mov ebx, edi
push 2
push ebx
push 0x100c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x415b2a
mov ebx, dword [ebp - 0x818]
push 0
push 1
push 0xb
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x810], 0
je 0x415c00
push 0x10
push 0x58
push 0x59
push ebx
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x14
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 4