joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c6d9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x41c944
mov esi, edi
xor edx, edx
mov dword [ebp - 0x46c], edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x41c708
sub esi, ecx
mov ebx, 0x104
push edi
mov edx, ebx
sar esi, 1
lea ecx, [ebp - 0x210]
call fcn.00418392
test eax, eax
js 0x41c944
test esi, esi
je 0x41c78a
movzx eax, word [edi + esi*2 - 2]
cmp eax, 0x3a
je 0x41c78a
cmp eax, 0x5c
je 0x41c78a
push ecx
lea eax, [ebp - 0x464]
mov edx, ebx
push eax
lea ecx, [ebp - 0x210]
call fcn.00418514
test eax, eax
js 0x41c944
mov eax, dword [ebp - 0x464]
mov edx, ebx
push ecx
push 0x40376c
push ecx
lea ecx, [ebp - 0x210]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41c944
inc esi
lea eax, [esi + 2]
cmp eax, ebx
ja 0x41c944
push ecx
lea eax, [ebp - 0x464]
mov edx, ebx
push eax
lea ecx, [ebp - 0x210]
call fcn.00418514
test eax, eax
js 0x41c944
mov eax, dword [ebp - 0x464]
mov edx, ebx
push ecx
push 0x4020b4
push ecx
lea ecx, [ebp - 0x210]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41c944
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c944
add esi, esi
cmp esi, 0x208
jae 0x41c955
xor eax, eax
lea ecx, [ebp - 0x22c]
mov word [ebp + esi - 0x210], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x46c]
jne 0x41c819
sub ecx, edx
mov edx, ebx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x210]
je 0x41c85b
lea eax, [ebp - 0x464]
push eax
call fcn.00418514
test eax, eax
js 0x41c93d
lea eax, [ebp - 0x22c]
push ecx
push eax
mov eax, dword [ebp - 0x464]
jmp 0x41c87d
lea eax, [ebp - 0x468]
push eax
call fcn.00418514
test eax, eax
js 0x41c93d
lea eax, [ebp - 0x434]
push ecx
push eax
mov eax, dword [ebp - 0x468]
push ecx
mov edx, ebx
lea ecx, [ebp - 0x210]
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.00418577
test eax, eax
js 0x41c93d
test byte [ebp - 0x460], 0x10
je 0x41c927
mov ecx, 0x401718
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c8d6
test dx, dx
je 0x41c8d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c8d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c8b0
xor eax, eax
jmp 0x41c8db
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c927
mov ecx, 0x403764
lea eax, [ebp - 0x434]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c910
test dx, dx
je 0x41c90c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c910
add eax, 4
add ecx, 4
test dx, dx
jne 0x41c8ea
xor eax, eax
jmp 0x41c915
sbb eax, eax
or eax, 1
test eax, eax
je 0x41c927
xor edx, edx
lea ecx, [ebp - 0x210]
inc edx
call fcn.0041c160
lea eax, [ebp - 0x460]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41c806
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret
call fcn.004298c9
int3
Function at 0x41ca89
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x403770
push SysReAllocString
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41cb03
mov ecx, dword [ebp - 4]
push edi
push esi
call fcn.00426057
mov edi, eax
test edi, edi
je 0x41caf9
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x41cacc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41cb0e
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x2dc]
xor edi, edi
push eax
push 0x2001f
push edi
push 0x403770
push SysReAllocString
mov dword [ebp - 0x2dc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41cc4a
push edi
push 0x4037e8
xor ebx, ebx
mov dword [ebp - 0x2e4], 0x208
lea eax, [ebp - 0xd0]
inc ebx
push 0x63
push eax
mov dword [ebp - 0x2e0], ebx
call fcn.00418481
add esp, 0x10
mov esi, ebx
jmp 0x41cc09
cmp dword [ebp - 0x2e0], ebx
jne 0x41cc3e
lea ecx, [ebp - 0x2d8]
call fcn.0041c0aa
push edi
lea eax, [ebp - 0x2d8]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea eax, [ebp - 0x2d8]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x41cbe7
xor ecx, ecx
xor edx, edx
mov word [eax], cx
lea ecx, [ebp - 0x2d8]
call fcn.0041c160
push esi
push 0x4037e8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0x2e4], 0x208
push 0x63
push eax
call fcn.00418481
add esp, 0x10
inc esi
test eax, eax
js 0x41cc3e
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2e0]
push eax
push edi
lea eax, [ebp - 0xd0]
push eax
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41cb84
push dword [ebp - 0x2dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x41cc60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x214]
push edi
push eax
push edi
push 3
push edi
push edi
push edi
push 0x403770
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41cd4b
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x208
push eax
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
lea eax, [ebp - 0x218]
inc ebx
push eax
push edi
push 0x40222c
push dword [ebp - 0x214]
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41cd0a
cmp dword [ebp - 0x218], ebx
jne 0x41cd0a
cmp dword [ebp - 0x21c], ebx
jbe 0x41cd0f
lea eax, [ebp - 0x210]
push esi
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41cd0f
call fcn.0041cb0e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x41cd14
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push ebx
push edi
push 0x40222c
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x41d0f5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x620
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 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41d218
lea eax, [ebp - 0x210]
mov edi, 0x104
push eax
mov edx, edi
lea ecx, [ebp - 0x418]
call fcn.00418392
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41d163
sub ecx, edx
lea eax, [ebp - 0x418]
sar ecx, 1
mov edx, edi
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x620]
call fcn.00418392
push edi
lea eax, [ebp - 0x418]
push eax
push 0xa6
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41d218
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41d1f7
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x403858
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.0041c160
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret
Function at 0x41d763
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push esi
push esi
push 0x2a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41d7b9
push 0x402148
lea eax, [ebp - 0x20c]
push eax
push 0x40290c
push 0x104
push 0x42d260
call fcn.00418481
add esp, 0x14
test eax, eax
js 0x41d7b9
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret

Function at 0x41d7cf
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
jne 0x41d7f5
xor eax, eax
jmp 0x41d8bd
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, eax
test ebx, ebx
js 0x41d8b5
neg esi
lea eax, [ebp - 0x214]
push eax
sbb esi, esi
xor eax, eax
and esi, 0x15
add esi, 2
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
js 0x41d87d
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41d85c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
mov edx, dword [edx]
call fcn.004183cc
mov ebx, eax
jmp 0x41d861
mov ebx, 0x80004005
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
test ebx, ebx
js 0x41d8b5
lea ecx, [edi + 2]
xor edx, edx
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x41d89c
sub edi, ecx
sar edi, 1
cmp edi, 8
jae 0x41d8b5
mov ebx, 0x80004005
xor eax, eax
test ebx, ebx
pop ebx
setns al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret 4
Function at 0x41dcf8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x33c], esi
mov ebx, edx
test edi, edi
je 0x41de38
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
call fcn.0041d7cf
test eax, eax
je 0x41de38
cmp dword [ebp + 8], esi
je 0x41dd5b
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x41de1c
lea eax, [ebp - 0x33c]
push eax
push 1
push esi
push 0x403bd0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41de38
push 0x96
lea eax, [ebp - 0x338]
mov dword [ebp - 0x344], 0x208
push eax
push 0x23
push dword [0x42c790]
mov dword [ebp - 0x340], 1
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x41de0c
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x340]
push eax
push esi
lea eax, [ebp - 0x338]
push eax
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41ddea
cmp dword [ebp - 0x340], 1
jne 0x41ddea
xor esi, esi
inc esi
jmp 0x41de0c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x15
push dword [0x42c790]
call dword [sym.imp.USER32.dll_LoadStringW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push dword [ebp - 0x33c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41de38
push edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, dword [ebx]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, edi
call fcn.00418442
xor eax, eax
inc eax
jmp 0x41de3a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret 4
Function at 0x41e14e
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
push ecx
xor esi, esi
push ecx
mov dword [ebp - 0x20c], esi
call fcn.004252c1
test eax, eax
je 0x41e207
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
inc edi
push edi
push esi
push 0x403c48
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e205
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x200
push eax
lea eax, [ebp - 0x208]
mov dword [ebp - 0x210], edi
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push 0x403ca8
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e1f9
cmp dword [ebp - 0x210], edi
jne 0x41e1f9
lea eax, [ebp - 0x208]
push 0x403cc0
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41e1f9
mov esi, edi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret

Function at 0x41e21c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
jne 0x41e242
xor eax, eax
jmp 0x41e30a
push ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov ebx, eax
test ebx, ebx
js 0x41e302
neg esi
lea eax, [ebp - 0x214]
push eax
sbb esi, esi
xor eax, eax
and esi, 0x19
add esi, 6
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ebx, eax
test ebx, ebx
js 0x41e2ca
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x41e2a9
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
mov ecx, edi
mov edx, dword [edx]
call fcn.004183cc
mov ebx, eax
jmp 0x41e2ae
mov ebx, 0x80004005
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x42e290]
call esi
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42e290]
call esi
test ebx, ebx
js 0x41e302
lea ecx, [edi + 2]
xor edx, edx
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x41e2e9
sub edi, ecx
sar edi, 1
cmp edi, 8
jae 0x41e302
mov ebx, 0x80004005
xor eax, eax
test ebx, ebx
pop ebx
setns al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429770
mov esp, ebp
pop ebp
ret 4
Function at 0x41e321
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 1
push ebx
push 0x401e18
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41e398
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 4], 3
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
push ebx
push 0x401e88
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41e38f
cmp dword [ebp - 4], 4
je 0x41e386
cmp dword [ebp - 4], 3
jne 0x41e38f
xor ebx, ebx
cmp dword [ebp - 0xc], 1
setne bl
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42131d
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp - 0x20c]
push esi
push 0x4045cc
xor ebx, ebx
push 0x103
push eax
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x415], bl
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x41c]
mov edi, SysReAllocString
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42143a
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x404600
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4213f0
cmp dword [ebp - 0x424], 1
jne 0x4213f0
lea eax, [ebp - 0x414]
push eax
push 0x404620
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4213f0
mov byte [ebp - 0x415], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x415], bl
je 0x42143a
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push 0x404670
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push 0x404694
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421515
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
push ebx
push 0x404600
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4214cf
cmp dword [ebp - 0x424], 1
jne 0x4214cf
lea eax, [ebp - 0x414]
push eax
push 0x4046c0
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4214cf
mov bl, 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x421515
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push 0x404710
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00418481
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
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 0x42152b
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [ebp - 8], edi
test ecx, ecx
je 0x4215b6
lea eax, [ebp - 8]
push eax
push 0x2001f
push edi
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4215b6
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push 0x20006
push edi
push 0x40472c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4215ad
test esi, esi
je 0x421596
push 2
push 0x401064
push 1
push edi
push 0x4043d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4215a4
push 0x4043d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4215c1
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x42b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x2a0]
push eax
push 0x2001f
push ebx
push 0x403130
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x2a0], ebx
mov edi, ebx
mov dword [ebp - 0x29c], ebx
mov dword [ebp - 0x294], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421766
lea eax, [ebp - 0x290]
mov dword [ebp - 0x298], ebx
push eax
push 0x2001f
push ebx
push 0x403074
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42175a
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
jmp 0x421730
lea eax, [ebp - 0x298]
inc edi
push eax
push 0x2001f
push ebx
lea eax, [ebp - 0x28c]
push eax
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42171d
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push 0x40308c
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421704
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x29c], 0x80
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push 0x4030a4
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x421704
lea eax, [ebp - 0x28c]
push eax
push 0x4030c8
lea eax, [ebp - 0x84]
push 0x3f
push eax
call fcn.00418481
add esp, 0x10
mov edx, esi
lea ecx, [ebp - 0x84]
call fcn.0042152b
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x28c]
push eax
push edi
push dword [ebp - 0x290]
mov dword [ebp - 0x294], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x421660
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x2a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, esi
mov ecx, 0x404748
call fcn.0042152b
mov edx, esi
mov ecx, 0x404760
call fcn.0042152b
mov edx, esi
mov ecx, 0x404778
call fcn.0042152b
mov edx, esi
mov ecx, 0x404790
call fcn.0042152b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429770
mov esp, ebp
pop ebp
ret