joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5baa516e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x5baa51da
and dword [section..data], 0
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x1009
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x5baa51d5
lea eax, [ebp - 0x24]
push eax
call sub.SHLWAPI.dll_StrToIntA
cmp eax, 6
je 0x5baa51cb
cmp eax, 8
je 0x5baa51cb
cmp eax, 0xa
je 0x5baa51cb
cmp eax, 0xb
je 0x5baa51cb
cmp eax, 0xc
jne 0x5baa51d5
mov dword [section..data], 1
mov eax, dword [section..data]
mov ecx, dword [ebp - 4]
call fcn.5bb3f314
leave
ret

Function at 0x5baab971
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push edi
xor edi, edi
dec eax
dec eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
je 0x5baab992
inc edi
jmp 0x5baaba72
push esi
lea eax, [ebp - 4]
push eax
push 0xf003f
mov esi, 0x5ba4f1ac
push esi
mov dword [ebp + 8], 0x5ba497a0
call fcn.5ba6c9c3
cmp eax, edi
je 0x5baab9c7
jg 0x5baab9bb
mov edi, eax
jmp 0x5baaba62
and eax, 0xffff
or eax, 0x80070000
jmp 0x5baab9b4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x5ba4cabc
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call ebx
cmp eax, edi
je 0x5baab9f3
jg 0x5baaba53
mov edi, eax
jmp 0x5baaba61
mov dword [ebp - 8], edi
push dword [ebp + 8]
push esi
call fcn.5baae764
mov edi, eax
test edi, edi
jl 0x5baaba61
inc dword [ebp - 8]
add dword [ebp + 8], 0x14
cmp dword [ebp - 8], 4
jb 0x5baab9f6
xor eax, eax
mov esi, 0x5ba497f0
cmp eax, esi
je 0x5baaba5f
lea eax, [ebp - 0xc]
push eax
xor eax, eax
push eax
push eax
push eax
mov edi, 0x5ba4f1e0
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x5baaba5f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x5baaba5f
jle 0x5baab9ef
and eax, 0xffff
or eax, 0x80070000
jmp 0x5baab9ef
xor edi, edi
pop ebx
cmp dword [ebp - 4], 0
pop esi
je 0x5baaba72
push dword [ebp - 4]
call dword [entry0]
mov eax, edi
pop edi
leave
ret 4
Function at 0x5baabb80
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]
push esi
push edi
xor edi, edi
push 4
mov dword [ebp - 4], eax
mov eax, ecx
pop esi
test dword [eax + 8], esi
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x110], edi
je 0x5baabbd4
mov dword [ebp - 0x10c], 1
jmp 0x5baabda2
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0x5ba4f308
call fcn.5ba7bd2a
test eax, eax
je 0x5baabc04
mov dword [ebp - 0x10c], 0x80004005
jmp 0x5baabd78
push ebx
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push edi
push edi
mov ebx, 0x5ba4cabc
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x5baabc70
cmp eax, 2
je 0x5baabc45
mov dword [ebp - 0x10c], 0x80004005
jmp 0x5baabd77
push esi
lea eax, [ebp - 0x11c]
push eax
push esi
push edi
push ebx
push dword [ebp - 0x114]
mov dword [ebp - 0x11c], 0x50000
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5baabc36
cmp dword [ebp - 0x124], 1
je 0x5baabd64
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov esi, 0x104
push esi
push 0x5ba4f308
lea eax, [ebp - 0x108]
push eax
call edi
push esi
mov ebx, 0x5ba4cc98
push ebx
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push esi
push 0x5ba4eaf0
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.5baabdb9
test eax, eax
mov dword [ebp - 0x10c], eax
jl 0x5baabd75
jne 0x5baabcf7
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x120]
and dword [ebp - 0x110], 0
mov dword [ecx + 0x18], eax
push esi
push 0x5ba4f308
lea eax, [ebp - 0x108]
push eax
call edi
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push esi
push 0x5ba4eaf8
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.5baabdb9
test eax, eax
mov dword [ebp - 0x10c], eax
jl 0x5baabd75
test eax, eax
push 4
pop esi
jne 0x5baabd62
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x120]
and dword [ebp - 0x110], 0
mov dword [ecx + 0x1c], eax
xor edi, edi
mov eax, dword [ebp - 0x120]
or dword [eax + 8], esi
mov dword [ebp - 0x10c], edi
jmp 0x5baabd77
xor edi, edi
pop ebx
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x5baabd8e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x110], edi
cmp dword [ebp - 0x114], edi
je 0x5baabda2
push dword [ebp - 0x114]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
call fcn.5bb3f314
leave
ret
Function at 0x5baabdb9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push 0xf003f
push ebx
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x208], edi
call fcn.5ba6c9c3
cmp eax, edi
je 0x5baabe1c
xor ecx, ecx
cmp eax, 2
sete cl
dec ecx
and ecx, 0x80004004
inc ecx
mov esi, ecx
jmp 0x5baabedb
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push edi
mov esi, 0x5ba4f1e8
push esi
push dword [ebp - 0x20c]
mov dword [ebp - 0x210], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
je 0x5baabea0
cmp eax, 2
je 0x5baabe55
mov esi, 0x80004005
jmp 0x5baabedb
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0x189d
push dword [0x5bb73708]
call dword [sym.imp.USER32.dll_LoadStringA]
test eax, eax
je 0x5baabe4b
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x204]
push eax
push 1
push edi
push esi
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5baabe4b
lea eax, [ebp - 0x208]
push eax
call fcn.5baae95c
mov esi, eax
cmp esi, edi
jl 0x5baabedb
mov eax, dword [ebp - 0x208]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
mov esi, eax
cmp esi, edi
jl 0x5baabedb
mov eax, dword [ebp - 0x208]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
mov dword [ebp - 0x208], edi
xor esi, esi
mov eax, dword [ebp - 0x208]
cmp eax, edi
je 0x5baabef1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x208], edi
cmp dword [ebp - 0x20c], edi
je 0x5baabf05
push dword [ebp - 0x20c]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0xc
Function at 0x5bab5f3d
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 0xc]
test byte [ebx + 0xc], 3
push esi
mov dword [ebp - 4], eax
push edi
je 0x5bab60ce
mov eax, dword [ebx + 0x10]
mov esi, eax
shr eax, 2
and eax, 1
mov dword [ebp - 0x208], eax
and esi, 1
mov eax, esi
neg eax
sbb eax, eax
mov edi, 0x200
and eax, edi
add eax, 0x10
push eax
push 4
lea ecx, [ebx + 0x1c]
push ecx
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFrameControl]
push edi
lea eax, [ebp - 0x204]
push eax
push dword [ebx + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x210]
push ecx
push eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x204]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov eax, dword [ebx + 0x24]
sub eax, dword [ebp - 0x210]
mov ecx, dword [ebx + 0x20]
add eax, dword [ebx + 0x1c]
inc dword [ebp - 0x20c]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [ebx + 0x28]
add ecx, eax
mov eax, ecx
sub eax, dword [ebp - 0x20c]
sar edi, 1
cdq
sub eax, edx
sar eax, 1
test esi, esi
mov dword [ebp - 0x214], eax
je 0x5bab6003
inc edi
inc eax
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x210]
lea eax, [eax + edi + 7]
mov dword [ebp - 0x21c], eax
lea eax, [ecx - 5]
cdq
sub eax, edx
sar eax, 1
inc eax
xor ecx, ecx
cmp esi, ecx
mov dword [ebp - 0x218], eax
je 0x5bab602f
inc eax
mov dword [ebp - 0x218], eax
mov esi, dword [ebp - 0x208]
cmp esi, ecx
je 0x5bab6059
push 0x20
push 5
push 9
push eax
push dword [ebp - 0x21c]
push ecx
push ecx
push fcn.5bab6133
push ecx
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateA]
jmp 0x5bab6098
push 0x12
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push 5
push 9
push dword [ebp - 0x218]
mov dword [ebp - 0x208], eax
push dword [ebp - 0x21c]
push dword [ebx + 0x18]
call fcn.5bab6133
push dword [ebp - 0x208]
push dword [ebx + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
neg esi
sbb esi, esi
and esi, 0x20
inc esi
push esi
push dword [ebp - 0x20c]
lea eax, [ebp - 0x204]
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edi
push dword [ebp - 0x230]
push eax
push 0
push 0
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawStateA]
test byte [ebx + 0xc], 4
jne 0x5bab60da
test byte [ebx + 0x10], 0x10
je 0x5bab611f
lea esi, [ebx + 0x1c]
lea edi, [ebp - 0x22c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x2d
call esi
inc eax
add dword [ebp - 0x22c], eax
sub dword [ebp - 0x224], eax
push 0x2e
call esi
inc eax
add dword [ebp - 0x228], eax
sub dword [ebp - 0x220], eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8
Function at 0x5bab636b
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
push esi
push 0xab
call fcn.5ba6c8a9
cmp eax, 5
mov ebx, 0x5ba44fa4
je 0x5bab63c5
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, eax
and cx, 0x3ff
cmp cx, 1
jne 0x5bab63b4
mov eax, 0x401
movzx eax, ax
push eax
push ebx
push dword [ebp + 0xc]
push esi
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
push esi
push 0x5ba4e4ec
mov edi, 0x100
lea eax, [ebp - 0x104]
push edi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
push edi
push 0x5ba4e54c
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x204]
push eax
call sub.SHLWAPI.dll_StrCatBuffA
push esi
call fcn.5bab6477
test eax, eax
jne 0x5bab644d
mov edi, dword [ebp + 0xc]
mov byte [esi], al
push 0x5bb3fa89
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x208], edi
call fcn.5bab689e
cmp byte [esi], 0
jne 0x5bab6452
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push ebx
push edi
push esi
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x10
cmp byte [esi], 0
je 0x5bab6461
push esi
call fcn.5bab6477
test eax, eax
je 0x5bab6461
xor eax, eax
inc eax
jmp 0x5bab6463
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 8

Function at 0x5bab678e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bb70c3c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x5ba4e54c
push 0x5ba44cdc
xor ebx, ebx
lea eax, [ebp - 0x104]
push 0x100
push eax
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x108], ebx
mov byte [esi], bl
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
lea eax, [ebp - 0x104]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5bab686e
cmp edi, ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, 0x5ba4e57c
jne 0x5bab6813
mov eax, 0x5ba4e590
lea ecx, [ebp - 0x10c]
push ecx
push esi
lea ecx, [ebp - 0x110]
push ecx
push ebx
push eax
push dword [ebp - 0x108]
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5bab686e
cmp edi, ebx
je 0x5bab6866
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push edi
lea eax, [ebp - 0x110]
push eax
push ebx
push 0x5ba4e584
push dword [ebp - 0x108]
mov byte [edi], bl
call sub.SHLWAPI.dll_SHQueryValueExA
test eax, eax
jne 0x5bab686e
mov esi, dword [ebp - 0x10c]
jmp 0x5bab6874
mov esi, dword [ebp - 0x114]
cmp dword [ebp - 0x108], ebx
je 0x5bab6888
push dword [ebp - 0x108]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 0x10
Function at 0x5bab689e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.5bab68b9
pop ebp
jmp fcn.5bab6981

Function at 0x5babb1c1
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x98]
push eax
xor ebx, ebx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5babb2b6
cmp dword [ebp - 0x88], 2
jne 0x5babb2b6
cmp dword [ebp - 0x94], 5
jbe 0x5babb212
inc ebx
jmp 0x5babb2b6
jne 0x5babb2b6
push edi
xor edi, edi
inc edi
cmp dword [ebp - 0x90], edi
jbe 0x5babb22b
mov ebx, edi
jmp 0x5babb2b5
jne 0x5babb2b5
mov eax, 0xa28
cmp dword [ebp - 0x8c], eax
ja 0x5babb224
jne 0x5babb2b5
lea eax, [ebp - 0x9c]
push eax
push edi
push ebx
push 0x5ba41c54
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babb2b5
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa0]
push eax
push ebx
push 0x5ba41c48
push dword [ebp - 0x9c]
mov dword [ebp - 0xa8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5babb2a9
cmp dword [ebp - 0xa0], 4
jne 0x5babb2a9
cmp dword [ebp - 0xa4], 0x100
jb 0x5babb2a9
mov ebx, edi
push dword [ebp - 0x9c]
call dword [entry0]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
call fcn.5bb3f314
leave
ret

Function at 0x5babb2c8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push 0x5ba4c558
push dword [ebp + 8]
mov ebx, 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babb31e
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5babb314
cmp dword [esi], eax
je 0x5babb314
xor ebx, ebx
push dword [ebp + 8]
call dword [entry0]
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x5babb32a
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
test byte [ebp + 0x14], 0x20
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x218], 1
mov esi, SysReAllocString
mov edi, 0x104
je 0x5babb478
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
call fcn.5ba561af
test eax, eax
je 0x5babb478
push dword [ebp - 0x21c]
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp - 0x21c]
push 0x5ba4c970
push dword [ebp - 0x214]
call sub.SHLWAPI.dll_StrCatBuffA
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push dword [ebp - 0x214]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babb45a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x108]
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x210]
mov dword [ebp - 0x224], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5babb44e
push 0x5ba4f070
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrStrA
test eax, eax
jne 0x5babb44e
push 0x5ba4f048
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrStrA
test eax, eax
jne 0x5babb44e
push 0x5ba4f064
lea eax, [ebp - 0x108]
push eax
call sub.SHLWAPI.dll_StrStrA
test eax, eax
jne 0x5babb44e
and dword [ebp - 0x218], eax
push dword [ebp - 0x210]
call dword [entry0]
mov eax, dword [0x5bb73714]
push dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp dword [ebp - 0x218], 0
je 0x5babb52b
push ebx
push esi
call sub.SHLWAPI.dll_SHDeleteKeyA
push dword [ebp - 0x228]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x22c]
push 0x5ba4c800
push edi
push eax
call sub.SHLWAPI.dll_wnsprintfA
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x5ba4cb94
lea eax, [ebp - 0x108]
push edi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x28
lea eax, [ebp - 0x220]
push eax
push 0x20019
xor edi, edi
push edi
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5babb52b
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5babb51f
push dword [ebp - 0x210]
push dword [ebp - 0x220]
call sub.MSOERT2.dll_CopyRegistry
push dword [ebp - 0x210]
call dword [entry0]
push dword [ebp - 0x220]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.5bb3f314
leave
ret 0x10
Function at 0x5babb542
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 0x10], 0x20
mov eax, dword [0x5bb70c3c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x5babb572
push esi
call fcn.5ba727a9
cmp eax, 0xffffffff
jne 0x5babb5f2
push esi
push 0x5ba4c984
push 0x5ba4cb94
lea eax, [ebp - 0x108]
push 0x104
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
xor esi, esi
push esi
push 2
push esi
push esi
push esi
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5babb5f2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push esi
push esi
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x108]
push eax
push esi
push 0x1a
call sub.SHLWAPI.dll_SHSendMessageBroadcastA
push dword [ebp - 0x10c]
call dword [entry0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.5bb3f314
leave
ret 0xc
Function at 0x5babb605
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x5bb70c3c]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
mov dword [ebp - 0x214], ebx
and edi, 0x10
call fcn.5ba731a5
test eax, eax
je 0x5babb647
mov dword [ebp - 0x214], 1
jmp 0x5babb807
cmp dword [ebp - 0x210], ebx
jbe 0x5babb807
cmp dword [ebp - 0x210], 2
ja 0x5babb807
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x5babb7da
cmp eax, esi
ja 0x5babb7da
push esi
lea eax, [ebp - 0x108]
push eax
push 0x5ba4cc94
push 0x5ba4ec7c
lea eax, [ebp - 0x20c]
push eax
call fcn.5ba572e2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x5babb7da
push 0x5ba41c94
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x5babb7a5
call eax
lea eax, [ebp - 0x21c]
push eax
call fcn.5ba731a5
test eax, eax
jne 0x5babb799
cmp dword [ebp - 0x210], 2
jne 0x5babb782
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x5ba4c860
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5babb7d1
push 0xc
push 0x5ba4c89c
push 1
push ebx
push 0x5ba4c894
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x5babb774
cmp edi, ebx
je 0x5babb76a
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push ebx
push ebx
push 0x1aed
push 0x1ae9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
mov dword [ebp - 0x214], 1
push dword [ebp - 0x218]
call dword [entry0]
jmp 0x5babb7d1
cmp edi, ebx
je 0x5babb7d1
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push ebx
push ebx
push 0x1aec
jmp 0x5babb7ba
mov dword [ebp - 0x214], 1
jmp 0x5babb7d1
cmp edi, ebx
je 0x5babb7d1
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push ebx
push ebx
push 0x1aea
push 0x1ae9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5babb806
cmp edi, ebx
je 0x5babb806
push 0x5ba5f15a
push sub.SHLWAPI.dll_Ordinal_107
push ebx
push ebx
push 0x1aeb
push 0x1ae9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push dword [0x5bb73708]
call sub.MSOERT2.dll_MessageBoxInstW
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5babc5ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5bb70c3c]
mov ecx, dword [ebp + 8]
and dword [ebp - 0x110], 0
mov dword [ebp - 4], eax
mov eax, dword [0x5bb71f80]
test eax, eax
mov dword [ebp - 0x11c], ecx
je 0x5babc5e5
test ecx, ecx
je 0x5babc5de
mov dword [ecx], eax
xor eax, eax
jmp 0x5babc711
push ebx
push esi
push edi
push 4
pop ebx
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x5ba4da10
mov esi, 0x5ba4ce24
push esi
mov dword [ebp - 0x114], ebx
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetACP]
je 0x5babc629
call edi
mov dword [ebp - 0x118], eax
push dword [ebp - 0x118]
lea eax, [ebp - 0x108]
push esi
push 0x5ba41c9c
push 0x104
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x5ba4da24
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x114], ebx
call fcn.5ba57156
push eax
call sub.SHLWAPI.dll_SHGetValueA
test eax, eax
je 0x5babc68b
push dword [ebp - 0x118]
call fcn.5ba7a327
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x10c]
call fcn.5babc548
test eax, eax
jge 0x5babc6c4
call edi
cmp dword [ebp - 0x10c], eax
je 0x5babc6c4
call edi
lea ecx, [ebp - 0x110]
push ecx
push eax
mov dword [ebp - 0x10c], eax
call fcn.5babc548
test eax, eax
jl 0x5babc70e
cmp dword [ebp - 0x10c], 0xc42e
je 0x5babc6dc
cmp dword [ebp - 0x10c], 0xc42d
jne 0x5babc6e7
call fcn.5bac68af
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x110]
push eax
mov dword [0x5bb71f80], eax
call sub.INETCOMM.dll_MimeOleSetDefaultCharset
test eax, eax
jl 0x5babc70e
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x5babc70e
mov edx, dword [ebp - 0x110]
mov dword [ecx], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.5bb3f314
leave
ret 4