joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ba6eac7
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + 0x60], eax
je 0x5ba6eb7f
push 0
push 0x3f1
push dword [esi + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 0
push 0x3f2
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3ee
push dword [esi + 0x10]
call edi
push eax
call ebx
push 1
push 0x3fd
push dword [esi + 0x10]
call edi
push eax
call ebx
push 1
push 0x3fe
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3f1
push dword [esi + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 0
push 0x3f2
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3ee
push dword [esi + 0x10]
call edi
push eax
call ebx
push 8
push 0x3fd
push dword [esi + 0x10]
call edi
push eax
call ebx
push 8
jmp 0x5ba6ec14
push 1
push 0x3f1
push dword [esi + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call ebx
push 1
push 0x3f2
push dword [esi + 0x10]
call edi
push eax
call ebx
push 1
push 0x3ee
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3fd
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3fe
push dword [esi + 0x10]
call edi
push eax
call ebx
push 8
push 0x3f1
push dword [esi + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
push 8
push 0x3f2
push dword [esi + 0x10]
call edi
push eax
call ebx
push 8
push 0x3ee
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3fd
push dword [esi + 0x10]
call edi
push eax
call ebx
push 0
push 0x3fe
push dword [esi + 0x10]
call edi
push eax
call ebx
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x5ba727a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5bb70c3c]
or dword [ebp - 0x210], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x5ba4c984
push 0x5ba4cb94
mov dword [ebp - 0x218], eax
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push 1
push 0
lea eax, [ebp - 0x108]
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
test eax, eax
jne 0x5ba72920
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba72914
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push 0x5ba4c998
push esi
push eax
call sub.SHLWAPI.dll_wnsprintfA
add esp, 0x14
lea eax, [ebp - 0x220]
push eax
push 1
push 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
test eax, eax
jne 0x5ba72914
push dword [ebp - 0x220]
call dword [entry0]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x108]
push eax
push 0x5ba4c4e8
call esi
test eax, eax
jne 0x5ba728b9
mov dword [ebp - 0x210], 3
jmp 0x5ba72914
lea eax, [ebp - 0x108]
push eax
push 0x5ba4c4d0
call esi
test eax, eax
je 0x5ba728fb
lea eax, [ebp - 0x108]
push eax
push 0x5ba4c4f8
call esi
test eax, eax
jne 0x5ba728e9
mov dword [ebp - 0x210], 4
jmp 0x5ba72914
lea eax, [ebp - 0x108]
push eax
push 0x5ba4c50c
call esi
test eax, eax
jne 0x5ba72904
or dword [ebp - 0x210], 0xffffffff
jmp 0x5ba72914
cmp byte [ebp - 0x108], 0
je 0x5ba72914
and dword [ebp - 0x210], 0
push dword [ebp - 0x214]
call dword [entry0]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 4
Function at 0x5ba731a5
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb70c3c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebx], esi
call fcn.5ba73255
test eax, eax
je 0x5ba731cf
xor eax, eax
inc eax
jmp 0x5ba73242
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x5ba4cc94
push 0x5ba4ebdc
lea eax, [ebp - 0x108]
push eax
call fcn.5ba572e2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5ba73239
push 0x5ba41c80
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jne 0x5ba73230
mov dword [ebx], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5ba7323f
mov dword [ebx], 1
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.5bb3f314
leave
ret 4

Function at 0x5ba73255
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x5ba4c830
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba7329e
push esi
push esi
push esi
push esi
push 0x5ba4c854
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [entry0]
mov eax, esi
pop esi
leave
ret
Function at 0x5ba75d75
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
mov eax, dword [0x5bb70a04]
push ebx
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x34], ebx
jne 0x5ba75e7e
push 4
mov dword [0x5bb70a04], ebx
call fcn.5bb33649
test eax, eax
je 0x5ba75df2
call fcn.5bb336fe
cmp ax, bx
je 0x5ba75e79
push 0x10
lea ecx, [ebp - 0x30]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5ba75e79
test byte [ebp - 0x21], 8
je 0x5ba75e79
mov dword [0x5bb70a04], 1
jmp 0x5ba75e79
push 5
call fcn.5bb33649
test eax, eax
je 0x5ba75e79
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x5ba75e79
lea eax, [ebp - 0x38]
push eax
push 0x20019
push ebx
push 0x5ba4a594
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba75e79
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x5ba44198
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x38]
mov byte [ebp - 5], bl
call dword [entry0]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.5bb33799
test eax, eax
je 0x5ba75e79
and dword [ebp - 0x34], 0x3ff
xor eax, eax
inc eax
cmp dword [ebp - 0x34], eax
je 0x5ba75e74
cmp dword [ebp - 0x34], 0xd
jne 0x5ba75e79
mov dword [0x5bb70a04], eax
mov eax, dword [0x5bb70a04]
mov ecx, dword [ebp - 4]
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5ba76b97
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x5bb70c3c]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], eax
push edi
mov esi, ecx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], 0x5ba4e69c
jne 0x5ba76bd6
mov dword [ebp - 0x210], 0x5ba4e690
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov byte [ebp - 0x20c], bl
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push eax
push 1
push ebx
push 0x5ba4e634
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba76d31
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x210]
mov edi, 0x104
push dword [ebp - 0x214]
mov dword [ebp - 0x220], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba76c65
mov dword [ebp - 0x21c], 1
push dword [ebp - 0x214]
call dword [entry0]
cmp dword [ebp - 0x21c], ebx
je 0x5ba76d31
cmp dword [ebp - 0x218], 2
je 0x5ba76d43
cmp dword [ebp - 0x218], 1
jne 0x5ba76d31
lea eax, [ebp - 0x108]
push 0x2050
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x5ba76d31
push dword [esi + 0x5c]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
cmp edi, ebx
je 0x5ba76d25
push dword [ebp - 0x210]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push 1
push edi
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esi + 0x84], eax
lea eax, [ebp - 0x274]
push eax
push 0x54
push dword [ebp - 0x210]
call dword [sym.imp.GDI32.dll_GetObjectA]
push 0xcc0020
push dword [ebp - 0x26c]
push dword [ebp - 0x270]
push ebx
push ebx
push edi
push dword [esi + 0x74]
push dword [esi + 0x78]
push ebx
push ebx
push dword [esi + 0x5c]
call dword [sym.imp.GDI32.dll_StretchBlt]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x210]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.5bb3f314
leave
ret 4
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x20c]
jmp 0x5ba76c9d
Function at 0x5ba78413
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov esi, 0x80004005
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov ebx, esi
jne 0x5ba7843c
mov eax, 0x80070057
jmp 0x5ba784f4
lea eax, [ebp - 8]
push eax
push 0x20019
push edi
call fcn.5ba6c9c3
test eax, eax
je 0x5ba78456
mov eax, esi
jmp 0x5ba784f4
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.5ba78500
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x5ba784c2
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea eax, [ebp - 4]
push eax
call fcn.5ba561af
test eax, eax
jne 0x5ba7848e
mov ebx, 0x8007000e
jmp 0x5ba784c2
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.5ba78500
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x5ba784c2
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jne 0x5ba784c2
mov eax, dword [eax + 0xc]
lea eax, [eax*4 + 0x18]
cmp dword [ebp - 0xc], eax
jne 0x5ba784c2
xor ebx, ebx
cmp dword [ebp - 8], edi
je 0x5ba784d0
push dword [ebp - 8]
call dword [entry0]
cmp ebx, edi
jge 0x5ba784ea
cmp dword [ebp - 4], edi
je 0x5ba784ea
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5ba78e6c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
mov eax, esi
neg eax
lea ecx, [esi + 0xc]
sbb eax, eax
push 1
and eax, ecx
mov ecx, dword [esi + 0x38]
push eax
push dword [esi + 0x24]
call fcn.5ba78ee8
push 4
mov dword [esi + 0x2c], eax
call fcn.5ba5c700
test eax, eax
je 0x5ba78ebf
push 5
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0x813
push dword [esi + 0x2c]
mov dword [esi + 0x1c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi + 0x78], eax
push 0xc4
call fcn.5ba5c700
test eax, eax
je 0x5ba78edf
test byte [0x5bb7381c], 0xb
jne 0x5ba78edf
push 1
mov ecx, esi
call fcn.5ba79606
xor eax, eax
pop esi
ret
Function at 0x5ba79606
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ebx, [esi + 0x3c]
cmp dword [ebx], ecx
stosd dword es:[edi], eax
jne 0x5ba796e6
push ebx
call fcn.5ba79744
test eax, eax
jl 0x5ba796e4
push 0x268
call fcn.5ba5615b
test eax, eax
pop ecx
je 0x5ba79651
mov ecx, eax
call fcn.5ba7905e
jmp 0x5ba79653
xor eax, eax
test eax, eax
mov dword [esi + 0x44], eax
je 0x5ba79738
push 0x7e
push 0x17ee
lea ecx, [esi + 0xc]
push ecx
push dword [esi + 0x24]
mov ecx, eax
call fcn.5ba790cc
mov ecx, dword [ebx]
test ecx, ecx
mov dword [esi + 0x30], eax
je 0x5ba79681
lea edi, [ecx - 0x64]
jmp 0x5ba79683
xor edi, edi
mov edx, dword [edi]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, edi
call dword [edx]
test eax, eax
mov dword [ebp - 8], eax
je 0x5ba796d4
mov eax, dword [esi + 0x34]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x5ba51868
push eax
call dword [ecx]
test eax, eax
jl 0x5ba796d4
mov ecx, dword [esi + 0x44]
lea eax, [edi + 0x9c]
push eax
add edi, 0xa8
push edi
push dword [ebp - 4]
push 0x3f4
push dword [ebp - 8]
call fcn.5ba6e9ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [ebx]
mov eax, dword [ebx]
lea ecx, [esi + 0x40]
push ecx
push 0x5ba51ec4
push ebx
call dword [eax]
xor ecx, ecx
push 0x13
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, dword [ebp + 8]
mov eax, edi
neg eax
sbb eax, eax
and eax, 5
push eax
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.5ba7331b
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 0xc]
mov ecx, esi
push dword [ebp - 0x10]
push 0
push dword [esi + 0x24]
call fcn.5ba6a495
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5ba79dbe
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5bb70c3c]
push ebx
push esi
push edi
mov ebx, ecx
lea ecx, [ebp - 0x230]
push ecx
push 0x20019
mov dword [ebp - 4], eax
xor eax, eax
push eax
push 0x5ba495dc
mov edi, 0x104
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x238], eax
lea esi, [ebp - 0x108]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], 0x80004005
mov byte [ebp - 0x108], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba79e7a
lea eax, [ebp - 0x23c]
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0x5ba44198
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba79e6e
cmp dword [ebp - 0x238], 2
jne 0x5ba79e6e
push edi
lea eax, [ebp - 0x20c]
push eax
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea esi, [ebp - 0x20c]
push dword [ebp - 0x230]
call dword [entry0]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x5ba79e8a
mov esi, 0x5ba41dec
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebx + 8], eax
je 0x5ba79efe
push 0x5ba41e10
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, eax
test edx, edx
je 0x5ba79efe
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x228]
rep stosd dword es:[edi], eax
mov eax, dword [0x5bb7381c]
mov dword [ebp - 0x22c], 0x20
mov esi, 0x5ba51658
lea edi, [ebp - 0x21c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
not eax
movsd dword es:[edi], dword [esi]
and eax, 1
or eax, 0x400000
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x220], eax
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebx + 4]
push eax
add ebx, 0xc
push ebx
call edx
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5ba79f8f
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5bb70c3c]
push ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x124], 1
call fcn.5ba57156
lea ecx, [ebp - 0x110]
push ecx
push 0x20019
xor ebx, ebx
push ebx
mov edi, 0x5ba4c6fc
push edi
push eax
mov dword [ebp - 0x12c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba7a1ad
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5ba7a18c
cmp dword [ebp - 0x11c], ebx
jbe 0x5ba7a18c
mov dword [ebp - 0x118], ebx
push esi
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x118]
mov dword [ebp - 0x128], 0x104
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x5ba7a18b
cmp eax, ebx
jne 0x5ba7a173
mov eax, dword [0x5bb73820]
mov ecx, dword [eax]
lea edx, [ebp - 0x120]
push edx
lea edx, [ebp - 0x108]
push edx
push 0x123d03f0
push eax
xor esi, esi
call dword [ecx + 0x1c]
test eax, eax
jl 0x5ba7a158
lea eax, [ebp - 0x10c]
push eax
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x5ba7a148
cmp dword [ebp - 0x10c], ebx
jle 0x5ba7a148
inc dword [ebp - 0x10c]
push dword [ebp - 0x10c]
lea eax, [ebp - 0x114]
push eax
mov esi, 0x80004005
call fcn.5ba561af
test eax, eax
je 0x5ba7a148
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x114]
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x5ba7a137
xor ecx, ecx
cmp dword [ebp - 0x10c], ebx
jle 0x5ba7a114
mov eax, dword [ebp - 0x114]
add eax, ecx
cmp byte [eax], 0x2c
jne 0x5ba7a10b
mov byte [eax], bl
inc ecx
cmp ecx, dword [ebp - 0x10c]
jl 0x5ba7a0fc
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x10c]
mov byte [eax + ecx], bl
push dword [ebp - 0x114]
push dword [ebp - 0x120]
push ebx
call sym.MSOE.dll_Ordinal_17
mov esi, eax
mov eax, dword [0x5bb73714]
push dword [ebp - 0x114]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x5ba7a16d
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x5ba7a173
mov dword [ebp - 0x124], ebx
inc dword [ebp - 0x118]
mov eax, dword [ebp - 0x118]
cmp eax, dword [ebp - 0x11c]
jb 0x5ba7a015
pop esi
push dword [ebp - 0x110]
call dword [entry0]
cmp dword [ebp - 0x124], ebx
je 0x5ba7a1ad
push edi
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop ebx
call fcn.5bb3f314
leave
ret
Function at 0x5ba7d148
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x5bb70c3c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x5ba41d54
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x110], 0x104
mov byte [ebp - 0x108], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5ba7d1c1
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x5ba4cc94
push dword [ebp - 0x10c]
call sub.SHLWAPI.dll_SHQueryValueExA
push dword [ebp - 0x10c]
call dword [entry0]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x5ba7d1e9
push 0x104
push 0x5ba41dec
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
call fcn.5bb3f314
leave
ret

Function at 0x5ba7d7e7
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
mov dword [ebp - 4], esi
jne 0x5ba7d807
mov eax, 0x80070057
jmp 0x5ba7d8ae
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push esi
push esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
call edi
cmp eax, esi
mov dword [ebp - 0x18], eax
jne 0x5ba7d83d
mov dword [ebp - 4], 0x8007000e
jmp 0x5ba7d89d
push esi
push esi
push esi
push esi
call edi
mov dword [0x5bb74630], eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x5ba7d8b9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
jne 0x5ba7d86d
mov dword [ebp - 4], 0x8007000e
jmp 0x5ba7d88c
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jge 0x5ba7d884
mov dword [ebp - 4], eax
jmp 0x5ba7d88c
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov dword [eax + 0x14], edi
cmp dword [ebp - 0x18], esi
je 0x5ba7d89d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp - 0xc]
cmp eax, esi
pop edi
je 0x5ba7d8ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x5ba7f133
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, 0x2c
push esi
push edi
lea eax, [ebp - 8]
push eax
xor esi, esi
xor edi, edi
push 0x5ba4f6f0
inc edi
push SysReAllocString
mov dword [ebp - 8], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5ba7f2a3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x5ba4f738
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x5ba7f1a8
cmp eax, esi
jne 0x5ba7f2a3
cmp dword [ebp - 0x14], edi
je 0x5ba7f2a3
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x5ba7f2a3
mov eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
push eax
call fcn.5ba561af
test eax, eax
je 0x5ba7f2b6
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 4]
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 - 0x20], esi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jbe 0x5ba7f288
mov edi, 0x5ba4f728
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc dword [ebp - 0x10]
cmp eax, esi
jne 0x5ba7f280
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x5ba7f280
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5ba7f277
cmp dword [ebp - 0x1c], esi
jne 0x5ba7f277
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push esi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], 3
call ebx
push dword [ebp - 0xc]
call dword [entry0]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jb 0x5ba7f20d
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push esi
push 0x5ba4f738
push dword [ebp - 8]
mov dword [ebp - 0x14], 1
call ebx
pop ebx
cmp dword [ebp - 4], esi
je 0x5ba7f2b9
mov eax, dword [0x5bb73714]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 4], esi
cmp dword [ebp - 8], esi
pop edi
pop esi
je 0x5ba7f2c9
push dword [ebp - 8]
call dword [entry0]
leave
ret