joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021e0
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 0x1000220c
jl 0x10002200
test ecx, ecx
jne 0x1000220c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002225
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 0x10002273
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10002279
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 0x10002279
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100022e6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100022a2
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 0x100022d4
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 0x100022e6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100022b0
test edi, edi
je 0x100022e6
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 0x10002660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002690
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100026cc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x100026cc
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.1002b830
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x100027a3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100026f4
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 0x10002700
movsx eax, bl
jmp 0x10002738
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 0x10002762
sub eax, 1
je 0x10002762
sub eax, 2
jne 0x100027a3
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002780
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 0x100027a3
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.1002b830
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.1002b830
mov esp, ebp
pop ebp
ret 4
Function at 0x10003330
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.1002c8f0
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ecx]
lea eax, [ebp - 0x108]
xor esi, esi
push str..PhysicalDrive_d
push eax
call fcn.10003c80
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10003553
push 0x2710
lea eax, [ebp - 0x37b8]
mov dword [ebp - 0x37bc], esi
push esi
push eax
mov dword [ebp - 0x37c0], esi
mov dword [ebp - 0x37c8], esi
mov dword [ebp - 0x37c4], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push esi
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0xc
lea eax, [ebp - 0x37c8]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10003546
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100031a0
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100031a0
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.100031a0
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.100031a0
add esp, 0x20
cmp byte [0x1003e028], 0
jne 0x10003509
movsx eax, byte [ebp - 0x4f0]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x10003482
movsx eax, byte [ebp - 0x4dd]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
je 0x10003509
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1003dc27], al
test al, al
jne 0x10003490
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1003d427], al
test al, al
jne 0x100034b0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1003e027], al
test al, al
jne 0x100034d0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x1003d827], al
test al, al
jne 0x100034f0
mov esi, 1
push 0x2710
lea eax, [ebp - 0x37b8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x37bc]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b8]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
jmp 0x1000354c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10004270
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1003cd18], 0x10
mov eax, 0x1003cd04
push ebx
push dword [0x1003cd14]
cmovae eax, dword [0x1003cd04]
mov ecx, 0x1003ccec
push eax
call fcn.10002b00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov ecx, eax
mov dword [0x1003ccdc], edx
sub ecx, dword [0x1003ccd8]
mov dword [0x1003cce0], ecx
cmp ecx, 0x200
jb 0x100042e0
cmp byte [0x1003cce8], 0
mov dword [0x1003ccd8], edx
sete al
mov byte [0x1003cce8], al
jmp 0x100042e5
mov al, byte [0x1003cce8]
test al, al
je 0x10004337
mov edx, dword [0x1003cd18]
mov eax, edx
mov ecx, dword [0x1003cd14]
sub eax, ecx
cmp eax, 1
jb 0x1000431d
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [0x1003cd14], eax
mov eax, 0x1003cd04
cmovae eax, dword [0x1003cd04]
mov word [eax + ecx], 0x7c
jmp 0x10004337
push 1
push 0x10030764
mov byte [ebp - 0x20], 0
mov ecx, 0x1003cd04
push dword [ebp - 0x20]
push 1
call fcn.10002e90
mov eax, dword [0x1003cd14]
test eax, eax
je 0x100043b5
cmp eax, 0x10
jae 0x100043b8
cmp dword [0x1003cd18], 0x10
mov bl, 0xd
mov edx, 0x1003cd04
mov byte [ebp - 0x1d], 0
cmovae edx, dword [0x1003cd04]
mov al, 0x28
xor al, bl
mov byte [ebp - 0x20], bl
mov byte [ebp - 0x1f], al
mov cl, 0x7e
push edx
lea eax, [ebp - 0x1f]
mov byte [ebp - 0x1d], 0
push eax
xor cl, bl
push 0x10042ac8
mov byte [ebp - 0x1e], cl
call fcn.10001390
mov eax, dword [0x1003ccb8]
add esp, 0xc
add eax, 0xe6
push 0x10042ac8
push 1
push dword [0x10042538]
push 0xffe580ff
push dword [0x1003ccbc]
push eax
call fcn.10003d70
mov eax, dword [0x1003cd14]
add esp, 0x18
cmp eax, 0x10
jbe 0x10004434
movaps xmm0, xmmword [0x10035080]
xor ecx, ecx
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0xc], 0x202f7364
mov byte [ebp - 8], 0
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0x13
jb 0x100043d2
lea eax, [ebp - 0x1b]
mov byte [ebp - 8], 0
push eax
push 0x10042948
call fcn.10001390
mov ecx, dword [0x1003ccbc]
add esp, 8
mov eax, dword [0x1003ccb8]
add eax, 0xe6
push ecx
push eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [0x10042538]
lea edx, [ebp - 0x18]
push 0xffff0000
push 0x100
push edx
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0x10042948
push 0
push eax
call dword [ecx + 0x38]
cmp dword [0x1003cd00], 0x10
mov eax, 0x1003ccec
push dword [0x1003ccfc]
cmovae eax, dword [0x1003ccec]
mov ecx, 0x1003cd04
push eax
call fcn.10002b00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10004530
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x10041782], 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
je 0x10004712
mov esi, dword [0x1003cccc]
mov edi, dword [ebp + 8]
cmp dword [0x1003ccb4], esi
jne 0x10004635
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x100045a1
push dword [0x10042310]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
test al, 1
je 0x1000458c
mov eax, dword [edi]
cmp eax, dword [ebp - 4]
jge 0x100045a1
inc eax
jmp 0x1000459f
push dword [0x10041cb4]
call esi
test al, 1
je 0x100045a1
mov eax, dword [edi]
test eax, eax
jle 0x100045a1
dec eax
mov dword [edi], eax
mov esi, dword [0x1003cccc]
cmp dword [0x1003ccb4], esi
jne 0x10004635
push ebx
push 1
push dword [0x10042538]
call fcn.10003cf0
push eax
mov eax, dword [0x1003ccc0]
mov ecx, esi
shl ecx, 4
add eax, 0xffffffd8
sub ecx, esi
add eax, ecx
push eax
mov eax, dword [0x1003ccb8]
add eax, 0xfffffffd
push eax
call fcn.10003d70
mov ecx, dword [edi]
add esp, 0x18
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10042538]
call fcn.10003cf0
mov ecx, dword [0x1003cccc]
push eax
mov eax, dword [0x1003ccc0]
shl ecx, 4
add eax, 0xffffffd8
sub ecx, dword [0x1003cccc]
add eax, ecx
push eax
mov eax, dword [0x1003ccb8]
add eax, 0x8c
push eax
call fcn.10003d70
add esp, 0x18
inc dword [0x1003cccc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1003ccc0]
mov ecx, esi
shl ecx, 4
add eax, 0xffffffd8
push ebx
sub ecx, esi
push 1
push dword [0x10042538]
add eax, ecx
cmp dword [edi], 0
jle 0x100046b0
cmp dword [ebp + 0xc], 1
jne 0x10004685
push 0xffffff33
push eax
mov eax, dword [0x1003ccb8]
add eax, 0xfffffffd
push eax
call fcn.10003d70
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10042538]
push 0xffffff33
jmp 0x100046df
push 0xff7fff00
push eax
mov eax, dword [0x1003ccb8]
add eax, 0xfffffffd
push eax
call fcn.10003d70
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10042538]
push 0xff7fff00
jmp 0x100046df
cmp dword [ebp + 0xc], 1
je 0x1000465a
push 0xff00ffff
push eax
mov eax, dword [0x1003ccb8]
add eax, 0xfffffffd
push eax
call fcn.10003d70
mov ecx, dword [edi]
mov eax, dword [ebp + 0x10]
push dword [eax + ecx*4]
push 1
push dword [0x10042538]
push 0xff00ffff
mov ecx, dword [0x1003cccc]
mov eax, dword [0x1003ccc0]
shl ecx, 4
add eax, 0xffffffd8
sub ecx, dword [0x1003cccc]
add eax, ecx
push eax
mov eax, dword [0x1003ccb8]
add eax, 0x8c
push eax
call fcn.10003d70
add esp, 0x30
inc dword [0x1003cccc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10004b68
mov esi, dword [esi]
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jle 0x10004b68
lea eax, [ebp + 0xc]
nop
mov edi, dword [eax + 4]
add eax, 4
push 4
add edi, esi
mov dword [ebp - 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10004b55
mov esi, dword [edi]
inc ebx
mov eax, dword [ebp - 0xc]
cmp ebx, dword [ebp + 0xc]
jl 0x10004b30
jmp 0x10004b6b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b830
mov esp, ebp
pop ebp
ret

Function at 0x10005010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push edi
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
mov ebx, dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1002b830
mov esp, ebp
pop ebp
ret

Function at 0x100050f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push edi
push 4
push 0x281dac8
mov edi, edx
call esi
test eax, eax
jne 0x1000514c
mov eax, dword [0x281dac8]
add edi, eax
push 4
push edi
call esi
test eax, eax
jne 0x1000514c
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
mov eax, dword [ebx]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10005160
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push 0x281dac8
mov dword [ebp - 0xc], eax
call esi
test eax, eax
jne 0x10005214
push edi
mov edi, dword [0x281dac8]
push 4
add edi, 0x12c
push edi
call esi
test eax, eax
jne 0x10005202
push ebx
mov ebx, dword [edi]
push 4
add ebx, 0x110
push ebx
call esi
test eax, eax
jne 0x100051ef
mov ebx, dword [ebx]
add ebx, dword [ebp + 0xc]
push 4
push ebx
call esi
test eax, eax
jne 0x100051ef
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push edi
push ebx
call esi
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call esi
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002b830
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10005230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x281def4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
mov eax, dword [eax + 0x1c]
push 0x281dac8
mov dword [ebp - 8], eax
call esi
test eax, eax
jne 0x10005369
push edi
mov edi, dword [0x281dac8]
push 4
add edi, 0x12c
push edi
call esi
test eax, eax
jne 0x10005368
mov edi, dword [edi]
push 4
add edi, 0x2c
push edi
call esi
test eax, eax
jne 0x10005368
mov edi, dword [edi]
add edi, dword [ebp + 0xc]
push 4
push edi
call esi
test eax, eax
jne 0x10005368
mov edi, dword [edi]
push 4
add edi, 0x36c
push edi
call esi
test eax, eax
jne 0x10005368
mov edi, dword [edi]
push 4
add edi, 0x94
push edi
call esi
test eax, eax
jne 0x10005368
push ebx
mov ebx, dword [edi]
push 4
add ebx, 0xaa
push ebx
call esi
test eax, eax
jne 0x10005367
push 4
push 0x281dac8
call esi
test eax, eax
jne 0x10005367
mov edi, dword [0x281dac8]
push 4
add edi, 0x12c
push edi
call esi
test eax, eax
jne 0x10005367
mov edi, dword [edi]
push 4
add edi, 0x2c
push edi
call esi
test eax, eax
jne 0x10005367
mov edi, dword [edi]
add edi, dword [ebp + 0xc]
push 4
push edi
call esi
test eax, eax
jne 0x10005367
mov edi, dword [edi]
push 4
add edi, 0x2e0
push edi
call esi
test eax, eax
jne 0x10005367
mov edi, dword [edi]
push 4
push edi
call esi
test eax, eax
jne 0x10005367
mov ecx, dword [ebp - 8]
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x10005367
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call esi
lea eax, [ebp - 8]
mov dword [ebx], 0x90909090
push eax
push dword [ebp - 8]
push 4
push ebx
call esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1002b830
mov esp, ebp
pop ebp
ret
Function at 0x10005380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x281def4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
mov eax, dword [eax + 0x1c]
push 0x281dac8
mov dword [ebp - 8], eax
call esi
test eax, eax
jne 0x10005590
push edi
mov edi, dword [0x281dac8]
push 4
add edi, 0x12c
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x2c
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
add edi, dword [ebp + 0xc]
push 4
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x36c
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x94
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x36c
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x28
push edi
call esi
test eax, eax
jne 0x1000558f
mov edi, dword [edi]
push 4
add edi, 0x10a8
push edi
call esi
test eax, eax
jne 0x1000558f
push 4
push 0x281dac8
call esi
test eax, eax
jne 0x1000558f
push ebx
mov ebx, dword [0x281dac8]
push 4
add ebx, 0x12c
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
add ebx, 0x2c
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
add ebx, dword [ebp + 0xc]
push 4
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
add ebx, 0x2e0
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ecx, dword [ebp - 8]
mov eax, dword [ebx]
cmp eax, dword [ecx]
jne 0x1000558e
push 4
push 0x281dac8
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [0x281dac8]
push 4
add ebx, 0x12c
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
add ebx, 0x2c
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
add ebx, dword [ebp + 0xc]
push 4
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
add ebx, 0x36c
push ebx
call esi
test eax, eax
jne 0x1000558e
mov ebx, dword [ebx]
push 4
add ebx, 0x178
push ebx
call esi
test eax, eax
jne 0x1000558e
mov eax, dword [ebx]
cmp eax, 0x1b1bb
je 0x1000556b
cmp eax, 0x18715
je 0x1000556b
cmp eax, 0x1b1ba
je 0x1000556b
cmp eax, 0x1b1bd
je 0x1000556b
cmp eax, 0x1872c
je 0x1000556b
cmp eax, 0x1b21c
jne 0x1000558e
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 8]
mov dword [edi], 0x69239aa8
push eax
push dword [ebp - 8]
push 4
push edi
call esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1002b830
mov esp, ebp
pop ebp
ret