joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413d90
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push ebx
push esi
push 1
push 0
push 0
or ebx, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
mov dword [esp + 8], esi
je 0x413e4d
push edi
push 0x104
push 0x44eed4
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x413e45
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
xor esi, esi
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
push eax
push edi
call ebp
test eax, eax
je 0x413e08
mov eax, dword [esp + 0x18]
cmp eax, 4
mov ebx, eax
je 0x413e28
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x3e8
cmp esi, 0x493e0
jg 0x413e39
cmp ebx, 4
jne 0x413dd3
jmp 0x413e39
lea ecx, [esp + 0x14]
push ecx
push 0x80
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x413e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447c38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x28], ebx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, str.InstallPath
lea esi, [esp + 0x14]
call fcn.00401720
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
mov ecx, str.SoftwareDeviceVMBrowser_Configuration_Utility
mov byte [esp + 0x30], 1
call fcn.00401720
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
mov byte [esp + 0x30], bl
call fcn.0041f440
add esp, 0xc
cmp eax, ebx
jne 0x413f12
push edi
mov ecx, 0x44da60
call fcn.00401720
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x413f80
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov ebx, str.template_
call fcn.004017d0
add esp, 8
mov byte [esp + 0x24], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00401a70
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x24], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x413fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x447be6
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x18]
push edi
push eax
mov ebx, 0x44eb3c
mov dword [esp + 0x24], edi
mov esi, edx
call fcn.004017d0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x290], 0
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
jne 0x414044
mov dword [esp + 0x290], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x414161
mov edi, dword [esp + 0x1c]
cmp word [esp + 0x60], 0x2e
je 0x414123
test byte [esp + 0x34], 0x10
je 0x414123
lea ecx, [esp + 0x28]
push edi
push ecx
lea ebx, [esp + 0x68]
call fcn.004017d0
mov ebx, dword [esi + 8]
add esp, 8
cmp dword [esi + 4], ebx
mov ebp, eax
jbe 0x41407c
call fcn.0042e792
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x414089
call fcn.0042e792
mov ecx, ebp
mov eax, edi
mov dword [esp + 0x30], edi
call fcn.00416560
mov edi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4140b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esi + 8]
cmp dword [esi + 4], ebx
jbe 0x4140c5
call fcn.0042e792
test esi, esi
je 0x4140cd
cmp esi, esi
je 0x4140d2
call fcn.0042e792
cmp edi, ebx
jne 0x414123
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
lea ebx, [esp + 0x68]
call fcn.004017d0
add esp, 8
mov ebx, eax
mov byte [esp + 0x290], 1
call fcn.00415a10
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414123
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414040
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41416d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.0042e417
add esp, 0x280
ret
Function at 0x41a920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x449910
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
push esi
lea ebx, [esp + 0x28]
mov byte [esp + 0x34], 1
call fcn.0041ac80
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push ecx
add edi, 0xfffffff0
mov eax, edi
mov dword [esp + 0x48], esp
mov ebx, esp
call fcn.00401a70
add eax, 0x10
mov ecx, esi
mov dword [ebx], eax
call fcn.0041b400
test eax, eax
jne 0x41aa23
mov byte [esp + 0x20], al
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a9eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aa0c
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
push ecx
add ebp, 0xfffffff0
mov eax, ebp
mov dword [esp + 0x54], esp
mov ebx, esp
call fcn.00401a70
add eax, 0x10
push esi
mov dword [ebx], eax
call fcn.0041c490
mov byte [esp + 0x20], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test eax, eax
jne 0x41aab2
test edx, edx
jg 0x41aa7a
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41aa9b
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
test edx, edx
jg 0x41aac1
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov dword [esp + 0x20], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41aae2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret 0x20
Function at 0x41ab00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4487b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [0x458a2c]
mov edx, dword [eax + 0xc]
mov ecx, 0x458a2c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
call fcn.0041c240
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x3c], esp
mov ebp, esp
call fcn.00401a70
add eax, 0x10
push edi
mov dword [ebp], eax
call fcn.0041bbc0
cmp eax, ebx
jne 0x41abfc
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x14]
or edx, 0xffffffff
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41abc4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41abe5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
lea eax, [esp + 0x14]
push eax
mov ecx, 0x44f8a0
call fcn.0040b340
add esp, 4
or edx, 0xffffffff
mov byte [esp + 0x24], bl
test al, al
mov eax, dword [esp + 0x14]
jne 0x41abab
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ac36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ac57
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x41cda0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x447040
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
push ecx
mov ebx, 0x44fa24
call fcn.004017d0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x14]
push ecx
mov ebx, eax
mov byte [esp + 0x28], 1
call fcn.004156e0
push eax
lea edx, [esp + 0x38]
push edx
mov ebx, 0x44fa10
mov byte [esp + 0x30], 2
call fcn.004017d0
add esp, 0x18
mov byte [esp + 0x18], 3
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.004161d0
mov byte [esp + 0x18], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ce93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41cebb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x14
ret 0xc
Function at 0x41f660
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x446fc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov dword [esp + 0x20], 2
mov edi, dword [esp + 0x28]
mov ebp, 1
cmp dword [edi - 4], ebp
jle 0x41f6ad
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401c30
mov edi, dword [esp + 0x28]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 2
push 0
push 0
push 0
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41f756
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f6f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f740
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, dword [esp + 0x30]
cmp dword [ebx - 4], ebp
mov esi, dword [ebx - 0xc]
jle 0x41f773
mov ecx, esi
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00401c30
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
cmp dword [ebp - 4], 1
jle 0x41f78f
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.00401c30
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
lea edx, [esi + esi + 2]
push edx
push ebx
push 1
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test esi, esi
sete dl
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f821
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41f840
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x446f90
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, 1
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0x30]
cmp dword [esi - 4], edi
jle 0x41f88a
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00401c30
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push edi
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41f900
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f8eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov ebp, dword [esp + 0x34]
mov eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp dword [ebp - 4], edi
jle 0x41f928
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test edi, edi
sete dl
lea eax, [esi - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
mov edi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f97c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f9a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x41f9c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x446f60
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, 1
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x28]
cmp dword [esi - 4], edi
jle 0x41fa08
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00401c30
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push 0
lea edx, [esp + 0x14]
push edx
push 0
push 2
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41fa87
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa4a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fa72
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov ebp, dword [esp + 0x2c]
cmp dword [ebp - 4], edi
jle 0x41faa2
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x34]
push eax
push 4
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
push edx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
mov byte [esp + 0x1c], 0
or edx, 0xffffffff
mov edi, eax
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41faf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fb14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x41fb30
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x446f30
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, 1
mov dword [esp + 0x1c], edi
mov esi, dword [esp + 0x24]
cmp dword [esi - 4], edi
jle 0x41fb78
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00401c30
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x10]
push edx
push 2
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41fbef
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fbb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fbda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov ebp, dword [esp + 0x28]
cmp dword [ebp - 4], edi
jle 0x41fc0a
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00401c30
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0x10]
push ecx
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
test edi, edi
sete dl
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov edi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fc4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fc71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret