joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66bc1569
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x66bc16b9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x66bc171c
mov dword [esp], str.Open_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66bc17de
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x66bc1751
mov dword [esp], str.Get_file_size_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66bc17de
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x66bc177b
mov dword [esp], str.Allocate_memory_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66bc17de
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x66bc17c2
mov dword [esp], str.Read_file_error_
call sym._printf
mov eax, 0xffffffff
jmp 0x66bc17de
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x10]
leave
ret

Function at 0x66bc1cc0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x66bc603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x66bc6034]
sub esp, 4
test ebx, ebx
je 0x66bc1d0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x66bc1d04
test esi, esi
je 0x66bc1d04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66bc1ce0
mov dword [esp], 0x66bc603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x66bc1ef0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x66bc41fc
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x66bc1f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x66bc2018
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x66bc1f7e
cmp eax, 4
jne 0x66bc1fa0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x66bc1f8e
cmp edx, 4
je 0x66bc1f8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.66bc1ef0
Function at 0x100014a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
xor edx, edx
push ebx
movzx eax, al
mov dword [ebp - 0x14], edx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x100014c8
xor al, al
jmp 0x100014e4
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov bl, byte [esi]
test al, al
je 0x10001502
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x100042c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, byte [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov byte [ebp - 0x18], cl
mov esi, eax
movzx ecx, cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], edx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jne 0x100042fa
xor cl, cl
jmp 0x10004315
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x14], eax
call ebx
mov edx, dword [ebp - 0x14]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 8], cl
mov ch, byte [esi]
mov byte [ebp - 0x1d], ch
test cl, cl
je 0x10004338
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push edx
call ebx
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp - 0x1d]
movzx ecx, ch
sub ecx, 0xe8
je 0x100043e9
sub ecx, 1
je 0x100043e9
sub ecx, 0x16
jne 0x100043d0
push dword [ebp - 0x18]
inc eax
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.100014a0
add esp, 8
cmp al, 0x15
je 0x1000436e
cmp al, 0x25
jne 0x100043d0
mov eax, dword [ebp - 0x24]
xor edx, edx
mov esi, dword [ebp + 0xc]
shl eax, 2
add esi, 2
mov dword [ebp - 0x14], edx
test eax, eax
jne 0x10004387
xor al, al
jmp 0x1000439f
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call ebx
mov edx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov esi, dword [esi]
test al, al
je 0x100043b9
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
push edx
call ebx
mov ecx, dword [esi]
mov eax, edi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
lea esi, [eax + 1]
xor ecx, ecx
mov eax, dword [ebp - 0x24]
shl eax, 2
mov dword [ebp - 0x14], ecx
test eax, eax
jne 0x100043ff
xor al, al
jmp 0x10004417
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call ebx
mov ecx, dword [ebp - 0x14]
test eax, eax
setne al
mov byte [ebp - 8], al
mov edx, dword [esi]
mov dword [ebp - 0x1c], edx
test al, al
je 0x10004437
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x18]
push edx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ecx
call ebx
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
lea eax, [edx + 4]
add eax, esi
xor ecx, ebp
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10004460
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100c0781], 0
push esi
push edi
je 0x100045a9
push dword [0x100a4008]
call fcn.100538b0
add esp, 4
test al, al
je 0x100044b3
mov eax, dword [0x100c07c8]
cmp dword [eax], 1
jne 0x100044b3
mov eax, dword [0x100c0788]
cmp byte [eax], 0
je 0x100044b3
cmp byte [0x100c0782], 0
sete byte [0x100c0782]
cmp byte [0x100c07fc], 0
jne 0x10004616
push 1
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x10004630
mov eax, dword [0x100c0760]
add eax, 0xe6b45e
push eax
call fcn.100027f0
lea eax, [ebp - 8]
push eax
call fcn.10005790
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add esp, 0x10
add eax, 0xe6b463
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0x90
cmp byte [ebp - 0xc], 0
je 0x1000453d
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add eax, 0x4e98cd
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 3
push esi
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x18], esi
call edi
test eax, eax
mov eax, 0x90909090
setne byte [ebp - 0xc]
mov word [esi], ax
mov byte [esi + 2], al
cmp byte [ebp - 0xc], 0
je 0x10004592
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov byte [0x100c07fc], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
cmp byte [0x100c07fc], 0
je 0x10004616
push 1
push 6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xc7
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0xe6b45e
mov word [ebp - 0x1c], 0
mov ecx, esp
mov word [ebp - 8], 0x4689
push eax
mov byte [ebp - 6], 0x10
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
lea eax, [ebp - 8]
push 1
push 3
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x4e98cd
mov ecx, esp
push eax
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
mov byte [0x100c07fc], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10004e50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100c0790], 0
mov eax, dword [0x100c07cc]
push esi
push edi
mov edi, dword [eax + 0x60]
je 0x10004f24
mov byte [0x100c0787], 0
test edi, edi
je 0x10004e8c
mov dword [edi + 0x870], 1
cmp byte [0x100c07f6], 0
jne 0x10004f14
push 1
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x100059d0
mov eax, dword [0x100c0760]
add eax, 0x68ee34
push eax
call fcn.100027f0
lea eax, [ebp - 0xc]
push eax
call fcn.10005790
mov eax, dword [0x100c0760]
lea ecx, [ebp - 0xc]
add esp, 0x10
add eax, 0x68ee39
push eax
call fcn.100027f0
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
mov byte [esi], 0x90
cmp byte [ebp - 0x10], 0
je 0x10004f14
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [0x100c07f6], 1
mov byte [0x100c07f7], 1
jmp 0x10004f2d
cmp byte [0x100c07f7], 0
je 0x10004fa2
cmp byte [0x100c0790], 0
jne 0x10004fa2
mov eax, dword [0x100c07d0]
mov ecx, dword [eax]
test ecx, ecx
je 0x10004f4a
mov eax, dword [ecx]
push 0
mov eax, dword [eax + 0x74]
call eax
test edi, edi
je 0x10004f64
mov eax, dword [0x100c0760]
mov ecx, edi
add eax, 0x77c980
push 0
call eax
mov dword [edi + 0x870], eax
push 1
push 6
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x8708129
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x68ee34
mov word [ebp - 8], 0
mov ecx, esp
push eax
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
mov byte [0x100c07f7], 0
mov byte [0x100c07f6], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10004fe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100c0776], 0
push esi
push edi
je 0x100050d3
cmp byte [0x100c07f4], 0
jne 0x10005143
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add eax, 0x787859
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 6
push esi
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x18], esi
call edi
test eax, eax
mov eax, 0x90909090
setne byte [ebp - 0xc]
mov dword [esi], eax
mov word [esi + 4], ax
cmp byte [ebp - 0xc], 0
je 0x10005067
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add eax, 0x787865
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 6
push esi
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x18], esi
call edi
test eax, eax
mov eax, 0x90909090
setne byte [ebp - 0xc]
mov dword [esi], eax
mov word [esi + 4], ax
cmp byte [ebp - 0xc], 0
je 0x100050bc
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov byte [0x100c07f4], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
cmp byte [0x100c07f4], 0
je 0x10005143
push 1
push 6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x8708129
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x787859
mov word [ebp - 0x1c], 0
mov ecx, esp
push eax
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
mov dword [ebp - 0x20], 0x8709129
lea eax, [ebp - 0x20]
mov word [ebp - 0x1c], 0
push 1
push 6
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x787865
mov ecx, esp
push eax
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
mov byte [0x100c07f4], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10005170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100c0778], 0
push esi
push edi
je 0x100052a7
cmp byte [0x100c07f9], 0
jne 0x10005317
push 1
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x10005160
mov eax, dword [0x100c0760]
add eax, 0x5499f3
push eax
call fcn.100027f0
lea eax, [ebp - 8]
push eax
call fcn.10005790
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add esp, 0x10
add eax, 0x5499f8
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0x90
cmp byte [ebp - 0xc], 0
je 0x10005219
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
push 1
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], 0x10004fc0
mov eax, dword [0x100c0760]
add eax, 0x54d8d0
push eax
call fcn.100027f0
lea eax, [ebp - 8]
push eax
call fcn.10005790
mov eax, dword [0x100c0760]
lea ecx, [ebp - 8]
add esp, 0x10
add eax, 0x54d8d5
push eax
call fcn.100027f0
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0x90
cmp byte [ebp - 0xc], 0
je 0x10005290
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov byte [0x100c07f9], 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
cmp byte [0x100c07f9], 0
je 0x10005317
push 1
push 6
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x89684189
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x5499f3
mov word [ebp - 0x1c], 0x5c51
mov ecx, esp
mov dword [ebp - 0x28], 0x8b5449ff
push eax
mov word [ebp - 0x24], 0x5441
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
lea eax, [ebp - 0x28]
push 1
push 6
push eax
mov eax, dword [0x100c0760]
push ecx
add eax, 0x54d8d0
mov ecx, esp
push eax
call fcn.100027f0
call fcn.10006e70
add esp, 0x10
mov byte [0x100c07f9], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10005790
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
push ebx
push ecx
mov ecx, esp
push edi
mov dword [ecx], eax
call fcn.100042c0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x100057d4
mov byte [ebp - 8], bl
mov byte [esi], 0xe9
jmp 0x1000580c
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov byte [esi], 0xe9
test eax, eax
je 0x1000580c
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 4
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
push ecx
mov dword [edx], ecx
mov edx, esp
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [edx], ecx
call fcn.10005840
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
Function at 0x10005840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100beec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x10005888
sub eax, 1
je 0x100058e1
sub eax, 2
je 0x10005941
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 0x1c], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x100058ad
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x100058e4
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x100058e4
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call edi
jmp 0x100058e4
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x1000590e
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x10005941
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x10005941
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x10005976
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10054ef6
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x100059a5
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054ef6
mov esp, ebp
pop ebp
ret