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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x124], eax
movzx eax, word [ebp + 0x10]
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
cmp eax, 2
mov dword [ebp - 0x120], ebx
mov eax, 0x5ba4d6a0
je 0x5baef4d9
mov eax, 0x5ba4d690
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x110]
push ecx
push ebx
lea ecx, [ebp - 0x118]
push ecx
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x5baef672
cmp dword [ebp - 0x110], 1
jbe 0x5baef672
push dword [ebp - 0x110]
lea eax, [ebp - 0x11c]
push eax
call fcn.5ba561af
test eax, eax
je 0x5baef672
cmp dword [ebp - 0x114], 2
mov eax, 0x5ba4d6a0
je 0x5baef535
mov eax, 0x5ba4d690
lea ecx, [ebp - 0x110]
push ecx
push dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
push ecx
push ebx
push eax
push edi
call esi
test eax, eax
jne 0x5baef661
mov esi, dword [ebp + 0x14]
cmp esi, ebx
mov eax, 0x5ba4c53c
jne 0x5baef567
mov eax, 0x5ba4c544
push eax
push 0x5ba4c54c
push 0x5ba4cb94
mov edi, 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5baef661
cmp dword [ebp - 0x118], 1
jne 0x5baef655
neg esi
push edi
lea eax, [ebp - 0x108]
sbb esi, esi
push eax
add esi, 0x17a1
push esi
call fcn.5ba56439
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
xor edi, edi
inc edi
push edi
push ebx
push 0x5ba4cc40
push dword [ebp - 0x10c]
call esi
cmp dword [ebp - 0x114], 2
mov eax, 0x5ba4cc58
je 0x5baef61f
mov eax, 0x5ba4cc50
push dword [ebp - 0x110]
push dword [ebp - 0x11c]
push edi
push ebx
push eax
push dword [ebp - 0x10c]
call esi
push 4
lea eax, [ebp - 0x114]
push eax
push 4
push ebx
push 0x5ba4cc48
push dword [ebp - 0x10c]
call esi
mov dword [ebp - 0x120], edi
push dword [ebp - 0x10c]
call dword [entry0]
mov eax, dword [0x5bb73714]
push dword [ebp - 0x11c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x120]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0x10
Function at 0x5baef9ae
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5bb70c3c]
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
pop ecx
mov dword [ebp - 0x11c], eax
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x13c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x110]
push eax
push esi
push esi
push esi
push edx
push ebx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5baefb31
cmp dword [ebp - 0x110], esi
je 0x5baefb31
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baefb31
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x108]
push esi
push esi
push dword [ebp - 0x118]
push ebx
call sub.SHLWAPI.dll_SHQueryValueExA
push dword [ebp - 0x108]
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baefb31
mov eax, dword [0x5bb73820]
mov ecx, dword [eax]
lea edx, [ebp - 0x114]
push edx
push dword [ebp - 0x108]
push 0x123503f0
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x5baefae4
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
push 0x100
lea edx, [ebp - 0x104]
push edx
push 0x123d03f0
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x5baefae4
cmp dword [ebp - 0x108], esi
je 0x5baeface
mov eax, dword [0x5bb73714]
push dword [ebp - 0x108]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x108], esi
lea eax, [ebp - 0x104]
push eax
call sub.MSOERT2.dll_PszDupA
cmp eax, esi
mov dword [ebp - 0x108], eax
je 0x5baefb31
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
lea edx, [ebp - 0x13c]
push edx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x108]
push 2
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x11c]
mov ecx, dword [eax]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x138], esi
mov word [ebp - 0x134], 0x1e
call dword [ecx + 0x20]
test eax, eax
jge 0x5baefb37
mov dword [ebp - 0x10c], esi
cmp dword [ebp - 0x108], esi
je 0x5baefb56
mov eax, dword [0x5bb73714]
push dword [ebp - 0x108]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 0x108], esi
mov eax, dword [ebp - 0x114]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x5baefb69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
call fcn.5bb3f314
leave
ret 0x10
Function at 0x5baefd42
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
xor esi, esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5baefdb0
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 4]
push edx
push 1
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
push 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x28], esi
mov word [ebp - 0x24], 0x13
call dword [ecx + 0x20]
test eax, eax
jge 0x5baefdb3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x10
Function at 0x5baeff7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 6
pop ecx
xor esi, esi
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x18], esi
xor ebx, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5baf006b
cmp dword [ebp - 4], esi
je 0x5baf006b
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baf006b
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHQueryValueExA
xor ecx, ecx
cmp dword [ebp - 4], esi
jbe 0x5baf000b
mov eax, dword [ebp - 8]
add eax, ecx
cmp byte [eax], 0x2c
jne 0x5baf0005
mov byte [eax], 0x3b
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x5baefff8
push dword [ebp - 8]
push esi
call sub.MSOERT2.dll_PszToUnicode
mov ebx, eax
cmp ebx, esi
je 0x5baf006b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
call fcn.5bb1b7cc
test eax, eax
jl 0x5baf006b
push dword [ebp - 0xc]
push esi
call sub.MSOERT2.dll_PszToANSI
mov edi, eax
cmp edi, esi
je 0x5baf006e
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x10]
push edx
push 1
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push esi
push eax
mov dword [ebp - 0x2c], esi
mov word [ebp - 0x28], 0x1e
mov dword [ebp - 0x20], edi
call dword [ecx + 0x20]
test eax, eax
jge 0x5baf006e
mov dword [ebp - 0x10], esi
jmp 0x5baf006e
mov edi, dword [ebp - 0x18]
mov eax, dword [0x5bb73714]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [0x5bb73714]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [0x5bb73714]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x14]
mov eax, dword [0x5bb73714]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x5baf032c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5ba4cc7c
mov esi, 0x5ba4f248
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call fcn.5bb1c320
test eax, eax
jl 0x5baf03d0
push dword [ebp - 4]
push dword [ebp - 0xc]
push 3
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call esi
test eax, eax
jne 0x5baf03d0
push edi
push 4
pop edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x5ba4f23c
push dword [ebp + 8]
mov dword [ebp - 8], 0x41
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x5baf03cf
push edi
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x5ba4f234
push dword [ebp + 8]
mov dword [ebp - 8], 2
mov dword [ebp - 4], edi
call esi
test eax, eax
jne 0x5baf03cf
push edi
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
push 0x5ba4f22c
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
pop edi
cmp dword [ebp - 0xc], ebx
pop esi
pop ebx
je 0x5baf03e5
mov eax, dword [0x5bb73714]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
leave
ret 0xc

Function at 0x5baf0440
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push 0x5ba4f248
push dword [ebp + 0xc]
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
je 0x5baf0479
xor esi, esi
jmp 0x5baf050c
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
mov ecx, dword [ebp - 8]
lea ecx, [eax + ecx - 2]
cmp ecx, eax
mov dword [ebp - 0xc], ecx
jae 0x5baf048f
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baf0472
mov ecx, dword [esi]
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebx]
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 esi, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
lea eax, [eax + ecx - 2]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5ba4f248
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
je 0x5baf04e5
xor esi, esi
jmp 0x5baf050b
mov ecx, dword [ebx]
test ecx, ecx
je 0x5baf04fa
mov eax, dword [0x5bb73714]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
and dword [ebx], 0
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
xor esi, esi
inc esi
pop ebx
cmp dword [ebp - 4], 0
je 0x5baf0520
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x5baf0715
Capabilities:
Delete registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
jmp 0x5baf0770
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5ba4f22c
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5baf0769
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x14], eax
je 0x5baf0775
push esi
call ebx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x5baf073c
cmp byte [esi], 0
je 0x5baf07e2
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x5ba4f248
push edi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5baf07e2
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
call fcn.5baaee23
test eax, eax
jl 0x5baf07e2
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5baf07e2
push esi
call ebx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x5baf07fd
push dword [ebp - 8]
push dword [ebp - 4]
push 3
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHSetValueA
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x5baf07f9
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5ba4f22c
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5baf07c9
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x14], eax
jne 0x5baf07c2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
call fcn.5baf0440
test eax, eax
je 0x5baf07ce
push esi
push dword [ebp + 8]
call sub.SHLWAPI.dll_SHDeleteKeyA
push esi
call ebx
lea edi, [eax + esi + 1]
mov eax, dword [ebp + 0x10]
sub eax, edi
add eax, dword [ebp + 0x14]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
mov eax, esi
sub eax, edi
add dword [ebp + 0x14], eax
mov edi, 0x5ba4f248
jmp 0x5baf07c9
Function at 0x5baf0a43
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push 0xf003f
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5baf0b0e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x5ba4f22c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5baf0b0e
mov eax, dword [ebp - 0xc]
push 9
pop ecx
cmp eax, ecx
jg 0x5baf0ad8
je 0x5baf0ad5
dec eax
je 0x5baf0acb
sub eax, 4
je 0x5baf0ac7
dec eax
je 0x5baf0ac3
dec eax
je 0x5baf0abf
dec eax
jne 0x5baf0b0e
push 8
jmp 0x5baf0b01
push 0xc
jmp 0x5baf0af0
push 0xb
jmp 0x5baf0af0
push 0xa
jmp 0x5baf0af0
push dword [ebp - 4]
call fcn.5baf0876
jmp 0x5baf0b0e
push ecx
jmp 0x5baf0b01
sub eax, 0xa
je 0x5baf0aff
dec eax
je 0x5baf0afb
dec eax
je 0x5baf0af7
sub eax, ecx
je 0x5baf0aee
dec eax
jne 0x5baf0b0e
push 0x16
jmp 0x5baf0b01
push 0x16
push 0x5ba4cc7c
jmp 0x5baf0b06
push 0xc
jmp 0x5baf0b01
push 0xb
jmp 0x5baf0b01
push 0xa
push 0x5ba4cc68
push dword [ebp - 4]
call fcn.5baf032c
cmp dword [ebp - 4], edi
pop edi
je 0x5baf0b1d
push dword [ebp - 4]
call dword [entry0]
leave
ret 8

Function at 0x5baf0b26
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0xf003f
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5baf0b9f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x5ba4f274
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5baf0b9f
mov eax, dword [ebp - 0xc]
dec eax
je 0x5baf0b97
sub eax, 5
je 0x5baf0b97
sub eax, 9
jne 0x5baf0b9f
push dword [ebp - 4]
call fcn.5baf09a0
jmp 0x5baf0b9f
push dword [ebp - 4]
call fcn.5baf0876
cmp dword [ebp - 4], esi
pop esi
je 0x5baf0bae
push dword [ebp - 4]
call dword [entry0]
leave
ret 8
Function at 0x5baf0d06
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5bb70c3c]
and dword [ebp - 0x214], 0
cmp dword [ebp + 0x14], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
jle 0x5baf0dfd
push edi
mov edi, dword [esi + 4]
and edi, 0xffff
cmp edi, 0x3f0
je 0x5baf0d67
cmp edi, 0x3f6
je 0x5baf0d67
mov dword [ebp - 0x208], 4
lea eax, [ebp - 0x21c]
jmp 0x5baf0d77
mov dword [ebp - 0x208], 0x200
lea eax, [ebp - 0x204]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x210]
lea eax, [ebp - 0x220]
push eax
push 0
push dword [esi]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5baf0de4
cmp edi, 0x3f6
jne 0x5baf0dc5
push ebx
push dword [esi + 4]
lea eax, [ebp - 0x204]
push dword [ebp - 0x208]
push eax
call fcn.5baef68c
jmp 0x5baf0dda
push dword [ebp - 0x208]
mov eax, dword [ebx]
push dword [ebp - 0x210]
push dword [esi + 4]
push ebx
call dword [eax + 0x18]
test eax, eax
mov dword [ebp - 0x20c], eax
jl 0x5baf0dfc
inc dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
add esi, 8
cmp eax, dword [ebp + 0x14]
jl 0x5baf0d3c
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0x10
Function at 0x5baf13d3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, 0x100
push edi
lea edx, [ebp - 0x104]
xor esi, esi
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push esi
push eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x214], esi
call dword [ecx + 0x24]
test eax, eax
jge 0x5baf1461
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push esi
push 0x5ba47618
push ebx
mov dword [ebp - 0x208], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5baf1461
lea eax, [ebp - 0x204]
push eax
call sub.MSOERT2.dll_FIsEmptyA
test eax, eax
jne 0x5baf1461
mov dword [ebp - 0x214], 1
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x21c], esi
jmp 0x5baf15b4
cmp eax, esi
jne 0x5baf1590
lea eax, [ebp - 0x20c]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5baf1590
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push 0x5ba4e72c
push dword [ebp - 0x20c]
mov dword [ebp - 0x208], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5baf14eb
mov dword [ebp - 0x210], esi
cmp dword [ebp - 0x210], esi
jne 0x5baf1584
cmp dword [ebp - 0x214], esi
je 0x5baf1521
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov dword [ebp - 0x220], 1
je 0x5baf1527
mov dword [ebp - 0x220], esi
push dword [ebp - 0x220]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x218]
push dword [ebp - 0x224]
call fcn.5baf12aa
test eax, eax
jl 0x5baf1576
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push esi
push 0x5ba4e72c
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [ebp - 0x220], esi
je 0x5baf1584
mov dword [ebp - 0x214], esi
push dword [ebp - 0x20c]
call dword [entry0]
inc dword [ebp - 0x21c]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x21c]
push dword [ebp - 0x218]
mov dword [ebp - 0x208], edi
call ebx
cmp eax, 0x103
jne 0x5baf1486
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.5bb3f314
leave
ret 8
Function at 0x5baf1bd9
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
mov esi, ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [esi + 0x1c], edi
call fcn.5ba7331b
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 4]
mov ecx, esi
push dword [ebp - 8]
push 0
push dword [esi + 0x24]
call fcn.5ba6a495
xor eax, eax
pop edi
inc eax
pop esi
leave
ret 4

Function at 0x5baf21da
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x24c], ebx
xor esi, esi
mov dword [ebp - 0x250], 1
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 0x104
cmp eax, ecx
jb 0x5baf222b
mov eax, 0x80004005
jmp 0x5baf2360
push ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp + ebx - 0x108]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
jne 0x5baf225f
dec ebx
mov dword [ebp - 0x24c], ebx
jmp 0x5baf2267
mov byte [ebp + ebx - 0x108], 0x5c
mov dword [ebp - 0x254], 0x103
sub dword [ebp - 0x254], ebx
xor ebx, ebx
push dword [ebp - 0x254]
mov eax, dword [ebp - 0x24c]
push dword [ebx + 0x5bb70960]
lea eax, [ebp + eax - 0x107]
push eax
call edi
and dword [ebp - 0x25c], 0
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x258], eax
je 0x5baf2344
test byte [ebp - 0x248], 0x10
je 0x5baf22e1
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x5baf22bf
jmp 0x5baf22eb
mov dword [ebp - 0x25c], 1
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], 0
je 0x5baf2344
mov eax, dword [ebx + 0x5ba47938]
add eax, dword [ebp - 0x24c]
lea eax, [eax + esi + 3]
cmp eax, dword [ebp + 0xc]
ja 0x5baf236f
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x250], 0
sub eax, esi
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0x260]
add eax, esi
push eax
call edi
mov eax, dword [ebx + 0x5ba47938]
add eax, dword [ebp - 0x24c]
lea esi, [esi + eax + 2]
add ebx, 4
cmp ebx, 0xc
jb 0x5baf2279
mov eax, dword [ebp - 0x260]
mov byte [eax + esi], 0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0x10
mov dword [ebp - 0x250], 0x80004005
jmp 0x5baf235a