joyce8/EMBER2024-capa huggingface dataset:
Function at 0x642e7d3f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e7d61
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7d61
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7d61
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7d61
test word [ebx + 0x16], 2
je 0x642e7d61
test word [ebx + 0x16], 0x100
je 0x642e7d61
cmp word [ebx + 0x18], 0x10b
jne 0x642e7d61
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7d61
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e7ded
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7d81
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642ceccc
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7d61
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x642e7ded
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x642e7d61
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x642e7d61
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x642e7d61
ret
cmp word [ebx + 4], 0x14c
jne 0x642e7d61
test word [ebx + 0x16], 2
je 0x642e7d61
test word [ebx + 0x16], 0x100
je 0x642e7d61
cmp word [ebx + 0x18], 0x10b
jne 0x642e7d61
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x642e7d61
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x642e7ded
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x642e7d81
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.642ceccc
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x642e7d61
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x642e7ea4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e7efd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e7ea4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e7eb3
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646edb56
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e7f04
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642ced7a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e7fa3
add edi, 4
add eax, 2
dec ecx
jne 0x642e7ee9
call 0x642e7f50
loope 0x642e7f46
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e7fa0
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e7fb1
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e7f64
cmp eax, ecx
ja 0x642e7f64
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e7fee
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e7fe4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf259
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x642e7eb3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x642e7efd
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x642e7ea4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x642e7eb3
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x646edb56
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x642e7f04
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.642ced7a
cmp eax, dword [ebp + 0xc]
pop eax
je 0x642e7fa3
add edi, 4
add eax, 2
dec ecx
jne 0x642e7ee9
call 0x642e7f50
loope 0x642e7f46
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x642e7fa0
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x642e7fb1
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x642e7f64
cmp eax, ecx
ja 0x642e7f64
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x642e7fee
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x642e7fe4
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.642cf259
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1000ab70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10096170
call fcn.10009fd0
add esp, 0xc
push 0x10096170
push 1
call fcn.10015e30
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1000ac01
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10096170
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x10096170
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret

Function at 0x1000bb40
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 0x1000bc63
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 0x1000bc5b
push edi
nop dword [eax + eax]
mov ecx, str..text
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000bbb7
test dl, dl
je 0x1000bbb3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000bbb7
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000bb97
xor eax, eax
jmp 0x1000bbbc
sbb eax, eax
or eax, 1
test eax, eax
je 0x1000bbf0
mov eax, 0x10064390
mov ecx, ebx
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x1000bbe7
test dl, dl
je 0x1000bbe3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x1000bbe7
add ecx, 2
add eax, 2
test dl, dl
jne 0x1000bbc7
xor eax, eax
jmp 0x1000bbec
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000bc48
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.1000ab40
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 0x1000bc48
push str.Virtual_protect_error
call fcn.1000ab70
add esp, 4
mov edx, dword [ebp - 0xc]
add ebx, 0x28
dec edx
mov dword [ebp - 0xc], edx
test edx, edx
jne 0x1000bb90
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.100362d6
mov esp, ebp
pop ebp
ret
Function at 0x1000bff0
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.1000bcb0
mov ecx, dword [0x1006fa18]
mov esi, eax
test cl, 1
jne 0x1000c03f
or ecx, 1
mov dword [0x1006fa1c], 0x10064414
mov dword [0x1006fa18], ecx
mov dword [0x1006fa24], 0
mov dword [0x1006fa20], 0
call fcn.1000bdb0
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 0x1000c07b
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.100362d6
mov esp, ebp
pop ebp
ret

Function at 0x1000c090
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 0x1000c0e1
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.100362d6
mov esp, ebp
pop ebp
ret

Function at 0x1000c600
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x10096b80
call fcn.10009fd0
add esp, 0xc
push 0x10096b80
push 1
call fcn.10015e30
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1000c691
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x10096b80
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x10096b80
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x1000d770
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.1000c580
mov eax, dword [0x10095d18]
add esp, 8
mov edx, dword [eax*4 + 0x1006e0bc]
xor eax, eax
nop
mov ecx, dword [edx + eax]
mov dword [eax + 0x1008ff80], ecx
mov dword [edx + eax], 0x1000d350
add eax, 4
cmp eax, 0x6c
jb 0x1000d7a0
mov eax, 0x1000d350
mov ecx, 0x148
mov edi, 0x1008fa50
rep stosd dword es:[edi], eax
mov eax, dword [0x10095d18]
mov eax, dword [eax*4 + 0x1006e0d0]
mov dword [eax], 0x1008fa50
mov dword [0x469ef0], 0x1008fa50
mov ecx, dword [0x10095d18]
mov eax, dword [ecx*4 + 0x1006e120]
mov dword [0x1008fa48], eax
mov eax, dword [ecx*4 + 0x1006e15c]
mov dword [0x1008fa3c], eax
mov eax, dword [ecx*4 + 0x1006e198]
mov dword [0x1008fa44], eax
mov eax, dword [ecx*4 + 0x1006e1ac]
mov dword [0x1008ffec], eax
test ecx, ecx
jne 0x1000d8a6
mov eax, dword [0x1006fa18]
test al, 1
jne 0x1000d84f
or eax, 1
mov dword [0x1006fa1c], 0x10064414
mov dword [0x1006fa18], eax
mov dword [0x1006fa24], ecx
mov dword [0x1006fa20], ecx
call fcn.1000bdb0
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 0x1000d88e
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 [0x1008ff70], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100362d6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx*4 + 0x1006e170]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x1008ff70], eax
pop esi
call fcn.100362d6
mov esp, ebp
pop ebp
ret 4
Function at 0x10017890
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054840
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.100362e4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100356f3
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10017790
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10018430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x100978a0
call fcn.10009fd0
add esp, 0xc
push 0x100978a0
push 1
call fcn.10015e30
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x100184c1
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x100978a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x100978a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret

Function at 0x10018d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Injecting_MenuStatusNotifier...
push 3
call fcn.100186b0
mov esi, dword [0x10095d18]
add esp, 8
mov eax, dword [esi*4 + 0x1006dc48]
mov esi, dword [esi*4 + 0x1006dd10]
mov dword [0x1008fff0], eax
inc esi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi]
add esi, 4
add eax, esi
mov dword [0x1008fff4], eax
mov eax, dword [0x10095d18]
mov esi, dword [eax*4 + 0x1006dd10]
push esi
push str.Replacing_call:_0x_08X
push 3
call fcn.100186b0
mov ecx, dword [ebp - 4]
mov eax, esi
inc esi
add esp, 0xc
xor ecx, ebp
mov byte [eax], 0xe8
mov eax, 0x100186e0
sub eax, esi
sub eax, 4
mov dword [esi], eax
pop esi
call fcn.100362d6
mov esp, ebp
pop ebp
ret 4
Function at 0x1002a5b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x100990c8
call fcn.10009fd0
add esp, 0xc
push 0x100990c8
push 1
call fcn.10015e30
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1002a641
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x100990c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x100990c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x1002a950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [eax + 0x14], 0xf
push edi
mov dword [esp + 0xc], ecx
jbe 0x1002a975
mov eax, dword [eax]
push 0x1006677c
push eax
call fcn.100400f5
mov edi, eax
add esp, 8
test edi, edi
je 0x1002aa3a
push 2
push 0
push edi
call fcn.1003f1d1
add esp, 0xc
push edi
test eax, eax
js 0x1002aa32
call fcn.10040003
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
js 0x1002aa31
cmp ebx, 0x7fffffff
je 0x1002aa31
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x24], ebx
jae 0x1002aa01
mov ecx, ebx
call fcn.1002a6f0
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x20]
mov dword [ecx + 0x20], eax
test edx, edx
je 0x1002a9e8
push edx
call fcn.1003685f
mov ecx, dword [esp + 0x10]
add esp, 4
cmp dword [ecx + 0x20], 0
jne 0x1002a9fe
push edi
call fcn.1003e16e
add esp, 4
mov eax, 2
jmp 0x1002aa3f
mov dword [ecx + 0x24], ebx
push edi
call fcn.10040ae4
mov eax, dword [esp + 0x10]
add esp, 4
push edi
push ebx
push 1
push dword [eax + 0x20]
call fcn.1003ed73
push edi
mov ebx, eax
call fcn.1003e16e
add esp, 0x14
test eax, eax
jne 0x1002aa3a
cmp ebx, dword [esp + 0x14]
jne 0x1002aa3a
jmp 0x1002aa41
push edi
call fcn.1003e16e
add esp, 4
mov eax, 0x15
xor ebx, ebx
mov edi, dword [esp + 0x14]
test eax, eax
cmove edi, ebx
je 0x1002aa67
mov dword [esi + 8], eax
mov eax, esi
mov dword [esi], 0
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
push dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x14], eax
call fcn.1002aaf0
test eax, eax
je 0x1002aa9f
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ecx + 8], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 3
jb 0x1002aabf
mov ecx, dword [esp + 0xc]
cmp word [ecx], 0xbbef
jne 0x1002aabf
cmp byte [ecx + 2], 0xbf
jne 0x1002aabf
add ecx, 3
add edi, 0xfffffffd
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [esp + 0x10]
push ebx
push edi
mov eax, dword [ecx]
push dword [esp + 0x14]
call dword [eax]
test eax, eax
jne 0x1002aa82
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 4], 1
pop edi
mov dword [ecx + 8], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002bdb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp + 8]
mov ecx, 0x100998c8
call fcn.10009fd0
add esp, 0xc
push 0x100998c8
push 1
call fcn.10015e30
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1002be41
push 0
push 0xf020
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 6
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x41010
push str.CLEO_error
push 0x100998c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xf120
push 0x112
push dword [ebx]
call dword [sym.imp.USER32.dll_PostMessageA]
push 9
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x100998c8
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x1002be80
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005607f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1006d080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
push 0x20
movzx eax, word [esi + 0xdd]
mov word [edi], ax
mov byte [edi + 4], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
call fcn.100362e4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 0xb4], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [edi + 0xc4], xmm0
mov dword [edi + 0xd4], 0
mov dword [edi + 0xd8], 0xf
mov byte [edi + 0xc4], 0
movups xmmword [edi + 0xdc], xmm0
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0xf
mov byte [edi + 0xdc], 0
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
mov dword [edi + 8], eax
lea eax, [esi + 0x18]
push 0x20
push eax
lea eax, [edi + 0x10]
push eax
call fcn.10037ae0
movzx eax, word [esi + 0x38]
add esp, 0x10
mov word [edi + 0x30], ax
cmp byte [esi + 0xdc], 0
mov eax, dword [sym.CLEO.asi_missionLocals]
jne 0x1002bf69
lea eax, [esi + 0x3c]
push 0x80
push eax
lea eax, [edi + 0x34]
push eax
call fcn.10037ae0
movzx eax, byte [esi + 0xc5]
add esp, 0xc
mov byte [edi + 0xbc], al
mov ax, word [esi + 0xd0]
mov word [edi + 0xbe], ax
movzx eax, byte [esi + 0xd2]
mov byte [edi + 0xc0], al
cmp byte [esi + 0xdf], 0
jne 0x1002bfc1
cmp dword [0x10095d5c], 0xf
mov ecx, 0x10095d48
cmova ecx, dword [0x10095d48]
jmp 0x1002bfd2
cmp dword [esi + 0x148], 0xf
lea ecx, [esi + 0x134]
jbe 0x1002bfd2
mov ecx, dword [ecx]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x1002bfe0
sub edx, dword [ebp - 0x10]
push edx
push ecx
lea ecx, [edi + 0xc4]
call fcn.10014cd0
cmp byte [esi + 0xdf], 0
jne 0x1002c015
cmp dword [0x10095d74], 0xf
mov ecx, 0x10095d60
cmova ecx, dword [0x10095d60]
jmp 0x1002c026
cmp dword [esi + 0x160], 0xf
lea ecx, [esi + 0x14c]
jbe 0x1002c026
mov ecx, dword [ecx]
mov edx, ecx
lea eax, [edx + 1]
mov dword [ebp - 0x10], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x1002c030
sub edx, dword [ebp - 0x10]
push edx
push ecx
lea ecx, [edi + 0xdc]
call fcn.10014cd0
movzx ecx, word [0x10095a30]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [esi + 0x18], xmm0
movups xmmword [esi + 0x28], xmm0
mov word [esi + 0x38], ax
mov byte [esi + 0xc5], al
mov word [esi + 0xd0], ax
mov byte [esi + 0xd2], al
mov eax, edi
mov word [edi + 2], cx
mov word [esi + 0xdd], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4