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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x104
push eax
push 3
xor esi, esi
mov dword [ebp - 0x10], 1
push esi
push 0x4012b8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 0x401c54
push 4
pop edi
test eax, eax
jne 0x4196be
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4196b5
cmp dword [ebp - 0x10], edi
jne 0x4196b5
cmp dword [ebp - 4], 0xd2af9
je 0x4196a1
cmp dword [ebp - 4], 0xc00d2afb
jne 0x4196b5
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 8]
push eax
push 3
push esi
push 0x4012b8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41972b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419722
cmp dword [ebp - 0x10], edi
jne 0x419722
cmp dword [ebp - 4], 0xd2af9
je 0x41970e
cmp dword [ebp - 4], 0xc00d2afb
jne 0x419722
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4199a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
inc esi
push esi
push 0
push 0x401e18
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419a17
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0
push 0x401e88
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x419a0e
cmp dword [ebp - 8], 4
jne 0x419a0e
cmp dword [ebp - 0xc], esi
sete al
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419f24
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
xor edi, edi
push eax
push 0x20019
push edi
push 0x4012b8
mov esi, SysReAllocString
mov dword [ebp - 0x418], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x419f82
push 0x4021a4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], edi
push eax
push edi
push 2
push edi
push edi
push edi
push 0x4021c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a09d
mov esi, 0x104
lea eax, [ebp - 0x414]
push esi
push eax
push 0x26fd
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41a007
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x419fd5
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push edi
push 0x40222c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
lea ecx, [ebp - 0x20c]
push esi
inc edx
call fcn.00425381
test eax, eax
je 0x41a091
push ecx
lea eax, [ebp - 0x41c]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418514
test eax, eax
js 0x41a091
mov eax, dword [ebp - 0x41c]
sub esi, eax
push ecx
push 0x40107c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41a091
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41a05f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x40223c
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41a0b2
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xca8
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xd
pop ecx
mov esi, 0x40224c
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
push 0xa
pop ecx
push 0xd
movsw word es:[edi], word [esi]
lea eax, [ebp - 0xc6e]
mov esi, 0x402284
lea edi, [ebp - 0x68]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0x1d2
xor ebx, ebx
movsw word es:[edi], word [esi]
mov esi, 0x4022b0
lea edi, [ebp - 0xca4]
rep movsd dword es:[edi], dword [esi]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 0x11
pop ecx
mov esi, 0x4022e8
lea edi, [ebp - 0xa9c]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [ebp - 0xa56]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
push 0x12
pop ecx
mov esi, 0x402330
lea edi, [ebp - 0x894]
rep movsd dword es:[edi], dword [esi]
push 0x1be
lea eax, [ebp - 0x84a]
push ebx
push eax
movsw word es:[edi], word [esi]
call sub.msvcrt.dll_memset
add esp, 0x24
lea ecx, [ebp - 0x274]
call fcn.00419e71
test eax, eax
je 0x41a268
lea eax, [ebp - 0x274]
test eax, eax
je 0x41a17d
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ecx
lea eax, [ebp - 0xca8]
mov ebx, 0x105
push eax
mov edx, ebx
lea ecx, [ebp - 0x274]
call fcn.00418514
test eax, eax
js 0x41a268
mov eax, dword [ebp - 0xca8]
mov edx, ebx
push ecx
push 0x402194
push ecx
lea ecx, [ebp - 0x274]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41a268
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x274]
push eax
push 0x40237c
lea eax, [ebp - 0x68c]
push ebx
push eax
call fcn.00418481
add esp, 0x18
test eax, eax
js 0x41a268
lea ecx, [ebp - 0x68c]
call fcn.00425077
test eax, eax
je 0x41a268
push 3
lea esi, [ebp - 0xca4]
pop edi
lea eax, [ebp - 0x3c]
push eax
push esi
lea eax, [ebp - 0x274]
push eax
push 0x40237c
lea eax, [ebp - 0x480]
push ebx
push eax
call fcn.00418481
add esp, 0x18
test eax, eax
js 0x41a25d
lea ecx, [ebp - 0x480]
call fcn.00425077
test eax, eax
je 0x41a247
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
add esi, 0x208
sub edi, 1
jne 0x41a206
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41a27e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x38c]
push ebx
push eax
push ebx
push 0x2001b
push ebx
push ebx
push ebx
push 0x402390
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x38c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a3e0
push esi
push edi
push 0x1f
pop ecx
mov esi, 0x402428
mov dword [ebp - 0x390], 1
lea edi, [ebp - 0xf8]
rep movsd dword es:[edi], dword [esi]
push 0x20
pop ecx
push 0x1d
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x390]
mov esi, 0x4024a8
lea edi, [ebp - 0x17c]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 4
push eax
push 4
movsw word es:[edi], word [esi]
push ebx
push 0x4025a4
push dword [ebp - 0x38c]
mov esi, 0x402530
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x82
lea eax, [ebp - 0x17c]
push eax
push 2
pop esi
push esi
push ebx
push 0x4025bc
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x7e
lea eax, [ebp - 0xf8]
push eax
push esi
push ebx
push 0x4025d8
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x74
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
push 0x4025e4
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x402600
mov edx, 0x105
lea ecx, [ebp - 0x388]
call fcn.00418392
test eax, eax
js 0x41a398
xor eax, eax
mov word [ebp - 0x33a], ax
lea ecx, [ebp - 0x388]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, bx
jne 0x41a3a1
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 4]
push eax
lea eax, [ebp - 0x388]
push eax
push 7
push ebx
push 0x402650
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret

Function at 0x41a3f7
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x70]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x402668
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41a47e
push esi
push edi
push 0x19
pop ecx
mov esi, 0x402768
mov dword [ebp - 0x74], ebx
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
push 4
lea eax, [ebp - 0x74]
push eax
push 4
push ebx
push 0x4027d0
push dword [ebp - 0x70]
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x66
lea eax, [ebp - 0x6c]
push eax
push 2
push ebx
push 0x4027e8
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41a495
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Modify service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2234
call fcn.00429f00
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x402668
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb esi, esi
lea eax, [ebp - 0x222c]
push eax
push 3
xor edi, edi
not esi
push edi
push 0x4027f8
push SysReAllocString
and esi, 1
mov dword [ebp - 0x222c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a50c
push 0x402854
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea ecx, [ebp - 0x20c]
push 0x104
inc edx
call fcn.00425381
test eax, eax
je 0x41a56a
push 0x402868
mov edx, 0x208
lea ecx, [ebp - 0x20c]
call fcn.00418442
test eax, eax
js 0x41a56a
lea ecx, [ebp - 0x20c]
call fcn.00425077
test eax, eax
je 0x41a56a
push 0xa
push edi
push 0x402884
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
neg eax
sbb eax, eax
not eax
and esi, eax
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2230], eax
test eax, eax
je 0x41a64f
push ebx
push 0x27
push 0x402894
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x41a642
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2234], edi
push eax
push 0x2000
lea eax, [ebp - 0x220c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x41a5cb
cmp dword [ebp - 0x2208], 2
jne 0x41a5e5
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 3
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
neg eax
sbb eax, eax
and esi, eax
push 6
mov dword [ebp - 0x2228], edi
xor eax, eax
pop ecx
lea edi, [ebp - 0x2224]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2228]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41a625
test byte [ebp - 0x2220], 1
je 0x41a63b
cmp dword [ebp - 0x2224], 3
je 0x41a63b
cmp dword [ebp - 0x2224], 1
je 0x41a63b
lea eax, [ebp - 0x2228]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
neg eax
sbb eax, eax
and esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41a75a
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x41a970
lea eax, [ebp - 0x828]
push eax
push esi
push esi
push 0x801c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41a970
mov ebx, 0x104
lea eax, [ebp - 0x620]
push ebx
push eax
push 0xa5
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41a970
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x828]
push eax
push 0x402918
lea eax, [ebp - 0x418]
push ebx
push eax
call fcn.00418481
add esp, 0x14
test eax, eax
js 0x41a970
lea ecx, [ebp - 0x418]
call fcn.00424fe2
test eax, eax
jne 0x41a837
push esi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a837
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41a837
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x418]
push eax
push 0x402924
push 2
call fcn.00427cda
add esp, 0x10
lea ecx, [ebp - 0x418]
call fcn.00424fe2
test eax, eax
je 0x41a970
lea eax, [ebp - 0x418]
push eax
push 0x40295c
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00418481
add esp, 0x10
test eax, eax
js 0x41a970
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41a8af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41a8af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x4029d8
push 4
call fcn.00427cda
add esp, 0x10
jmp 0x41a970
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push esi
push ebx
lea ecx, [ebp - 0xa30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x41a910
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ecx
lea eax, [ebp - 0xa34]
mov edx, ebx
push eax
lea ecx, [ebp - 0x210]
call fcn.00418514
test eax, eax
js 0x41a910
push ecx
lea eax, [ebp - 0xa30]
mov edx, ebx
push eax
mov eax, dword [ebp - 0xa34]
sub edx, eax
push ecx
lea ecx, [ebp - 0x210]
lea ecx, [ecx + eax*2]
call fcn.00418577
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x402980
push ebx
push edi
call fcn.00418481
add esp, 0x14
test eax, eax
js 0x41a970
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x41a970
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41a970
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x402990
push 4
call fcn.00427cda
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41ac5d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
push esi
xor edi, edi
mov dword [ebp - 0x210], esi
inc edi
push edi
push esi
push esi
push esi
push 0x401558
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41ad00
lea eax, [ebp - 0x218]
mov dword [ebp - 0x214], edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x218], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push 0x402e24
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41acf4
cmp dword [ebp - 0x214], edi
jne 0x41acf4
lea ecx, [ebp - 0x20c]
call fcn.00424fe2
test eax, eax
je 0x41acf4
mov esi, edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41b4f8
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor edi, edi
lea eax, [ebp - 0x620]
push edi
push eax
push edi
mov ebx, 0x20006
mov dword [ebp - 0x620], edi
push ebx
push edi
push edi
push edi
push 0x403180
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b6a8
push esi
push 0x24
push 0x4031ac
push 1
push edi
push 0x4031d0
push dword [ebp - 0x620]
mov dword [ebp - 0x624], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, 0x104
lea eax, [ebp - 0x61c]
push esi
push eax
push 0xa7
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41b5bc
lea ecx, [ebp - 0x61c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41b58e
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push edi
push edi
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea eax, [ebp - 0x624]
push eax
push edi
push ebx
push edi
push edi
push edi
push 0x4031e0
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b69b
push esi
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.00425381
test eax, eax
je 0x41b68f
push ecx
lea eax, [ebp - 0x628]
mov edx, esi
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418514
test eax, eax
js 0x41b68f
mov eax, dword [ebp - 0x628]
sub esi, eax
push ecx
push 0x40107c
push ecx
lea ecx, [ebp - 0x20c]
mov edx, esi
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41b68f
lea eax, [ebp - 0x20c]
push eax
push 0x4031f0
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
test eax, eax
js 0x41b68f
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41b661
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x414]
push eax
push 1
push edi
push edi
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret

Function at 0x41b6bd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
call fcn.00419f24
call fcn.00418e14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x401698
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41b716
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 4
push 0
push 0x403630
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00418fe0
call fcn.0041ad17
mov esp, ebp
pop ebp
ret
Function at 0x41c0aa
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x41c14c
push esi
lea eax, [ebp - 0xc]
push eax
push 0x403a28
push 0
push edi
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
push 0x80
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
js 0x41c14b
lea eax, [ebp - 8]
push eax
push 0x4039f0
push 1
push 0
push 0x409864
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41c138
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00429770
mov esp, ebp
pop ebp
ret