joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b20
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x234]
push ecx
push eax
mov dword [ebp - 0x234], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_Process32FirstW]
lea edx, [ebp - 0x230]
mov esi, eax
push edx
push esi
call edi
test eax, eax
je 0x407bb5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x407b80
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x228]
jne 0x407ba6
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x230]
push edx
push esi
mov dword [ebp - 0x234], ecx
call edi
jmp 0x407bb0
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x407b80
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
xor ecx, ebp
pop esi
call fcn.004ff71d
mov esp, ebp
pop ebp
ret

Function at 0x408fb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525afb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x57f540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0051a226
push 4
mov dword [ebp - 4], 0
call fcn.0040ba59
mov edi, eax
add esp, 4
test edi, edi
je 0x40902c
call fcn.00519d7b
mov dword [edi], eax
call fcn.00519b3a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00519a6f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x409022
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00519a97
jmp 0x40902e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40cce9
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x40cd2e
push 0x535780
push 4
push eax
call fcn.005004c6
push eax
call fcn.00404b00
add esp, 0x10
jmp 0x40cd44
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40cdc4
push edi
call fcn.00500bd1
mov edi, dword [eax]
call fcn.00500bd1
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00500b6e
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00500bd1
cmp dword [eax], 0
je 0x40cd98
call fcn.00500bd1
push dword [eax]
call fcn.0040be05
pop ecx
jmp 0x40cd9f
call fcn.00500bd1
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x40cdc4
cmp dword [ebp - 0x234], esi
jae 0x40cdc4
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40cdc6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ff71d
leave
ret
Function at 0x40d31d
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0040d291
pop ecx
cmp eax, esi
je 0x40d407
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x40d407
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00501560
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x40d407
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x40d407
cmp esi, 0x14
jge 0x40d407
push 0x10
push 0
push edi
call fcn.0050153b
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40d3f6
call fcn.00500bd1
cmp dword [eax], 0x22
je 0x40d3f6
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005004ab
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x40d3cc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x58446c], 0
jne 0x40d492
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x40d4bb
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0040cce9
pop ecx
pop ecx
test eax, eax
jne 0x40d4bd
inc edi
cmp edi, esi
jl 0x40d498
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff71d
leave
ret 8

Function at 0x40f00f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041978e
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f048
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040ec4c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40f0a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40f0ca
cmp dword [edi + 0x74], 0
jne 0x40f0ca
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0041978e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040f067
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x410dc7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x524c0a
call fcn.005009fa
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x410dec
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x410e3e
call fcn.0040c7b9
push eax
lea ecx, [ebp - 0x10]
call fcn.00404a00
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00500529
push eax
call fcn.00404b00
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404db0
mov eax, esi
call fcn.00500ad2
ret 8

Function at 0x417358
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41739f
call fcn.0041978e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41739f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4173bb
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00416e58
mov esi, eax
test edi, edi
je 0x4173b9
test ebx, ebx
je 0x4173b9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x41ba71
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x57f540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x41baa6
xor eax, eax
jmp 0x41baf9
lea eax, [ebp - 0x210]
push eax
call fcn.005004ab
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x41bad7
push 0x55ef8c
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005015da
add esp, 0xc
test eax, eax
jne 0x41baa2
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005015da
add esp, 0xc
test eax, eax
jne 0x41baa2
lea eax, [ebp - 0x210]
push eax
call fcn.0040d291
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ff71d
leave
ret

Function at 0x4239ce
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00423672
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x423a18
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c6ba
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c68b
jmp 0x423a23
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d7a3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x423a29
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00410a91
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x423a66
call fcn.00423672
mov dword [esi + 0xc], 1
jmp 0x423a6b
call fcn.00423672
cmp dword [esi], 0
je 0x423ab4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x423a8c
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040c6ba
jmp 0x423a9e
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00404f10
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040c68b
jmp 0x423ad8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x423ad8
push dword [esi]
push dword [ebp + 8]
call fcn.0041d7a3
pop esi
pop ebp
ret 0xc

Function at 0x44ea20
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004d6eef
call fcn.004191bf
cmp dword [eax + 0x14], 0
jne 0x44ea3d
mov ecx, esi
pop esi
jmp fcn.0044e525
pop esi
ret
Function at 0x451fd9
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004879e6
call fcn.004191bf
cmp dword [eax + 0x14], 0
jne 0x451ff6
mov ecx, esi
pop esi
jmp fcn.004519ac
pop esi
ret

Function at 0x48d5f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48d60a
call fcn.0041978e
mov esi, dword [eax + 0xc]
push dword [0x58828c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48d628
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48d620
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48d655
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48d622
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048d51e
mov esi, eax
jmp 0x48d647

Function at 0x4e05c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e05dc
mov edi, dword [esi + 0xc]
jmp 0x4e061c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4e05f5
call fcn.004176fe
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e060a
call fcn.004176fe
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e061c
call fcn.004176fe
call fcn.0041978e
cmp dword [eax + 0x3c], 0
je 0x4e0631
push edi
mov ecx, ebx
call fcn.004df478
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e04de
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4e064f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e065b
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4ff71d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57f540]
jne 0x4ff727
repz ret
jmp fcn.005068f3
Function at 0x512ae8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57f540]
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.0050631b
and dword [ebp - 0x14], 0
cmp dword [0x58a8fc], 0
mov dword [ebp - 0x18], eax
jne 0x512b9b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x512c43
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x55cb68
push ebx
call edi
test eax, eax
je 0x512c43
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x55cb58
push ebx
mov dword [0x58a8fc], eax
call edi
push eax
call esi
push 0x55cb44
push ebx
mov dword [0x58a900], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x58a904], eax
call edi
push eax
call esi
mov dword [0x58a90c], eax
test eax, eax
je 0x512b9b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x58a908], eax
mov eax, dword [0x58a908]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x512bf4
cmp dword [0x58a90c], ecx
je 0x512bf4
push eax
call esi
push dword [0x58a90c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x512bf4
test ebx, ebx
je 0x512bf4
call edi
test eax, eax
je 0x512beb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x512beb
test byte [ebp - 8], 1
jne 0x512bf4
or dword [ebp + 0x10], 0x200000
jmp 0x512c27
mov eax, dword [0x58a900]
cmp eax, dword [ebp - 0x18]
je 0x512c27
push eax
call esi
test eax, eax
je 0x512c27
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x512c27
mov eax, dword [0x58a904]
cmp eax, dword [ebp - 0x18]
je 0x512c27
push eax
call esi
test eax, eax
je 0x512c27
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x58a8fc]
call esi
test eax, eax
je 0x512c43
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x512c45
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ff71d
leave
ret
Function at 0x251322d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
mov dword [ebp - 4], eax
mov byte [ebp - 8], 0
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 4], 0
je 0x251323f9
mov eax, dword [ebp - 4]
call fcn.25131dd0
mov dword [ebp - 0x18], eax
test eax, eax
je 0x251323f9
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
sub eax, edx
mov dword [ebp - 0x1c], eax
sub dword [ebp - 0x18], 4
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x64
push dword [ebp - 4]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x251323f9
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x14], eax
cmp eax, 0x7fffffff
je 0x25132352
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.25126f50
call fcn.25127cb0
push eax
test eax, eax
jne 0x2513239a
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
mov ecx, 4
call fcn.25122110
cmp dword [0x25136070], 0
je 0x25132396
push 4
push dword [ebp - 0x18]
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [0x25136070]
mov byte [ebp - 8], 1
call fcn.251271d0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0x7fffffff
je 0x251323be
push dword [ebp - 0x14]
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x64
push dword [ebp - 4]
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x251323e1
cmp dword [ebp - 0x10], 0
jne 0x251323e1
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x251323ef
push dword [ebp - 0x10]
call sub.kernel32.dll_SetLastError
pop eax
test eax, eax
je 0x251323f9
call fcn.25127300
mov al, byte [ebp - 8]
leave
ret
Function at 0x25132400
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x48]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x10], 0
push 0
call sub.kernel32.dll_SetLastError
cmp dword [ebp - 0xc], 0
je 0x25132571
cmp dword [ebp - 4], 0
jne 0x25132443
push 0x8000
push 0
push dword [ebp - 0xc]
call sub.kernel32.dll_VirtualFree
mov byte [ebp - 0x10], 1
jmp 0x25132571
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.25131fe0
test al, al
je 0x25132569
mov eax, dword [ebp - 0xc]
call fcn.25131dd0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x25132571
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x40
push 5
push dword [ebp - 4]
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x25132571
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x1c], eax
cmp eax, 0x7fffffff
je 0x251324ad
push 0xf
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
mov eax, 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.25126f50
call fcn.25127cb0
push eax
test eax, eax
jne 0x25132508
add dword [ebp - 0x20], 4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov ecx, 5
call fcn.25122110
cmp dword [0x25136070], 0
je 0x251324f5
push 5
push dword [ebp - 4]
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [0x25136070]
push 0x8000
push 0
push dword [ebp - 0xc]
call sub.kernel32.dll_VirtualFree
mov byte [ebp - 0x10], 1
call fcn.251271d0
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 0x7fffffff
je 0x2513252c
push dword [ebp - 0x1c]
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.kernel32.dll_SetThreadPriority
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 5
push dword [ebp - 4]
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x2513254f
cmp dword [ebp - 0x18], 0
jne 0x2513254f
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x2513255d
push dword [ebp - 0x18]
call sub.kernel32.dll_SetLastError
pop eax
test eax, eax
je 0x25132567
call fcn.25127300
jmp 0x25132571
mov eax, dword [ebp - 0xc]
call fcn.251322d0
mov al, byte [ebp - 0x10]
leave
ret

Function at 0x25132650
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
test al, al
je 0x2513267b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0x90
je 0x2513267b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp al, 0xcc
je 0x2513267b
mov eax, 0
jmp 0x251326b1
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x251326ac
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
add eax, edx
movzx edx, byte [eax]
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp dl, al
je 0x251326a6
mov eax, 0
jmp 0x251326b1
add dword [ebp - 4], 1
jmp 0x25132682
mov eax, 1
leave
ret