joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007c62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100bb88]
push ebx
push esi
push edi
jae 0x1007de7
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100bba0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x1007de7
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1007cb6
xor eax, eax
jmp 0x1007dfb
test al, 0x20
je 0x1007cc7
push 2
push edi
push edi
push ecx
call fcn.010087e6
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1007d83
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x1007dbb
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1007d1d
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1007d0e
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1007cf3
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007d5d
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1007d66
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1007ce7
jmp 0x1007d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1007de2
cmp dword [ebp + 8], edi
je 0x1007dbb
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1007db0
mov dword [0x100b764], eax
jmp 0x1007dee
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007da5
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1007d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1007d68
push dword [ebp + 8]
call fcn.01007a39
pop ecx
jmp 0x1007df8
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1007dd0
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1007caf
mov dword [0x100b760], 0x1c
mov dword [0x100b764], edi
jmp 0x1007df8
sub eax, dword [ebp - 0x10]
jmp 0x1007dfb
and dword [0x100b764], 0
mov dword [0x100b760], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008885
Capabilities:
Clear file content

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
cmp edi, dword [0x100bb88]
jae 0x10089e1
mov eax, edi
sar eax, 5
mov eax, dword [eax*4 + 0x100bba0]
mov ecx, edi
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x10089e1
push 1
push esi
push edi
call fcn.01007e9b
or ebp, 0xffffffff
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x10089dd
push 2
push esi
push edi
call fcn.01007e9b
add esp, 0xc
cmp eax, ebp
je 0x10089dd
push ebx
mov ebx, dword [esp + 0x1c]
sub ebx, eax
test ebx, ebx
jle 0x1008989
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
jne 0x1008921
mov dword [0x100b760], 0xc
or esi, 0xffffffff
jmp 0x10089c9
push 0x8000
push edi
call fcn.010089fc
pop ecx
pop ecx
mov dword [esp + 0x18], eax
mov eax, 0x1000
cmp ebx, eax
jge 0x100893d
mov eax, ebx
push eax
push ebp
push edi
call fcn.01007c62
add esp, 0xc
cmp eax, 0xffffffff
je 0x1008955
sub ebx, eax
test ebx, ebx
jg 0x1008932
jmp 0x100896b
cmp dword [0x100b764], 5
jne 0x1008968
mov dword [0x100b760], 0xd
or esi, 0xffffffff
push dword [esp + 0x18]
push edi
call fcn.010089fc
pop ecx
pop ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10089c9
jge 0x10089c9
push 0
push dword [esp + 0x20]
push edi
call fcn.01007e9b
push edi
call fcn.01007c26
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebp
jne 0x10089c9
mov dword [0x100b760], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x100b764], eax
push 0
push dword [esp + 0x14]
push edi
call fcn.01007e9b
add esp, 0xc
mov eax, esi
pop ebx
jmp 0x10089ee
mov eax, ebp
jmp 0x10089ee
mov dword [0x100b760], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x1002736
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
cmp dword [ebp + 8], 0x13d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push esi
push edi
mov edi, 0x800
mov esi, 0x1008fc0
je 0x100278c
xor eax, eax
push eax
push edi
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x1000
push eax
push 0x1200
call ebx
test eax, eax
jne 0x10027da
mov eax, dword [0x100530c]
test eax, eax
jne 0x1002774
push 0x1001474
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [0x100530c], eax
push 0
push edi
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], edi
push eax
push 0xa00
call ebx
test eax, eax
jne 0x10027da
push 0x10
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll__ultoa]
add esp, 0xc
push 0x20
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0
push 0x13d
push 0
mov dword [ebp - 0x10], 0x1001464
push 0x3000
jmp 0x100288d
and dword [ebp - 4], 0
push 0x25
push esi
call fcn.01002667
test eax, eax
je 0x100287e
inc eax
inc eax
mov cx, word [eax]
cmp cx, 0x31
jb 0x1002804
cmp cx, 0x39
ja 0x1002804
inc dword [ebp - 4]
jmp 0x100280c
cmp cx, 0x25
jne 0x100280c
inc eax
inc eax
push 0x25
push eax
call fcn.01002667
test eax, eax
jne 0x10027ee
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x10]
jbe 0x100287e
shl eax, 2
push eax
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
cmp eax, edx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1002838
xor esi, esi
jmp 0x1002891
cmp dword [ebp - 4], edx
jbe 0x100285b
cmp edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
jae 0x100284f
add dword [ecx], 4
mov ecx, dword [ecx]
mov ecx, dword [ecx - 4]
jmp 0x1002852
mov ecx, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
inc edx
cmp edx, dword [ebp - 4]
jb 0x100283d
push eax
mov eax, dword [ebp - 8]
push edi
push esi
push 0
push dword [ebp + 8]
or eax, 0x2000
push 0
push eax
call ebx
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x1002891
push dword [ebp + 0x14]
push edi
push esi
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 8]
call ebx
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1002c9e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
push 0x47
pop ecx
push 7
xor eax, eax
push 0x40
push eax
lea edi, [ebp - 0x11c]
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x11c], 0x11c
mov word [ebp - 4], 0x110
call fcn.01003d50
push edx
push eax
push 0x40
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
pop edi
leave
ret
Function at 0x1002d00
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx], edi
je 0x1002d0a
mov eax, ebx
mov esi, ebx
push dword [esp + 0x14]
push dword [eax]
call dword [sym.imp.ntdll.dll_wcscmp]
test eax, eax
pop ecx
pop ecx
je 0x1002d12
add esi, 0x10
inc edi
cmp dword [esi], 0
mov eax, esi
jne 0x1002ced
xor al, al
pop edi
pop esi
pop ebx
ret 8
shl edi, 4
xor eax, eax
mov al, byte [edi + ebx + 4]
shr eax, 1
and eax, 1
jmp 0x1002d0c
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x100b28f
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x100b2b3
mov eax, dword [ebx + 0x14]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x100b388
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
jne 0x100b2e3
push dword [ebx + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x100b2d9
cmp esi, edi
jne 0x100b388
xor esi, esi
mov dword [ebx + 8], edi
jmp 0x100b385
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 8], edi
call dword [eax + 4]
cmp dword [ebx + 0x20], edi
mov dword [ebp - 8], eax
je 0x100b344
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x100b311
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100b388
mov eax, dword [ebp - 8]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0xc], eax
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.0101ba9a
mov esi, eax
xor edi, edi
jmp 0x100b34d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov dword [ebp - 4], eax
cmp esi, edi
jne 0x100b36e
push dword [ebp - 8]
mov eax, dword [ebx]
push dword [ebp - 4]
mov ecx, ebx
call dword [eax + 8]
push eax
push edi
push dword [ebx + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebx + 0x20], edi
je 0x100b381
cmp dword [ebp - 4], edi
je 0x100b381
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, edi
jne 0x100b388
mov dword [ebx + 8], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x100b396
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], edi
mov ebx, ecx
jne 0x100b3ba
mov eax, dword [ebx + 0x1c]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x100b48f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
test eax, eax
jne 0x100b3ea
push dword [ebx + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x100b3e0
cmp esi, edi
jne 0x100b48f
xor esi, esi
mov dword [ebx + 0xc], edi
jmp 0x100b48c
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 8], edi
call dword [eax + 4]
cmp dword [ebx + 0x28], edi
mov dword [ebp - 8], eax
je 0x100b44b
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jne 0x100b418
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100b48f
mov eax, dword [ebp - 8]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0xc], eax
call dword [edx]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.0101ba9a
mov esi, eax
xor edi, edi
jmp 0x100b454
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
mov dword [ebp - 4], eax
cmp esi, edi
jne 0x100b475
push dword [ebp - 8]
mov eax, dword [ebx]
push dword [ebp - 4]
mov ecx, ebx
call dword [eax + 8]
push eax
push edi
push dword [ebx + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp dword [ebx + 0x28], edi
je 0x100b488
cmp dword [ebp - 4], edi
je 0x100b488
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, edi
jne 0x100b48f
mov dword [ebx + 0xc], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x100d9fc
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push edi
xor ebx, ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call esi
cmp eax, 1
je 0x100da4b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x7a
je 0x100da4b
call edi
mov dword [ebp - 4], eax
jmp 0x100daae
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x40
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x100da72
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
push 0x40
call edi
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x100da7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100da46
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push dword [ebp + 8]
push ebx
call esi
test eax, eax
je 0x100daa7
cmp dword [ebp - 0x18], 1
jne 0x100daa7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
jne 0x100dab5
mov dword [ebp - 4], 0x8000ffff
mov esi, dword [ebp - 4]
cmp esi, ebx
jne 0x100daca
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
jmp 0x100dad8
cmp dword [ebp - 8], ebx
je 0x100dad8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x14], ebx
je 0x100dae6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, ebx
jle 0x100daf6
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x100db04
Capabilities:
Manipulate user privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0xf0fff
push ebx
mov dword [ebp - 4], ebx
call fcn.01017258
mov esi, eax
cmp esi, ebx
jne 0x100db88
push edi
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x100db7f
cmp esi, ebx
jne 0x100db7f
mov eax, dword [ebp + 0x10]
push dword [eax + edi*4]
lea eax, [ebp - 0xc]
push eax
call fcn.0101b438
cmp dword [ebp + 8], ebx
lea eax, [ebp - 0xc]
push 1
push eax
je 0x100db5e
push dword [0x10202c8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaAddAccountRights
jmp 0x100db6d
push ebx
push dword [0x10202c8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaRemoveAccountRights
mov esi, eax
cmp esi, 0xc0000060
jne 0x100db79
xor esi, esi
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x100db30
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100e6b3
Capabilities:
Delete user account

Disassembly:
mov eax, 0x101c833
call fcn.01018068
push ecx
push ecx
push esi
push edi
mov esi, ecx
push 0x10202d0
lea ecx, [ebp - 0x10]
call fcn.01007f34
lea eax, [ebp - 0x14]
push eax
push dword [0x10202f0]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.01016a4c
test eax, eax
jne 0x100e708
push 0xf03bf
push edi
push edi
push 1
mov ecx, esi
call fcn.0100df52
push edi
mov ecx, esi
call fcn.0100e48f
push edi
mov ecx, esi
call fcn.0100db95
push dword [0x10202f0]
push edi
call sub.NETAPI32.dll_NetUserDel
mov esi, eax
cmp esi, 5
je 0x100e741
push edi
push edi
push 0x1001868
xor esi, esi
call fcn.010174c4
push edi
push edi
push 0x1001790
call fcn.010174c4
push edi
push edi
push 0x1001948
call fcn.010174c4
cmp esi, edi
jle 0x100e751
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100f000
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x101c8bf
call fcn.01018068
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x100f02c
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100f105
push edi
push dword [esi + 0x20]
lea ecx, [ebp - 0x1c]
call fcn.01007f34
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0x10]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f0d1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp - 0x18], eax
jne 0x100f0c2
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100f0b8
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0x10]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f0d1
cmp dword [esi + 0x28], eax
je 0x100f0a3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.0101bb3d
mov ebx, eax
test ebx, ebx
jne 0x100f0d1
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x100f0e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100f0d1
push dword [esi + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 2
pop ebx
cmp ebx, 2
jne 0x100f0e4
mov eax, dword [esi + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 8], eax
xor ebx, ebx
test ebx, ebx
jne 0x100f0ec
and dword [esi + 0xc], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x14], 0
pop edi
je 0x100f105
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100f11c
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x101c8bf
call fcn.01018068
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x100f148
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100f21b
push edi
push dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.01007f34
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f1ed
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp - 0x18], eax
jne 0x100f1de
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100f1d4
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f1ed
cmp dword [esi + 0x20], eax
je 0x100f1bf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.0101bb3d
mov ebx, eax
test ebx, ebx
jne 0x100f1ed
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x100f1fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100f1ed
push dword [esi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 2
pop ebx
cmp ebx, 2
jne 0x100f1fa
mov eax, dword [esi + 0x10]
mov dword [esi + 4], eax
xor ebx, ebx
test ebx, ebx
jne 0x100f202
and dword [esi + 8], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x14], 0
pop edi
je 0x100f21b
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100f65f
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov eax, 0x101c8bf
call fcn.01018068
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
jne 0x100f68b
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100f764
push edi
push dword [esi + 0x18]
lea ecx, [ebp - 0x1c]
call fcn.01007f34
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f730
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [ebp - 0x18], eax
jne 0x100f721
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x100f717
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [esi + 0xc]
push dword [ebp + 8]
call edi
mov ebx, eax
test ebx, ebx
jne 0x100f730
cmp dword [esi + 0x20], eax
je 0x100f702
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.0101bb3d
mov ebx, eax
test ebx, ebx
jne 0x100f730
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jne 0x100f747
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100f730
push dword [esi + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 2
pop ebx
cmp ebx, 2
jne 0x100f743
lea eax, [esi + 0x10]
push eax
lea ecx, [esi + 4]
call fcn.01008719
xor ebx, ebx
test ebx, ebx
jne 0x100f74b
and dword [esi + 8], 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x14], 0
pop edi
je 0x100f764
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4