joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001cb0
Capabilities:
Access peb ldr_data

Disassembly:
test edx, edx
je 0x10001d1f
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10001d1f
push esi
cmp ecx, edx
jne 0x10001d15
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10001cd7
mov esi, dword [eax]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10001ce3
mov esi, dword [eax]
mov dword [esi + 4], ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x10001cef
mov esi, dword [eax + 0x10]
mov dword [ecx], esi
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10001cfc
mov esi, dword [eax + 0x14]
mov dword [ecx + 4], esi
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10001d08
mov esi, dword [eax + 0xc]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10001d15
mov esi, dword [eax + 0xc]
mov dword [ecx + 4], esi
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10001cc8
pop esi
ret

Function at 0x10001d20
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov eax, dword [ebp + 0xc]
dec eax
jne 0x10001e0d
jmp 0x10001d40
mov cl, byte [eax + 0x1000f150]
sub cl, 0x10
xor cl, 0x77
mov byte [eax + 0x1000f150], cl
inc eax
cmp eax, 0x1b5800
jb 0x10001d40
push ebx
call fcn.10001680
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test esi, esi
je 0x10001db3
push edi
mov edi, dword [esi + 0x3c]
lea edx, [ebp + 8]
push edx
push 4
push 0x40
push esi
add edi, esi
call ebx
test eax, eax
je 0x10001d8c
push 0x40
push 0
push esi
call fcn.10006860
add esp, 0xc
test edi, edi
je 0x10001db2
lea eax, [ebp + 8]
push eax
push 4
push 0xf8
push edi
call ebx
test eax, eax
je 0x10001db2
push 0xf8
push 0
push edi
call fcn.10006860
add esp, 0xc
pop edi
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
push 0x40
push eax
push ecx
call ebx
push 0x1000
push 0
push esi
call fcn.10006860
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
push 0
push edx
push eax
push ecx
call ebx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, esi
call fcn.10001cb0
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100022cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e450]
jne 0x100022d9
repz ret
jmp fcn.10003f1d
Function at 0x10008c3e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000e450]
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.10004a40
and dword [ebp - 0x14], 0
cmp dword [0x101c5730], 0
mov dword [ebp - 0x18], eax
jne 0x10008cf1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10008d99
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10008d99
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x101c5730], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x101c5734], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x101c5738], eax
call edi
push eax
call esi
mov dword [0x101c5740], eax
test eax, eax
je 0x10008cf1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x101c573c], eax
mov eax, dword [0x101c573c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10008d4a
cmp dword [0x101c5740], ecx
je 0x10008d4a
push eax
call esi
push dword [0x101c5740]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10008d4a
test ebx, ebx
je 0x10008d4a
call edi
test eax, eax
je 0x10008d41
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10008d41
test byte [ebp - 8], 1
jne 0x10008d4a
or dword [ebp + 0x10], 0x200000
jmp 0x10008d7d
mov eax, dword [0x101c5734]
cmp eax, dword [ebp - 0x18]
je 0x10008d7d
push eax
call esi
test eax, eax
je 0x10008d7d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10008d7d
mov eax, dword [0x101c5738]
cmp eax, dword [ebp - 0x18]
je 0x10008d7d
push eax
call esi
test eax, eax
je 0x10008d7d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x101c5730]
call esi
test eax, eax
je 0x10008d99
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10008d9b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100022cf
leave
ret
Function at 0x10005960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10043050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.100054f0
mov ecx, dword [0x10044b70]
mov esi, eax
test cl, 1
jne 0x100059af
or ecx, 1
mov dword [0x10044b74], 0x1003ed10
mov dword [0x10044b70], ecx
mov dword [0x10044b7c], 0
mov dword [0x10044b78], 0
call fcn.100055f0
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 0x100059eb
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.10010f41
mov esp, ebp
pop ebp
ret

Function at 0x10005a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10043050]
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 0x10005a51
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.10010f41
mov esp, ebp
pop ebp
ret
Function at 0x100082f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x100083d8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x100083c7
jg 0x10008330
test edx, edx
je 0x100083c7
nop dword [eax]
call fcn.10009f80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10008384
jg 0x10008347
test esi, esi
je 0x10008384
cmp ebx, eax
jg 0x10008357
jl 0x10008351
cmp edi, esi
jae 0x10008357
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.100128c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x100083ab
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x100083c1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10008330
jl 0x100083c1
test edi, edi
jne 0x10008330
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x100083fa
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x100083fc
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x1000847a
jg 0x1000840f
test esi, esi
je 0x1000847a
test eax, eax
jl 0x1000845e
jg 0x10008419
test ebx, ebx
je 0x1000845e
cmp edi, eax
jg 0x10008429
jl 0x10008423
cmp esi, ebx
jae 0x10008429
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.100128c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x1000847a
jg 0x10008461
test esi, esi
je 0x1000847a
jmp 0x10008461
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x1000847a
push eax
push esi
push 1
push edx
call fcn.10016216
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008490
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 0x100084c2
jl 0x100084b5
test ecx, ecx
jne 0x100084c2
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 0x10008582
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10009fa0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1000852e
jg 0x100084ed
test esi, esi
je 0x1000852e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10008505
mov eax, dword [esp + 0x10]
jl 0x100084ff
cmp eax, esi
jae 0x10008505
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100128c0
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 0x1000854f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1000856b
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 0x100084d4
jl 0x1000856b
test ecx, ecx
jne 0x100084d4
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]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100085c1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100085c1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100128c0
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
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x10008630
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x100085e7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10008619
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10017f85
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x10008644
cmp edi, eax
ja 0x100085f5
test ecx, ecx
je 0x10008630
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10017f85
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
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 0x100089c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10043050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100089f0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10008a2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10008a2c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10008b16
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10008a54
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 0x10008a87
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.100157d4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
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 edx
sub eax, 0
je 0x10008ae9
sub eax, 1
je 0x10008ae9
sub eax, 2
jne 0x10008b16
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.100157d4
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10008b06
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10016216
add esp, 0x10
cmp edi, eax
jne 0x10008b16
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x10008a17
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010f41
mov esp, ebp
pop ebp
ret 4
Function at 0x10009da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10043050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10009e5c
cmp byte [esi + 0x3d], 0
je 0x10009e5c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10009e4a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x10009e12
sub eax, 1
je 0x10009e16
sub eax, 2
jne 0x10009e4a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10009e33
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10016216
add esp, 0x10
cmp edi, eax
jne 0x10009e4a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010f41
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10010f41
mov esp, ebp
pop ebp
ret

Function at 0x1000bf40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push 0xffffffffffffffff
push 0x100459f0
call fcn.10005ac0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.10017806
add esp, 0x1c
push 0x100459f0
push 1
call dword [sym.imp.CLEO.asi_Ordinal_39]
push 0xfffffffffffffff0
push dword [0x1c9055c]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0xc00000
je 0x1000bfe0
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 0x100459f0
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]
pop ebp
ret
push 0x41010
push str.CLEO_error
push 0x100459f0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebp
ret

Function at 0x1002336d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100231e3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401484
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401480
lea ebx, [ebx]
cmp esi, eax
jae 0x401484
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401470
cmp esi, eax
jb 0x40148a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425e17
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00426347
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402a60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425e17
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004264c6
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4032d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.AFUWIN.5b5b8120_cd0e_11d9_b61b_0001294c3bd8
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4032fa
mov eax, 0x61
jmp 0x40333f
call fcn.00404400
mov dword [0x44ee58], eax
cmp dword [0x44ee58], 5
ja 0x40331a
push SysReAllocStringLen
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
jmp 0x403325
push 0x80000041
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
call fcn.00405940
test eax, eax
je 0x403338
mov dword [0x44eb74], 0x403270
call fcn.004051d0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403490
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x44d890]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.004269f0
add esp, 0xc
mov ecx, dword [0x44c168]
mov dword [ebp - 4], ecx
cmp dword [0x44eb60], 0
je 0x4034e7
mov edx, dword [0x44eb60]
push edx
call dword [0x44eb78]
add esp, 4
mov dword [0x44eb60], eax
call fcn.00402320
mov dword [ebp - 0x114], 0
jmp 0x403507
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 1
jae 0x403532
mov ecx, dword [ebp - 0x114]
cmp dword [ebp + ecx*4 - 4], 0
je 0x403530
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + eax*4 - 4]
call ecx
add esp, 4
jmp 0x4034f8
push 1
call fcn.00404740
add esp, 4
cmp dword [0x44eca4], 0
je 0x4035e9
mov edx, 2
test edx, edx
je 0x403599
movzx eax, word [0x44eca0]
test eax, eax
je 0x403599
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.004026e0
add esp, 0xc
push 0x44eba0
push str._s_amifldrv64.sys
lea edx, [ebp - 0x110]
push edx
call fcn.00426ead
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 1
test ecx, ecx
je 0x4035e9
movzx edx, word [0x44eca0]
test edx, edx
je 0x4035e9
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.004026e0
add esp, 0xc
push 0x44eba0
push str._s_amifldrv32.sys
lea ecx, [ebp - 0x110]
push ecx
call fcn.00426ead
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x44eb60]
push eax
call fcn.00403350
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00426728
mov esp, ebp
pop ebp
ret

Function at 0x403610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x44d890]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x108], 0
push 0xfe
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004269f0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00425bc0
add esp, 4
add eax, 0x100
push eax
call fcn.00404520
add esp, 4
mov dword [ebp - 0x10c], eax
push str..exe
mov edx, dword [ebp + 0xc]
push edx
call fcn.004038d0
add esp, 8
mov dword [ebp - 4], eax
push str..EXE
mov eax, dword [ebp + 0xc]
push eax
call fcn.004038d0
add esp, 8
mov dword [ebp - 0x110], eax
cmp dword [ebp - 4], 0
jne 0x4036de
cmp dword [ebp - 0x110], 0
jne 0x4036de
lea ecx, [ebp - 0x108]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
push str._s_s.exe
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.00426ead
add esp, 0x10
jmp 0x4036f1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10c]
push eax
call fcn.00426630
add esp, 8
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00426728
mov esp, ebp
pop ebp
ret