joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b277
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x49b2a1
mov eax, 0x4d18d0
push eax
push eax
push 0
push 0
call fcn.0049970d
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x49c2da
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x49c726
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x4cffa7
call fcn.00496ceb
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.0049c56a
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x49c772
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00496cb4
ret 4
push 0x506044
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.0049f38a
int3

Function at 0x49c93e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.0049cad2
mov edi, eax
test edi, edi
je 0x49c9c9
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x49c979
mov esi, edi
jmp 0x49c9b5
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x49c9ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49c9a1
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.0049ca6d
jmp 0x49c9b5
push 0x4ec708
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x49c9b5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049cad2
mov edi, eax
test edi, edi
jne 0x49c96e
test esi, esi
jne 0x49c9de
mov ecx, dword [ebx]
add ecx, 8
call fcn.0049cc5a
mov esi, eax
test esi, esi
je 0x49c9de
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4bbe01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004bbc80

Function at 0x4c1164
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c0e24
Function at 0x6b3f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c4000]
push edi
or ebp, 0xffffffff
jmp 0x6b3fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6b3fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b3f98
mov eax, 1
add ebx, ebx
jne 0x6b3fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6b3fcc
jne 0x6b3feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b3feb
dec eax
add ebx, ebx
jne 0x6b3fd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6b3fb0
add ebx, ebx
jne 0x6b3fe7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6b403d
xor ecx, ecx
sub eax, 3
jb 0x6b4003
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6b4072
sar eax, 1
mov ebp, eax
jmp 0x6b400e
add ebx, ebx
jne 0x6b400e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b3fdc
inc ecx
add ebx, ebx
jne 0x6b401c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6b3fdc
add ebx, ebx
jne 0x6b4029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6b401e
jne 0x6b403a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6b401e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6b405c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6b404e
jmp 0x6b3f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6b405c
add edi, ecx
jmp 0x6b3f9e
pop esi
mov edi, esi
mov ecx, 0x749d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6b407a
cmp byte [edi], 0x1e
jne 0x6b407a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6b407f
lea edi, [esi + 0x2af000]
mov eax, dword [edi]
or eax, eax
je 0x6b40f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2bf07c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2bf1f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6b40ac
mov ecx, edi
jns 0x6b40db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2bf1fc]
or eax, eax
je 0x6b40f1
mov dword [ebx], eax
add ebx, 4
jmp 0x6b40c9
call dword [esi + 0x2bf20c]
mov ebp, dword [esi + 0x2bf200]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6b412b
sub esp, 0xffffff80
jmp 0x52dd70
Function at 0x4013b2
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41a318]
mov dword [ebp - 0x24], eax
mov eax, dword [0x41a31c]
mov dword [ebp - 0x2c], eax
call fcn.004013ab
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x41a320]
add edi, 0x23f
mov eax, dword [0x41a324]
push 0x20
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0x1c], 0xedeb2e40
cmp dword [0x476588], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x476584]
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp dword [0x476588], 0x3eb
mov dword [0x476584], eax
mov eax, dword [0x476010]
cmove eax, dword [ebp - 0x1c]
mov dword [0x476010], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 8], eax
mov eax, ebx
mov dword [0x476580], 0xf4ea3dee
shl eax, 4
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x30]
add edi, 0x61c88647
mov dword [ebp - 0x10], edi
dec esi
jne 0x401404
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d1e4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406e9b
mov dword [ebp - 0x14], eax
cmp dword [0x430d1c], esi
jne 0x40d2d7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d3b7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d3b7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d3b7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x430d1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x430d20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x430d24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d2c], eax
test eax, eax
je 0x40d2d4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x430d28], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d2fc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d2ef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d311
push 4
pop eax
jmp 0x40d3b9
cmp dword [ebp - 0x14], esi
je 0x40d311
push dword [0x430d1c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d2f6
mov eax, dword [0x430d28]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d36f
cmp dword [0x430d2c], edi
je 0x40d36f
push eax
call ebx
push dword [0x430d2c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d36f
test eax, eax
je 0x40d36f
call ecx
test eax, eax
je 0x40d364
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d364
test byte [ebp - 8], 1
jne 0x40d36f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d39f
mov eax, dword [0x430d20]
cmp eax, edi
je 0x40d39c
push eax
call ebx
test eax, eax
je 0x40d39c
call eax
mov esi, eax
test esi, esi
je 0x40d39c
mov eax, dword [0x430d24]
cmp eax, edi
je 0x40d39c
push eax
call ebx
test eax, eax
je 0x40d39c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x430d1c]
call ebx
test eax, eax
je 0x40d3b7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d3b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d80
mov esp, ebp
pop ebp
ret
Function at 0x1000a8c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10095fa8
call fcn.10009d70
push 0x10095fa8
push 0x10065938
push 1
push 0x10095910
call fcn.10016fb0
add esp, 0x1c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHQueryUserNotificationState]
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x1000a93c
cmp eax, 3
je 0x1000a93c
cmp eax, 4
je 0x1000a93c
push 0x41010
push str.CLEO_error
push 0x10095fa8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret
push 0
push 0xf020
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10095fa8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret

Function at 0x1000b8d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp byte [eax], 0
jne 0x1000b9f3
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov ecx, dword [esi + 0x3c]
add ecx, esi
movzx ebx, word [ecx + 0x14]
movzx eax, word [ecx + 6]
add ebx, 0x18
add ebx, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000b9eb
push edi
nop dword [eax + eax]
mov ecx, str..text
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000b947
test dl, dl
je 0x1000b943
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000b947
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000b927
xor eax, eax
jmp 0x1000b94c
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000b980
mov eax, 0x10064540
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1000b977
test dl, dl
je 0x1000b973
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1000b977
add ecx, 2
add eax, 2
test dl, dl
jne 0x1000b957
xor eax, eax
jmp 0x1000b97c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000b9d8
mov edi, dword [ebx + 8]
add edi, 0xfff
and edi, 0xfffff000
push edi
push dword [ebx + 0xc]
push ebx
push str.Unprotecting_memory_region__s:_0x_08X__size:_0x_08X_
push 3
call fcn.1000a880
mov eax, dword [ebx + 0x24]
lea ecx, [ebp - 8]
and eax, 0x20000000
add esp, 0x14
neg eax
sbb eax, eax
and eax, 0x3c
add eax, 4
push ecx
push eax
mov eax, dword [ebx + 0xc]
push edi
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000b9d8
push str.Virtual_protect_error
call fcn.1000a8c0
add esp, 4
mov edx, dword [ebp - 0xc]
add ebx, 0x28
dec edx
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x1000b920
pop edi
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov byte [eax], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret
Function at 0x1000bd80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.1000ba40
mov ecx, dword [0x1006f7d0]
mov esi, eax
test cl, 1
jne 0x1000bdcf
or ecx, 1
mov dword [0x1006f7d4], 0x100645c4
mov dword [0x1006f7d0], ecx
mov dword [0x1006f7dc], 0
mov dword [0x1006f7d8], 0
call fcn.1000bb40
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000be0b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100320d8
mov esp, ebp
pop ebp
ret

Function at 0x1000be20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
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 dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov bl, byte [esi]
test eax, eax
je 0x1000be71
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.100320d8
mov esp, ebp
pop ebp
ret

Function at 0x1000c540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x100969c0
call fcn.10009d70
add esp, 0xc
push 0x100969c0
push 0x10065938
push 1
push 0x10095910
call fcn.10016fb0
add esp, 0x10
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHQueryUserNotificationState]
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x1000c5bf
cmp eax, 3
je 0x1000c5bf
cmp eax, 4
je 0x1000c5bf
push 0x41010
push str.CLEO_error
push 0x100969c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret
push 0
push 0xf020
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x100969c0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push 0
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret
Function at 0x1000dee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Injecting_CustomOpcodeSystem...
push 3
call fcn.1000c4a0
mov eax, dword [0x10095bac]
mov esi, 0x1008fd40
add esp, 8
mov edx, 0x1b
mov eax, dword [eax*4 + 0x1006dff4]
sub esi, eax
nop dword [eax]
mov ecx, dword [eax]
lea eax, [eax + 4]
mov dword [esi + eax - 4], ecx
mov dword [eax - 4], 0x1000d2e0
sub edx, 1
jne 0x1000df20
mov eax, 0x1000d2e0
mov ecx, 0x148
mov edi, 0x1008f810
rep stosd dword es:[edi], eax
mov eax, dword [0x10095bac]
mov eax, dword [eax*4 + 0x1006e008]
mov dword [eax], 0x1008f810
mov dword [0x469ef0], 0x1008f810
mov ecx, dword [0x10095bac]
mov eax, dword [ecx*4 + 0x1006e058]
mov dword [0x1008f808], eax
mov eax, dword [ecx*4 + 0x1006e094]
mov dword [0x1008f7fc], eax
mov eax, dword [ecx*4 + 0x1006e0d0]
mov dword [0x1008f804], eax
mov eax, dword [ecx*4 + 0x1006e0e4]
mov dword [0x1008fdac], eax
test ecx, ecx
jne 0x1000e023
mov eax, dword [0x1006f7d0]
test al, 1
jne 0x1000dfcc
or eax, 1
mov dword [0x1006f7d4], 0x100645c4
mov dword [0x1006f7d0], eax
mov dword [0x1006f7dc], ecx
mov dword [0x1006f7d8], ecx
call fcn.1000bb40
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push eax
push 0x40
mov esi, 0x583a07
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000e00b
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 dword [0x1008fd30], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100320d8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx*4 + 0x1006e0a8]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x1008fd30], eax
pop esi
call fcn.100320d8
mov esp, ebp
pop ebp
ret 4
Function at 0x10017600
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10017632
jl 0x10017625
test ecx, ecx
jne 0x10017632
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100176f2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10018730
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1001769e
jg 0x1001765d
test esi, esi
je 0x1001769e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10017675
mov eax, dword [esp + 0x10]
jl 0x1001766f
cmp eax, esi
jae 0x10017675
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10033730
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100176bf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x100176db
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10017644
jl 0x100176db
test ecx, ecx
jne 0x10017644
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10017736
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10017736
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10033730
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x100177a7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001775c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10017792
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1003aa53
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100177a7
cmp edi, eax
ja 0x10017770
test edi, edi
je 0x100177a7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1003aa53
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc