joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 8]
push 1
mov dword [eax], 0x138a
mov dword [eax + 4], 8
call fcn.004117d0
mov eax, dword [0x474160]
add esp, 4
cmp eax, 0xffffffff
je 0x407f5c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffe
push eax
mov eax, dword [0x474160]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
ret

Function at 0x408a60
Capabilities:
Move file

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x408a7e
xor eax, eax
pop edi
pop ecx
ret
push esi
lea ecx, [esp + 8]
lea esi, [eax + edi + 1]
push ecx
push esi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x408aa9
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop esi
xor eax, eax
pop edi
pop ecx
ret
sub eax, edi
lea eax, [eax + esi + 1]
cmp eax, dword [esp + 0x18]
jbe 0x408ad2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041af0b
mov edx, dword [esp + 0xc]
push edx
call fcn.0041af0b
add esp, 8
pop esi
xor eax, eax
pop edi
pop ecx
ret
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push ebx
mov dword [esi], 0x19
mov dword [esi + 4], 0xc
push edi
mov dword [eax], 0xc
call fcn.00406dd0
mov ebx, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x408b15
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 8], eax
jmp 0x408b1c
mov dword [esi + 8], 1
push edi
call fcn.0041af0b
push ebx
call fcn.0041af0b
add esp, 8
pop ebx
pop esi
mov eax, 1
pop edi
pop ecx
ret

Function at 0x408db0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
lea eax, [esp + 0x10]
push eax
push 0x28
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea ecx, [esp + 0x14]
push ecx
push 0x434478
push 0
call ebx
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0x10
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
push 0
push edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 2
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
push 0x28
call esi
push eax
call edi
lea edx, [esp + 0x1c]
push edx
push 0x434464
push 0
call ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
push 0
push 0x10
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
push 0
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 2
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x408e90
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp esi, 0xc
ja case.0x408ea1.1
movzx eax, byte [esi + 0x408f64]
jmp dword [eax*4 + 0x408f5c]
xor eax, eax
pop esi
ret
push ebx
call fcn.00408db0
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x408f56
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push edi
push esi
push 0
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
push str.SystemRootSystem32_smss.exe
push esi
call fcn.0041b6a8
add esp, 8
test eax, eax
jne 0x408f0c
push edi
push esi
push 0x434494
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
ret
push 4
push 0x43448c
push esi
call fcn.0041b8ea
add esp, 0xc
test eax, eax
jne 0x408f46
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408f25
sub eax, edx
mov edi, eax
lea ecx, [edi - 4]
push ecx
lea edx, [esi + 4]
push edx
push esi
call fcn.0041da00
add esp, 0xc
mov byte [edi + esi - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 1
pop esi
ret
pop ebx
xor eax, eax
pop esi
ret

Function at 0x409330
Capabilities:
Copy file

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push edi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x40934e
xor eax, eax
pop edi
pop ecx
ret
push esi
lea ecx, [esp + 8]
lea esi, [eax + edi + 1]
push ecx
push esi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x409379
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop esi
xor eax, eax
pop edi
pop ecx
ret
lea eax, [esi + eax + 1]
push ebx
mov ebx, dword [eax]
sub eax, edi
add eax, 4
cmp eax, dword [esp + 0x1c]
jbe 0x4093a9
mov eax, dword [esp + 0x14]
push eax
call fcn.0041af0b
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041af0b
add esp, 8
pop ebx
pop esi
xor eax, eax
pop edi
pop ecx
ret
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
push ebp
mov dword [esi], 0x7d0
mov dword [esi + 4], 0xc
push edi
mov dword [edx], 0xc
call fcn.00406dd0
mov ebp, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4093ed
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 8], eax
jmp 0x4093f4
mov dword [esi + 8], 1
push edi
call fcn.0041af0b
push ebp
call fcn.0041af0b
add esp, 8
pop ebp
pop ebx
pop esi
mov eax, 1
pop edi
pop ecx
ret
Function at 0x409410
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
mov ebx, dword [esp + 0x234]
push ebp
mov ebp, dword [esp + 0x230]
push esi
mov esi, dword [esp + 0x230]
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.0041a230
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x28], 0
call fcn.00406fe0
add esp, 0x14
cmp eax, 0xffffffff
jne 0x409488
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x220
ret
push edi
lea edi, [esi + eax*2 + 2]
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
jne 0x4094b4
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041af0b
add esp, 4
xor eax, eax
jmp 0x4095ec
mov edx, dword [edi + eax*2 + 2]
lea eax, [edi + eax*2 + 2]
sub eax, esi
add eax, 4
mov dword [esp + 0x1c], edx
cmp eax, dword [esp + 0x23c]
jbe 0x4094ec
mov eax, dword [esp + 0x10]
push eax
call fcn.0041af0b
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041af0b
add esp, 8
xor eax, eax
jmp 0x4095ec
push 0x104
lea edx, [esp + 0x24]
mov dword [ebp], 0x2ee0
mov dword [ebp + 4], 0xc
push edx
mov dword [ebx], 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x20]
add eax, 0xfffffffe
jmp 0x409520
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x409520
mov ecx, dword [str.drivers]
mov edx, dword [0x434588]
mov dword [eax], ecx
mov ecx, dword [0x43458c]
mov dword [eax + 4], edx
mov edx, dword [0x434590]
mov dword [eax + 8], ecx
mov cx, word [0x434594]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409561
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x24]
push edx
push esi
call fcn.0041ee98
add esp, 0xc
test eax, eax
jne 0x409597
push eax
call fcn.004119a0
add esp, 4
mov ebx, 1
jmp 0x40959b
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
push edi
call fcn.00406e10
add esp, 4
test eax, eax
je 0x4095c3
mov eax, dword [esp + 0x1c]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebp + 8], eax
jmp 0x4095ca
mov dword [ebp + 8], 1
test ebx, ebx
je 0x4095d8
push 1
call fcn.004119a0
add esp, 4
push edi
call fcn.0041af0b
push esi
call fcn.0041af0b
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x220
ret
Function at 0x409610
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x40963b
inc eax
cmp eax, dword [esp + 0xc]
jbe 0x40963e
mov edx, dword [esp + 4]
push edx
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], 0x7d1
mov dword [esi + 4], 0xc
push edi
mov dword [eax], 0xc
call fcn.00406dd0
add esp, 4
test eax, eax
je 0x40968c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret
push edi
mov dword [esi + 8], 0
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x4096b0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x234]
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0041a230
lea edx, [esp + 0x1c]
push edx
push esi
xor ebp, ebp
call fcn.00406fe0
add esp, 0x14
cmp eax, 0xffffffff
je 0x409723
lea eax, [eax + eax + 2]
cmp eax, dword [esp + 0x230]
jbe 0x40972a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0041af0b
add esp, 4
xor eax, eax
jmp 0x40980a
push 0x104
lea edx, [esp + 0x18]
mov dword [ebx], 0x2ee1
mov dword [ebx + 4], 0xc
push edx
mov dword [edi], 0xc
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x14]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x409754
mov ecx, dword [str.drivers]
mov edx, dword [0x434588]
mov dword [eax], ecx
mov ecx, dword [0x43458c]
mov dword [eax + 4], edx
mov edx, dword [0x434590]
mov dword [eax + 8], ecx
mov cx, word [0x434594]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409795
mov esi, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
push esi
call fcn.0041ee98
add esp, 0xc
test eax, eax
jne 0x4097c9
push eax
call fcn.004119a0
add esp, 4
mov ebp, 1
push esi
call fcn.00406e10
add esp, 4
test eax, eax
je 0x4097e7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 8], eax
jmp 0x4097ee
mov dword [ebx + 8], 0
test ebp, ebp
je 0x4097fc
push 1
call fcn.004119a0
add esp, 4
push esi
call fcn.0041af0b
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a7bc
add esp, 0x214
ret
Function at 0x409830
Capabilities:
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x40985b
inc eax
cmp eax, dword [esp + 0xc]
jbe 0x40985e
mov edx, dword [esp + 4]
push edx
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], 0x7d2
mov dword [esi + 4], 0xc
push edi
mov dword [eax], 0xc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x4098a0
Capabilities:
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x4098ce
lea edx, [eax + eax + 2]
cmp edx, dword [esp + 0xc]
jbe 0x4098d1
mov eax, dword [esp + 4]
push eax
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], 0x2ee2
mov dword [esi + 4], 0xc
push edi
mov dword [ecx], 0xc
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x409910
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 8]
push eax
push esi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x409948
mov ecx, dword [eax + esi + 1]
lea eax, [eax + esi + 1]
sub eax, esi
add eax, 4
cmp eax, dword [esp + 0x10]
jbe 0x40994c
mov ecx, dword [esp + 8]
push ecx
call fcn.0041af0b
add esp, 4
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0xc]
push ecx
mov dword [esi], 0x7d3
mov dword [esi + 4], 0xc
push edi
mov dword [edx], 0xc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x409990
Capabilities:
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 8]
push eax
push esi
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x4099c8
mov ecx, dword [esi + eax*2 + 2]
lea eax, [esi + eax*2 + 2]
sub eax, esi
add eax, 4
cmp eax, dword [esp + 0x10]
jbe 0x4099cc
mov ecx, dword [esp + 8]
push ecx
call fcn.0041af0b
add esp, 4
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0xc]
push ecx
mov dword [esi], 0x2ee3
mov dword [esi + 4], 0xc
push edi
mov dword [edx], 0xc
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret
Function at 0x409a10
Capabilities:
Delete directory

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x409a3b
inc eax
cmp eax, dword [esp + 0xc]
jbe 0x409a3e
mov edx, dword [esp + 4]
push edx
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], 0x7d5
mov dword [esi + 4], 0xc
push edi
mov dword [eax], 0xc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x409a80
Capabilities:
Delete directory

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x409aae
lea edx, [eax + eax + 2]
cmp edx, dword [esp + 0xc]
jbe 0x409ab1
mov eax, dword [esp + 4]
push eax
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
mov dword [esi], 0x2ee5
mov dword [esi + 4], 0xc
push edi
mov dword [ecx], 0xc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x409af0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x409b1b
inc eax
cmp eax, dword [esp + 0xc]
jbe 0x409b1e
mov edx, dword [esp + 4]
push edx
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0
mov dword [esi], 0x7d4
mov dword [esi + 4], 0xc
push edi
mov dword [eax], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x409b60
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 4]
push eax
push ecx
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x409b8e
lea edx, [eax + eax + 2]
cmp edx, dword [esp + 0xc]
jbe 0x409b91
mov eax, dword [esp + 4]
push eax
call fcn.0041af0b
add esp, 4
xor eax, eax
ret
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push 0
mov dword [esi], 0x2ee4
mov dword [esi + 4], 0xc
push edi
mov dword [ecx], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
mov eax, 1
pop esi
ret
Function at 0x409bd0
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x409c08
sub eax, esi
lea ecx, [eax + edi + 1]
cmp ecx, dword [esp + 0x18]
jbe 0x409c0e
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
mov dword [esi], 0x7dc
mov dword [esi + 4], 0xc
push ebx
mov dword [eax], 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x409c50
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x409c8a
lea ecx, [eax + eax + 2]
sub ecx, esi
add ecx, edi
cmp ecx, dword [esp + 0x18]
jbe 0x409c90
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
mov dword [esi], 0x2eec
mov dword [esi + 4], 0xc
push ebx
mov dword [eax], 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x409eb0
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
je 0x409ee8
sub eax, esi
lea ecx, [eax + edi + 1]
cmp ecx, dword [esp + 0x18]
jbe 0x409eee
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
mov dword [esi], 0x7de
mov dword [esi + 4], 0xc
push ebx
mov dword [eax], 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x409f30
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
je 0x409f6a
lea ecx, [eax + eax + 2]
sub ecx, esi
add ecx, edi
cmp ecx, dword [esp + 0x18]
jbe 0x409f70
mov edx, dword [esp + 0x10]
push edx
call fcn.0041af0b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push edi
mov dword [esi], 0x2eee
mov dword [esi + 4], 0xc
push ebx
mov dword [eax], 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x409fb0
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x409fd5
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [edi + eax + 1]
lea eax, [edi + eax + 1]
mov edi, dword [eax + 4]
add eax, 4
mov ecx, dword [eax + 4]
add eax, 4
push ebp
mov ebp, ecx
add eax, 4
sub ebp, esi
add ebp, eax
cmp ebp, dword [esp + 0x1c]
jbe 0x40a00d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041af0b
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
push ecx
push eax
push edi
mov edi, dword [esp + 0x20]
push edx
push edi
mov dword [esi], 0x7df
mov dword [esi + 4], 0xc
push ebx
mov dword [ebp], 0xc
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x40a050
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, dword [esi]
push edi
lea eax, [esp + 0x10]
push eax
lea edi, [esi + 4]
push edi
call fcn.00406fe0
add esp, 8
cmp eax, 0xffffffff
jne 0x40a075
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [edi + eax*2 + 2]
lea eax, [edi + eax*2 + 2]
mov edi, dword [eax + 4]
add eax, 4
mov ecx, dword [eax + 4]
add eax, 4
push ebp
mov ebp, ecx
add eax, 4
sub ebp, esi
add ebp, eax
cmp ebp, dword [esp + 0x1c]
jbe 0x40a0ad
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041af0b
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
push ecx
push eax
push edi
mov edi, dword [esp + 0x20]
push edx
push edi
mov dword [esi], 0x2eef
mov dword [esi + 4], 0xc
push ebx
mov dword [ebp], 0xc
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov dword [esi + 8], eax
call fcn.0041af0b
add esp, 4
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40a270
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
lea ecx, [esp + 0x1c]
push ecx
lea esi, [edi + 4]
xor ebp, ebp
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
call fcn.00406f30
add esp, 8
cmp eax, 0xffffffff
jne 0x40a2a5
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov edx, dword [esi + eax + 1]
lea eax, [esi + eax + 1]
mov ecx, dword [eax + 4]
add eax, 4
add eax, 4
push ebx
mov ebx, dword [eax]
add eax, 4
mov dword [esp + 0x14], edx
cmp ebx, ebp
je 0x40a2cf
mov edx, dword [eax]
mov dword [esp + 0x10], edx
add eax, 4
jmp 0x40a2d3
mov edx, dword [esp + 0x10]
sub eax, edi
cmp eax, dword [esp + 0x28]
jbe 0x40a2e3
mov eax, dword [esp + 0x20]
cmp eax, ebp
jmp 0x40a306
cmp ecx, ebp
je 0x40a31b
lea eax, [edx - 1]
cmp eax, 0x13bfe
ja 0x40a31b
push edx
call fcn.0041d8b8
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40a31b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a311
push eax
call fcn.0041af0b
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
test ebx, ebx
je 0x40a323
lea ebx, [esp + 0x10]
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x24]
mov dword [edi], 0x7e2
mov esi, 0xc
je 0x40a345
lea ecx, [edi + 0xc]
mov dword [esp + 0x14], ecx
mov esi, 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [edi + 8], eax
mov dword [esi + edi], ebx
add esi, 4
test ebx, ebx
je 0x40a373
mov edx, dword [ebx]
mov dword [esi + edi], edx
add esi, 4
mov eax, dword [edi + 8]
neg eax
sbb eax, eax
not eax
and eax, ebp
mov dword [esi + edi], eax
add esi, 4
cmp dword [edi + 8], 0
jne 0x40a3a8
test ebp, ebp
je 0x40a3a8
test ebx, ebx
je 0x40a3a8
mov eax, dword [ebx]
test eax, eax
je 0x40a3a8
push eax
lea ecx, [esi + edi]
push ebp
push ecx
call fcn.0041a2b0
add esp, 0xc
add esi, dword [ebx]
mov edx, dword [esp + 0x2c]
mov dword [edi + 4], esi
mov dword [edx], esi
test ebp, ebp
je 0x40a3be
push ebp
call fcn.0041af0b
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40a3cf
push eax
call fcn.0041af0b
add esp, 4
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret