joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa0d30
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0xa0d5e
mov eax, ebx
call fcn.000a17d4
cmp dword [ebx + 0x3c], 0
je 0xa0d57
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0xa0dcf
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0xa0dc1
cmp dword [ebx + 8], 0
je 0xa0d80
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0xa0d92
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0xa0dc1
cmp dword [ebx + 8], 0
je 0xa0d73
cmp eax, 3
je 0xa0da5
dec eax
jne 0xa0d73
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0xa0d73
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0xa0d73
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0xa0ded
cmp dword [ebx + 0x10], 0xcc
je 0xa0ded
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.000a0df8
pop ebx
ret

Function at 0xb4334
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.000140ac
mov eax, dword [ebp - 8]
call fcn.000140ac
xor eax, eax
push ebp
push 0xb44a8
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
jne 0xb4381
lea eax, [ebp - 4]
mov edx, 0xb44c0
call fcn.00013d10
cmp dword [ebp - 8], 0
jne 0xb4394
lea eax, [ebp - 8]
mov edx, 0xb44cc
call fcn.00013d10
xor eax, eax
push ebp
push 0xb4479
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
call fcn.00013ef8
test eax, eax
jne 0xb43d5
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebx + 0xc]
call fcn.0001270c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0xb4425
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xe4]
mov dl, 1
call fcn.000b1ad4
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0xe4]
call fcn.00013ccc
mov eax, dword [ebx + 0xe4]
call fcn.00013ef8
add eax, 0xd
call fcn.0001270c
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0xe4]
call fcn.00013ef8
mov ecx, eax
inc ecx
mov edx, dword [ebx + 0xe4]
mov eax, dword [ebp - 0xc]
call fcn.00019ae0
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.000140bc
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0xb4463
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00013e30
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.0001972c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb4480
mov eax, dword [ebp - 0xc]
call fcn.00012724
ret
Function at 0xb4b10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xb4baf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xe4]
mov edx, esi
call fcn.00014008
je 0xb4b94
test esi, esi
je 0xb4b87
lea edx, [ebp - 8]
mov eax, esi
call fcn.000197f4
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0xb4bc4
call fcn.00013f44
mov eax, dword [ebp - 4]
call fcn.000140bc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0xb4b87
cmp eax, 6
je 0xb4b87
push esi
mov ecx, 0x2b2b
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b3014
call fcn.000136a8
lea eax, [ebx + 0xe4]
mov edx, esi
call fcn.00013ccc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb4bb6
lea eax, [ebp - 8]
mov edx, 2
call fcn.00013c9c
ret
Function at 0xb570c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.000140ac
xor eax, eax
push ebp
push 0xb5a24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
test eax, eax
jbe 0xb574e
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
call fcn.000b5174
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xb58f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.000140bc
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x100], ebx
cmp ebx, 0x20
jbe 0xb5871
push 0xb5a34
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x118], esi
test esi, esi
je 0xb57c7
push 0xb5a40
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x120], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x120], 0
je 0xb57f0
push 0xb5a4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x11c], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x11c], 0
je 0xb5819
push 0xb5a58
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x110], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x110], 0
je 0xb5842
push 0xb5a68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0xec], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xec], 0
je 0xb58df
push 0xb5a74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], eax
jmp 0xb58df
mov eax, dword [ebp - 4]
cmp byte [eax + 0xea], 0
jne 0xb5889
mov eax, dword [ebp - 4]
cmp byte [eax + 0xe8], 0
je 0xb58df
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0001a204
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 2
mov eax, 0xb5a84
call fcn.0001a128
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
xor ecx, ecx
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.000b44d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb58fd
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0xb65b0
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, edx
mov esi, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push 0xb670c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0xb6640
push 0xb6718
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov ebp, eax
test ebp, ebp
je 0xb663a
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0x158]
call fcn.000140bc
push eax
call ebp
test eax, eax
jne 0xb663a
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esp + 0x14], 0xffffffff
jne 0xb66cb
cmp dword [esp + 0x10], 0xffffffff
jne 0xb66cb
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x158]
call fcn.000140bc
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0xb66cb
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00016b14
call fcn.00016b14
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0xc]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x14]
xor edx, edx
call fcn.00016b14
call fcn.00016b14
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test edi, 1
je 0xb66e7
mov eax, dword [esp + 0x10]
mov dword [esi + 0x180], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x184], eax
test edi, 2
je 0xb6703
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1e8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x1ec], eax
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xb67a4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x118], edx
mov esi, eax
xor eax, eax
push ebp
push 0xb6954
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
mov dword [esi + 0x1e8], 0
mov dword [esi + 0x1ec], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
lea eax, [esi + 0x20c]
call fcn.00013c78
mov byte [ebp - 0x114], 0
mov byte [ebp - 1], 0
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x158]
call fcn.00018f0c
mov eax, dword [ebp - 0x118]
mov bl, byte [eax]
cmp bl, 0x5c
je 0xb688e
cmp bl, 0x41
jb 0xb683c
cmp bl, 0x5a
jbe 0xb6859
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b3014
call fcn.000136a8
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor eax, eax
mov al, bl
sub eax, 0x41
cmp eax, 0x1f
ja 0xb686f
bt edi, eax
jb 0xb688e
mov eax, dword [esi + 0x158]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0xb2e40]
call fcn.000b3014
call fcn.000136a8
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [esi + 0x158]
call fcn.000140bc
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0xb68e6
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0xb68de
test byte [esi + 0x12e], 2
je 0xb68de
mov byte [ebp - 1], 1
push edi
call sub.kernel32.dll_SetErrorMode
jmp 0xb693b
lea eax, [esi + 0x20c]
lea edx, [ebp - 0x114]
mov ecx, pe_nt_image_headers32
call fcn.00013ea8
test byte [ebp - 6], 8
setne al
mov byte [esi + 0x210], al
mov edx, 3
mov eax, esi
call fcn.000b65b0
push edi
call sub.kernel32.dll_SetErrorMode
cmp bl, 0x5c
je 0xb6937
cmp bl, 0x5c
je 0xb693b
cmp dword [esi + 0x1ec], 0xffffffff
jne 0xb6935
cmp dword [esi + 0x1e8], 0xffffffff
je 0xb693b
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb695b
lea eax, [ebp - 0x118]
call fcn.00013c78
ret
Function at 0xba560
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xba5f2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xba600
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0xba5d0
cmp dword [ebp - 0xc], 0
je 0xba5d0
push 0xba63c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
push 0xba64c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xba5f9
cmp dword [ebp - 0xc], 0
je 0xba5ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret

Function at 0xba660
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov word [ebp - 2], ax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0xba6fb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xba70c
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xba6d9
movzx eax, word [ebp - 2]
mov dword [ebp - 0xc], eax
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0xba754
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xba702
cmp dword [ebp - 0x14], 0
je 0xba6f5
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret

Function at 0xba760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0xba800
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
push 0xba810
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xba7de
mov dword [ebp - 0xc], 4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0xba84c
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xba7de
cmp dword [ebp - 8], 1
jne 0xba7de
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xba807
cmp dword [ebp - 0x14], 0
je 0xba7fa
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret
Function at 0xbab14
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0xbac22
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xbac00
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
lea eax, [ebp - 0x18]
call fcn.00075e10
mov eax, dword [ebp - 0x18]
call fcn.000140bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbabde
cmp byte [ebp - 1], 0
je 0xbab99
lea eax, [ebp - 0x14]
mov edx, 0xbac38
call fcn.00013d10
jmp 0xbaba6
lea eax, [ebp - 0x14]
mov edx, 0xbac44
call fcn.00013d10
mov eax, dword [ebp - 0x14]
call fcn.00013ef8
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
call fcn.000140bc
push eax
push 1
push 0
push 0xbac48
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
call fcn.000ba858
call fcn.000ba9d0
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbac07
cmp dword [ebp - 0xc], 0
je 0xbabfa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret

Function at 0xbac80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0xbad62
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xbad45
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x1c]
call fcn.00075e10
mov eax, dword [ebp - 0x1c]
call fcn.000140bc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0xbad23
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xbad70
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0xbad23
cmp dword [ebp - 8], 4
jne 0xbad23
cmp dword [ebp - 0xc], 1
jne 0xbad23
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbad4c
cmp dword [ebp - 0x10], 0
je 0xbad3f
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0xbad84
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0xbae47
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xbae58
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbae25
cmp byte [ebp - 1], 0
je 0xbae14
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0xbae8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
jmp 0xbae25
push 0xbae8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbae4e
cmp dword [ebp - 0xc], 0
je 0xbae41
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0xc], eax
ret

Function at 0xbae9c
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0xbaf9a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xbafa8
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbaf78
cmp byte [ebp - 1], 0
je 0xbaf4e
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0xbafd8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0xbafec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegSetValueExA
jmp 0xbaf78
push 0xbafec
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
push 0xbafd8
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0xbaf78
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbafa1
cmp dword [ebp - 0x10], 0
je 0xbaf94
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x10], eax
ret
Function at 0xbaffc
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0xbb0cc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xbb0dc
push 0x80000003
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbb0aa
cmp byte [ebp - 1], 0
je 0xbb08e
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0xbb124
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
jmp 0xbb0aa
push 0xbb124
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0xbb0aa
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbb0d3
cmp dword [ebp - 0x18], 0
je 0xbb0c6
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
ret

Function at 0xbb140
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0xbb20e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [0xfb1e0]
mov eax, dword [eax]
add eax, 0xf003f
push eax
push 0
push 0
push 0
push 0xbb2d0
push 0x80000003
call sub.advapi32.dll_RegCreateKeyExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0xbb1ec
cmp byte [ebp - 1], 0
je 0xbb1d0
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0xbb30c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegSetValueExA
mov dword [ebp - 8], eax
jmp 0xbb1ec
push 0xbb30c
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0xbb1ec
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xbb215
cmp dword [ebp - 0x18], 0
je 0xbb208
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
mov dword [ebp - 0x18], eax
ret