joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d59c5f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x128]
push esi
mov esi, dword [esp + 0x124]
test eax, eax
je 0x6d59c799
push ebx
push edi
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.6d592e60
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x10], 0x104
lea ebx, [esp + 0x20]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x6d59c654
mov eax, dword [eax]
jmp 0x6d59c656
xor eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push ebp
call edi
cmp eax, 0xea
jne 0x6d59c6b9
mov ecx, dword [esp + 0x10]
lea edx, [ecx - 1]
cmp edx, 0x3fffe
ja 0x6d59c6b9
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x1c], 1
test eax, eax
je 0x6d59c6a6
mov eax, dword [eax]
jmp 0x6d59c6a8
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ebp
call edi
xor edi, edi
xor ebp, ebp
test eax, eax
jne 0x6d59c745
mov eax, dword [esp + 0x18]
dec eax
je 0x6d59c71a
sub eax, 3
je 0x6d59c6fe
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x2c0]
push ecx
push esi
call edx
mov edi, eax
test edi, edi
je 0x6d59c726
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x340]
push ebx
push ecx
push ebp
push edi
push esi
call edx
mov ebp, edi
jmp 0x6d59c726
mov eax, dword [ebx]
mov ecx, dword [0x6d5e2e8c]
mov edx, dword [0x6d5e2e80]
push eax
push ecx
push edx
push esi
call fcn.6d591b20
add esp, 0x10
jmp 0x6d59c724
push ebx
push esi
call fcn.6d592b30
add esp, 8
mov ebp, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [0x6d5e2e84]
mov edx, dword [0x6d5e2e88]
push ebp
push eax
push ecx
push edx
push esi
call fcn.6d591b20
add esp, 0x14
mov edi, eax
cmp dword [esp + 0x1c], 0
je 0x6d59c755
push ebx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x6d59c795
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59c795
test esi, esi
je 0x6d59c795
mov eax, dword [esi]
test eax, eax
je 0x6d59c77c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59c78c
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop ebx
mov ecx, dword [esp + 0x11c]
pop esi
pop ebp
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x118
ret 0x10
Function at 0x6d59c870
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x6d59c916
mov eax, dword [esp + 0x18]
test eax, eax
je 0x6d59c916
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push eax
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.6d592e60
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test ecx, ecx
je 0x6d59c8ba
mov eax, dword [ecx]
test eax, eax
je 0x6d59c8ba
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esp + 0x20]
jmp 0x6d59c8bc
xor eax, eax
lea edi, [eax + eax]
test ecx, ecx
je 0x6d59c8c7
mov esi, dword [ecx]
jmp 0x6d59c8c9
xor esi, esi
push ebp
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59c8e2
mov eax, dword [eax]
jmp 0x6d59c8e4
xor eax, eax
mov edx, dword [esp + 0x1c]
push edi
push esi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.6d592330
lea ecx, [esp + 0x20]
call fcn.6d592330
pop edi
test esi, esi
pop esi
pop ebx
sete al
pop ebp
ret 0x14
xor al, al
pop ebp
ret 0x14

Function at 0x6d59c920
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6d59c9a5
push eax
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59c945
mov eax, dword [eax]
jmp 0x6d59c947
xor eax, eax
mov edx, dword [esp + 0xc]
push ebx
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
test eax, eax
sete bl
test esi, esi
je 0x6d59c99a
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59c99a
test esi, esi
je 0x6d59c99a
mov eax, dword [esi]
test eax, eax
je 0x6d59c981
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59c991
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
test bl, bl
pop ebx
je 0x6d59c9a5
mov al, 1
ret 0x10
xor al, al
ret 0x10
Function at 0x6d59ca20
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6d5db088
push 0x6d5ca792
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6d5e2a5c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x10]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov ebx, eax
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
push esi
push 1
push esi
push str.JavaWebStart
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
call esi
test eax, eax
jne 0x6d59ca99
push 8
push 1
push eax
push str.JavaWebStart
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x6d59cac7
push ebx
push edi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x6d59cac7
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
push esi
mov ecx, dword [eax + 0x2c0]
call ecx
mov dword [ebp - 0x20], eax
push ebx
push edi
push 0
push eax
mov ecx, esi
call fcn.6d591dc0
mov dword [ebp - 4], 0xfffffffe
call fcn.6d59caed
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6d59d320
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6d5db108
push 0x6d5ca792
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6d5e2a5c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 0x8004
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x6d59d392
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.6d59d260
add esp, 8
jmp 0x6d59d451
mov edi, dword [ebp + 0x14]
push edi
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x24], esi
push esi
push edi
push ebx
mov eax, dword [ebp + 0x10]
push eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.6d59c9f0
push ebx
push esi
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
jne 0x6d59d3d8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.6d59d260
add esp, 8
jmp 0x6d59d451
mov dword [ebp + 0x18], ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ebx
push ebx
push 2
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptSignHashW]
call ebx
test eax, eax
jne 0x6d59d406
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
push edi
call fcn.6d59d260
add esp, 8
jmp 0x6d59d44f
mov ecx, dword [ebp + 0x18]
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov esi, eax
mov dword [ebp - 0x20], esi
lea edx, [ebp + 0x18]
push edx
push esi
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call ebx
test eax, eax
je 0x6d59d3f4
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
push edx
push edi
mov eax, dword [ecx + 0x2c0]
call eax
mov ebx, eax
push esi
mov ecx, dword [ebp + 0x18]
push ecx
push 0
push ebx
mov ecx, edi
call fcn.6d591dc0
mov dword [ebp - 0x28], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.6d59d476
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x6d59d7d0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push str.Shell_TrayWnd
push 0
push 0
call esi
test eax, eax
je 0x6d59d80d
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 4]
pop esi
cmp eax, dword [esp + 8]
jl 0x6d59d84d
cmp eax, dword [esp + 0x10]
jg 0x6d59d84d
mov eax, dword [esp + 4]
cmp eax, dword [esp + 0xc]
jl 0x6d59d84d
cmp eax, dword [esp + 0x14]
jg 0x6d59d84d
xor al, al
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1c
ret 8
mov ecx, dword [esp + 0x18]
xor ecx, esp
mov al, 1
call fcn.6d5ca6ac
add esp, 0x1c
ret 8

Function at 0x6d59da50
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1840
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x183c], eax
push esi
push edi
push 0x6d5cec6c
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push 0x800
lea ecx, [esp + 0x848]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
lea edi, [esp + 0x1044]
lea eax, [esp + 0x844]
call fcn.6d59d9f0
mov edx, edi
push edx
lea eax, [esp + 0x48]
push str._sjavacpl.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x38
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea eax, [esp + 8]
lea edx, [esp + 0x44]
push eax
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0x6d5cda3c
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], 5
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x6d59db17
push 0x10
push str.Unable_to_Start_Java_Plug_in_Control_Panel
lea ecx, [esp + 0x4c]
push ecx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x1844]
pop edi
pop esi
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x1840
ret 8
Function at 0x6d59ddf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.6d592e60
mov edx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push esi
push eax
call fcn.6d592e60
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x18
xor bl, bl
test eax, eax
je 0x6d59dee5
xor ecx, ecx
cmp dword [eax], ecx
sete cl
test cl, cl
jne 0x6d59dee5
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6d59df2b
cmp dword [ecx], 0
je 0x6d59dee9
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x6d59de96
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6d59de7f
mov eax, dword [eax]
jmp 0x6d59de81
xor eax, eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x6d59dee1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], 4
test eax, eax
je 0x6d59deaa
mov eax, dword [eax]
jmp 0x6d59deac
xor eax, eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x2c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x6d59dee1
cmp dword [esp + 0x14], esi
setne bl
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x6d59df2b
mov esi, ecx
add ecx, 8
push ecx
call edi
test eax, eax
jne 0x6d59df1f
test esi, esi
je 0x6d59df1f
mov eax, dword [esi]
test eax, eax
je 0x6d59df06
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59df16
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], 0
test eax, eax
je 0x6d59df61
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x6d59df61
test esi, esi
je 0x6d59df61
mov eax, dword [esi]
test eax, eax
je 0x6d59df48
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59df58
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret 0x10
Function at 0x6d59df70
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.6d592e60
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push esi
push eax
call fcn.6d592e60
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x18
test eax, eax
je 0x6d59e04f
xor ecx, ecx
cmp dword [eax], ecx
sete cl
test cl, cl
jne 0x6d59e04f
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x6d59e095
xor edx, edx
cmp dword [ecx], edx
sete dl
test dl, dl
jne 0x6d59e053
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x6d59e012
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6d59dffb
mov eax, dword [eax]
jmp 0x6d59dffd
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x6d59e04b
movzx edx, byte [esp + 0x20]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], edx
test eax, eax
je 0x6d59e027
mov eax, dword [eax]
jmp 0x6d59e029
xor eax, eax
mov edx, dword [esp + 0x1c]
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x6d59e095
mov esi, ecx
add ecx, 8
push ecx
call edi
test eax, eax
jne 0x6d59e089
test esi, esi
je 0x6d59e089
mov eax, dword [esi]
test eax, eax
je 0x6d59e070
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e080
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
test eax, eax
je 0x6d59e0cb
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x6d59e0cb
test esi, esi
je 0x6d59e0cb
mov eax, dword [esi]
test eax, eax
je 0x6d59e0b2
push eax
call ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e0c2
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebx
ret 0x14
Function at 0x6d59e1b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x2008
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x2014]
push esi
mov esi, dword [esp + 0x2010]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x2030]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov dword [esp + 0x24], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x6d59e22a
lea edx, [esp + 8]
push edx
push esi
call fcn.6d592b30
add esp, 8
pop esi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x2008
ret 0x14
mov ecx, dword [esp + 0x2008]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d5ca6ac
add esp, 0x2008
ret 0x14

Function at 0x6d59e250
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2008
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x2004], eax
mov ecx, dword [esp + 0x201c]
mov eax, dword [esp + 0x2014]
push esi
mov esi, dword [esp + 0x2010]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x2030]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x6d59e2cd
lea eax, [esp + 8]
push eax
push esi
call fcn.6d592b30
add esp, 8
pop esi
mov ecx, dword [esp + 0x2004]
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x2008
ret 0x14
mov ecx, dword [esp + 0x2008]
pop esi
xor ecx, esp
xor eax, eax
call fcn.6d5ca6ac
add esp, 0x2008
ret 0x14

Function at 0x6d59e510
Capabilities:
Delete registry key

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
push eax
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59e531
mov eax, dword [eax]
jmp 0x6d59e533
xor eax, eax
push esi
push edi
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, dword [esp + 0x18]
mov edi, eax
test esi, esi
je 0x6d59e583
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59e583
test esi, esi
je 0x6d59e583
mov eax, dword [esi]
test eax, eax
je 0x6d59e56a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e57a
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x6d59e590
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x2010
call fcn.6d5ca7f0
mov eax, dword [0x6d5e2a5c]
xor eax, esp
mov dword [esp + 0x200c], eax
mov eax, dword [esp + 0x2020]
push ebx
push esi
mov esi, dword [esp + 0x2024]
push edi
mov edi, dword [esp + 0x2020]
push eax
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x18], 0x1000
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59e5e1
mov eax, dword [eax]
jmp 0x6d59e5e3
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [esp + 0x10]
test eax, eax
sete bl
test esi, esi
je 0x6d59e641
lea edx, [esi + 8]
push edx
call dword [sym.imp.kernel32.dll_InterlockedDecrement]
test eax, eax
jne 0x6d59e641
test esi, esi
je 0x6d59e641
mov eax, dword [esi]
test eax, eax
je 0x6d59e628
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e638
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
test bl, bl
je 0x6d59e66a
cmp dword [esp + 0xc], 0
jbe 0x6d59e66a
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x6d59e65a
cmp eax, 2
jne 0x6d59e66a
lea eax, [esp + 0x18]
push eax
push edi
call fcn.6d592b30
add esp, 8
jmp 0x6d59e66c
xor eax, eax
mov ecx, dword [esp + 0x2018]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6d5ca6ac
add esp, 0x2010
ret 0x10
Function at 0x6d59e690
Capabilities:
Set registry value

Disassembly:
cmp dword [esp + 0x10], 0
je 0x6d59e7fb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x6d59e7fb
push ebp
mov ebp, dword [esp + 8]
push esi
push eax
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.6d592e60
mov esi, dword [esp + 0x28]
add esp, 0xc
xor edx, edx
test esi, esi
je 0x6d59e6cc
mov ecx, dword [esi]
test ecx, ecx
jne 0x6d59e6dd
lea ecx, [esp + 0x1c]
call fcn.6d592330
pop esi
or eax, 0xffffffff
pop ebp
ret 0x14
movzx eax, word [ecx]
test ax, ax
je 0x6d59e70d
cmp ax, 0x25
jne 0x6d59e6f3
inc edx
cmp edx, 2
je 0x6d59e70d
jmp 0x6d59e701
cmp ax, 0x20
je 0x6d59e6ff
cmp ax, 9
jne 0x6d59e701
xor edx, edx
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x6d59e6e5
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp edx, 2
sete bl
push edi
inc ebx
test eax, eax
je 0x6d59e72b
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, dword [esp + 0x24]
jmp 0x6d59e72d
xor eax, eax
lea edi, [eax + eax]
test esi, esi
je 0x6d59e738
mov esi, dword [esi]
jmp 0x6d59e73a
xor esi, esi
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.6d592e60
mov eax, dword [eax]
add esp, 0xc
test eax, eax
je 0x6d59e757
mov eax, dword [eax]
jmp 0x6d59e759
xor eax, eax
push edi
push esi
push ebx
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6d59e7ba
mov esi, eax
add eax, 8
push eax
call edi
test eax, eax
jne 0x6d59e7b2
test esi, esi
je 0x6d59e7b2
mov eax, dword [esi]
test eax, eax
je 0x6d59e799
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e7a9
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], 0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x6d59e7f2
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x6d59e7f2
test esi, esi
je 0x6d59e7f2
mov eax, dword [esi]
test eax, eax
je 0x6d59e7d9
push eax
call ebp
mov eax, dword [esi + 4]
test eax, eax
je 0x6d59e7e9
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 0x14
or eax, 0xffffffff
ret 0x14