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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c56fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2ec], ecx
mov dword [ebp - 0x28c], 0
push 0x24c
push 0
lea eax, [ebp - 0x288]
push eax
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x2ec]
add ecx, 0xf8
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406f90
mov dword [ebp - 4], 0
push 0x4d6a04
lea ecx, [ebp - 0x2c]
call fcn.00407050
lea edx, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp dword [ebp - 0x34], 0xffffffff
setne al
mov byte [ebp - 0x2d], al
lea ecx, [ebp - 0x29c]
call fcn.00401a10
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x47e6a4
mov edx, dword [ebp - 0x28c]
and edx, 0x10
je 0x47e685
push 0x4d6a10
lea eax, [ebp - 0x260]
push eax
call fcn.004451be
add esp, 8
test eax, eax
je 0x47e685
push 0x4d6a18
lea ecx, [ebp - 0x260]
push ecx
call fcn.004451be
add esp, 8
test eax, eax
je 0x47e685
lea ecx, [ebp - 0x2ac]
call fcn.00401a10
lea edx, [ebp - 0x260]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.00425c00
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004399f0
movzx ecx, al
test ecx, ecx
je 0x47e685
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2ac]
call fcn.00401ae0
movzx eax, al
test eax, eax
je 0x47e685
push 0x4d6a1c
mov ecx, dword [ebp - 0x2ec]
add ecx, 0xf8
push ecx
lea edx, [ebp - 0x2e4]
push edx
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
push ecx
mov edx, dword [ebp - 0x2f4]
push edx
lea eax, [ebp - 0x2c8]
push eax
call fcn.00409480
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2e4]
call fcn.00406fd0
lea ecx, [ebp - 0x2c8]
call fcn.00407070
push eax
call fcn.00476ce0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c8]
call fcn.00406fd0
lea ecx, [ebp - 0x28c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x2d], al
jmp 0x47e558
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2e5], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00406fd0
mov al, byte [ebp - 0x2e5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 4
Function at 0x481270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x4812b7
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4812b5
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
push 0x4d77b0
push 3
mov ecx, dword [0x50393c]
push ecx
call fcn.00498ad0
add esp, 0x10
xor al, al
jmp 0x4812c7
jmp 0x4812c5
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call fcn.00480f40
jmp 0x4812c7
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4817f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c88a9
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp + 8]
call fcn.0040add0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
ja 0x481833
mov al, 1
jmp 0x4819b7
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xffffffff
jmp 0x48184e
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x481886
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00417240
movzx eax, word [eax]
cmp eax, 0x5c
je 0x48187c
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00417240
movzx edx, word [eax]
cmp edx, 0x2f
jne 0x481884
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jmp 0x481886
jmp 0x481845
cmp dword [ebp - 0x10], 0xffffffff
je 0x4819b5
mov ecx, dword [ebp - 0x10]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040d040
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00407070
push eax
call fcn.0049e5b0
add esp, 4
movzx eax, al
test eax, eax
jne 0x4819a6
push 1
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.004817f0
movzx edx, al
test edx, edx
jne 0x4818f5
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406fd0
mov al, byte [ebp - 0x3d]
jmp 0x4819b7
push 0
lea ecx, [ebp - 0x38]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4819a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
call fcn.00407070
push eax
push 0x4d70d0
push 3
mov eax, dword [0x50393c]
push eax
call fcn.00498ad0
add esp, 0x10
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x48198e
push 3
mov edx, dword [ebp - 0x3c]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea eax, [ebp - 0x38]
push eax
call fcn.00406f90
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x68]
call fcn.00491670
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x80]
push edx
push 3
mov eax, dword [ebp - 0x74]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x74]
mov eax, dword [edx + 0x2ec]
call eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004911e0
mov byte [ebp - 0x6d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406fd0
mov al, byte [ebp - 0x6d]
jmp 0x4819b7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00406fd0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 8
Function at 0x483540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8cb2
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x10], 0xb
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call fcn.0049d180
add esp, 4
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x48360a
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
push 0x4d7694
push 3
mov ecx, dword [0x50393c]
push ecx
call fcn.00498ad0
add esp, 0x10
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x48360a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov eax, dword [ebp + 8]
push eax
call fcn.00406f90
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x38]
call fcn.004917a0
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x70]
push edx
push 3
mov eax, dword [ebp - 0x64]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x64]
mov eax, dword [edx + 0x2ec]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00491240
xor al, al
jmp 0x4836e8
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x4836e5
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.004817f0
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x11], al
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x4836e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
push 0x4d76c0
push 3
mov eax, dword [0x50393c]
push eax
call fcn.00498ad0
add esp, 0x14
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x4836e5
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x60], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406f90
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x5c]
call fcn.004918c0
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x7c]
push ecx
push 3
mov edx, dword [ebp - 0x64]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x64]
mov edx, dword [eax + 0x2ec]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004912a0
xor al, al
jmp 0x4836e8
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x483700
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8cdd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call fcn.0049d180
add esp, 4
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
test eax, eax
jne 0x4837c3
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
push 0x4d762c
push 3
mov ecx, dword [0x50393c]
push ecx
call fcn.00498ad0
add esp, 0x10
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x4837c3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x38], esp
mov eax, dword [ebp + 8]
push eax
call fcn.00406f90
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x34]
call fcn.004917a0
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x6c]
push edx
push 3
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx + 0x2ec]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00491240
xor al, al
jmp 0x4838f4
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4837e9
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049de50
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x4837e9
mov al, 1
jmp 0x4838f4
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
call fcn.0049d180
add esp, 4
movzx edx, al
test edx, edx
je 0x483817
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x60]
mov eax, dword [edx + 0x1a8]
call eax
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4838f1
movzx edx, byte [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.004817f0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4838f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
push str.Failed_to_copy_file__s_to__s
push 3
mov edx, dword [0x50393c]
push edx
call fcn.00498ad0
add esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x4838f1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00406f90
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x58]
call fcn.004918c0
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x78]
push ecx
push 3
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 0x2ec]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004912a0
xor al, al
jmp 0x4838f4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x487680
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c84ba
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x110], ecx
mov ecx, dword [ebp - 0x110]
call fcn.00486e80
push 1
push 3
lea ecx, [ebp - 0x9c]
call fcn.00421aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x9c]
push eax
call fcn.004bb170
add esp, 4
lea ecx, [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x9c]
call fcn.00421bd0
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x110]
add ecx, 0x28
call fcn.00406ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00406fd0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp - 0x110]
mov word [ecx + 0x44], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov edx, dword [ebp - 0x110]
mov word [edx + 0x46], ax
push 0x24
lea eax, [ebp - 0xd4]
push eax
call fcn.0049e4f0
add esp, 8
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x120]
push edx
mov ecx, dword [ebp - 0x110]
add ecx, 0x48
call fcn.00406ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xd4]
call fcn.00406fd0
push 0x25
lea eax, [ebp - 0xf0]
push eax
call fcn.0049e4f0
add esp, 8
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x128], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x128]
push edx
mov ecx, dword [ebp - 0x110]
add ecx, 0x64
call fcn.00406ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.00406fd0
lea eax, [ebp - 0x10c]
push eax
call fcn.0049ecd0
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x130]
push edx
mov ecx, dword [ebp - 0x110]
add ecx, 0x80
call fcn.00406ff0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.00406fd0
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x487862
mov eax, dword [ebp - 0x110]
add eax, 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.004213c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4943d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
call fcn.00493910
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x494220
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0x74], eax
movzx eax, byte [ebp + 8]
test eax, eax
je 0x494417
mov ecx, dword [ebp - 4]
call fcn.00493670
jmp 0x494419
mov al, 1
mov esp, ebp
pop ebp
ret 8

Function at 0x497e50
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x497e71
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
test ecx, ecx
jne 0x497eb3
lea edx, [ebp - 8]
push edx
push 0x20006
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x497eb1
push 0x4db1e4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x497ef4
lea ecx, [ebp - 8]
push ecx
push 0x20006
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x497ef4
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x497f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 3
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x497fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x498020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 8], eax
xor eax, eax
cmp dword [ebp - 8], 0
sete al
mov byte [ebp - 9], al
movzx ecx, byte [ebp - 9]
test ecx, ecx
jne 0x498072
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x498080
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4980f0
mov ecx, dword [ebp + 0x14]
call fcn.0040add0
lea eax, [eax + eax + 2]
push eax
mov ecx, dword [ebp + 0x14]
call fcn.00407070
push eax
push 1
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4980e6
mov byte [ebp - 1], 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x498100
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x498185
mov ecx, dword [ebp + 0x14]
call fcn.004183b0
movzx eax, al
test eax, eax
jne 0x498177
mov ecx, dword [ebp + 0x14]
call fcn.0040add0
lea ecx, [eax + eax + 2]
push ecx
mov ecx, dword [ebp + 0x14]
call fcn.00407070
push eax
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x498175
mov byte [ebp - 1], 1
jmp 0x49817b
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x498190
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c43a7
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406f50
mov dword [ebp - 4], 0
push 0x4db1d8
lea ecx, [ebp - 0x4c]
call fcn.00407050
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00407050
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406f50
mov byte [ebp - 4], 1
push 0x4db1dc
lea ecx, [ebp - 0x2c]
call fcn.00407050
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407030
mov byte [ebp - 0x51], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x50]
push ecx
push 0x20019
push 0
lea ecx, [ebp - 0x4c]
call fcn.00407070
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4982ca
push 0
lea ecx, [ebp - 0x2c]
call fcn.00407070
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00497e50
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407070
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4982aa
push 0
mov eax, dword [ebp - 0x30]
push eax
push 0
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x51], al
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x4982aa
push 0x4db1e0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x50], 0
je 0x4982ba
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x30], 0
je 0x4982ca
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x51]
mov byte [ebp - 0x52], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00406fd0
mov al, byte [ebp - 0x52]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x498310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c43d4
mov eax, dword fs:[0]
push eax
mov eax, 0x1034
call fcn.00454620
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
lea ecx, [ebp - 0x30]
call fcn.00406f20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x498400
mov dword [ebp - 0x1038], 1
xor ecx, ecx
mov word [ebp - 0x1034], cx
push 0xffe
push 0
lea edx, [ebp - 0x1032]
push edx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x103c], 0x800
lea eax, [ebp - 0x103c]
push eax
lea ecx, [ebp - 0x1034]
push ecx
lea edx, [ebp - 0x1038]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4983f6
lea edx, [ebp - 0x1034]
push edx
lea ecx, [ebp - 0x30]
call fcn.00407010
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406f90
mov eax, dword [ebp - 0x1040]
or eax, 1
mov dword [ebp - 0x1040], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406fd0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret