joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4597e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45982b
call fcn.0045b0ea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45982b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x459847
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004592e4
mov esi, eax
test edi, edi
je 0x459845
test ebx, ebx
je 0x459845
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x45a01d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56b4b3
call fcn.00550508
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x45a042
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45a094
call fcn.0044d418
push eax
lea ecx, [ebp - 0x10]
call fcn.00407a70
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054e6d3
push eax
call fcn.00407420
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00407b60
mov eax, esi
call fcn.005505e0
ret 8

Function at 0x45b574
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0045b16d
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x45b5be
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044d83f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a810
jmp 0x45b5c9
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046225d
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x45b5cf
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004598f0
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x45b60c
call fcn.0045b16d
mov dword [esi + 0xc], 1
jmp 0x45b611
call fcn.0045b16d
cmp dword [esi], 0
je 0x45b65a
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x45b632
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0044d83f
jmp 0x45b644
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00407800
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040a810
jmp 0x45b67e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x45b67e
push dword [esi]
push dword [ebp + 8]
call fcn.0046225d
pop esi
pop ebp
ret 0xc

Function at 0x460916
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x46094b
xor eax, eax
jmp 0x46099e
lea eax, [ebp - 0x210]
push eax
call fcn.00550109
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x46097c
push 0x5ad338
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054ff9b
add esp, 0xc
test eax, eax
jne 0x460947
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054ff9b
add esp, 0xc
test eax, eax
jne 0x460947
lea eax, [ebp - 0x210]
push eax
call fcn.0044df07
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0054bd91
leave
ret
Function at 0x49db1e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0052488f
call fcn.0045ab1b
cmp dword [eax + 0x14], 0
jne 0x49db3b
mov ecx, esi
pop esi
jmp fcn.0049d623
pop esi
ret

Function at 0x4a1079
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00486989
call fcn.0045ab1b
cmp dword [eax + 0x14], 0
jne 0x4a1096
mov ecx, esi
pop esi
jmp fcn.004a0a4c
pop esi
ret

Function at 0x4da51b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4da535
call fcn.0045b0ea
mov esi, dword [eax + 0xc]
push dword [0x5dde48]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4da553
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4da54b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4da580
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4da54d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004da449
mov esi, eax
jmp 0x4da572

Function at 0x52d744
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x52d75c
mov edi, dword [esi + 0xc]
jmp 0x52d79c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x52d775
call fcn.0045cac1
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x52d78a
call fcn.0045cac1
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x52d79c
call fcn.0045cac1
call fcn.0045b0ea
cmp dword [eax + 0x3c], 0
je 0x52d7b1
push edi
mov ecx, ebx
call fcn.0052c5fc
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0052d65e
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x52d7cf
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x52d7db
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x54bd91
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d7ce0]
jne 0x54bd9b
repz ret
jmp fcn.00555a63
Function at 0x563e58
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0055548b
and dword [ebp - 0x14], 0
cmp dword [0x5e0474], 0
mov dword [ebp - 0x18], eax
jne 0x563f0b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x563fb3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a9128
push ebx
call edi
test eax, eax
je 0x563fb3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5a9118
push ebx
mov dword [0x5e0474], eax
call edi
push eax
call esi
push 0x5a9104
push ebx
mov dword [0x5e0478], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e047c], eax
call edi
push eax
call esi
mov dword [0x5e0484], eax
test eax, eax
je 0x563f0b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e0480], eax
mov eax, dword [0x5e0480]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x563f64
cmp dword [0x5e0484], ecx
je 0x563f64
push eax
call esi
push dword [0x5e0484]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x563f64
test ebx, ebx
je 0x563f64
call edi
test eax, eax
je 0x563f5b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x563f5b
test byte [ebp - 8], 1
jne 0x563f64
or dword [ebp + 0x10], 0x200000
jmp 0x563f97
mov eax, dword [0x5e0478]
cmp eax, dword [ebp - 0x18]
je 0x563f97
push eax
call esi
test eax, eax
je 0x563f97
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x563f97
mov eax, dword [0x5e047c]
cmp eax, dword [ebp - 0x18]
je 0x563f97
push eax
call esi
test eax, eax
je 0x563f97
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e0474]
call esi
test eax, eax
je 0x563fb3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x563fb5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054bd91
leave
ret
Function at 0x1000bcf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.1000b9b0
mov ecx, dword [0x1003c000]
mov esi, eax
test cl, 1
jne 0x1000bd3f
or ecx, 1
mov dword [0x1003c004], 0x100331e8
mov dword [0x1003c000], ecx
mov dword [0x1003c00c], 0
mov dword [0x1003c008], 0
call fcn.1000bab0
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 0x1000bd7b
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.1002ce51
mov esp, ebp
pop ebp
ret

Function at 0x1000bd90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003b040]
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 0x1000bde1
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.1002ce51
mov esp, ebp
pop ebp
ret

Function at 0x1000c330
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, 0x10062d90
call fcn.1000be10
add esp, 0xc
push 0x10062d90
push 1
call fcn.10015420
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x1000c3c1
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 0x10062d90
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 0x10062d90
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x1000d570
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Injecting_CustomOpcodeSystem...
push 3
call fcn.1000c2b0
mov eax, dword [0x10062328]
add esp, 8
mov edx, dword [eax*4 + 0x1003b65c]
xor eax, eax
nop
mov ecx, dword [edx + eax]
mov dword [eax + 0x1005c570], ecx
mov dword [edx + eax], 0x1000d160
add eax, 4
cmp eax, 0x6c
jb 0x1000d5a0
mov eax, 0x1000d160
mov ecx, 0x148
mov edi, 0x1005c040
rep stosd dword es:[edi], eax
mov eax, dword [0x10062328]
mov eax, dword [eax*4 + 0x1003b670]
mov dword [eax], 0x1005c040
mov dword [0x469ef0], 0x1005c040
mov ecx, dword [0x10062328]
mov eax, dword [ecx*4 + 0x1003b6c0]
mov dword [0x1005c038], eax
mov eax, dword [ecx*4 + 0x1003b6fc]
mov dword [0x1005c02c], eax
mov eax, dword [ecx*4 + 0x1003b738]
mov dword [0x1005c034], eax
mov eax, dword [ecx*4 + 0x1003b74c]
mov dword [0x1005c5dc], eax
test ecx, ecx
jne 0x1000d6a6
mov eax, dword [0x1003c000]
test al, 1
jne 0x1000d64f
or eax, 1
mov dword [0x1003c004], 0x100331e8
mov dword [0x1003c000], eax
mov dword [0x1003c00c], ecx
mov dword [0x1003c008], ecx
call fcn.1000bab0
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 0x1000d68e
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 [0x1005c560], esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ecx*4 + 0x1003b710]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [0x1005c560], eax
pop esi
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
Function at 0x10015960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1001598c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x100159b4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100159ba
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10015a22
jg 0x100159d1
test esi, esi
je 0x10015a22
test ecx, ecx
jl 0x10015a1d
jg 0x100159db
test eax, eax
je 0x10015a1d
cmp edi, ecx
jg 0x100159ef
jl 0x100159e5
cmp esi, eax
jae 0x100159ef
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10015a25
mov ecx, dword [ebp + 8]
jmp 0x10015a2f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10015a49
jg 0x10015a2f
test esi, esi
je 0x10015a49
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10015a49
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10015a60
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
mov esi, dword [ebp + 8]
mov dword [esp + 8], esi
push edi
test eax, eax
jg 0x10015a92
jl 0x10015a85
test ecx, ecx
jne 0x10015a92
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 0x10015aac
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10015aff
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [esp + 0x14], edx
mov eax, dword [eax]
test eax, eax
je 0x10015b06
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [esp + 0x14]
push edi
call sub.VCRUNTIME140.dll_memcpy
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
mov esi, dword [esp + 0xc]
jmp 0x10015b06
lea eax, [ebx + 0x2c]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x4c], 0
je 0x10015b76
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10015b30
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 [esp + 0x14]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x10015b64
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10015b76
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10015b40
test edi, edi
je 0x10015b76
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
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
Function at 0x10015f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10015f30
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10015f6c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10015f6c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10016043
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10015f94
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10015fa0
movsx eax, bl
jmp 0x10015fd8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x10016002
sub eax, 1
je 0x10016002
sub eax, 2
jne 0x10016043
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10016020
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10016043
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4
Function at 0x100161e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001629c
cmp byte [esi + 0x3d], 0
je 0x1001629c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001628a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10016251
sub eax, 1
je 0x10016255
sub eax, 2
jne 0x1001628a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10016273
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001628a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002ce51
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1002ce51
mov esp, ebp
pop ebp
ret

Function at 0x10016a60
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, 0x10063ab0
call fcn.1000be10
add esp, 0xc
push 0x10063ab0
push 1
call fcn.10015420
mov ebx, 0xc8cf88
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
jne 0x10016af1
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 0x10063ab0
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 0x10063ab0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
pop ebp
ret
Function at 0x100172d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003b040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.Injecting_MenuStatusNotifier...
push 3
call fcn.10016c80
mov esi, dword [0x10062328]
add esp, 8
mov eax, dword [esi*4 + 0x1003b1e8]
mov esi, dword [esi*4 + 0x1003b2b0]
mov dword [0x1005c5e4], 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 [0x1005c5e0], eax
mov eax, dword [0x10062328]
mov esi, dword [eax*4 + 0x1003b2b0]
push esi
push str.Replacing_call:_0x_08X
push 3
call fcn.10016c80
mov ecx, dword [ebp - 4]
mov eax, esi
inc esi
add esp, 0xc
xor ecx, ebp
mov byte [eax], 0xe8
mov eax, 0x10016cb0
sub eax, esi
sub eax, 4
mov dword [esi], eax
pop esi
call fcn.1002ce51
mov esp, ebp
pop ebp
ret 4