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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e6420
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e634c
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e633a
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e633a
cmp dword [ebp - 0x1c], 4
jne 0x4e633a
cmp dword [ebp - 0x18], 4
jne 0x4e633a
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e63fd
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e63f5
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 1
jne 0x4e6386
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x11]
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 0xd], 1
jmp 0x4e63fd
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 6
jne 0x4e63a5
mov eax, dword [ebp - 0x14]
fld qword [eax + 0x18]
call fcn.00403080
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 0xd], 1
jmp 0x4e63fd
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 2
jne 0x4e63bf
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x14]
mov dword [eax], edx
mov byte [ebp - 0xd], 1
jmp 0x4e63fd
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 3
jne 0x4e63eb
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.004032c4
mov edx, dword [ebp + 8]
mov dword [edx], eax
cmp dword [ebp - 0x18], 0
jle 0x4e63fd
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x4e63fd
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x4e63fd
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6427
lea eax, [ebp - 0x20]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e6434
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e6602
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e6574
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e6565
lea eax, [ebp - 0x20]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4e6565
cmp dword [ebp - 0x24], 7
jne 0x4e6565
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x20]
call fcn.00404da4
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov edx, dword [ebp - 0x28]
mov eax, 0x4e661c
call fcn.00404d5c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jle 0x4e6544
mov eax, dword [ebp - 0x28]
call fcn.00404a14
mov ecx, eax
sub ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
call fcn.00404cb8
lea eax, [ebp - 0x28]
mov ecx, 0x4e6628
mov edx, 0x4e6634
call fcn.004b989c
test al, al
jne 0x4e6544
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e65d2
mov byte [ebp - 0xd], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e65d2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 4
jne 0x4e65ac
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 0xd], 1
jmp 0x4e65d2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x10], 3
jne 0x4e65d2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
call fcn.0040aa44
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6609
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404768
lea eax, [ebp - 0x18]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e7d5c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e7ed5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e7e00
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e7dee
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e7eaa
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4e7eaa
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e7e42
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e7eaa
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 5
mov eax, dword [ebp + 8]
call fcn.00402b10
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.00402d68
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e7e9d
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7edc
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e7ee8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e8050
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e7f9e
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e7f8c
cmp byte [ebp + 8], 0
je 0x4e7f5c
mov dword [ebp - 0x20], 1
jmp 0x4e7f61
xor eax, eax
mov dword [ebp - 0x20], eax
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8025
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4e8025
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e7fdc
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8025
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 1
mov al, byte [ebp + 8]
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x11], al
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e8018
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8057
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e8064
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e81a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e8103
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e80f4
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e817a
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e8131
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e817a
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 2
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e816d
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e81ac
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e81b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e83a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e82c7
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e82b5
lea edx, [ebp - 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x14]
push 0x4e83bc
push 0x4e83bc
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404ad4
lea eax, [ebp - 0x14]
mov ecx, 0x4e83bc
mov edx, 0x4e83c8
call fcn.004b989c
test al, al
jne 0x4e8250
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00405038
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
call fcn.00405038
mov eax, dword [ebp - 0x20]
call fcn.004050c4
add eax, eax
push eax
mov eax, dword [ebp - 0x20]
call fcn.004050b4
push eax
push 7
push 0
mov eax, dword [ebp - 0x24]
call fcn.004050b4
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8369
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x4e8369
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e8309
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8369
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 4
mov dl, 1
mov eax, dword [0x41b2d0]
call fcn.00403888
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e835c
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e83a8
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404e7c
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret
Function at 0x4e83cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
mov eax, dword [ebp + 8]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e8550
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e8483
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e8471
mov eax, dword [ebp + 8]
call fcn.00404a14
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00404c14
push eax
push 1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e851d
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e84b1
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e851d
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 3
mov eax, dword [ebp + 8]
call fcn.00404a14
inc eax
call fcn.00402b10
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 8]
call fcn.00404a14
mov ecx, eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x14]
call fcn.0040a8d8
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e8510
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8557
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
lea eax, [ebp + 8]
call fcn.00404744
ret
Function at 0x4e8820
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c04
mov eax, dword [ebp - 0xc]
call fcn.00404c04
xor eax, eax
push ebp
push 0x4e896e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x88], 0
je 0x4e88c2
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
je 0x4e88b0
push 8
lea eax, [ebp + 8]
push eax
push 3
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404c14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete byte [ebp - 0xd]
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8943
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x74]
call fcn.004047dc
mov byte [ebp - 0xd], 0
mov cl, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004e53dc
test al, al
jne 0x4e88f4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
jmp 0x4e8943
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004e3bc4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 6
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edx
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x7b], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7a], 0
jne 0x4e8936
mov eax, dword [ebp - 4]
call fcn.004e756c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004e53dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8975
lea eax, [ebp - 0x1c]
call fcn.00404744
lea eax, [ebp - 0x14]
call fcn.00404744
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404768
ret

Function at 0x516714
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0x2d
jne 0x516746
mov eax, dword [ebp - 8]
call fcn.004050c4
test eax, eax
jle 0x51673f
mov eax, dword [ebp - 8]
call fcn.00516920
mov dword [ebp - 0xc], eax
jmp 0x51677f
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x51677f
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov al, byte [ebp - 1]
mov eax, dword [eax*4 + 0x532fc0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.004103c4
test al, al
jne 0x51677f
cmp dword [ebp - 0xc], 0
je 0x51677f
lea eax, [ebp - 0xc]
call fcn.00516788
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x516acc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
test dl, dl
je 0x516ae1
add esp, 0xfffffff0
call fcn.00403c30
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403888
xor ecx, ecx
mov dl, 1
mov eax, dword [0x463100]
call fcn.00463218
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov byte [eax + 0x42], 1
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x516b68
call sub.shell32.dll_SHGetFileInfoA
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00463574
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dl, 3
call fcn.0046420c
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x516b5e
call fcn.00403c88
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x518608
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51869d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404744
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [0x535518]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x518684
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x518684
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.004049c4
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040ece8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5186a4
lea eax, [ebp - 0x110]
call fcn.00404744
ret