joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48c7f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521340
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x828], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x48c99f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48c845
sub eax, edx
sar eax, 1
je 0x48c99f
test edi, edi
je 0x48c99f
push 0x800
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.004fd670
add esp, 0xc
test ebx, ebx
je 0x48c894
push 0
push 0x400
lea edx, [ebp - 0x81c]
push edx
push esi
mov ecx, ebx
call fcn.00480760
jmp 0x48c8a9
push esi
push 0x400
lea eax, [ebp - 0x81c]
push eax
call fcn.004fa94e
add esp, 0xc
lea ecx, [ebp - 0x81c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48c90e
mov edx, dword [ebp + 0x10]
push edx
mov ecx, edi
lea edx, [ebp - 0x81c]
call fcn.00488ac0
add esp, 4
mov esi, eax
mov dword [ebp - 0x820], esi
test esi, esi
je 0x48c996
lea eax, [ebp - 0x81c]
push eax
push str.___s__Load_Resource_from_file_was_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x82c], esi
push 0x5814b0
lea ecx, [ebp - 0x82c]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x828]
push edx
push edi
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
lea edx, [ebp - 0x81c]
call fcn.00488960
add esp, 8
mov esi, eax
mov dword [ebp - 0x820], esi
test esi, esi
je 0x48c996
call fcn.004e4d97
cmp dword [eax + 8], 0
je 0x48c996
call fcn.004e4d97
mov eax, dword [eax + 8]
push eax
push edi
mov ecx, ebx
lea edx, [ebp - 0x81c]
call fcn.00488960
add esp, 8
mov esi, eax
mov dword [ebp - 0x820], esi
test esi, esi
je 0x48c996
lea eax, [ebp - 0x81c]
push eax
push str.___s__Load_Resource_from_Resource_DLL_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x824], esi
push 0x5814b0
lea ecx, [ebp - 0x824]
push ecx
call fcn.004fd5a3
mov dword [ebp - 4], 0xffffffff
jmp 0x48c9ee
mov eax, 0x57
jmp 0x48c9f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x48ca10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521310
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x824], eax
mov dword [ebp - 4], 0
test esi, esi
je 0x48cba7
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48ca65
sub eax, edx
sar eax, 1
je 0x48cba7
test edi, edi
je 0x48cba7
push 0x800
push 0
lea ecx, [ebp - 0x818]
push ecx
call fcn.004fd670
add esp, 0xc
test ebx, ebx
je 0x48cab4
push 0
push 0x400
lea edx, [ebp - 0x818]
push edx
push esi
mov ecx, ebx
call fcn.00480760
jmp 0x48cac9
push esi
push 0x400
lea eax, [ebp - 0x818]
push eax
call fcn.004fa94e
add esp, 0xc
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x818]
test eax, eax
je 0x48cb27
mov edx, edi
call fcn.0049f030
mov esi, eax
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x48cb9e
lea edx, [ebp - 0x818]
push edx
push str.___s__Load_Resource_from_file_was_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x828], esi
push 0x5814b0
lea eax, [ebp - 0x828]
push eax
call fcn.004fd5a3
push ecx
push edi
mov ecx, dword [ebp - 0x824]
call fcn.0049f1d0
mov esi, eax
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x48cb9e
call fcn.004e4d97
cmp dword [eax + 8], 0
je 0x48cb9e
call fcn.004e4d97
mov eax, dword [eax + 8]
lea edx, [ebp - 0x818]
push edx
push edi
mov ecx, eax
call fcn.0049f1d0
mov esi, eax
mov dword [ebp - 0x81c], esi
test esi, esi
je 0x48cb9e
lea eax, [ebp - 0x818]
push eax
push str.___s__Load_Resource_from_Resource_DLL_was_fail____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 0x820], esi
push 0x5814b0
lea ecx, [ebp - 0x820]
push ecx
call fcn.004fd5a3
mov dword [ebp - 4], 0xffffffff
jmp 0x48cbf6
mov eax, 0x57
jmp 0x48cbf8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x48d530
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51a30a
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5a4aa8]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov byte [eax], cl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [esp + 0xc], ecx
mov byte [eax + 0xc], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [esp + 0xc], 1
mov byte [eax + 0x18], cl
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov byte [esp + 0xc], 2
mov byte [eax + 0x24], cl
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [esp + 0xc], 3
mov byte [eax + 0x30], cl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x38], ecx
mov byte [esp + 0xc], 4
mov byte [eax + 0x3c], cl
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov byte [esp + 0xc], 5
mov byte [eax + 0x48], cl
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [esp + 0xc], 0xffffffff
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4

Function at 0x491600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a0d0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1810
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1818]
push eax
call fcn.004fd670
add esp, 0xc
push 0x800
push ebx
lea ecx, [ebp - 0x1018]
push ecx
call fcn.004fd670
add esp, 0xc
push 0x800
push ebx
lea edx, [ebp - 0x818]
push edx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [esi], ebx
je 0x491687
mov al, 1
jmp 0x491765
push 0x400
lea eax, [ebp - 0x1818]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x4916b5
mov byte [ebp - 0x181a], bl
push 0x581600
lea ecx, [ebp - 0x181a]
push ecx
call fcn.004fd5a3
push 0x5c
lea edx, [ebp - 0x1818]
push edx
call fcn.004fa6eb
add esp, 8
mov edi, eax
cmp edi, ebx
je 0x4916d1
add edi, 2
jmp 0x4916d6
mov edi, 0x566db8
lea eax, [ebp - 0x1018]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea ecx, [ebp - 0x1018]
push ecx
push str._s_s.log
lea edx, [ebp - 0x818]
call fcn.00404380
add esp, 0xc
push ebx
push 0x80
push 4
push ebx
push 1
push 0xc0000000
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x49172d
mov byte [ebp - 0x1819], bl
mov byte [esi + 0x204], 1
push 0x54a98c
push pe_nt_image_headers32
lea eax, [esi + 4]
push eax
call fcn.004fa94e
add esp, 0xc
mov ecx, esi
call fcn.00491b00
mov byte [ebp - 0x1819], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1819]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret
Function at 0x4917b0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a0a0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4008
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
cmp dword [esi], 0
je 0x4918bc
mov dword [ebp - 4], 0
push 0x2000
push 0
lea eax, [ebp - 0x2014]
push eax
call fcn.004fd670
push 0x2000
push 0
lea ecx, [ebp - 0x4014]
push ecx
call fcn.004fd670
lea edx, [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x1000
lea ecx, [ebp - 0x2014]
push ecx
call fcn.004fa365
add esp, 0x28
test edi, edi
je 0x49188e
push 0
push 0
lea edx, [ebp - 0x4018]
push edx
push 0x409
push edi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x4018]
test eax, eax
je 0x49188e
push eax
push edi
lea eax, [esi + 4]
push eax
push str.___s___Error_Code___d_:_s
lea edx, [ebp - 0x4014]
call fcn.00407e30
add esp, 0x10
mov ecx, dword [ebp - 0x4018]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea edx, [ebp - 0x2014]
mov ecx, esi
call fcn.004919d0
test edi, edi
je 0x4918b5
lea edx, [ebp - 0x4014]
mov ecx, esi
call fcn.004919d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret

Function at 0x491e20
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x519b10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [esi], ebx
jne 0x491e74
xor eax, eax
jmp 0x491ef1
cmp byte [esi + 0x20c], bl
jne 0x491e70
mov dword [ebp - 4], ebx
mov byte [esi + 0x20c], 1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0x1000
push ebx
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0xc
push ebx
push ebx
push 0x1000
lea edx, [ebp]
push edx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x491ec0
sub eax, edx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea edx, [ebp]
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
mov byte [esi + 0x20c], bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x4920e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x49221f
cmp dword [ebp + 0x14], ebx
je 0x49221f
cmp edx, ebx
je 0x492172
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x492134
sub eax, esi
sar eax, 1
je 0x492172
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push edx
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x492178
mov dword [ebp - 0x24], eax
push 0x5814b0
lea edx, [ebp - 0x24]
push edx
call fcn.004fd5a3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004da994
mov esi, eax
mov dword [ebp - 0x20], esi
mov edx, dword [ebp + 0x14]
push edx
push ebx
push esi
call fcn.004fd670
add esp, 0x10
cmp esi, ebx
jne 0x4921ad
mov dword [ebp - 0x28], 0xe
push 0x5814b0
lea eax, [ebp - 0x28]
push eax
call fcn.004fd5a3
lea ecx, [ebp + 0x14]
push ecx
push esi
lea edx, [ebp - 0x1c]
push edx
push ebx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, ebx
je 0x4921df
mov dword [ebp - 0x2c], edi
push 0x5814b0
lea edx, [ebp - 0x2c]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
je 0x4921ff
cmp ecx, 1
jne 0x492216
cmp eax, 2
jne 0x492216
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov eax, dword [ebp + 0x10]
push eax
jmp 0x492209
mov eax, dword [ebp + 0x14]
push eax
push esi
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004fa112
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0xffffffff
jmp 0x492260
mov dword [ebp - 0x30], 0x57
push 0x5814b0
lea edx, [ebp - 0x30]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x49225b
ret
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x492273
cmp eax, dword [ebp + 8]
je 0x492273
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x492283
push eax
call fcn.004da999
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4922a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x519aa0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0x810]
mov dword [ebp - 0x24], ecx
mov ebx, 0x400
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], eax
cmp esi, eax
je 0x492476
cmp edx, eax
je 0x492352
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492313
sub eax, edi
sar eax, 1
je 0x492352
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push edx
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x492358
mov dword [ebp - 0x34], eax
push 0x5814b0
lea edx, [ebp - 0x34]
push edx
call fcn.004fd5a3
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x492392
mov dword [ebp - 0x30], eax
push 0x5814b0
lea eax, [ebp - 0x30]
push eax
call fcn.004fd5a3
xor edi, edi
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x20]
jge 0x492428
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0xc
push 0x400
lea edx, [ebp]
push edx
push edi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x492420
lea ecx, [ebp]
push ecx
push ebx
push esi
call fcn.004fa94e
add esp, 0xc
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4923e0
sub eax, edx
sar eax, 1
or edx, 0xffffffff
sub edx, eax
add ebx, edx
mov dword [ebp - 0x44], ebx
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492400
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2 + 2]
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x492420
add dword [eax], 1
add edi, 1
jmp 0x492394
mov word [esi], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x49244e
cmp eax, dword [ebp - 0x1c]
je 0x49244e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x804
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x2c], 0x57
push 0x5814b0
lea eax, [ebp - 0x2c]
push eax
call fcn.004fd5a3
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x49249e
ret
Function at 0x4924c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519a80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov edx, 0x2001f
mov dword [ebp - 4], eax
cmp ebx, eax
jne 0x492518
mov dword [ebp - 0x1c], 0x57
push 0x5814b0
lea eax, [ebp - 0x1c]
push eax
call fcn.004fd5a3
cmp byte [ebp + 0x18], 0
je 0x492523
mov edx, 0x2011f
cmp esi, eax
je 0x492575
mov eax, esi
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492530
sub eax, edi
sar eax, 1
je 0x492575
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x14]
push eax
push 0
push edx
push 0
push 0
push 0
push esi
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49257b
mov dword [ebp - 0x24], eax
push 0x5814b0
lea edx, [ebp - 0x24]
push edx
call fcn.004fd5a3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4925b1
cmp eax, dword [ebp + 8]
je 0x4925b1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492940
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519a60
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0xc]
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, 0xf003f
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
cmp eax, ecx
je 0x492a15
lea edx, [eax + 2]
jmp 0x492990
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x492990
sub eax, edx
sar eax, 1
je 0x492a15
cmp byte [ebp + 0x10], cl
je 0x4929ab
mov esi, 0xf013f
test ebx, ebx
jne 0x4929b7
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0xc], ebx
test edi, edi
je 0x4929f8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4929c0
sub eax, edx
sar eax, 1
je 0x4929f8
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4929fb
mov dword [ebp - 0x1c], eax
push 0x5814b0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004fd5a3
mov dword [ebp - 0x14], ebx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x492a54
mov dword [ebp - 0x20], 0x57
push 0x5814b0
lea ecx, [ebp - 0x20]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x492a51
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x492a66
cmp eax, ebx
je 0x492a66
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x492a80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1204]
mov eax, 0x1204
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x519fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0x120c]
mov dword [ebp - 0x30], eax
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x492bec
cmp eax, edi
je 0x492bec
mov dword [ebp - 0x18], eax
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x492b22
mov dword [ebp - 0x44], ebx
push 0x5814b0
lea ecx, [ebp - 0x44]
push ecx
call fcn.004fd5a3
xor esi, esi
mov dword [ebp - 0x38], esi
cmp esi, dword [ebp - 0x28]
jge 0x492be3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], 0x200
mov dword [ebp - 0x20], 0x1000
push 0x1000
push edi
lea edx, [ebp]
push edx
call fcn.004fd670
push 0x200
push edi
lea eax, [ebp + 0x1000]
push eax
call fcn.004fd670
add esp, 0x18
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
lea eax, [ebp - 0x1c]
push eax
push edi
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp + 0x1000]
push edx
push esi
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x492ba0
mov dword [ebp - 0x40], eax
push 0x5814b0
lea ecx, [ebp - 0x40]
push ecx
call fcn.004fd5a3
push edi
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp + 0x1000]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp]
xor edx, edx
call fcn.004924c0
add esp, 0x14
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, edi
je 0x492bdb
mov dword [ebp - 0x34], ebx
push 0x5814b0
lea eax, [ebp - 0x34]
push eax
call fcn.004fd5a3
add esi, 1
jmp 0x492b24
mov dword [ebp - 4], 0xffffffff
jmp 0x492c2d
mov dword [ebp - 0x3c], 0x57
push 0x5814b0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x492c28
ret
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x492c40
cmp eax, dword [ebp - 0x30]
je 0x492c40
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1200]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1204
mov esp, ebp
pop ebp
ret