joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c43b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46a9f8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c47b
cmp byte [ebx], 0xa
jne 0x41c47b
or byte [eax + edi + 0x28], 4
jmp 0x41c480
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c57e
mov al, byte [edx]
cmp al, 0x1a
je 0x41c560
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c4af
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c4d4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c4de
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c491
jmp 0x41c57e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c55b
cmp dword [ebp - 0xc], 0
je 0x41c55b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46a9f8]
test byte [eax + edi + 0x28], 0x48
je 0x41c535
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c520
mov byte [esi], dl
jmp 0x41c531
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46a9f8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c57e
cmp byte [ebp - 1], 0xa
jne 0x41c544
cmp esi, ebx
jne 0x41c544
mov byte [esi], 0xa
jmp 0x41c57d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041cfbb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c57e
mov byte [esi], 0xd
jmp 0x41c57d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46a9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c57a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c57e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c587
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46a9f8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c5ca
cmp word [esi], dx
jne 0x41c5ca
or byte [edi + eax + 0x28], 4
jmp 0x41c5cf
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c722
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c702
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c611
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c647
cmp eax, edx
jae 0x41c653
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c5e9
jmp 0x41c722
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c6fe
cmp dword [ebp - 0x14], 0
je 0x41c6fe
mov eax, dword [ebx*4 + 0x46a9f8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c6d6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c69f
mov word [esi], cx
jmp 0x41c6d2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46a9f8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46a9f8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46a9f8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c722
pop ebx
cmp word [ebp - 4], bx
jne 0x41c6e7
cmp esi, dword [ebp + 0xc]
jne 0x41c6e7
mov word [esi], bx
jmp 0x41c71f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041cfbb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c722
push 0xd
jmp 0x41c71b
mov ecx, dword [ebx*4 + 0x46a9f8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c719
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c722
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41e54a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e5e7
push ebx
push esi
call fcn.0041e513
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d198
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e594
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5e6
push edi
push eax
call fcn.00418fbd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e5b4
call fcn.00418026
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e5e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d198
add esp, 0x20
test eax, eax
jne 0x41e5d3
push edi
call fcn.00418026
jmp 0x41e5db
push ebx
call fcn.00418026
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4257c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4257ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4257ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4272be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4683c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], esi
jbe 0x427348
mov al, byte [edi + esi]
xor al, 0x73
sub al, 0x6c
push str.Open_Cards
push 0x46a048
mov byte [edi + esi], al
call fcn.004013cb
push eax
call fcn.004022be
mov al, byte [edi + esi]
xor al, 0x74
add al, 0x4e
xor al, 0x70
sub al, 0x65
xor al, 0x22
sub al, 0x73
push str.Taste
mov byte [edi + esi], al
call fcn.0040626d
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0x42856c
call fcn.0040269f
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
call fcn.0040ed7e
xor byte [edi + esi], al
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00404fd7
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x4272da
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00409aec
leave
ret 8
Function at 0x10003db0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x1003890c
call fcn.10013206
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10003e64
test esi, esi
jne 0x10003e64
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10003e48
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10003e42
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003e42
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x10003e31
cmp esi, eax
jae 0x10003e35
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003e23
cmp esi, eax
jb 0x10003e39
xor eax, eax
jmp 0x10003e42
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x10003e6d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x1003890c
call fcn.10013206
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x10003dd5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10003f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003f68
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003f9a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10003f96
cmp esi, eax
jae 0x10003f9a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003f88
cmp esi, eax
jb 0x10003fa0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x100089b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100254d3
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x434], 0
xor eax, eax
mov dword [ebp - 4], 0
call fcn.1000e910
push 0x535a
call fcn.1000eac0
mov esi, eax
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x430]
push ecx
push 0
push esi
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ecx
mov eax, esp
mov dword [ebp - 0x434], esp
push eax
lea ecx, [ebp - 0x430]
call fcn.10003060
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x438], esp
mov esi, esp
call fcn.10003730
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.100088a0
add esp, 8
test eax, eax
je 0x10008a72
mov ecx, 0x1002f3d0
jmp 0x10008a7e
push 0x535b
call fcn.1000eac0
mov ecx, eax
push edi
call fcn.10003060
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10008aaa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret

Function at 0x10009140
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor eax, eax
call fcn.1000e910
push 0x11c
push 0
push edi
call fcn.100157f0
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1000924f
push 0x400
push 0
push 0x10039e20
mov dword [ebp - 4], 0x535d
call fcn.100157f0
add esp, 0xc
lea eax, [ebp - 4]
call fcn.1000eb80
mov esi, dword [eax + 4]
lea eax, [ebp - 4]
call fcn.1000eb80
mov eax, dword [eax]
push 0x10039e20
push esi
push eax
call fcn.10005710
push 0x10039e20
push ecx
push 0x536d
call fcn.1000eac0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 4
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x100091e1
mov ecx, dword [ebp + 8]
push ecx
call eax
jmp 0x100091eb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [edi + 0x10], 2
jne 0x1000924f
cmp dword [edi + 4], 4
jbe 0x1000924f
push 0x535e
call fcn.1000ea70
push eax
push ecx
push 0x536d
call fcn.1000eac0
add esp, 4
push eax
call esi
push eax
call ebx
test eax, eax
je 0x10009239
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 8]
push ecx
mov ecx, dword [edi + 4]
push 0
push 0
push edx
push ecx
call eax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1000a450
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025c89
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x100370a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
push 0x5383
mov dword [ebp - 0x10], 0
call fcn.1000eac0
push ebx
mov ecx, eax
call fcn.10003060
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x1000a4dd
push 0x5384
call fcn.1000eac0
test eax, eax
jne 0x1000a4c2
xor ecx, ecx
jmp 0x1000a4d6
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x1000a4c7
sub ecx, esi
sar ecx, 1
push ecx
push eax
call fcn.100051b0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c790
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025463
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
push 0x1002edd4
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.10003680
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebp - 0x41c]
or eax, 0x20019
push ecx
call fcn.1000d560
test eax, eax
je 0x1000c843
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x1000c816
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c83c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x1000c8e5
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x41c]
push 0x200
lea ecx, [ebp - 0x410]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x1000c88b
test esi, esi
je 0x1000c86f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x1000c830
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000c894
sub eax, edx
lea ecx, [ebp - 0x410]
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.10003680
test esi, esi
je 0x1000c8bd
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000c8e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ca20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025423
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100370a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov esi, ecx
mov dword [ebp - 0x41c], eax
mov edi, edx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], 0x100
mov dword [ebp - 0x414], 0x200
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
push 0x1002edd8
push edi
xor ebx, ebx
mov byte [ebp - 4], 1
call fcn.10003680
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov ebx, dword [ebp + 0xc]
push esi
lea edx, [ebp - 0x428]
or eax, 0x20019
push edx
call fcn.1000d560
test eax, eax
je 0x1000caf3
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x1000cac6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000caec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x1000cbf4
mov esi, dword [ebp - 0x428]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x410]
push edx
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x210]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x1000cb34
test esi, esi
je 0x1000cac6
push esi
jmp 0x1000cac0
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000cb40
sub eax, edx
mov edx, dword [ebp - 0x41c]
lea ecx, [ebp - 0x210]
sar eax, 1
push ecx
push edx
mov ebx, eax
call fcn.10003680
mov eax, dword [ebp - 0x418]
dec eax
je 0x1000cbb6
mov eax, dword [ebp - 0x414]
test eax, eax
jns 0x1000cb81
push 0x80070057
call fcn.100040a0
mov ecx, dword [edi]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or ecx, edx
jge 0x1000cba1
mov ecx, edi
call fcn.10004100
mov eax, dword [ebp - 0x414]
mov edi, dword [edi]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
call fcn.10016130
add esp, 0xc
jmp 0x1000cbc1
lea edx, [ebp - 0x410]
call fcn.10003230
test esi, esi
je 0x1000cbcc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cbf2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10013396
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000cc20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 0xc]
push 0x80000002
lea ecx, [ebp - 0x14]
or eax, 0x20019
push ecx
mov byte [ebp - 1], 1
call fcn.1000d560
test eax, eax
je 0x1000ccaa
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000cc63
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000cc82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cca1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000cce8
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x1000ccdd
cmp eax, 2
jne 0x1000cce8
mov eax, dword [ebp + 8]
shr eax, 1
jne 0x1000cce8
xor bl, bl
jmp 0x1000cceb
mov bl, byte [ebp - 1]
test esi, esi
je 0x1000ccf6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop esi
test edx, edx
jg 0x1000cd16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cd35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000cf40
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push ebx
mov ebx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
or eax, 0x20006
push edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.1000d560
test eax, eax
je 0x1000cfc9
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1000cf82
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cfa1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000cfc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test esi, esi
je 0x1000cfe7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
test ebx, ebx
sete bl
test esi, esi
je 0x1000cff7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x1000d017
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000d036
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8