joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52e7c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.OnCountFlashData
call fcn.004e8fb0
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00531e90
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push 8
call fcn.0055bea0
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
push 8
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.0055ebc0
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [eax], 1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [ecx + 4], edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x54b540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x52eb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x537a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x52f280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x270
call fcn.004e9c70
push eax
call fcn.004e4770
add esp, 4
test eax, eax
je 0x52f338
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.cdm_exit_run_cdm
call fcn.004e98c0
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
call fcn.00531db0
mov ecx, dword [ebp - 0xc]
add ecx, 0x288
call fcn.004e9c70
push eax
call fcn.004e5fe0
add esp, 4
test eax, eax
je 0x52f300
push 0
push 0x7d0
push 0xa
mov ecx, dword [ebp - 0xc]
add ecx, 4
call fcn.00551030
jmp 0x52f336
mov dword [ebp - 8], 0
push 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x2a0
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x270
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0xc]
call fcn.0053f890
mov dword [ebp - 0x1c], eax
jmp 0x52f379
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.cdm_not_exit_download_cdm
call fcn.004e98c0
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0xc]
call fcn.00531db0
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x537930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x2c0], 2
jl 0x52f3a9
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x537960
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x10
Function at 0x530380
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e64b
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x244], 0
lea ecx, [ebp - 0x238]
call fcn.004e98a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0x5a9d58
lea eax, [ebp - 0x23c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x248]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x53051e
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0055ebc0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea ecx, [ebp - 0x21c]
push ecx
push 0
lea edx, [ebp - 0x220]
push edx
push 0
push 0x5a9ed0
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x530498
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
push 0x5a9f04
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x53050c
lea eax, [ebp - 0x26c]
push eax
call fcn.004e7fe0
add esp, 4
mov dword [ebp - 0x24c], eax
mov ecx, dword [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e9990
lea ecx, [ebp - 0x26c]
call fcn.004e99d0
lea ecx, [ebp - 0x238]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
push 0x5aa048
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5305c0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x248]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5305c0
lea ecx, [ebp - 0x284]
push ecx
call fcn.004e7fe0
add esp, 4
mov dword [ebp - 0x250], eax
mov edx, dword [ebp - 0x250]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e9990
lea ecx, [ebp - 0x284]
call fcn.004e99d0
lea ecx, [ebp - 0x238]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
push 0x5aa164
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004e1d70
add esp, 8
mov ecx, dword [ebp - 0x244]
or ecx, 1
mov dword [ebp - 0x244], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 4
Function at 0x530620
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e68b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.004e3b70
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004e9c70
push eax
push str._sSoftwareMicrosoftWindowsCurrentVersionminiconfig
lea ecx, [ebp - 0x28]
push ecx
call fcn.004e2580
add esp, 0xc
lea edx, [ebp - 0x44]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x28]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x5306e4
lea ecx, [ebp + 0x20]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x20]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x53073e
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x53073e
lea ecx, [ebp + 0x20]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004e99d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.004e99d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x30
Function at 0x530790
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e6e9
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 2
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9870
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
push ecx
call fcn.004e3b70
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x24]
call fcn.004e9c70
push eax
lea ecx, [ebp - 0x250]
call fcn.004e9c70
push eax
push 0x5aa968
lea edx, [ebp - 0x268]
push edx
call fcn.004e2580
add esp, 0x10
mov byte [ebp - 4], 5
lea eax, [ebp - 0x26c]
push eax
push 0x2001f
push 0
lea ecx, [ebp - 0x268]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jne 0x530943
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.0055ebc0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea eax, [ebp - 0x21c]
push eax
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5308f3
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x530936
lea ecx, [ebp + 0x3c]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov edx, dword [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x274], eax
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x238]
push edx
mov ecx, dword [ebp + 8]
call fcn.004e9920
mov eax, dword [ebp - 0x270]
or eax, 1
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x268]
call fcn.004e99d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x250]
call fcn.004e99d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x3c]
call fcn.004e99d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x530e20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9870
mov byte [ebp - 4], 2
mov dword [ebp - 0x244], 0x5ab790
lea ecx, [ebp - 0x23c]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x530f9a
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0055ebc0
add esp, 0xc
mov dword [ebp - 0x220], 1
lea edx, [ebp - 0x21c]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x530f48
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9a20
jmp 0x530f8b
lea ecx, [ebp + 0x24]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x53100a
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x53100a
lea ecx, [ebp - 0x238]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 0xc]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x23c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x240], eax
mov edx, dword [ebp - 0x23c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp + 8]
call fcn.004e9920
mov ecx, dword [ebp - 0x248]
or ecx, 1
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.004e99d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x34
Function at 0x531070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e816
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004e92b0
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.004e1e00
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004e98a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call fcn.004e9c70
push eax
push 0x5ab920
lea ecx, [ebp - 0x268]
push ecx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 3
lea edx, [ebp - 0x26c]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x268]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x274], eax
cmp dword [ebp - 0x274], 0
jne 0x5311d2
xor eax, eax
mov word [ebp - 0x218], ax
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0055ebc0
add esp, 0xc
mov dword [ebp - 0x21c], 1
lea edx, [ebp - 0x220]
push edx
push 0
lea eax, [ebp - 0x21c]
push eax
push 0
push 0x5aba3c
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5311c5
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
push ecx
push 0
push 0x5aba64
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x238]
call fcn.004e9a20
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x238]
call fcn.004e9c70
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.004e1d70
add esp, 8
mov eax, dword [ebp - 0x270]
or eax, 1
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x268]
call fcn.004e99d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004e90c0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x531470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e8c7
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x69], 0
lea ecx, [ebp + 8]
call fcn.004e92b0
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004e1e00
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.004e9c70
push eax
push 0x5ac0cc
lea ecx, [ebp - 0x30]
push ecx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x68]
push edx
push 0x2001f
push 0
lea ecx, [ebp - 0x30]
call fcn.004e9c70
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x5315bd
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x5ac1d8
mov edx, dword [ebp - 0x68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x531553
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0
push str.isScriptDebugger
mov eax, dword [ebp - 0x68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x68]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x64], 1
jne 0x531569
mov byte [ebp - 0x6a], 1
jmp 0x53156d
mov byte [ebp - 0x6a], 0
mov dl, byte [ebp - 0x6a]
mov byte [ebp - 0x69], dl
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp + 8]
call fcn.004e92b0
push eax
push str._s_dwDebugger_lu
lea ecx, [ebp - 0x60]
push ecx
call fcn.004e2600
add esp, 0x10
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x78], esp
lea edx, [ebp - 0x60]
push edx
call fcn.004e8f30
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x74]
call fcn.00531e90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
call fcn.004e90c0
mov al, byte [ebp - 0x69]
mov byte [ebp - 0x6b], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004e99d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e90c0
mov al, byte [ebp - 0x6b]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x18
Function at 0x5316d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e90f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e98a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x80]
push eax
call fcn.004e5650
add esp, 4
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9990
lea ecx, [ebp - 0x80]
call fcn.004e99d0
mov dword [ebp - 0x40], 0x5ac668
lea edx, [ebp - 0x2c]
push edx
push 0x2001f
push 0
mov eax, dword [ebp - 0x40]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x53179e
lea ecx, [ebp - 0x28]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c70
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5317f3
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5317f3
lea ecx, [ebp - 0x28]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.004e9c70
push eax
push 1
push 0
lea ecx, [ebp + 8]
call fcn.004e9c70
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
push 0x5acfb8
lea ecx, [ebp - 0x98]
call fcn.004e98c0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x50]
push edx
call fcn.004eea40
add esp, 8
mov byte [ebp - 0x2d], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004e99d0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x531895
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x68], esp
lea edx, [ebp - 0x28]
push edx
call fcn.004e9870
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea edx, [ebp + 8]
push edx
call fcn.004e9870
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
call fcn.00530620
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x64], esp
push str.write_value_successful.
call fcn.004e8fb0
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x3c]
call fcn.00531e90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e99d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret 0x18