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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov dword [ebp - 8], 3
mov dword [ebp + 0x18], 0
mov eax, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
push eax
push 0x20019
push 0
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b6245
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push dword [edi]
push eax
push 0
call fcn.00429100
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b6245
push eax
call fcn.006b6815
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x5b6245
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
call fcn.00429100
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b6245
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5b623a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x5b6253
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b6260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b62da
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5b62da
mov eax, dword [ebp + 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b62d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b62e8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5b6320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x748d9c
push esi
call fcn.004291f0
test al, al
je 0x5b6345
mov eax, SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x74df78
push esi
call fcn.004291f0
test al, al
je 0x5b6363
mov eax, SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x748dc0
push esi
call fcn.004291f0
test al, al
je 0x5b6381
mov eax, reloc.OLEAUT32.dll_SysReAllocString
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x74df9c
push esi
call fcn.004291f0
test al, al
je 0x5b639f
mov eax, reloc.WS2_32.dll_closesocket
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x74dfb4
push esi
call fcn.004291f0
test al, al
je 0x5b63bd
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x74dffc
push esi
call fcn.004291f0
test al, al
je 0x5b63db
mov eax, VariantCopy
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
push 0x74dfe0
push esi
call fcn.004291f0
test al, al
je 0x5b63f9
mov eax, reloc.OLEAUT32.dll_SysStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b6400
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5b6400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
push eax
push 0x20219
push 0
mov ecx, esi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 7
call fcn.00429100
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push edi
call ebx
test eax, eax
je 0x5b6462
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 0x20119
push 0
call fcn.00429100
push eax
push edi
call ebx
test eax, eax
jne 0x5b64e4
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
push 0
call fcn.00429100
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x5b64e4
add eax, eax
push eax
call fcn.006b6815
mov esi, eax
add esp, 4
test esi, esi
je 0x5b64e4
lea eax, [ebp - 8]
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
call fcn.00429100
push eax
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x5b64e4
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00428a30
push esi
call fcn.006b31f8
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x5b64d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b64f2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b6cc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b6cd5
xor eax, eax
pop ebp
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret

Function at 0x5b6cf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5b6d05
xor eax, eax
pop ebp
ret
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret

Function at 0x5b6e40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa80
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa7c]
push 0x40
push 0
push eax
mov dword [ebp - 0xa80], 0
call fcn.006b47d0
lea eax, [ebp - 0x20c]
push eax
call fcn.005b60f0
add esp, 0x10
lea eax, [ebp - 0x20c]
push str.Internet_Exploreriexplore.exe
push 0x104
push eax
call fcn.0047cbf0
push esi
lea eax, [ebp - 0x20c]
push eax
push str.__s____s_
lea eax, [ebp - 0xa2c]
push 0x410
push eax
call fcn.0047cc30
add esp, 0x14
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0xa80]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xa2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5b6f0e
push dword [ebp - 0xa3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa38]
call esi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
push esi
push 0x7890a0
lea eax, [ebp - 0xa2c]
push 0x410
push eax
call fcn.0047cc30
add esp, 0x10
lea eax, [ebp - 0xa2c]
push 1
push 0
push eax
push str.explorer
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
mov ecx, dword [ebp - 4]
pop esi
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b79e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71774e
mov eax, dword fs:[0]
push eax
sub esp, 0x694
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x618]
mov dword [ebp - 0x63c], ebx
push eax
push str.open
push str.http
push 2
push 0
mov dword [ebp - 0x638], 0x304
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x5b7c41
push 0x40
lea eax, [ebp - 0x69c]
mov dword [ebp - 0x6a0], 0
push 0
push eax
call fcn.006b47d0
add esp, 0xc
lea ecx, [ebp - 0x61c]
call fcn.00429050
push 0x7835d4
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0
call fcn.00428840
mov dword [ebp - 0x648], eax
push ebx
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 1
call fcn.00428840
mov ebx, eax
push 0x74e200
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 2
call fcn.00428840
mov edi, eax
lea eax, [ebp - 0x618]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64c]
call fcn.00428840
mov esi, eax
push 0x7835d4
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 4
call fcn.00428840
push esi
push eax
lea eax, [ebp - 0x644]
mov byte [ebp - 4], 5
push eax
call fcn.00428b20
push edi
push eax
lea eax, [ebp - 0x630]
mov byte [ebp - 4], 6
push eax
call fcn.00428b20
push ebx
push eax
lea eax, [ebp - 0x640]
mov byte [ebp - 4], 7
push eax
call fcn.00428b20
push dword [ebp - 0x648]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00428b20
push eax
lea ecx, [ebp - 0x61c]
mov byte [ebp - 4], 9
call fcn.004289a0
lea ecx, [ebp - 0x628]
mov byte [ebp - 4], 8
call fcn.00428810
lea ecx, [ebp - 0x640]
mov byte [ebp - 4], 7
call fcn.00428810
lea ecx, [ebp - 0x630]
mov byte [ebp - 4], 6
call fcn.00428810
lea ecx, [ebp - 0x644]
mov byte [ebp - 4], 5
call fcn.00428810
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 4
call fcn.00428810
lea ecx, [ebp - 0x64c]
mov byte [ebp - 4], 3
call fcn.00428810
lea ecx, [ebp - 0x624]
mov byte [ebp - 4], 2
call fcn.00428810
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 1
call fcn.00428810
lea ecx, [ebp - 0x634]
mov byte [ebp - 4], 0
call fcn.00428810
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x6a0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x61c]
call fcn.00429100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x5b7c29
push dword [ebp - 0x65c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x658]
call esi
lea ecx, [ebp - 0x61c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov eax, 1
jmp 0x5b7c4a
lea ecx, [ebp - 0x61c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov ebx, dword [ebp - 0x63c]
push ebx
call fcn.005b6e40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b7f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp + 0x10]
push esi
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b7f5e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
test eax, eax
mov ecx, 1
cmove esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b7f70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
mov dword [ebp - 4], 0
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b7fc9
mov ecx, dword [ebp + 0x10]
call fcn.00429100
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x5b7fc9
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b7fc0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b7fd7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x5b85b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x717956
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
mov edi, dword [ebp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
mov ecx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0x104
mov dword [ebp - 0x220], 0
call fcn.00429100
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5b8726
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x5b8726
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x5b8721
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x224], 0x104
push ecx
lea ecx, [ebp - 0x218]
dec eax
push ecx
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5b8726
cmp dword [ebp - 0x224], eax
jbe 0x5b8726
push 0x7856e8
push ebx
lea eax, [ebp - 0x22c]
push eax
call fcn.00428bd0
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
push ecx
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00428bd0
push eax
push edi
mov byte [ebp - 4], 1
call fcn.005b85b0
add esp, 8
mov byte [ebp - 4], 0
test eax, eax
lea ecx, [ebp - 0x230]
sete bl
call fcn.00428810
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
test bl, bl
jne 0x5b8726
mov eax, dword [ebp - 0x220]
mov ebx, dword [ebp - 0x228]
dec eax
mov dword [ebp - 0x220], eax
jne 0x5b8661
mov esi, 1
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x5b8737
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x5b874e
mov ecx, dword [ebp - 0x228]
call fcn.00429100
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
Function at 0x5b87e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x717988
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
mov eax, dword [0x7e6410]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005b8770
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5b8879
cmp dword [ebp - 0x10], 0
jle 0x5b8879
push ecx
mov ecx, esp
lea eax, [ebp + 0x10]
push eax
push ecx
call fcn.005b5ff0
add esp, 8
call fcn.005b1510
add esp, 4
test eax, eax
je 0x5b8879
push 0x740db8
lea ecx, [ebp + 0x10]
call fcn.00429100
push eax
call fcn.006b57a3
mov esi, eax
add esp, 8
test esi, esi
je 0x5b8879
push esi
push dword [ebp - 0x10]
push 1
push ebx
call fcn.006b5539
push esi
call fcn.006b5369
add esp, 0x14
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00428810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5b89a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7179b8
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x238], 0
movdqu xmmword [ebp - 0x234], xmm0
mov word [ebp - 0x21c], 0
movq qword [ebp - 0x224], xmm0
call fcn.00429100
lea edx, [ebp - 0x218]
sub edx, eax
jmp 0x5b8a10
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x5b8a10
lea ecx, [ebp + 8]
call fcn.004290e0
lea eax, [eax*2 + 2]
cmp eax, 0x208
jae 0x5b8acb
xor ecx, ecx
mov dword [ebp - 0x234], 3
mov word [ebp + eax - 0x218], cx
mov eax, 0x14
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21e], eax
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x238]
push eax
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x226], ecx
mov dword [ebp - 0x222], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
test eax, eax
jne 0x5b8ac2
call fcn.00428810
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
call fcn.00428810
xor eax, eax
jmp 0x5b8aa9
call fcn.006b87e0
int3
Function at 0x5b8dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov dword [ebp - 4], 0
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b8e06
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5b8e26
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push 3
push 0
call fcn.00429100
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5b8e3a
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b8e34
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b8e48
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x5b8e60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b8e9a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5b8eb4
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5b8ec8
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b8ec2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b8ed6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x5b8f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x748d9c
push esi
call fcn.004291f0
test al, al
je 0x5b8f35
mov eax, SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x74df78
push esi
call fcn.004291f0
test al, al
je 0x5b8f53
mov eax, SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x748dc0
push esi
call fcn.004291f0
test al, al
je 0x5b8f71
mov eax, reloc.OLEAUT32.dll_SysReAllocString
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x74df9c
push esi
call fcn.004291f0
test al, al
je 0x5b8f8f
mov eax, reloc.WS2_32.dll_closesocket
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x74dfb4
push esi
call fcn.004291f0
test al, al
je 0x5b8fad
mov eax, reloc.OLEAUT32.dll_SysReAllocStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x74dffc
push esi
call fcn.004291f0
test al, al
je 0x5b8fcb
mov eax, VariantCopy
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
push 0x74dfe0
push esi
call fcn.004291f0
test al, al
je 0x5b8fe9
mov eax, reloc.OLEAUT32.dll_SysStringLen
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005b8ff0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5b8ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x5b9038
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00429100
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x5b906b
mov ecx, dword [ebp + 0x14]
call fcn.004290e0
mov ecx, dword [ebp + 0x14]
lea eax, [eax*2 + 2]
push eax
call fcn.00429100
mov ecx, dword [ebp + 0x10]
push eax
push 1
push 0
call fcn.00429100
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x5b9080
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b9079
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x5b908e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5b90a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.005ba220
add esp, 4
test eax, eax
je 0x5b90cc
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x5ba6a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x7e6410]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5ba887
test esi, esi
je 0x5ba6e8
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00428a30
mov eax, dword [ebp - 0x108]
sub eax, 0
je 0x5ba873
dec eax
je 0x5ba7fb
dec eax
jne 0x5ba85f
mov eax, dword [ebp - 0x114]
cmp eax, 3
jne 0x5ba724
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 4
jne 0x5ba73d
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x5ba792
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x5ba760
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x5ba779
mov eax, 0xb
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x5ba7e7
mov eax, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x5ba7ce
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x5ba7b5
mov eax, 0xd
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x5ba7e7
mov eax, 0xe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x5ba7e7
mov eax, 0x10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
mov eax, 0xf
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x5ba822
cmp word [ebp - 0x102], 0x43
pop esi
sete al
add eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x5ba846
xor eax, eax
cmp word [ebp - 0x102], 0x41
pop esi
sete al
add eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x5ba85f
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006b3266
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.006b3266
mov esp, ebp
pop ebp
ret