joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8779bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x877aa5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00873bc8
mov eax, dword [ebp - 0x14]
call fcn.00873c44
mov ecx, ebx
mov dl, 1
call fcn.00877374
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x877a8f
xor eax, eax
push ebp
push 0x877a88
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
jne 0x877a48
cmp dword [ebp + 8], 0
jne 0x877a37
push 2
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
jmp 0x877a48
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp esi, dword [ebp - 0x10]
sete al
and al, byte [ebp - 5]
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x877a8f
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x877aac
lea eax, [ebp - 0x14]
call fcn.00873ab8
ret

Function at 0x877ab8
Capabilities:
Parse pe header

Disassembly:
push esi
xor esi, esi
test eax, eax
je 0x877b04
mov edx, eax
mov ecx, dword [edx + 0x3c]
add ecx, eax
cmp word [edx], 0x5a4d
jne 0x877b04
cmp dword [ecx], 0x4550
jne 0x877b04
mov eax, ecx
add eax, 4
add eax, 0x14
add eax, 0xe0
xor edx, edx
push edx
push eax
movzx eax, word [ecx + 6]
dec eax
shl eax, 3
lea eax, [eax + eax*4]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, eax
mov esi, dword [edx + 0x14]
add esi, dword [edx + 0x10]
mov eax, esi
pop esi
ret
Function at 0x879bac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
cmp byte [0x88da88], 0
jne 0x879cfb
mov byte [0x88da88], 1
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.00874ff0
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x84], 1
jne 0x879cfb
xor eax, eax
push ebp
push 0x879c72
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x90], 4
jne 0x879c68
cmp dword [ebp - 0x8c], 0xa
jae 0x879c68
mov eax, 0x18
call fcn.00879ba8
mov ebx, eax
sub ebx, 0x10
call sub.kernel32.dll_GetCurrentThreadId_1
xor ebx, eax
mov dword [0x88da80], ebx
call sub.kernel32.dll_GetCurrentThreadId_1
xor eax, dword [0x88da80]
mov ebx, dword [eax + 8]
call sub.kernel32.dll_GetCurrentProcessId
xor eax, dword [0x88da80]
cmp ebx, eax
jne 0x879c61
mov byte [0x88da84], 1
jmp 0x879c68
xor eax, eax
mov dword [0x88da80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x879c83
cmp dword [0x88da80], 0
jne 0x879cfb
xor eax, eax
push ebp
push 0x879cea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x30
call fcn.00879ba8
mov ebx, eax
call sub.kernel32.dll_GetCurrentProcessId
xor ebx, eax
mov dword [0x88da80], ebx
call sub.kernel32.dll_GetCurrentThreadId_1
xor eax, dword [0x88da80]
mov ebx, dword [eax + 0x38]
call sub.kernel32.dll_GetCurrentProcessId
xor eax, dword [0x88da80]
cmp ebx, eax
jne 0x879cd9
mov byte [0x88da84], 0
jmp 0x879ce0
xor eax, eax
mov dword [0x88da80], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x879cfb
mov eax, dword [0x88da80]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x87a0a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x87a10c
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x3c]
add eax, dword [ebp - 4]
cmp word [edx], 0x5a4d
jne 0x87a10c
cmp dword [eax], 0x4550
jne 0x87a10c
mov edi, eax
add edi, 4
add edi, 0x14
add edi, 0xe0
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x87a10c
inc esi
mov ebx, dword [edi + 0xc]
add ebx, dword [ebp - 4]
push 4
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x87a106
cmp dword [ebx], 0x5058454b
jne 0x87a106
mov dword [ebp - 8], ebx
jmp 0x87a10c
add edi, 0x28
dec esi
jne 0x87a0e7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x87a418
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x57
call sub.kernel32.dll_SetLastError
push ebp
call fcn.0087a118
pop ecx
test al, al
je 0x87a549
xor ebx, ebx
test esi, esi
je 0x87a457
mov eax, dword [esi]
cmp dword [eax], 0xc
jne 0x87a549
cmp dword [eax + 8], 1
sbb ebx, ebx
inc ebx
cmp dword [ebp + 0x14], 0
je 0x87a549
mov eax, dword [ebp + 8]
push eax
call fcn.0087a07c
test eax, eax
je 0x87a549
call fcn.00879d24
mov edi, eax
test edi, edi
je 0x87a549
cmp dword [edi + 0x20], 0
je 0x87a549
call fcn.00879d1c
test eax, eax
je 0x87a549
cmp edi, eax
sete al
test al, al
jne 0x87a4ba
cmp dword [ebp + 0x10], 0
jne 0x87a4b0
mov dword [ebp - 0x20], 0xffffd000
jmp 0x87a4c0
mov eax, dword [ebp + 0x10]
neg eax
mov dword [ebp - 0x20], eax
jmp 0x87a4c0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov esi, 0x48
mov eax, dword [ebp + 0x1c]
and eax, 0x80000000
cmp eax, 0x80000000
jne 0x87a4d7
add esi, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0xc]
cmp dword [ebp - 0x14], 0
je 0x87a4eb
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0xc]
push esi
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
push edi
call dword [ebp - 0x18]
mov esi, eax
cmp dword [ebp - 0x14], 0
je 0x87a50b
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
call fcn.00879bac
xor eax, esi
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x87a525
mov edx, dword [ebp + 0x20]
mov dword [edx], eax
mov ecx, eax
mov edx, ebx
mov eax, 0x1f03ff
call fcn.00879dc0
mov ebx, eax
mov eax, dword [ebp + 0x1c]
and eax, 4
cmp eax, 4
je 0x87a546
push ebx
call sub.kernel32.dll_ResumeThread
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x87a558
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.0087b210
test al, al
je 0x87a58a
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
push ebx
call sub.kernel32.dll_CreateRemoteThread
jmp 0x87a5a2
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
push edi
push esi
push ebx
call fcn.0087a418
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x87a718
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
mov edi, eax
call fcn.0087b200
test al, al
je 0x87a783
call fcn.0087a64c
cmp esi, 0x1000
jge 0x87a73b
mov esi, 0x1000
cmp dword [0x88dabc], 0
je 0x87a7b6
mov ebx, edi
cmp ebx, 0x80000000
jb 0x87a773
push 0x20060000
push 0
mov eax, esi
shr eax, 0xc
push eax
shr ebx, 0xc
push ebx
push 0x1000d
call dword [0x88dabc]
test eax, eax
seta al
mov ebx, eax
jmp 0x87a783
push esp
push 0x40
push esi
push edi
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb ebx, ebx
inc ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x87a79f
push esp
push 0x40
push esi
push edi
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x87a7ae
push esi
push edi
call sub.kernel32.dll_IsBadWritePtr
test eax, eax
je 0x87a7b2
xor eax, eax
jmp 0x87a7b4
mov al, 1
mov ebx, eax
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x87ba88
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x87bbc0
xor eax, eax
push ebp
push 0x87bbb9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x87bba2
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x87bb9c
lea eax, [ebp - 0x10]
push eax
push 0x87bbc8
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x87bb29
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
push 0x87bbdc
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
jne 0x87bb4b
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov esi, dword [ebx]
dec esi
test esi, esi
jl 0x87bb88
inc esi
xor ecx, ecx
lea edi, [ecx + ecx*2]
mov eax, dword [ebx + edi*4 + 4]
mov edx, dword [ebx + edi*4 + 8]
cmp edx, dword [ebp - 0xc]
jne 0x87bb68
cmp eax, dword [ebp - 0x10]
je 0x87bb84
lea eax, [ecx + ecx*2]
mov edx, dword [ebx + eax*4 + 8]
mov eax, dword [ebx + eax*4 + 4]
cmp edx, dword [ebp - 0x14]
jne 0x87bb7d
cmp eax, dword [ebp - 0x18]
je 0x87bb84
or dword [ebx + edi*4 + 0xc], 2
inc ecx
dec esi
jne 0x87bb55
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push ebx
call sub.kernel32.dll_LocalFree_2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87bbc0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x87bbf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
push ebp
push 0x87bc70
push dword fs:[esi]
mov dword fs:[esi], esp
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x87bc66
mov edx, dword [edx + 0x3c]
add edx, eax
mov eax, edx
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x87bc66
sub edx, 0x454e
je 0x87bc64
sub edx, 2
je 0x87bc37
sub edx, 0x14fd
je 0x87bc60
jmp 0x87bc66
mov ax, word [eax + 0x5c]
dec ax
je 0x87bc4c
dec ax
je 0x87bc50
dec ax
je 0x87bc5c
jmp 0x87bc66
mov bl, 6
jmp 0x87bc66
mov bl, 4
test byte [ecx + 0x17], 0x20
je 0x87bc66
mov bl, 5
jmp 0x87bc66
mov bl, 3
jmp 0x87bc66
mov bl, 1
jmp 0x87bc66
mov bl, 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x87bc7c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x87be64
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x87bf9a
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x87be8c
cmp dword [ebx + 4], 0
jne 0x87bf9a
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x87beb2
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 0
je 0x87beb2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ebx + 8]
mov eax, 0x100000
call fcn.0087be5c
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x87bf9a
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x87bf57
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x87befd
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push 0
push 0
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer
cmp eax, dword [ebx + 8]
jne 0x87bf4d
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
je 0x87bf4d
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x87bf4d
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
jmp 0x87bf72
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x18], edx
jmp 0x87bf72
push esi
mov eax, dword [ebx + 8]
push eax
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebx], eax
cmp dword [ebx + 8], 0
jne 0x87bf9a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
add dword [ebx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
sub dword [ebx + 4], eax
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push esi
mov esi, eax
dec ecx
test ecx, ecx
jl 0x87e1a3
inc ecx
mov eax, edx
mov edx, esi
xor dl, byte [eax]
and edx, 0xff
mov edx, dword [edx*4 + 0x88dd18]
shr esi, 8
xor edx, esi
mov esi, edx
inc eax
dec ecx
jne 0x87e187
mov eax, esi
pop esi
ret

Function at 0x87e2b0
Capabilities:
Parse pe header

Disassembly:
xor ecx, ecx
mov edx, eax
add edx, dword [eax + 0x3c]
cmp word [eax], 0x5a4d
jne 0x87e2c8
cmp dword [edx], 0x4550
jne 0x87e2c8
mov ecx, edx
mov eax, ecx
ret
Function at 0x87e310
Capabilities:
Parse pe header

Disassembly:
push esi
push edi
add esp, 0xfffffff8
xor ecx, ecx
mov dword [esp], ecx
test eax, eax
je 0x87e366
mov esi, eax
mov ecx, dword [esi + 0x3c]
add ecx, eax
cmp word [esi], 0x5a4d
jne 0x87e366
cmp dword [ecx], 0x4550
jne 0x87e366
mov eax, ecx
add eax, 4
add eax, 0x14
add eax, 0xe0
movzx esi, word [ecx + 6]
dec esi
test esi, esi
jb 0x87e366
inc esi
mov ecx, eax
mov edi, dword [ecx + 0x14]
cmp edx, edi
jb 0x87e360
add edi, dword [ecx + 0x10]
cmp edx, edi
jae 0x87e360
mov dword [esp], ecx
jmp 0x87e366
add eax, 0x28
dec esi
jne 0x87e34b
mov eax, dword [esp]
pop ecx
pop edx
pop edi
pop esi
ret

Function at 0x87e3f8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
test esi, esi
je 0x87e497
mov eax, dword [esp + 4]
mov byte [eax + 8], 0
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
mov eax, esi
mov ebx, dword [eax + 0x3c]
add ebx, esi
cmp word [eax], 0x5a4d
jne 0x87e497
cmp dword [ebx], 0x4550
jne 0x87e497
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.0087e1e0
mov edx, eax
mov eax, esi
call fcn.0087e310
mov edi, eax
lea eax, [esp + 8]
push eax
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.0087e1e0
sub eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub edx, eax
push edx
mov edx, dword [ebx + 0x28]
mov eax, ebx
call fcn.0087e1e0
add eax, esi
mov ecx, dword [esp + 8]
pop edx
call fcn.0087e370
cmp byte [esp + 0x10], 0
je 0x87e497
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + 8], edx
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x87e4b4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x87e635
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x87e61f
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x3c]
add esi, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x87e61f
cmp dword [esi], 0x4550
jne 0x87e61f
mov eax, dword [ebp - 4]
call fcn.00877ab8
mov dword [ebp - 0x14], eax
mov eax, esi
add eax, 4
add eax, 0x14
add eax, 0xe0
xor edx, edx
push edx
push eax
movzx eax, word [esi + 6]
dec eax
shl eax, 3
lea eax, [eax + eax*4]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0x28
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.0087360c
mov eax, dword [ebp - 0x18]
call fcn.008736c8
mov ecx, eax
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00874fe8
xor eax, eax
mov dword [ebx + 0x18], eax
xor eax, eax
mov dword [ebx + 0x1c], eax
mov word [ebx + 0x20], 0
mov word [ebx + 0x22], 0
mov al, byte [ebp + 8]
dec al
je 0x87e584
dec al
je 0x87e59b
jmp 0x87e5a2
mov edx, 0x400
mov eax, edi
call fcn.0087e4a0
mov edi, eax
mov dword [ebx + 0x24], 0xc0000040
jmp 0x87e5a2
mov dword [ebx + 0x24], 0xc0000020
mov dword [ebx + 0x10], edi
mov edx, dword [esi + 0x38]
mov eax, edi
call fcn.0087e4a0
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x10]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 8]
mov edx, dword [esi + 0x38]
call fcn.0087e4a0
mov dword [ebx + 0xc], eax
inc word [esi + 6]
mov edx, dword [esi + 0x38]
mov eax, edi
call fcn.0087e4a0
add dword [esi + 0x50], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x14]
jbe 0x87e60d
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov edx, eax
add eax, edi
call fcn.00874fe8
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov edx, edi
call fcn.00874ff0
mov eax, dword [ebp + 0xc]
add dword [eax], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87e63c
lea eax, [ebp - 0x18]
call fcn.00873414
ret
Function at 0x87eed4
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.008738b8
xor eax, eax
push ebp
push 0x87efaf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x87efc0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x87ef90
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.008738c8
mov esi, eax
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x87ef89
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, edi
xor edx, edx
call fcn.00873504
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00873920
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test bl, bl
je 0x87ef90
cmp dword [edi], 0
je 0x87ef90
mov eax, dword [edi]
call fcn.008736c8
mov edx, dword [edi]
cmp byte [edx + eax - 1], 0x5c
je 0x87ef90
mov eax, edi
mov edx, 0x87f00c
call fcn.008736d0
jmp 0x87ef90
mov eax, edi
call fcn.00873414
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87efb6
lea eax, [ebp - 4]
call fcn.00873414
ret

Function at 0x87f5a4
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
xor eax, eax
mov dword [esp], eax
mov esi, 0x4000
push 4
push 0x3000
push esi
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
test ebx, ebx
je 0x87f60f
push 0
push esi
push ebx
push ebp
call sub.ntdll.dll_ZwQuerySystemInformation
mov edi, eax
cmp edi, 0xc0000004
jne 0x87f5f1
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
mov eax, esi
add eax, eax
mov esi, eax
cmp edi, 0xc0000004
je 0x87f5b5
test edi, edi
jne 0x87f602
mov dword [esp], ebx
jmp 0x87f60f
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
mov eax, dword [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x87f88c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x87f8f8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x87f8dc
lea edx, [ebp - 4]
mov eax, esi
call fcn.0087f700
cmp dword [ebp - 4], 0
je 0x87f8dc
mov eax, dword [ebp - 4]
call fcn.008743ec
mov ebx, eax
test ebx, ebx
jb 0x87f8da
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push eax
call sub.kernel32.dll_SuspendThread
inc esi
dec ebx
jne 0x87f8ca
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87f8ff
lea eax, [ebp - 4]
mov edx, dword [0x8750a8]
call fcn.008745ac
ret
Function at 0x87f908
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x87f974
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x87f958
lea edx, [ebp - 4]
mov eax, esi
call fcn.0087f700
cmp dword [ebp - 4], 0
je 0x87f958
mov eax, dword [ebp - 4]
call fcn.008743ec
mov ebx, eax
test ebx, ebx
jb 0x87f956
inc ebx
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
push eax
call sub.kernel32.dll_ResumeThread
inc esi
dec ebx
jne 0x87f946
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87f97b
lea eax, [ebp - 4]
mov edx, dword [0x8750a8]
call fcn.008745ac
ret

Function at 0x88050c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [edx], eax
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp dword [eax], 0
setne al
pop ebp
ret

Function at 0x8805e4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp + 8]
add eax, dword [edx - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetFilePointer
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_SetEndOfFile
pop ebp
ret

Function at 0x8808a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x88098e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x880918
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00873678
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x8809a4
call fcn.00873714
jmp 0x88091f
mov eax, ebx
call fcn.00873414
push dword [ebx]
push 0x8809b0
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 8
call fcn.00875edc
push dword [ebp - 0x110]
lea eax, [ebp - 0x114]
push eax
mov cl, 0x30
mov edx, 1
mov eax, esi
call fcn.00875edc
push dword [ebp - 0x114]
push 0x8809c8
mov eax, ebx
mov edx, 5
call fcn.00873788
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x880995
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00873438
ret