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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x544], ebx
mov dword [ebp - 0x540], ebx
call fcn.5ba6ffd0
cmp eax, ebx
je 0x5bad4dda
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, 0x104
push esi
push eax
lea eax, [ebp - 0x128]
push eax
call edi
push esi
push 0x5ba4cddc
lea eax, [ebp - 0x128]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x550]
call dword [0x5bb70bb8]
mov esi, 0x208
push esi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x538]
push eax
call edi
push esi
push 0x5bb670fc
lea eax, [ebp - 0x538]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push esi
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x330]
push eax
call edi
push esi
push str.Scripts40
lea eax, [ebp - 0x330]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x544]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [ebp - 0x538]
push eax
mov edi, SysReAllocString
push edi
call esi
test eax, eax
jne 0x5bad4d7f
lea eax, [ebp - 0x54c]
push eax
lea eax, [ebp - 0x540]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
lea eax, [ebp - 0x330]
push eax
push edi
call esi
test eax, eax
jne 0x5bad4d73
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
mov esi, 0x5ba44cf8
push esi
push dword [ebp - 0x544]
mov dword [ebp - 0x53c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jne 0x5bad4d1e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x540]
call edi
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
mov esi, 0x5ba44ccc
push esi
push dword [ebp - 0x544]
mov dword [ebp - 0x53c], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5bad4d67
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x540]
call edi
push dword [ebp - 0x540]
call dword [entry0]
push dword [ebp - 0x544]
call dword [entry0]
mov eax, dword [0x5bb73838]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call fcn.5bad2326
push ebx
call fcn.5babc532
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x548]
push eax
lea eax, [ebp - 0x554]
push eax
push 0x5ba44ce4
push 0x5ba4ce24
mov dword [ebp - 0x53c], 4
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
pop edi
pop esi
jne 0x5bad4dda
mov eax, dword [ebp - 0x548]
mov dword [0x5bb73894], eax
mov ecx, dword [ebp - 4]
xor eax, eax
inc eax
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5bad6bf4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd54
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp - 0xd54]
mov dword [ebp - 0xd20], eax
mov eax, dword [esi + 0xfc]
mov dword [ebp - 0xd3c], eax
mov eax, dword [esi + 0x140]
not eax
and eax, 4
push edi
shr eax, 2
mov dword [ebp - 0xd38], eax
xor ebx, ebx
lea eax, [ebp - 0x504]
mov edi, 0x400
push edi
mov dword [ebp - 0xd28], eax
mov eax, dword [esi + 0x38]
lea edx, [ebp - 0xd04]
push edx
mov dword [ebp - 0xd34], ebx
mov dword [ebp - 0xd18], ebx
mov dword [ebp - 0xd1c], ebx
mov byte [ebp - 0x504], bl
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
lea eax, [ebp - 0xd04]
push eax
push ebx
call sub.MSOERT2.dll_PszToANSI
push edi
push eax
mov dword [ebp - 0xd08], eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x5bb73714]
push dword [ebp - 0xd08]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 8
pop eax
test byte [esi + 0x140], al
je 0x5bad6d17
mov eax, dword [esi + 0x40]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0xd2c], 0x20000
mov dword [ebp - 0xd24], eax
call fcn.5babc1da
cmp eax, ebx
mov dword [ebp - 0xd30], eax
je 0x5bad6d23
mov eax, dword [esi + 0x38]
lea edx, [ebp - 0xd08]
push edx
push 1
lea edx, [ebp - 0xd10]
push edx
lea edx, [ebp - 0xd18]
push edx
mov dword [ebp - 0xd10], ebx
mov dword [ebp - 0xd08], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
lea eax, [ebp - 0xd1c]
push eax
push dword [ebp - 0xd24]
call fcn.5ba8b5df
jmp 0x5bad6d23
mov dword [ebp - 0xd2c], eax
mov dword [ebp - 0xd24], ebx
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 0xd0c]
push edx
push eax
call dword [ecx + 0x2c]
cmp dword [ebp - 0xd0c], ebx
jne 0x5bad6d47
mov dword [ebp - 0xd40], 5
jmp 0x5bad6d5d
xor eax, eax
cmp dword [ebp - 0xd0c], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0xd40], eax
mov eax, dword [esi + 0x3c]
lea edx, [ebp - 0xd44]
push edx
mov dword [ebp - 0xd50], ebx
mov dword [ebp - 0xd4c], ebx
mov dword [ebp - 0xd48], ebx
mov dword [ebp - 0xd44], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
push 0x100
lea eax, [ebp - 0x104]
push eax
push dword [esi + 0xfc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x104]
mov dword [ebp - 0xd54], eax
lea eax, [ebp - 0xd3c]
push eax
mov dword [ebp - 0xd14], ebx
call fcn.5bad950e
mov ecx, dword [ebp - 0xd1c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
cmp ecx, ebx
je 0x5bad6dd1
call fcn.5ba6ed36
mov eax, dword [ebp - 0xd18]
cmp eax, ebx
je 0x5bad6de1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5bad9f94
Capabilities:
Delete file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5bb70c3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x224]
cmp ecx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x41c], ebx
mov byte [ebp - 0x20c], bl
mov byte [ebp - 0x414], bl
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x310], bl
je 0x5bada000
push dword [esi + 0x48]
call fcn.5bb4ae3b
test eax, eax
je 0x5bada140
lea eax, [ebp - 0x420]
push eax
call fcn.5ba9345f
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x5bada140
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [esi + 0x48]
neg eax
sbb eax, eax
and eax, 0xffffffc2
add eax, 0x6e
push eax
call fcn.5ba6c8a9
cmp byte [ebp - 0x20c], bl
jne 0x5bada052
mov dword [ebp - 0x418], 0x80004005
jmp 0x5bada13f
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
push eax
push ebx
push 0x5ba4517c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x5bada043
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.5babfea3
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x5bada13f
lea eax, [ebp - 0x424]
push eax
push SysReAllocString
push 3
lea eax, [ebp - 0x108]
push eax
call sub.MSOERT2.dll_OpenFileStream
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x5bada13f
lea eax, [ebp - 0x41c]
push eax
call sub.INETCOMM.dll_MimeOleCreateVirtualStream
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x5bada13f
push ebx
push dword [ebp - 0x41c]
push dword [ebp - 0x424]
call sub.MSOERT2.dll_HrCopyStream
cmp eax, ebx
mov dword [ebp - 0x418], eax
jl 0x5bada13f
push 0x5ba45174
lea eax, [ebp - 0x20c]
push eax
push 0x5ba44cdc
lea eax, [ebp - 0x310]
push edi
push eax
call sub.SHLWAPI.dll_wnsprintfA
mov eax, dword [ebp - 0x428]
mov ecx, dword [eax]
add esp, 0x14
push ebx
push dword [ebp - 0x41c]
lea edx, [ebp - 0x310]
push edx
push eax
call dword [ecx + 0xb8]
mov dword [ebp - 0x418], eax
pop edi
mov eax, dword [ebp - 0x424]
cmp eax, ebx
je 0x5bada150
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
je 0x5bada160
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x420]
pop esi
cmp ecx, ebx
pop ebx
je 0x5bada171
call fcn.5ba8736c
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
call fcn.5bb3f314
leave
ret 4
Function at 0x5bada806
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
mov edi, eax
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
push ebx
push edi
call esi
xor ecx, ecx
test eax, eax
jbe 0x5bada852
mov dx, word [ebx + ecx*4]
and dx, 0x3ff
cmp dx, 9
je 0x5bada84a
inc ecx
cmp ecx, eax
jb 0x5bada834
jmp 0x5bada852
mov eax, dword [ebx + ecx*4]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test ebx, ebx
je 0x5bada85d
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5bae22fd
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xd
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
xor esi, esi
push esi
push 0x43c
push ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], 0x38
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x5bae23a7
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov edi, eax
test edi, edi
jbe 0x5bae239e
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x3c]
push edx
push esi
push eax
call dword [ecx + 0x18]
test eax, eax
jne 0x5bae2399
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0x44]
push edx
push 0x5ba51e84
push eax
call dword [ecx]
test eax, eax
jne 0x5bae2390
mov ecx, dword [ebp - 0x44]
lea eax, [ecx - 8]
neg ecx
sbb ecx, ecx
and ecx, eax
call fcn.5bae25ef
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
cmp esi, edi
jb 0x5bae234d
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 1
push 0
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5bae3260
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3ef
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x108], edi
mov dword [esi + 0xc], edi
call ebx
push 0x7d1
push edi
mov dword [esi + 0x10], eax
call ebx
push 0x28
mov dword [ebp - 0x10c], eax
call fcn.5ba5615b
xor edi, edi
cmp eax, edi
pop ecx
je 0x5bae32bc
mov ecx, eax
call fcn.5ba62036
mov ebx, eax
jmp 0x5bae32be
xor ebx, ebx
cmp ebx, edi
jne 0x5bae32d5
push 2
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x5bae3497
mov eax, dword [ebx]
push 0xc
push dword [ebp - 0x10c]
push ebx
call dword [eax + 0xc]
mov eax, dword [ebx]
push edi
push edi
push edi
push ebx
call dword [eax + 0x10]
push edi
push dword [ebp - 0x10c]
push ebx
push esi
push dword [esi + 0x1c]
call fcn.5ba639ac
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
push dword [esi + 0x20]
lea eax, [ebp - 0x104]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x124]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
push edi
push 0xff00ff
push edi
push 0x10
push 0x10
push dword [0x5bb73708]
call dword [fcn.5ba56040]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x144]
push eax
push edi
push 0x101b
push dword [esi + 0x10]
mov dword [ebp - 0x144], 0xa
mov dword [ebp - 0x130], edi
call ebx
push dword [ebp - 0x110]
push 1
push 0x1003
push dword [esi + 0x10]
call ebx
push dword [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x17c]
push ecx
push eax
mov dword [ebp - 0x114], eax
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
test eax, eax
je 0x5bae340c
mov eax, dword [ebp - 0x168]
imul eax, eax, 0x96
movzx eax, ax
push eax
push edi
push 0x101e
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
call ebx
push dword [ebp - 0x110]
push edi
push 0x101e
push dword [esi + 0x10]
call ebx
push dword [ebp - 0x114]
push dword [ebp - 0x10c]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
push 1
push 0xf1
push 0x7d3
push dword [ebp - 0x108]
call ebx
cmp dword [esi + 0x14], edi
jne 0x5bae3457
push edi
push 0x3f0
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0x10
push 0x10
push 1
push 8
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
push 1
push 0xf7
push 0x7d3
push dword [ebp - 0x108]
mov dword [esi + 0x18], eax
call ebx
push edi
push edi
push 0x850
push dword [ebp - 0x108]
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5bae54fd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
push 1
xor esi, esi
push esi
push 0x5ba4c668
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bae555a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x5ba4c8a8
push dword [ebp - 8]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], esi
je 0x5bae5551
or dword [0x5bb7381c], 0x40
push dword [ebp - 8]
call dword [entry0]
pop esi
leave
ret

Function at 0x5bae57cf
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
xor esi, esi
cmp dword [ebp + 0x10], esi
push 4
mov dword [ebp - 4], ecx
pop edi
je 0x5bae57ea
push 5
pop edi
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x5bae5890
cmp word [ebx], si
je 0x5bae5890
push ebx
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x5bae5872
push 6
pop ecx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], esi
rep stosd dword es:[edi], eax
push ebx
mov edi, 0x800ccf65
push esi
mov dword [ebp + 0x10], edi
call sub.MSOERT2.dll_PszToANSI
mov ebx, eax
cmp ebx, esi
je 0x5bae5897
mov dword [ebp - 0x34], 0x1073
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x175d
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push esi
push edi
push dword [0x5bb73708]
mov dword [ebp - 0x24], esi
call fcn.5bae5562
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x5bb73714]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x14]
jmp 0x5bae5897
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
push edi
push esi
mov dword [ebp - 0x18], 3
mov dword [ebp - 0x10], ebx
call fcn.5ba8c5a6
mov dword [ebp + 0x10], eax
jmp 0x5bae5897
mov dword [ebp + 0x10], 0x80070057
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5bae5f9b
Capabilities:
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
push esi
xor ebx, ebx
cmp dword [0x5bb7383c], ebx
push 4
pop esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], esi
je 0x5bae5fdf
mov eax, 0x8000ffff
jmp 0x5bae613a
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x5ba4f3c4
push 0x5ba43ca0
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
jne 0x5bae601d
cmp dword [ebp - 0x21c], esi
jne 0x5bae601d
cmp dword [ebp - 0x218], esi
je 0x5bae6023
mov dword [ebp - 0x210], ebx
call fcn.5babcc7f
cmp eax, ebx
mov dword [ebp - 0x214], eax
je 0x5bae610e
cmp dword [ebp - 0x210], 0x64
jb 0x5bae610e
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push 0x1725
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x1724
push dword [ebp - 0x214]
call esi
xor esi, esi
inc esi
push esi
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInst
cmp eax, esi
jne 0x5bae610d
push 0x84
xor edi, edi
mov dword [ebp - 0x214], ebx
call fcn.5ba5c700
cmp eax, 0xffffffff
mov dword [ebp - 0x224], eax
je 0x5bae60c0
mov edi, esi
mov dword [ebp - 0x214], 2
push 0x85
call fcn.5ba5c700
test eax, eax
je 0x5bae60d6
or dword [ebp - 0x214], esi
mov edi, esi
cmp edi, ebx
je 0x5bae60f9
push dword [ebp - 0x224]
push dword [ebp - 0x214]
push ebx
push 0x47
push ebx
call fcn.5baf3114
cmp eax, ebx
mov dword [ebp - 0x220], eax
jl 0x5bae610d
push ebx
push ebx
push 7
push ebx
call fcn.5baf3356
test eax, eax
jne 0x5bae610d
mov dword [ebp - 0x210], ebx
pop edi
inc dword [ebp - 0x210]
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push 0x5ba4f3c4
push 0x5ba43ca0
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHSetValueA
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.5bb3f314
leave
ret

Function at 0x5baea388
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
add ecx, 0xffffff84
neg esi
sbb esi, esi
and esi, ecx
lea eax, [esi + 0x88]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x4c]
test esi, esi
je 0x5baea3b2
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8
Function at 0x5baee1ba
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x5ba471c4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5baee1f3
push 0x5ba471d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [entry0]
leave
ret

Function at 0x5baee1fa
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x5ba4c984
mov esi, 0x104
push 0x5ba4cb94
lea eax, [ebp - 0x20c]
push esi
push eax
mov dword [ebp - 0x418], esi
call sub.SHLWAPI.dll_wnsprintfA
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
test eax, eax
jne 0x5baee362
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x5ba47200
lea eax, [ebp - 0x414]
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
lea eax, [ebp - 0x414]
push eax
push ebx
mov dword [ebp - 0x418], esi
call edi
test eax, eax
jne 0x5baee362
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_PathGetArgsA
mov edi, eax
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_PathRemoveArgsA
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_PathUnquoteSpacesA
cmp dword [ebp - 0x41c], 2
jne 0x5baee30f
push esi
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x310]
jmp 0x5baee315
lea eax, [ebp - 0x108]
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x454], eax
xor eax, eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x444], eax
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 0x448], edi
mov dword [ebp - 0x440], 1
mov dword [ebp - 0x45c], 0x3c
call dword [0x5bb70b44]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8
Function at 0x5baef37b
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, 0x18
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x5baef3e4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5baef48b
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x5baef3dc
push dword [ebp - 0xc]
call dword [entry0]
jmp 0x5baef48b
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], eax
jmp 0x5baef3e7
mov ebx, dword [ebp + 0xc]
push esi
push esi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5baef476
cmp dword [ebp - 0x14], esi
jbe 0x5baef476
cmp dword [ebp + 0xc], esi
jbe 0x5baef476
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.5ba561af
test eax, eax
je 0x5baef476
mov eax, dword [ebp + 0x18]
cmp eax, esi
jle 0x5baef468
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
push esi
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5baef45f
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x18]
push esi
push dword [edi]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add edi, 4
dec dword [ebp + 0x18]
jne 0x5baef42b
pop edi
mov eax, dword [0x5bb73714]
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp + 0x10], esi
je 0x5baef48b
push dword [ebp - 0x10]
mov esi, dword [entry0]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop ebx
leave
ret 0x14