joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0x18]
xor ecx, ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x3c]
movzx eax, word [eax + 0x38]
shr eax, 1
lea eax, [edx + eax*2]
cmp eax, edx
jb 0x403b07
mov edi, edi
cmp word [eax], 0x5c
je 0x403afe
sub eax, 2
inc ecx
cmp eax, edx
jae 0x403af0
cmp ecx, 0xb
jae 0x403bd3
push ebx
push esi
mov esi, 0xfffffffd
mov edi, edi
mov bl, 1
xor edx, edx
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8f1880]
add byte [edx + 0x8f1980], al
mov cl, byte [ecx + 0x8f1980]
add byte [edx + 0x8f1980], cl
inc edx
cmp edx, 0x100
jb 0x403b14
mov bl, 1
xor edx, edx
nop
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8f1880]
xor byte [edx + 0x8f1980], al
mov cl, byte [ecx + 0x8f1980]
xor byte [edx + 0x8f1980], cl
inc edx
cmp edx, 0x100
jb 0x403b40
mov bl, 1
xor edx, edx
jmp 0x403b70
movzx ecx, bl
inc bl
movzx eax, byte [ecx + 0x8f1880]
sub byte [edx + 0x8f1980], al
movzx eax, byte [edx + 0x8f1980]
sub al, byte [ecx + 0x8f1980]
mov byte [edx + 0x8f1980], al
inc edx
cmp edx, 0x100
jb 0x403b70
mov bl, 1
xor eax, eax
movzx edx, bl
inc bl
movzx ecx, byte [edx + 0x8f1880]
xor byte [eax + 0x8f1980], cl
mov dl, byte [edx + 0x8f1980]
xor byte [eax + 0x8f1980], dl
inc eax
cmp eax, 0x100
jb 0x403ba2
sub esi, 1
jne 0x403b10
pop esi
pop ebx
ret

Function at 0x41c842
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x8ccb92
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8cc92e
add ecx, 0xdfd961c2
sub edx, ecx
mov ecx, 0xebde1032
call fcn.008ccbc9
sub edx, ecx
xor dword [ebx], eax
or ecx, edx
sub ecx, edx
add ebx, 1
mov edx, 0xce51f875
cmp ebx, esi
jne fcn.008ccb92
or edx, edx
dec ecx
ret
Function at 0x4023eb
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41ad26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4236e0]
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi + 8], eax
mov edx, dword [0x4236e0]
lea ecx, [esi + 0x34]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [ecx], edx
push 0x423414
mov byte [esp + 0x18], 1
mov dword [esi], 0x41c8c8
mov dword [esi + 0x40], 0x3e8
mov dword [esi + 0x38], 0x40
mov dword [esi + 0x3c], edi
call fcn.004127bb
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x10], 0xffffffff
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ad78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [edi + 4], ecx
mov dword [edi + 0xc], ecx
mov eax, dword [0x4236e0]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x18], ecx
mov dl, byte [ebx]
and dl, 0xf
movzx si, dl
mov edx, dword [esp + 0x24]
shl esi, 2
and esi, 0xffff
lea eax, [esi + 8]
cmp eax, edx
jle 0x4027e9
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [esp + 0x10]
push 0x42351c
push eax
call fcn.0041066a
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
jmp 0x402833
mov al, byte [esi + ebx]
cmp al, cl
je 0x40280f
and eax, 0xff
lea edx, [esp + 0xc]
push eax
push 0x423504
push edx
call fcn.0041066a
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
jmp 0x402833
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp word [esi + ebx + 4], ax
je 0x402861
lea ecx, [esp + 0xc]
push 0x4234ec
push ecx
call fcn.0041066a
mov edx, dword [esp + 0x14]
add esp, 8
push edx
mov ecx, edi
call fcn.00402b50
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004126c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], 1
call ebp
sub eax, dword [esi + ebx + 8]
mov dword [edi + 0xc], eax
xor eax, eax
mov al, byte [ebx + 8]
push eax
call ebp
mov ecx, dword [esi + ebx + 8]
mov edx, dword [esp + 0x30]
sub eax, ecx
xor ecx, ecx
mov cx, word [esi + ebx + 6]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea edx, [esp + 0x24]
push 0x4234b4
push edx
call fcn.0041066a
mov eax, dword [esp + 0x2c]
add esp, 0x1c
mov ecx, edi
push eax
call fcn.00402b50
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004126c2
mov ecx, dword [esp + 0x14]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40833d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4241a0
cmp edx, dword [eax]
je 0x40835f
add eax, 8
inc ecx
cmp eax, 0x424230
jl 0x408350
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4241a0]
jne 0x40848d
mov eax, dword [0x426e18]
cmp eax, 1
je 0x408467
test eax, eax
jne 0x408390
cmp dword [0x423cc4], 1
je 0x408467
cmp edx, 0xfc
je 0x40848d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4083c7
lea eax, [ebp - 0x1a4]
push 0x41e3ac
push eax
call fcn.00408490
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40840a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41e3a8
push edi
call fcn.0040b590
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x41e38c
push eax
call fcn.00408490
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004084a0
lea eax, [ebp - 0xa0]
push 0x41e388
push eax
call fcn.004084a0
push dword [esi + 0x4241a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004084a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x41e360
push eax
call fcn.0040b507
add esp, 0x2c
pop edi
jmp 0x40848d
lea eax, [ebp + 8]
lea esi, [esi + 0x4241a4]
push 0
push eax
push dword [esi]
call fcn.00408580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40fcc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004038d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40fd8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40fd8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40fd3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40fd49
or bh, 8
and edi, 0x8000000
je 0x40fd64
mov eax, dword [0x42859c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40fd8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41018b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4101af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4101ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x414c0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x414c51
call fcn.00419788
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x414c51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x414c48
xor eax, eax
jmp 0x414c59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00414c5f
pop edi
pop esi
pop ebx
ret 4

Function at 0x41801d
Capabilities:
Create http request

Disassembly:
mov eax, 0x41b104
call fcn.00403a50
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], 0x41d9ec
jne 0x418055
call fcn.00419788
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41807a
push eax
push dword [esi + 4]
call fcn.00418ae8
jmp 0x418086
push esi
push eax
mov ecx, 0x4269c8
call fcn.00418097
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4181fa
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x41b13f
call fcn.00403a50
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00415e91
mov eax, dword [0x4236e0]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], 0x41da08
mov ecx, 0x4269c8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.00418097
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004127bb
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00403068
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.0041276b
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004126c2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x406260
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40d07c]
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.00403dae
and dword [ebp - 0x14], 0
cmp dword [0x40e920], 0
mov dword [ebp - 0x18], eax
jne 0x406313
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063bb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4063bb
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40a7d4
push ebx
mov dword [0x40e920], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40e924], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40e928], eax
call edi
push eax
call esi
mov dword [0x40e930], eax
test eax, eax
je 0x406313
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40e92c], eax
mov eax, dword [0x40e92c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40636c
cmp dword [0x40e930], ecx
je 0x40636c
push eax
call esi
push dword [0x40e930]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40636c
test ebx, ebx
je 0x40636c
call edi
test eax, eax
je 0x406363
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406363
test byte [ebp - 8], 1
jne 0x40636c
or dword [ebp + 0x10], 0x200000
jmp 0x40639f
mov eax, dword [0x40e924]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40639f
mov eax, dword [0x40e928]
cmp eax, dword [ebp - 0x18]
je 0x40639f
push eax
call esi
test eax, eax
je 0x40639f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40e920]
call esi
test eax, eax
je 0x4063bb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402701
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x71e4200c
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x3d23192
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10002920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1002a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
test al, al
mov dword [ebp - 0x18], 0
mov ebx, edx
cmovne esi, ebx
test esi, esi
jne 0x10002952
mov byte [ebp - 0xc], 0
jmp 0x1000296f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1000f890
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x1000299b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c824
mov esp, ebp
pop ebp
ret

Function at 0x100029b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0xc]
mov dword [ebp - 8], ecx
xor ecx, ecx
push ebx
test al, al
mov dword [ebp - 0x1c], edx
push esi
mov esi, dword [ebp + 8]
cmovne ecx, edx
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x100029e3
xor bl, bl
jmp 0x10002a02
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov edx, dword [ebp - 0x1c]
setne bl
push edx
push esi
push dword [ebp - 8]
mov byte [ebp - 0xc], bl
call fcn.1000f890
add esp, 0xc
test bl, bl
je 0x10002a2b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c824
mov esp, ebp
pop ebp
ret
Function at 0x10002a40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 0x19], cl
test eax, eax
je 0x10002a98
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 0x19]
movzx eax, cl
sub eax, 0xe8
je 0x10002b37
sub eax, 1
je 0x10002b37
sub eax, 0x16
jne 0x10002b1e
mov eax, dword [ebp + 8]
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.10003f30
add esp, 4
cmp al, 0x15
je 0x10002acd
cmp al, 0x25
jne 0x10002b1e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10002b07
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov ecx, dword [esi]
mov eax, edi
mov dword [edi], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c824
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000c824
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.10003ec0
mov ecx, dword [ebp - 4]
add esp, 4
add eax, 4
xor ecx, ebp
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1000c824
mov esp, ebp
pop ebp
ret
Function at 0x10002b70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1002a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], edx
mov dword [ecx], eax
mov ecx, edx
call fcn.10002a40
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x10002bd8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
inc esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], esi
lea eax, [esi + 4]
sub edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x10002c18
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 ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000c824
mov esp, ebp
pop ebp
ret