joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10089768]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [0x100899c8], eax
lea edi, [eax + 0x10]
cmp edi, 0x1000
jbe 0x100085e3
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x3c]
cmp edi, 0x1000
jbe 0x10008610
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x40]
cmp edi, 0x1000
jbe 0x1000863d
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x44]
cmp edi, 0x1000
jbe 0x1000866a
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x48]
cmp edi, 0x1000
jbe 0x10008697
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x4c]
cmp edi, 0x1000
jbe 0x100086c4
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x50]
cmp edi, 0x1000
jbe 0x100086f1
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x54]
cmp edi, 0x1000
jbe 0x1000871e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
lea edi, [eax + 0x58]
cmp edi, 0x1000
jbe 0x1000874b
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], fcn.10008580
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov eax, dword [0x100899c8]
cmp dword [0x100898b0], 0
jne 0x1000878a
lea edi, [eax + 0x34]
push ebx
cmp edi, 0x1000
jbe 0x10008781
mov ebx, dword [edi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0xc]
mov dword [edi], 0x10007c40
push eax
push dword [ebp - 8]
push 4
push edi
call esi
jmp 0x10008783
xor ebx, ebx
mov dword [0x100898b0], ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
Function at 0x1000bba0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10088400]
xor eax, esp
mov dword [esp + 0x28], eax
movss xmm0, dword [0x10084aa0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
or esi, 0xffffffff
movss dword [esp + 0xc], xmm0
xor ebx, ebx
mov ecx, ebx
call fcn.100087d0
test eax, eax
jle 0x1000bd9e
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov cl, byte [ecx + eax]
mov al, bl
not cl
not al
xor cl, al
test cl, 1
je 0x1000bd9e
mov eax, dword [0x10089b20]
lea ecx, [esp + 0x1c]
mov edx, ebx
push dword [eax*4 + 0x10080740]
call fcn.10008860
add esp, 4
test al, al
je 0x1000bd9e
movq xmm0, qword [esp + 0x1c]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x34]
call fcn.10008930
add esp, 0xc
test al, al
je 0x1000bd9e
mov eax, dword [0x10089890]
cvttss2si ecx, dword [esp + 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
neg ecx
movsd xmm1, qword [0x100849e8]
addsd xmm0, qword [eax*8 + 0x10084ab0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10084aa4]
cvttss2si eax, xmm0
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov eax, dword [0x10089894]
cvttss2si ecx, dword [esp + 0x2c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
neg ecx
movsd qword [esp + 0x10], xmm0
addsd xmm1, qword [eax*8 + 0x10084ab0]
cvtpd2ps xmm1, xmm1
mulss xmm1, dword [0x10084aa4]
cvttss2si eax, xmm1
movsd xmm1, qword [0x100849e8]
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
addsd xmm0, qword [esp + 0x10]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1000bd01
sqrtsd xmm0, xmm0
jmp 0x1000bd06
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0xc]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1000bd9e
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [0x10089a50]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm1
comiss xmm0, xmm1
jbe 0x1000bd9e
mov ecx, dword [0x10089694]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1000bd44
jmp dword [eax*4 + 0x1000bdc8]
mov eax, 1
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 2
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 0x11
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 0x10
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, dword [0x100899b4]
test ecx, ecx
je 0x1000bd95
push eax
call edi
test ax, ax
js 0x1000bd95
cmp dword [0x10089694], 0
jne 0x1000bd9e
mov esi, ebx
mov byte [0x10089814], 1
inc ebx
cmp ebx, 0xf
jle 0x1000bbd0
mov eax, esi
cmp esi, 0xffffffff
jne 0x1000bdb6
mov byte [0x10089814], 0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
Function at 0x1000bd4b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x10088400]
xor eax, esp
mov dword [esp + 0x28], eax
movss xmm0, dword [0x10084aa0]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
or esi, 0xffffffff
movss dword [esp + 0xc], xmm0
xor ebx, ebx
mov ecx, ebx
call fcn.100087d0
test eax, eax
jle 0x1000bd9e
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov cl, byte [ecx + eax]
mov al, bl
not cl
not al
xor cl, al
test cl, 1
je 0x1000bd9e
mov eax, dword [0x10089b20]
lea ecx, [esp + 0x1c]
mov edx, ebx
push dword [eax*4 + 0x10080740]
call fcn.10008860
add esp, 4
test al, al
je 0x1000bd9e
movq xmm0, qword [esp + 0x1c]
sub esp, 0xc
mov eax, dword [esp + 0x30]
mov ecx, esp
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x34]
call fcn.10008930
add esp, 0xc
test al, al
je 0x1000bd9e
mov eax, dword [0x10089890]
cvttss2si ecx, dword [esp + 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
neg ecx
movsd xmm1, qword [0x100849e8]
addsd xmm0, qword [eax*8 + 0x10084ab0]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x10084aa4]
cvttss2si eax, xmm0
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
mov eax, dword [0x10089894]
cvttss2si ecx, dword [esp + 0x2c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
neg ecx
movsd qword [esp + 0x10], xmm0
addsd xmm1, qword [eax*8 + 0x10084ab0]
cvtpd2ps xmm1, xmm1
mulss xmm1, dword [0x10084aa4]
cvttss2si eax, xmm1
movsd xmm1, qword [0x100849e8]
sub ecx, eax
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_pow_precise
addsd xmm0, qword [esp + 0x10]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1000bd01
sqrtsd xmm0, xmm0
jmp 0x1000bd06
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [esp + 0xc]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm0
jbe 0x1000bd9e
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [0x10089a50]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc], xmm1
comiss xmm0, xmm1
jbe 0x1000bd9e
mov ecx, dword [0x10089694]
lea eax, [ecx - 1]
cmp eax, 3
ja case.default.0x1000bd44
jmp dword [eax*4 + 0x1000bdc8]
mov eax, 1
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 2
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 0x11
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, 0x10
mov dword [0x100899b4], eax
jmp 0x1000bd80
mov eax, dword [0x100899b4]
test ecx, ecx
je 0x1000bd95
push eax
call edi
test ax, ax
js 0x1000bd95
cmp dword [0x10089694], 0
jne 0x1000bd9e
mov esi, ebx
mov byte [0x10089814], 1
inc ebx
cmp ebx, 0xf
jle 0x1000bbd0
mov eax, esi
cmp esi, 0xffffffff
jne 0x1000bdb6
mov byte [0x10089814], 0
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
Function at 0x1000bde0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000be3a
cmp byte [edi*8 + 0x1008c398], 0
lea esi, [edi*8 + 0x1008c39c]
je 0x1000be1f
cmp dword [esi], 0
je 0x1000be42
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x1000be42
mov byte [edi*8 + 0x1008c398], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edi*8 + 0x1008c398], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000f9a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1008bb8c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
cmp dword [eax], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
jne 0x1000fa7e
cmp byte [0x1008969a], 0
jne 0x1000fa7e
mov esi, dword [0x1008ba64]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
add esi, 0xfffffffe
mov byte [0x1008969a], 1
push esi
call ebx
push 1
call edi
push 1
call edi
mov eax, 0xe084
push 1
mov word [esi], ax
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call ebx
mov esi, dword [0x1008b894]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov esi, dword [0x1008b890]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov eax, dword [0x1008bb8c]
cmp dword [eax], 0
jne 0x1000fa93
cmp byte [0x1008969a], 1
jne 0x1000fa93
mov byte [0x1008969a], 0
cmp dword [0x10089d98], 0
je 0x1000faf1
cmp byte [0x10089699], 0
jne 0x1000fb31
mov esi, dword [0x1008b884]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xcc
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
pop edi
pop esi
mov byte [0x10089699], 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
cmp byte [0x10089699], 1
jne 0x1000fb31
mov esi, dword [0x1008b884]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call ebx
push 1
call edi
push 1
call edi
push 1
mov byte [esi], 0xa5
call edi
push 1
call edi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push esi
call ebx
mov byte [0x10089699], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret
Function at 0x10010ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1008bb8c]
cmp dword [eax], 1
jne 0x10010f8f
mov eax, dword [0x10089b14]
cmp dword [eax], 0
je 0x10010f8f
cmp dword [0x10089a60], 0
je 0x10010f8f
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov ecx, dword [ecx + eax]
call fcn.100087d0
test eax, eax
jle 0x10010f11
mov eax, dword [0x10089b14]
mov ecx, dword [eax]
add ecx, dword [0x1008b860]
call fcn.10012530
mov ecx, dword [0x1008b880]
add ecx, eax
call fcn.10012570
jmp 0x10010f14
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10010f8f
mov eax, dword [0x10089b14]
push edi
push 1
mov edi, dword [eax]
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10010f87
cmp byte [0x1008c3a0], 0
je 0x10010f58
cmp dword [0x1008c3a4], 0
je 0x10010f8e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1008c3a4]
add ecx, 0xc8
cmp ecx, eax
ja 0x10010f8e
mov byte [0x1008c3a0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 2
mov ecx, edi
mov dword [0x1008c3a4], eax
call dword [0x1008b8a0]
push 0
push 0
mov ecx, edi
call dword [0x1008b8a0]
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x1008c3a0], 0
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10011ab0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1008bb8c]
sub esp, 0xc
cmp dword [eax], 1
push edi
jne 0x10011bb6
mov eax, dword [0x10089b14]
cmp dword [eax], 0
je 0x10011b13
mov ecx, dword [0x10089828]
sub ecx, dword [0x1008b874]
add ecx, dword [0x1008b9a4]
mov eax, dword [0x1008ba3c]
mov ecx, dword [ecx + eax]
call fcn.100087d0
test eax, eax
jle 0x10011b13
mov eax, dword [0x10089b14]
mov ecx, dword [eax]
add ecx, dword [0x1008b860]
call fcn.10012530
mov ecx, dword [0x1008b880]
add ecx, eax
call fcn.10012570
jmp 0x10011b16
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10011bb6
cmp dword [0x100896a0], eax
je 0x10011bb6
mov eax, dword [0x1008b9a0]
lea edx, [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [0x1008b8d8]
mov ecx, esp
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push ecx
push eax
push edx
call fcn.100138d0
mov ecx, dword [0x1008ba74]
call fcn.10005510
add esp, 0xc
mov edi, eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
shr ecx, 0x10
test ecx, ecx
je 0x10011baf
cmp byte [0x1008c3a0], 0
je 0x10011b92
cmp dword [0x1008c3a4], 0
je 0x10011bb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1008c3a4]
inc ecx
cmp ecx, eax
ja 0x10011bb6
mov byte [0x1008c3a0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1008c3a4], eax
mov dword [edi], 5
pop edi
mov esp, ebp
pop ebp
ret
mov byte [0x1008c3a0], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10011cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10089a74]
mov ebx, ecx
mov dword [ebp - 4], ebx
push edi
test esi, esi
jne 0x10011d81
push 0x28
call fcn.1006cf3b
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
xorps xmm0, xmm0
mov dword [ebp - 8], esi
add esp, 4
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
push 0x190
movq qword [esi + 0x20], xmm0
mov dword [esi + 0xc], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0x433c0000
mov dword [esi + 0x14], 0x41900000
mov dword [esi + 4], 1
call ebx
add esp, 4
mov dword [esi + 8], eax
xor edi, edi
nop dword [eax]
push 0x14
call ebx
mov ecx, dword [esi + 8]
add esp, 4
mov dword [edi + ecx], eax
add edi, 4
cmp edi, 0x190
jl 0x10011d60
mov ebx, dword [ebp - 4]
mov dword [0x10089a74], esi
cmp dword [esi], 0
jne 0x10011d93
mov ecx, ebx
call fcn.1000d3f0
mov esi, dword [0x10089a74]
movss xmm2, dword [0x10084a48]
mov ecx, esi
movss xmm1, dword [0x10084a2c]
push ebx
call fcn.1000c270
call fcn.1000d000
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x10011e1e
cmp byte [0x1008c898], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x10011ded
cmp dword [0x1008c89c], 0
je 0x10011e25
call esi
mov ecx, dword [0x1008c89c]
add ecx, 0xc8
cmp ecx, eax
ja 0x10011e25
mov byte [0x1008c898], 1
call esi
cmp byte [0x10089748], 0
mov dword [0x1008c89c], eax
sete byte [0x10089748]
cmp byte [0x10089900], 0
sete byte [0x10089900]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x1008c898], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100128d0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10088400]
xor eax, ebp
mov dword [ebp - 4], eax
sub dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
jne 0x100129db
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x10012750
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
push 0
push 0
push esi
push 0x10012880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10012972
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10012947
push 0x40
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test edi, edi
je 0x10012971
lea eax, [ebp - 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10012971
push 0xf8
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
pop edi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x100129db
cmp ecx, esi
jne 0x100129d2
mov edx, dword [eax + 4]
test edx, edx
je 0x10012994
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x100129a0
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x100129af
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100129b9
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x100129c5
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x100129d2
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10012985
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.1006cc7b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10012f70
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 0x10012f9c
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 0x10012fc4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10012fca
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 0x10013032
jg 0x10012fe1
test esi, esi
je 0x10013032
test ecx, ecx
jl 0x1001302d
jg 0x10012feb
test eax, eax
je 0x1001302d
cmp edi, ecx
jg 0x10012fff
jl 0x10012ff5
cmp esi, eax
jae 0x10012fff
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 0x10013035
mov ecx, dword [ebp + 8]
jmp 0x1001303f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10013059
jg 0x1001303f
test esi, esi
je 0x10013059
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10013059
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 0x10013070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
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 [ebp - 4], esi
test eax, eax
jg 0x1001309c
jl 0x10013090
test ecx, ecx
jne 0x1001309c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100130b5
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 esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10013103
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10013109
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], 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 [ebp - 4]
jmp 0x10013109
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10013176
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10013132
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 [ebp - 0xc]
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 0x10013164
nop
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 0x10013176
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10013140
test edi, edi
je 0x10013176
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