joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c33f
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c7f58
call fcn.004946c8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0xc]
cmp dword [eax - 8], 0
je 0x42c3c8
test byte [ebx + 4], 1
jne 0x42c3c8
and dword [ebp - 0x10], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], str..jpg
mov dword [ebp - 0x1c], str..jpeg
mov dword [ebp - 0x18], str..png
mov dword [ebp - 0x14], str..bmp
lea esi, [ebp - 0x20]
push dword [esi]
mov eax, dword [ebx + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0041aa05
add esp, 0xc
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004af98d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004af846
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c3dc
inc dword [ebp - 0x10]
add esi, 4
cmp dword [ebp - 0x10], 4
jb 0x42c386
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
xor eax, eax
jmp 0x42c3cb

Function at 0x42e2eb
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x4c8482
call fcn.004946c8
push ecx
mov eax, dword [0x5009a8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [0x5009a8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 0x10], eax
mov ebx, 0x504fd0
mov byte [ebp - 4], 1
push ebx
mov dword [esi], 0x4d1eb8
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.004af9dd
push ebx
lea ecx, [esi + 0x10]
call fcn.004af9dd
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42e743
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c8594
call fcn.004946c8
sub esp, 0x4c
push dword [ebp + 8]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e8a3
push ebx
push esi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.004af8ba
xor ebx, ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.0042b85e
push ebx
lea ecx, [ebp - 0x58]
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0042b908
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004af8ba
mov eax, dword [0x5009a8]
mov dword [ebp - 0x10], eax
push 0x4f97a4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004afc37
lea ecx, [ebp - 0x38]
call fcn.004939b7
push ebx
lea ecx, [ebp - 0x38]
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00493a7c
xor esi, esi
cmp eax, ebx
je 0x42e864
push edi
lea ecx, [ebp - 0x38]
call fcn.00493ca2
lea ecx, [ebp - 0x38]
mov edi, eax
call fcn.00493c65
test eax, eax
jne 0x42e85b
lea eax, [ebp + 8]
lea ecx, [ebp - 0x38]
push eax
call fcn.00493d71
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.004af98d
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.004af846
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x42e837
cmp dword [ebp + 0x10], ebx
je 0x42e85b
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call fcn.0042e743
jmp 0x42e859
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
je 0x42e84e
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.0042b9e0
test eax, eax
je 0x42e85b
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
call fcn.0042dc55
add esi, eax
cmp edi, ebx
jne 0x42e7d5
pop edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004939f6
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004af846
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004af846
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.0042b8cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004af846
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x42e8b1
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4c85a9
call fcn.004946c8
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1e8]
cmp eax, edi
jne 0x42e8d6
call fcn.0042e96c
push 1
pop eax
jmp 0x42e94e
push 0x74
call fcn.004afe1a
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x42e8f2
push esi
call fcn.0042c62d
jmp 0x42e8f4
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi + 0x1f8], eax
je 0x42e928
push edi
push edi
push 4
mov ecx, eax
call fcn.004b4745
test eax, eax
jne 0x42e92d
mov ecx, dword [esi + 0x1f8]
cmp ecx, edi
je 0x42e922
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x1f8], edi
or eax, 0xffffffff
jmp 0x42e94e
mov eax, dword [esi + 0x1f8]
push edi
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi + 0x1f8]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x42e96c
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4c85bd
call fcn.004946c8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x168]
test eax, eax
jne 0x42e98b
push 1
pop eax
jmp 0x42e9f1
xor ebx, ebx
lea esi, [edi + 0x1fc]
push 0x78
call fcn.004afe1a
pop ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
test eax, eax
je 0x42e9b1
push edi
push ebx
mov ecx, eax
call fcn.0042c6e7
jmp 0x42e9b3
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x42ea1c
push 0
push 0
push 4
mov ecx, eax
call fcn.004b4745
test eax, eax
je 0x42ea00
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esi]
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
inc ebx
add esi, 4
cmp ebx, 2
jl 0x42e993
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [edi + ebx*4 + 0x1fc]
lea esi, [edi + ebx*4 + 0x1fc]
test ecx, ecx
je 0x42ea19
mov eax, dword [ecx]
push 1
call dword [eax + 4]
and dword [esi], 0
or eax, 0xffffffff
jmp 0x42e9f1

Function at 0x42eccc
Capabilities:
Check if file exists

Disassembly:
push dword [0x505088]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42ecf1
push 0
push 0x414
push dword [0x505088]
call fcn.0041a80b
add esp, 0xc
ret
Function at 0x43757b
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4c92f4
call fcn.004946c8
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov edi, 0x504fdc
push str._sMediaProbe.exe
push edi
call fcn.004ad177
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push dword [0x504fdc]
call esi
test eax, eax
jne 0x4375bf
push str.MediaProbe.exe
mov ecx, edi
call fcn.004af9dd
push ebx
mov edi, 0x504fe0
push str._sMediaEncode.exe
push edi
call fcn.004ad177
add esp, 0xc
push dword [0x504fe0]
call esi
test eax, eax
jne 0x4375eb
push str.MediaEncode.exe
mov ecx, edi
call fcn.004af9dd
push dword [0x504fe0]
lea eax, [ebp - 0x14]
push eax
call fcn.0041a8fa
pop ecx
pop ecx
and dword [ebp - 4], 0
push str.Presets
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004afaeb
push eax
mov ecx, 0x504fe4
mov byte [ebp - 4], 1
call fcn.004af98d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004af846
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004af846
push ebx
mov edi, 0x504fe8
push str._sMediaPlay.exe
push edi
call fcn.004ad177
add esp, 0xc
push dword [0x504fe8]
call esi
test eax, eax
jne 0x437662
push str.MediaPlay.exe
mov ecx, edi
call fcn.004af9dd
cmp dword [0x504fec], 0
jne 0x437766
mov eax, dword [0x5009a8]
mov dword [ebp + 8], eax
push 2
lea eax, [ebp + 8]
pop edi
push ebx
push str._s_avcodec_60.dll
push eax
mov dword [ebp - 4], edi
call fcn.004ad177
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4376a2
mov dword [0x504fec], 6
cmp dword [0x504fec], 0
jne 0x43775a
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_59.dll
push eax
call fcn.004ad177
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x4376d4
mov dword [0x504fec], 5
cmp dword [0x504fec], 0
jne 0x43775a
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_58.dll
push eax
call fcn.004ad177
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x437702
mov dword [0x504fec], 4
cmp dword [0x504fec], 0
jne 0x43775a
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_57.dll
push eax
call fcn.004ad177
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x437730
mov dword [0x504fec], 3
cmp dword [0x504fec], 0
jne 0x43775a
push ebx
lea eax, [ebp + 8]
push str._s_avcodec_56.dll
push eax
call fcn.004ad177
add esp, 0xc
push dword [ebp + 8]
call esi
test eax, eax
je 0x43775a
mov dword [0x504fec], edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004af846
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword [0x504ff0], 1
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x437781
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [0x504fe8]
call esi
test eax, eax
je 0x4377a1
xor eax, eax
push eax
push eax
push eax
push dword [0x504fe8]
jmp 0x4377d1
push dword [0x504fe0]
call esi
test eax, eax
je 0x4377ba
xor eax, eax
push eax
push eax
push eax
push dword [0x504fe0]
jmp 0x4377d1
push dword [0x504fdc]
call esi
test eax, eax
je 0x4377d9
xor eax, eax
push eax
push eax
push eax
push dword [0x504fdc]
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop esi
ret

Function at 0x438846
Capabilities:
Check if file exists
Set current directory

Disassembly:
mov eax, 0x4c93ec
call fcn.004946c8
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438884
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0041a8fa
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x10]
call fcn.004af846
lea eax, [ebp - 0x14]
push eax
call fcn.0041c815
pop ecx
mov eax, dword [eax]
and dword [ebp - 4], 0
push 1
push 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00419e0c
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004af846
push dword [ebp + 8]
lea edi, [esi + 0x70]
mov ecx, edi
call fcn.004af9dd
push dword [ebp + 0x10]
mov eax, esi
neg eax
push dword [ebp - 0x24]
lea ecx, [esi + 0x68]
sbb eax, eax
and eax, ecx
mov ecx, esi
push eax
call fcn.00438627
test eax, eax
je 0x4388db
mov esi, eax
jmp 0x438910
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push ebx
push dword [ebp - 0x24]
call dword [eax + 0x28]
test eax, eax
je 0x4388f5
or esi, 0xffffffff
jmp 0x438910
mov edi, dword [edi]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax + 0x2c]
or esi, 0xffffffff
cmp eax, esi
je 0x438910
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00419e79
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4ac190
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004947c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ac25b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ac25b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ac20e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ac219
or bh, 8
and edi, 0x8000000
je 0x4ac234
mov eax, dword [0x508efc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ac25b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5dea17b7
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0x78
push 0x5dea1268
call fcn.5dea1fc0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x5dea195b
mov dword [ebp - 0x20], ecx
mov edi, dword [eax + 4]
mov dword [ebp - 0x24], edi
cmp dword [ebp + 8], ebx
je 0x5dea18c5
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x5dea18c5
inc dword [ebp - 0x28]
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x5dea18c5
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x20], ebx
je 0x5dea189e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
mov esi, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x30]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x38], eax
inc dword [ebp - 0x30]
cmp eax, ebx
jne 0x5dea189e
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x34]
jbe 0x5dea1892
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x34]
push esi
call fcn.5dea16e8
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x5dea1827
mov ecx, dword [ebp - 0x34]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x24], eax
sub dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x24]
jmp 0x5dea1827
mov dword [ebp - 0x1c], 0x2747
mov byte [edi], bl
mov dword [ebp - 0x20], ebx
or dword [ebp - 4], 0xffffffff
jmp 0x5dea18bb
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp byte [ebp + 0x10], bl
je 0x5dea18da
cmp dword [ebp - 0x20], ebx
je 0x5dea195b
mov byte [edi], bl
jmp 0x5dea195b
cmp dword [ebp - 0x20], ebx
je 0x5dea1954
mov dword [ebp - 0x84], 8
mov dword [ebp - 0x88], 0x5dea1070
cmp dword [ebp - 0x84], ebx
je 0x5dea18ca
mov eax, dword [ebp - 0x88]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5dea1904
sub eax, edx
inc eax
cmp dword [ebp - 0x20], eax
jbe 0x5dea1946
mov ecx, eax
mov esi, dword [ebp - 0x88]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec dword [ebp - 0x84]
sub dword [ebp - 0x20], eax
add dword [ebp - 0x24], eax
add dword [ebp - 0x88], 0x2c
mov edi, dword [ebp - 0x24]
cmp dword [ebp - 0x20], ebx
jne 0x5dea18f3
jmp 0x5dea18ca
mov byte [edi], bl
mov dword [ebp - 0x1c], 0x2747
jmp 0x5dea18ca
mov dword [ebp - 0x1c], 0x2747
mov eax, dword [ebp - 0x1c]
call fcn.5dea1ff9
ret 0xc
Function at 0x5dea1966
Capabilities:
Set registry value

Disassembly:
push 0x1c
push 0x5dea1278
call fcn.5dea1fc0
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5dea1680
mov dword [ebp - 0x20], eax
xor esi, esi
cmp eax, esi
jne 0x5dea1a8d
mov dword [ebp - 0x24], 0x34
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x40]
cmp eax, esi
je 0x5dea19a7
add eax, 0x34
mov dword [ebp - 0x24], eax
push dword [ebp - 0x24]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x5dea1a82
mov dword [ebp - 4], esi
xor ecx, ecx
cmp dword [ebx + 0x40], esi
setne cl
mov dword [eax], ecx
mov dword [eax + 4], 0x20
mov ecx, dword [ebx + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
lea edi, [eax + 0x10]
push 8
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x40]
mov esi, dword [ebx + 0x44]
lea edi, [eax + 0x30]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebp - 4], 0xffffffff
jmp 0x5dea1a15
cmp dword [ebp - 0x20], 0
jne 0x5dea1a7a
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x5dea1a77
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
and byte [eax + ecx], 0
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 3
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x2c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5dea1a94
mov dword [ebp - 0x20], 0x271d
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
call fcn.5dea1ff9
ret 0x10
Function at 0x5dea1aa8
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
push 0x5dea1288
call fcn.5dea1fc0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5dea1680
test eax, eax
jne 0x5dea1c51
and byte [ebp - 0x1d], al
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], 0x14
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 4]
cmp byte [eax], 0
jne 0x5dea1afc
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x1c]
call fcn.5dea17b7
mov dword [ebp - 0x40], eax
jmp 0x5dea1c58
mov eax, dword [ebx]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x44], eax
test eax, eax
je 0x5dea1bae
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
and byte [eax + ecx], 0
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call esi
cmp eax, 0xea
jne 0x5dea1b92
push dword [ebp - 0x3c]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x5dea1b74
mov eax, 0x2747
jmp 0x5dea1c64
mov byte [ebp - 0x1d], 1
lea ecx, [ebp - 0x3c]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x5dea1b99
mov dword [ebp - 0x40], 0x2afc
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x44]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x5dea1bb5
mov dword [ebp - 0x40], 0x2747
cmp dword [ebp - 0x40], 0
jne 0x5dea1c3f
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x38]
lea ebx, [eax + 0x10]
mov ecx, dword [eax + 4]
mov esi, ebx
mov edx, dword [ebp + 0x14]
mov edi, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 4]
mov esi, ebx
lea edi, [edx + 0x20]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [eax], 1
jne 0x5dea1c1b
mov ecx, dword [eax + 8]
cmp dword [edx + 0x40], ecx
jb 0x5dea1c24
lea esi, [eax + 0x30]
mov edi, dword [edx + 0x44]
mov ebx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
push edx
call fcn.5dea12f7
jmp 0x5dea1c3b
mov dword [ebp - 0x40], 0x2747
jmp 0x5dea1c3b
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x1d], 0
je 0x5dea1c58
push dword [ebp - 0x38]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
jmp 0x5dea1c58
mov dword [ebp - 0x40], 0x2afc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x40]
call fcn.5dea1ff9
ret 0x10
Function at 0x5dea1c6c
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5dea1680
mov edi, eax
test edi, edi
jne 0x5dea1d68
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
inc eax
push eax
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x5dea1d56
mov ecx, dword [ebx]
mov edx, ecx
push esi
mov esi, dword [ebx + 4]
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx]
and byte [eax + ecx], 0
push dword [ebx]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x5dea1ce8
mov edi, 0x2afc
jmp 0x5dea1d4b
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x5dea1d4b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp + 0xc], ebx
mov edi, eax
jne 0x5dea1d4b
cmp dword [ebp - 8], ebx
jne 0x5dea1d4b
push dword [esi + 0xc]
lea eax, [ebp - 0x2c]
push dword [esi + 8]
push dword [esi + 4]
push dword [esi]
push 0x5dea1244
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop esi
cmp dword [ebp - 4], 0
pop ebx
je 0x5dea1d6d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5dea1d6d
mov edi, 0x2afc
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
leave
ret 0xc