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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push edi
push eax
xor esi, esi
mov eax, 0x6c71d4
push esi
push esi
test ebx, ebx
mov dword [ebp - 4], esi
push esi
cmovne eax, ebx
mov dword [ebp - 8], esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x482718
cmp dword [ebp - 4], esi
jbe 0x482721
push dword [ebp - 4]
call fcn.0056e306
mov edi, eax
pop ecx
test edi, edi
je 0x482721
lea eax, [ebp - 4]
test ebx, ebx
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
mov eax, 0x6c71d8
cmovne eax, ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48270c
cmp dword [ebp - 8], 1
je 0x482700
cmp dword [ebp - 8], 2
jne 0x48270c
mov ecx, dword [ebp + 0x10]
push edi
call fcn.004041d0
xor esi, esi
inc esi
push 1
push edi
call fcn.0056df27
pop ecx
pop ecx
jmp 0x482721
xor ecx, ecx
inc ecx
cmp eax, 2
cmove esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x48272c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x68f874
call fcn.0056e23b
mov esi, dword [ebp + 8]
push 2
pop edi
test esi, esi
je 0x482802
push esi
call fcn.00647fd1
pop ecx
test eax, eax
je 0x482802
lea ecx, [ebp - 0x2c]
call fcn.004173bc
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00564e00
test eax, eax
lea eax, [ebp - 0x2c]
push esi
je 0x482776
push str.HKEY_CURRENT_USER_X64SoftwareMicrosoftWindowsCurrentVersionExtSettings_s
jmp 0x48277b
push str.HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExtSettings_s
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0x20019
push eax
call fcn.00567b83
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4827f4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 4
push eax
push ebx
push str.Flags
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4827ed
cmp dword [ebp - 0x30], 4
jne 0x4827ed
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x4827eb
cmp eax, 0x40
je 0x4827eb
cmp eax, 0x64
je 0x4827eb
cmp eax, 0x200
jne 0x4827ed
mov edi, ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
jmp 0x482804
xor edi, edi
mov eax, edi
call fcn.0056e1e5
ret 4
Function at 0x48280e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x2c
mov eax, 0x68f874
call fcn.0056e23b
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x4828e0
push edi
call fcn.00647fd1
pop ecx
test eax, eax
je 0x4828e0
lea ecx, [ebp - 0x2c]
call fcn.004173bc
mov dword [ebp - 4], esi
call fcn.00564e00
test eax, eax
lea eax, [ebp - 0x2c]
push edi
je 0x482855
push 0x6c6cc0
jmp 0x48285a
push 0x6c6d60
push eax
call fcn.0041ccda
add esp, 0xc
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push 0x20019
push eax
call fcn.00567b83
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4828d4
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], esi
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], esi
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 4
push eax
push esi
push 0x6c6b74
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4828cd
cmp dword [ebp - 0x30], 4
jne 0x4828cd
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x4828ca
cmp eax, 0x40
je 0x4828ca
cmp eax, 0x64
je 0x4828ca
cmp eax, 0x200
jne 0x4828cd
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041786a
mov eax, esi
call fcn.0056e1e5
ret 4
Function at 0x485566
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push 0x340
mov eax, 0x68fe6b
call fcn.0056e23b
mov dword [ebp - 0x344], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x34c], esi
xor edi, edi
xor ebx, ebx
call fcn.00485308
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x340]
call fcn.00485388
xor eax, eax
inc eax
mov byte [ebp - 4], al
test esi, esi
jne 0x4855bb
push 0x10000001
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x48571e
mov eax, dword [ebp - 0x344]
add eax, 0x278
cmp dword [eax + 0x14], 8
jb 0x4855ce
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x340]
call fcn.00485dec
test eax, eax
je 0x485635
lea eax, [ebp - 0xb0]
push eax
push 0
jmp 0x485626
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x4855f6
sub eax, 1
jne 0x48561d
cmp dword [ebp - 0x98], 8
lea eax, [ebp - 0xac]
push esi
cmovae eax, dword [ebp - 0xac]
push eax
call fcn.0064806f
neg eax
pop ecx
sbb al, al
inc al
pop ecx
test al, al
jne 0x485677
lea eax, [ebp - 0xb0]
push eax
push 1
lea ecx, [ebp - 0x340]
call fcn.00485cc5
test eax, eax
jne 0x4855e9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x10000002
push 1
pop eax
cmove edi, eax
cmp dword [ebp + 0xc], eax
jne 0x48571e
push dword [ebp - 0x34c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48570e
call esi
cmp eax, 2
je 0x48570e
xor edi, edi
jmp 0x48571e
mov esi, dword [ebp - 0xd4]
and dword [ebp - 0x348], 0
push esi
call fcn.0056e306
push esi
mov ebx, eax
push 0
push ebx
call fcn.00644240
mov eax, dword [ebp - 0x344]
add esp, 0x10
push 0
push 0
push dword [ebp - 0xdc]
push dword [eax + 0x258]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x348]
push eax
mov eax, dword [ebp - 0x344]
push esi
push ebx
push dword [eax + 0x258]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x485713
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
cmovae eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x485709
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x485709
call esi
cmp eax, 3
je 0x485709
xor edi, edi
jmp 0x485713
xor edi, edi
inc edi
jmp 0x485713
xor eax, eax
lea edi, [eax + 1]
test ebx, ebx
je 0x48571e
push ebx
call fcn.0056e30f
pop ecx
lea ecx, [ebp - 0x340]
call fcn.00485548
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x340]
call fcn.004853f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.004d402c
mov eax, edi
call fcn.0056e1e5
ret 8
Function at 0x485ab3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push edi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ecx], esi
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
push esi
push dword [ebx + 0x260]
push dword [ebx + 0x258]
call edi
mov dword [ebp - 0x18], esi
jmp 0x485b45
dec dword [ebx + 0x270]
lea eax, [ebp - 0x20]
push 8
push esi
push eax
call fcn.00644240
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
push 8
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x258]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485bf1
mov eax, dword [ebp - 0x20]
and eax, 0x3f
cmp eax, 1
je 0x485b45
cmp eax, 3
jne 0x485bb1
cmp dword [ebx + 0x270], esi
jg 0x485b01
dec dword [ebx + 0x270]
mov eax, dword [ebx + 0x25c]
test eax, eax
je 0x485be6
push esi
push esi
push eax
push dword [ebx + 0x258]
call edi
push esi
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x258]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485bf1
mov eax, dword [ebp - 0xc]
push 1
push esi
push esi
push dword [ebx + 0x258]
mov dword [ebx + 0x25c], eax
call edi
mov dword [ebx + 0x260], eax
mov dword [ebx + 0x270], 0x1c0
jmp 0x485aec
push 1
push esi
push esi
push dword [ebx + 0x258]
call edi
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebx + 0x260], eax
push dword [ebx + 0x258]
call edi
push 1
push esi
push esi
push dword [ebx + 0x258]
call edi
mov ecx, dword [ebp - 0x24]
xor esi, esi
inc esi
mov dword [ecx], eax
jmp 0x485bf1
push 0x10000002
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret 4
Function at 0x485cc5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x6c], eax
push 0x60
lea eax, [ebp - 0x64]
mov dword [ebp - 0x68], esi
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
call fcn.00644240
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, esi
je 0x485dc1
sub eax, 1
jne 0x485d1f
lea eax, [edi + 0x268]
mov ecx, edi
push eax
call fcn.00485ab3
test eax, eax
je 0x485dd8
push ebx
lea ebx, [edi + 0x268]
push esi
push esi
push dword [ebx]
push dword [edi + 0x258]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x68]
push eax
push 8
lea eax, [ebp - 0x74]
push eax
push dword [edi + 0x258]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485dd7
cmp dword [ebp - 0x74], 0x204c5255
jne 0x485daf
push esi
push esi
push dword [ebx]
push dword [edi + 0x258]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebx]
push esi
mov dword [edi + 0x264], eax
lea eax, [ebp - 0x68]
push eax
push 0x60
lea eax, [ebp - 0x64]
push eax
push dword [edi + 0x258]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485dd7
mov eax, dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x6c]
shl eax, 7
mov dword [edi + 0x26c], eax
lea eax, [ebp - 0x64]
push eax
call fcn.00485777
test eax, eax
jne 0x485dd4
push ebx
mov ecx, edi
call fcn.00485ab3
test eax, eax
jne 0x485d26
jmp 0x485dd7
lea eax, [edi + 0x268]
mov ecx, edi
push eax
call fcn.00485c06
jmp 0x485d17
xor esi, esi
inc esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret 8

Function at 0x485f8f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485fc8
add esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
jb 0x485f9c
xor eax, eax
jmp 0x485fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48605c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor esi, esi
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x486095
add esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
jb 0x486069
xor eax, eax
jmp 0x48609b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x487af4
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x9c], eax
jne 0x487b27
push eax
push eax
push esi
push 0x487b6d
push eax
push eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc0], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x9c], eax
pop esi
ret

Function at 0x489e93
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
push 1
lea esi, [edi + 0x144]
mov ecx, esi
call fcn.00578ef5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
lea ecx, [edi + 0x9f4]
call fcn.0048ad86
mov ecx, dword [0x79670c]
test ecx, ecx
je 0x489ed7
mov eax, dword [ecx]
call dword [eax + 0x7c]
push ebx
xor ebx, ebx
push ebx
push ebx
push edi
push 0x48a935
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x9f0], eax
push 2
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0xfa
push dword [edi + 0x9f0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x489ef0
mov ecx, dword [0x79670c]
pop ebx
test ecx, ecx
je 0x489f2a
mov eax, dword [ecx]
call dword [eax + 0x80]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov ecx, edi
call fcn.0048a7e9
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48ce91
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
mov ecx, dword [0x79670c]
push edi
test ecx, ecx
je 0x48ceaa
mov eax, dword [ecx]
call dword [eax + 0x7c]
xor edi, edi
push edi
push edi
push esi
push 0x48da64
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xa58], eax
push 2
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0xfa
push dword [esi + 0xa58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x48cec2
mov ecx, dword [0x79670c]
pop edi
pop esi
test ecx, ecx
je 0x48cefd
mov eax, dword [ecx]
call dword [eax + 0x80]
mov esp, ebp
pop ebp
ret
Function at 0x48fc20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x144]
mov ecx, esi
call fcn.00587f8e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi]
xor ebx, ebx
push ebx
push ebx
mov ecx, esi
call dword [eax + 0x3c]
lea ecx, [edi + 0x9e0]
call fcn.004901a3
mov ecx, dword [0x79670c]
test ecx, ecx
je 0x48fc6e
mov eax, dword [ecx]
call dword [eax + 0x7c]
push ebx
push ebx
push edi
push 0x48ff25
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xfa
mov dword [edi + 0x3a4], eax
push eax
jmp 0x48fcae
push 2
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
push 0xfa
push dword [edi + 0x3a4]
call ebx
cmp eax, 0x102
je 0x48fc92
mov ecx, dword [0x79670c]
test ecx, ecx
je 0x48fcc9
mov eax, dword [ecx]
call dword [eax + 0x80]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb4]
mov ecx, edi
call fcn.0048fecd
mov eax, dword [esi]
mov ecx, esi
push 0
push 1
call dword [eax + 0x3c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4991ad
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x200
push eax
mov ebx, eax
and dword [edi], 0
call fcn.0056e306
pop ecx
jmp 0x4991fe
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x499206
lea eax, [ebx - 2]
cmp dword [edi], eax
jne 0x499214
push 1
push esi
call fcn.0056df27
add ebx, 0x200
push ebx
call fcn.0056e306
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x4991c9
jmp 0x499214
push 1
push esi
call fcn.0056df27
pop ecx
xor esi, esi
and dword [edi], esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x49921b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, 0x200
push eax
mov ebx, eax
and dword [edi], 0
call fcn.0056e306
pop ecx
jmp 0x49926f
push dword [ebp + 0xc]
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x499277
lea eax, [ebx - 2]
cmp dword [edi], eax
jne 0x499285
push 1
push esi
call fcn.0056df27
add ebx, 0x200
push ebx
call fcn.0056e306
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x499237
jmp 0x499285
push 1
push esi
call fcn.0056df27
pop ecx
xor esi, esi
and dword [edi], esi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x49f5b7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x783760]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
mov edi, 0x11c
push edi
push eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x120]
push eax
mov dword [esi], vtable.RegistryAdapter.0
call fcn.00644240
add esp, 0xc
mov dword [ebp - 0x120], edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov eax, esi
pop edi
sbb ecx, ecx
neg ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056e1bf
mov esp, ebp
pop ebp
ret

Function at 0x49f652
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20106
push esi
push str.SOFTWAREMicrosoftShared_ToolsMSConfig_startupreg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f694
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x49f69d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
lea edi, [ebx + 0x3c]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x49f6b9
mov eax, dword [edi]
jmp 0x49f6bb
mov eax, edi
push 0x6cb990
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x49f6e9
lea eax, [ebx + 0x58]
cmp dword [eax + 0x14], 8
jb 0x49f6d7
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push esi
push eax
push SysReAllocString
jmp 0x49f74e
cmp dword [edi + 0x14], 8
jb 0x49f6f1
mov edi, dword [edi]
push 0x6cb99c
push edi
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x49f754
push 0x6cb9a8
call fcn.00647fd1
pop ecx
push eax
push esi
lea edi, [ebx + 0x58]
push 0x6cb9a8
mov ecx, edi
call fcn.0042c956
cmp eax, 0xffffffff
je 0x49f736
cmp dword [edi + 0x14], 8
jb 0x49f72b
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push 0x20206
jmp 0x49f747
cmp dword [edi + 0x14], 8
jb 0x49f73e
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push 0x20106
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
je 0x49f77c
lea eax, [ebx + 4]
cmp dword [eax + 0x14], 8
jb 0x49f764
mov eax, dword [eax]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49fc23
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
lea edi, [ebx + 0x3c]
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x49fc3f
mov eax, dword [edi]
jmp 0x49fc41
mov eax, edi
push 0x6cb7cc
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x49fc6f
lea eax, [ebx + 0x58]
cmp dword [eax + 0x14], 8
jb 0x49fc5d
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20006
push esi
push eax
push SysReAllocString
jmp 0x49fcd4
cmp dword [edi + 0x14], 8
jb 0x49fc77
mov edi, dword [edi]
push 0x6cb834
push edi
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x49fcda
push 0x6cb840
call fcn.00647fd1
pop ecx
push eax
push esi
lea edi, [ebx + 0x58]
push 0x6cb840
mov ecx, edi
call fcn.0042c956
cmp eax, 0xffffffff
je 0x49fcbc
cmp dword [edi + 0x14], 8
jb 0x49fcb1
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push 0x20206
jmp 0x49fccd
cmp dword [edi + 0x14], 8
jb 0x49fcc4
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
push 0x20106
push esi
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
je 0x49fd1a
mov eax, dword [ebx + 0x84]
lea edx, [ebx + 0x74]
cmp dword [edx + 0x14], 8
jb 0x49fcf0
mov edx, dword [edx]
lea ecx, [ebx + 4]
cmp dword [ecx + 0x14], 8
jb 0x49fcfb
mov ecx, dword [ecx]
add eax, eax
push eax
push edx
push 2
push esi
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49fd25
Capabilities:
Set registry value

Disassembly:
push 0x38
mov eax, 0x6933bc
call fcn.0056e23b
mov ebx, ecx
mov esi, dword [ebp + 0xc]
and dword [ebp - 0x40], 0
mov edx, dword [ebp + 8]
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x49fd48
mov eax, dword [eax]
lea ecx, [ebp - 0x40]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x49fedb
mov eax, dword [esi + 0x4c]
lea ecx, [esi + 0x3c]
cmp dword [ecx + 0x14], 8
jb 0x49fd6a
mov ecx, dword [ecx]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add eax, eax
push eax
push ecx
push 1
push 0
push str.hkey
push dword [ebp - 0x40]
call edi
mov eax, dword [esi + 0x68]
lea ecx, [esi + 0x58]
cmp dword [ecx + 0x14], 8
jb 0x49fd90
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x6cb64c
push dword [ebp - 0x40]
call edi
mov eax, dword [esi + 0x84]
lea ecx, [esi + 0x74]
cmp dword [ecx + 0x14], 8
jb 0x49fdb3
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x6cb654
push dword [ebp - 0x40]
call edi
mov eax, dword [esi + 0x14]
add esi, 0x20
cmp dword [esi + 0x14], 8
jb 0x49fdd3
mov esi, dword [esi]
add eax, eax
push eax
push esi
push 1
push 0
push 0x6cb664
push dword [ebp - 0x40]
call edi
cmp dword [ebx + 0x18], 0
jne 0x49fe90
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x20]
xor ebx, ebx
push 4
pop esi
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb670
push dword [ebp - 0x40]
call edi
movzx eax, word [ebp - 0x1e]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb67c
push dword [ebp - 0x40]
call edi
movzx eax, word [ebp - 0x1a]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb688
push dword [ebp - 0x40]
call edi
movzx eax, word [ebp - 0x18]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb690
push dword [ebp - 0x40]
call edi
movzx eax, word [ebp - 0x16]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb69c
push dword [ebp - 0x40]
call edi
movzx eax, word [ebp - 0x14]
push esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push esi
push ebx
push 0x6cb6ac
push dword [ebp - 0x40]
call edi
jmp 0x49fe92
xor ebx, ebx
push 0x6cb6bc
lea ecx, [ebp - 0x3c]
call fcn.0041d41a
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x38]
add eax, eax
push eax
push ecx
push 1
push ebx
push 0x6cb6c0
push dword [ebp - 0x40]
call edi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0041786a
xor eax, eax
inc eax
jmp 0x49fedd
xor eax, eax
call fcn.0056e1e5
ret 8