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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x114]
push eax
push 1
xor esi, esi
push esi
push 0x5ba4d500
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x5ba7f43a
push 0x104
push 0x5ba4ce64
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.5ba57156
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5ba7f42e
push 4
pop edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push 0x5ba47778
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], edi
call ebx
test eax, eax
jne 0x5ba7f39e
push edi
lea eax, [ebp - 0x118]
push eax
push edi
push esi
push 0x5ba47778
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push 0x5ba47790
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], edi
call ebx
test eax, eax
jne 0x5ba7f3e0
push edi
lea eax, [ebp - 0x118]
push eax
push edi
push esi
push 0x5ba47790
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push esi
push 0x5ba477a8
push dword [ebp - 0x114]
mov dword [ebp - 0x10c], edi
call ebx
test eax, eax
jne 0x5ba7f422
push edi
lea eax, [ebp - 0x118]
push eax
push edi
push esi
push 0x5ba477a8
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x110]
call dword [entry0]
push dword [ebp - 0x114]
call dword [entry0]
lea eax, [ebp - 0x114]
push eax
push 1
push esi
push 0x5ba4e664
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba7f4ff
mov edi, 0x104
push edi
push 0x5ba4ce9c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.5ba57156
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5ba7f4f3
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
mov dword [ebp - 0x10c], edi
push esi
mov edi, 0x5ba477c0
push edi
push dword [ebp - 0x114]
call ebx
test eax, eax
jne 0x5ba7f4e7
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x110]
call dword [entry0]
push dword [ebp - 0x114]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5ba7f51d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x5ba43ecc
push 0x5ba43e9c
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 0x18], 1
mov dword [0x5bb72060], ebx
mov dword [ebp - 4], 4
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba7f56e
cmp dword [ebp - 0x10], ebx
sete al
cmp eax, ebx
je 0x5ba7f6a7
push 0x104
lea eax, [ebp - 8]
push eax
call fcn.5ba561af
test eax, eax
je 0x5ba7f6a7
push edi
push 0x5ba4ea0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x20], edi
je 0x5ba7f698
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5ba4ea18
push edi
call esi
push 0x5ba43e8c
push edi
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], eax
je 0x5ba7f68e
cmp eax, ebx
je 0x5ba7f68e
mov eax, dword [ebp - 8]
push ebx
push 0x103
inc eax
push eax
push 0x5ba4c9ec
call sub.MSOERT2.dll_GetExePath
test eax, eax
je 0x5ba7f68e
mov eax, dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [eax], 0x22
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov byte [ecx + eax], 0x22
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push edi
mov byte [eax + ecx], bl
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
jbe 0x5ba7f65d
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx + 3]
mov eax, 0x104
cmp edx, eax
ja 0x5ba7f65d
mov edx, dword [ebp - 8]
mov byte [edx + ecx], 0x20
inc dword [ebp - 4]
cmp byte [edi], 0x2f
jne 0x5ba7f648
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov byte [ecx + edx], 0x2f
inc dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 4]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 8]
push edi
add ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 8]
mov esi, 0x300
mov dword [ebp - 0xc], esi
call dword [ebp - 0x1c]
test eax, eax
jne 0x5ba7f673
or byte [ebp - 0xb], 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x14]
test eax, eax
jne 0x5ba7f68e
mov eax, dword [ebp - 0x10]
and eax, esi
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x18], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, dword [0x5bb73714]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
pop edi
mov eax, dword [ebp - 0x18]
pop ebx
leave
ret 4
Function at 0x5ba7f6b4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.5ba57156
push 0x14
mov dword [0x5bb67028], eax
call fcn.5ba5615b
test eax, eax
pop ecx
je 0x5ba7f6ea
mov ecx, eax
call fcn.5ba7f923
jmp 0x5ba7f6ec
xor eax, eax
test eax, eax
mov dword [0x5bb71fcc], eax
jne 0x5ba7f704
mov dword [ebp - 0x40c], 0x8007000e
jmp 0x5ba7f906
push 0x5bb71fc8
call fcn.5ba7f943
test eax, eax
mov dword [ebp - 0x40c], eax
jl 0x5ba7f906
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov esi, 0x5bb67020
je 0x5ba7f747
push 6
pop ecx
lea edi, [ebp - 0x42c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], ebx
lea esi, [ebp - 0x42c]
mov eax, dword [0x5bb71fc8]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x20]
test eax, eax
mov dword [ebp - 0x40c], eax
jl 0x5ba7f904
mov eax, dword [0x5bb71fc8]
push dword [0x5bb71fcc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
mov dword [ebp - 0x40c], eax
jl 0x5ba7f904
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.5ba7fb6d
test eax, eax
mov dword [ebp - 0x40c], eax
jl 0x5ba7f904
and dword [ebp - 0x414], 0
and dword [ebp - 0x410], 0
xor eax, eax
mov byte [ebp - 0x404], 0
mov ecx, 0xff
lea edi, [ebp - 0x403]
rep stosd dword es:[edi], eax
push 4
stosw word es:[edi], ax
pop esi
stosb byte es:[edi], al
push 0x5ba4c53c
mov edi, 0x5ba43ca0
push edi
push 0x5ba43c98
lea eax, [ebp - 0x404]
push 0x3ff
push eax
mov dword [ebp - 0x408], esi
call fcn.5bac1045
add esp, 0x14
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x5ba4da78
lea eax, [ebp - 0x404]
push eax
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
xor ebx, ebx
inc ebx
test eax, eax
je 0x5ba7f86c
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x5ba4da8c
push edi
mov dword [ebp - 0x408], esi
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5ba7f86c
cmp dword [ebp - 0x410], ebx
jne 0x5ba7f85d
push eax
push eax
push eax
jmp 0x5ba7f862
push 0
push 0
push ebx
push 0xfb
call fcn.5ba5d268
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x414]
push eax
mov edi, 0x5ba4daf4
push edi
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x408], esi
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
je 0x5ba7f8e9
push 0
push 0
push ebx
push 0xf3
mov dword [ebp - 0x408], esi
mov dword [ebp - 0x410], ebx
call fcn.5ba5d268
push dword [ebp - 0x408]
lea eax, [ebp - 0x410]
push eax
push esi
push edi
lea eax, [ebp - 0x404]
push eax
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHSetValueA
test eax, eax
je 0x5ba7f8e9
mov dword [ebp - 0x40c], ebx
mov esi, 0xa5
push esi
call fcn.5ba5c700
push 0
push 0
push ebx
push esi
mov dword [0x5bb71fd0], eax
call fcn.5ba5d268
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x40c], eax
pop ebx
sete al
call fcn.5bb3f314
leave
ret 8
Function at 0x5ba7fc11
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x5ba4c734
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba7fc90
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
mov esi, 0x5ba4cac4
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba7fc85
cmp byte [edi], bl
je 0x5ba7fc85
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call fcn.5ba81823
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [entry0]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x14
Function at 0x5ba7ffd7
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push 0x5ba4f6b0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba80094
test edi, edi
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x14
pop ebx
je 0x5ba80051
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x5ba4f6d4
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.5ba800a6
lea eax, [ebp - 0xc]
push eax
call fcn.5ba80101
mov dword [edi], eax
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x5ba80089
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x5ba4f6e4
push dword [ebp - 0x24]
mov dword [ebp - 0x28], ebx
call esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.5ba800a6
lea eax, [ebp - 0xc]
push eax
call fcn.5ba80101
mov dword [edi], eax
push dword [ebp - 0x24]
call dword [entry0]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.5bb3f314
leave
ret 8
Function at 0x5ba81011
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
call fcn.5ba81651
jmp fcn.5ba81020

Function at 0x5ba81651
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xffd
push 0x5ba47830
xor ebx, ebx
lea eax, [ebp - 0xc]
push 4
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0x5ba4f1ac
call fcn.5ba6c9c3
test eax, eax
jne 0x5ba8170e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ba4cc68
push 0x5ba4f1e0
push dword [ebp - 8]
call fcn.5bb1c320
test eax, eax
jl 0x5ba8170e
push esi
mov esi, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x5ba816d5
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x5ba816d9
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x5ba816bf
cmp byte [esi], bl
je 0x5ba8170c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.SHLWAPI.dll_SHDeleteKeyA
push esi
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [eax + esi + 1]
sub ecx, eax
add ecx, dword [ebp - 4]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.5baf03ee
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x5ba81724
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
pop ebx
je 0x5ba81733
push dword [ebp - 8]
call dword [entry0]
leave
ret
Function at 0x5ba8173a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xffe
push 0x5ba47830
xor ebx, ebx
lea eax, [ebp - 0xc]
push 4
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0x5ba4f1ac
call fcn.5ba6c9c3
test eax, eax
jne 0x5ba817f7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ba4cc68
push 0x5ba4f1e0
push dword [ebp - 8]
call fcn.5bb1c320
test eax, eax
jl 0x5ba817f7
push esi
mov esi, dword [ebp - 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x5ba817be
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x5ba817c2
push esi
call edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x5ba817a8
cmp byte [esi], bl
je 0x5ba817f5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.SHLWAPI.dll_SHDeleteKeyA
push esi
call edi
mov ecx, dword [ebp - 0x10]
lea eax, [eax + esi + 1]
sub ecx, eax
add ecx, dword [ebp - 4]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.5baf03ee
pop edi
pop esi
cmp dword [ebp - 4], ebx
je 0x5ba8180d
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
pop ebx
je 0x5ba8181c
push dword [ebp - 8]
call dword [entry0]
leave
ret

Function at 0x5ba819ed
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 8]
push esi
call sub.SHLWAPI.dll_PathIsRootA
test eax, eax
jne 0x5ba81a7b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push eax
push esi
call edi
test eax, eax
jne 0x5ba81a7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5ba81a7a
add esi, 3
push ebx
jmp 0x5ba81a44
xor eax, eax
mov al, byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
test eax, eax
jne 0x5ba81a3b
cmp byte [esi], 0x5c
je 0x5ba81a49
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x5ba81a27
mov bl, byte [esi]
push 0
push dword [ebp + 8]
mov byte [esi], 0
call edi
test eax, eax
jne 0x5ba81a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5ba81a6f
test bl, bl
mov byte [esi], bl
je 0x5ba81a79
inc esi
jmp 0x5ba81a44
call fcn.5bb43cf0
mov dword [ebp - 4], eax
mov byte [esi], bl
pop ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
Function at 0x5ba82323
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.5ba82392
test eax, eax
je 0x5ba8233c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x5bb70c70], eax
jne 0x5ba82344
call fcn.5bb36aad
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.5ba823e2
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5ba82384
push esi
push dword [0x5bb70c70]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x5ba82384
push esi
call fcn.5ba824c6
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.5bb36aad
xor eax, eax
pop esi
ret

Function at 0x5ba8441a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call fcn.5ba84552
test eax, eax
je 0x5ba844bb
mov eax, dword [0x5bb73814]
test eax, eax
je 0x5ba84443
cmp dword [esi + 4], eax
je 0x5ba8444c
cmp dword [esi + 4], 0x20a
jne 0x5ba844c4
movsx ecx, word [esi + 0xe]
movsx eax, word [esi + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
mov ebx, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp + 8], eax
mov eax, dword [edi + 0xfc]
cmp ebx, eax
je 0x5ba84489
push ebx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x5ba84489
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
push ebx
jmp 0x5ba844b5
mov edi, dword [edi + 0xfc]
cmp dword [ebp + 8], edi
je 0x5ba84545
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x5ba84545
mov eax, dword [esi + 8]
push eax
push eax
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
push esi
mov ecx, edi
call fcn.5ba84573
push eax
push dword [edi + 0xfc]
call sub.SHLWAPI.dll_Ordinal_146
test eax, eax
jne 0x5ba844bb
test byte [edi + 0x140], 8
je 0x5ba844fb
push esi
push dword [0x5bb72ac8]
push dword [edi + 0xfc]
call sub.SHLWAPI.dll_Ordinal_146
test eax, eax
jne 0x5ba844bb
cmp dword [edi + 0x48], 0
je 0x5ba8450f
mov eax, dword [edi + 0x48]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
test eax, eax
je 0x5ba844bb
cmp dword [esi + 4], 0x100
jne 0x5ba84545
cmp dword [esi + 8], 9
jne 0x5ba84545
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ah, ah
js 0x5ba84545
push 0x10
call esi
mov ecx, edi
shr eax, 0xf
not eax
and eax, 1
push eax
call fcn.5ba92ef4
jmp 0x5ba844bb
xor eax, eax
inc eax
jmp 0x5ba844bd
Function at 0x5ba8f946
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp dword [esi + 4], ebx
mov dword [ebp - 0x18], ebx
jne 0x5ba8fab7
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [esi + 0xc]
push eax
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5ba8fab0
push edi
lea ecx, [ebp - 4]
push ecx
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x5ba4cc2c
push dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5ba8fa84
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x1c], eax
lea eax, [eax + eax*4]
shl eax, 2
push eax
lea edi, [esi + 0x120]
push edi
mov dword [ebp - 4], eax
call fcn.5ba561af
test eax, eax
jne 0x5ba8f9fd
mov dword [ebp - 0x18], 0x8007000e
jmp 0x5ba8fa84
mov ecx, dword [ebp - 4]
mov edi, dword [edi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x1c]
mov edi, dword [esi + 0x120]
mov dword [esi + 0x128], eax
mov dword [ebp - 8], ebx
jbe 0x5ba8fa84
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
mov dword [ebp - 4], 0x10
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x5ba8fa7f
cmp dword [ebp - 0x14], ebx
jne 0x5ba8fa6b
lea eax, [esi + 0x110]
cmp byte [eax], bl
je 0x5ba8fa6b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x5ba8fa6b
mov dword [ebp - 0x14], 1
inc dword [esi + 0x124]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add edi, 0x14
cmp eax, dword [ebp - 0x10]
jb 0x5ba8fa29
cmp dword [ebp - 0x14], ebx
jne 0x5ba8faa1
cmp dword [esi + 0x124], ebx
jle 0x5ba8faa1
push 0x10
push dword [esi + 0x120]
lea eax, [esi + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 0xc]
call dword [entry0]
cmp dword [ebp - 0x18], ebx
pop edi
jl 0x5ba8fab7
mov dword [esi + 4], 1
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
leave
ret
Function at 0x5ba93879
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xd
xor edx, edx
mov esi, ecx
pop ecx
push edx
push edx
mov dword [ebp - 4], eax
push 0xb8
xor eax, eax
mov dword [ebp - 0x3c], edx
lea edi, [ebp - 0x38]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5ba93a3d
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [eax + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], ebx
xor ebx, ebx
mov dword [esi + 0x414], ebx
mov dword [esi + 0x418], ebx
mov dword [esi + 0x41c], eax
mov dword [ebp - 0x3c], 0x38
mov eax, dword [edi]
push edi
call dword [eax + 0x10]
cmp eax, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x44], ebx
jbe 0x5ba939a8
mov eax, dword [edi]
and dword [ebp - 0x4c], 0
push 1
lea ecx, [ebp - 0x3c]
push ecx
push dword [ebp - 0x44]
push edi
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jl 0x5ba93a02
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push 0x5ba51e84
push eax
call dword [ecx]
mov ebx, eax
test ebx, ebx
jl 0x5ba93a02
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.5ba9edb6
mov ebx, eax
test ebx, ebx
jl 0x5ba93a02
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, dword [esi + 0xc]
push 0
push dword [ebp - 0x4c]
call fcn.5ba7c8b3
mov ebx, eax
test ebx, ebx
jl 0x5ba93a02
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5ba93988
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5ba93999
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x24], 0
inc dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x54]
jb 0x5ba93900
push dword [esi + 0x10]
call fcn.5ba86a3b
mov edi, eax
inc edi
jne 0x5ba939bd
xor eax, eax
inc eax
jmp 0x5ba93a3d
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.5ba561af
test eax, eax
jne 0x5ba939d5
mov ebx, 0x8007000e
jmp 0x5ba93a02
mov eax, dword [ebp - 0x50]
push dword [eax + 0x28]
push 0
push edi
push dword [ebp - 0x48]
push dword [esi + 0x10]
call fcn.5ba86ba5
dec edi
push edi
push dword [ebp - 0x48]
mov ecx, esi
call fcn.5ba93a51
mov ebx, eax
test ebx, ebx
jl 0x5ba93a02
mov ecx, esi
call fcn.5ba93aef
cmp dword [esi + 0x418], 0
je 0x5ba93a13
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x5ba93a20
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x5ba93a2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [0x5bb73714]
push dword [ebp - 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8