joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d5ac0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fb0b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0xb3], 0
mov edi, dword [ebp + 8]
je 0x4d5c73
cmp dword [edi + 0x10], 0
je 0x4d5c73
cmp dword [edi + 0x14], 8
jb 0x4d5b14
mov eax, dword [edi]
jmp 0x4d5b16
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4d5c73
push 0x3c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x7c], 0x3c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x68], 1
jb 0x4d5b54
mov eax, dword [edi]
jmp 0x4d5b56
mov eax, edi
lea ecx, [ebp - 0x7c]
push ecx
push 0
push dword [edi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4d5c73
mov eax, dword [ebp - 0x70]
cmp eax, 3
je 0x4d5b7f
cmp eax, 4
jne 0x4d5c73
mov eax, dword [ebp - 0x78]
mov byte [ebp - 0x7d], 0
test eax, eax
je 0x4d5c5e
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x4d5c5e
cmp dword [ebp - 0x6c], 0
je 0x4d5c5e
cmp dword [ebp - 0x68], 0
jbe 0x4d5c5e
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00478660
push dword [ebp - 0x68]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
push dword [ebp - 0x6c]
call fcn.00478660
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004855a0
add esp, 0xc
push eax
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebx + 0xc8]
call fcn.00409c70
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 1
call fcn.0040b360
mov eax, dword [ebp - 0x84]
cmp eax, dword [ebx + 0xc8]
je 0x4d5c41
add eax, 0x40
cmp dword [eax + 0x14], 8
jb 0x4d5c30
mov eax, dword [eax]
push eax
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [ebp - 0x7d], 1
lea ecx, [ebp - 0x28]
call fcn.00408450
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00408450
cmp byte [ebp - 0x7d], 0
jne 0x4d5c73
cmp dword [edi + 0x14], 8
jb 0x4d5c66
mov edi, dword [edi]
push edi
push dword [ebx + 0xb8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4
Function at 0x4d7180
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x7f02
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4d71b0
push eax
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x4d71b2
xor eax, eax
push esi
push edi
push 0
push dword [ebx + 0xb8]
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp byte [ebx + 0xb1], 0
mov edi, eax
je 0x4d721f
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4d721f
call esi
call esi
sub eax, edi
cmp eax, 0x493e0
ja 0x4d721f
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [ebx + 0xb1], 0
jne 0x4d71d8
mov eax, dword [ebp - 0x24]
pop edi
pop esi
test eax, eax
je 0x4d722f
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebx + 0xac], 1
pop ebx
sete al
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret

Function at 0x4d7250
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp dword [esi + 0x10], 0
je 0x4d72fc
cmp dword [esi + 0x14], 8
jb 0x4d727b
mov eax, dword [esi]
jmp 0x4d727d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x4d72fc
push 0x3c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
cmp dword [esi + 0x14], 8
jb 0x4d72a9
mov eax, dword [esi]
jmp 0x4d72ab
mov eax, esi
lea ecx, [ebp - 0x40]
push ecx
push 0
push dword [esi + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x4d72fc
cmp dword [ebp - 0x34], 4
jne 0x4d72fc
mov eax, 0x1bb
cmp word [ebp - 0x28], ax
jne 0x4d72fc
push esi
call fcn.00497090
mov ecx, eax
call fcn.0049ed00
test al, al
movzx ecx, bl
mov edx, 1
cmovne ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x4d9270
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510098
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.BrokerMAPIObject.0
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x14], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x30], 7
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov word [edi + 0x1c], ax
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], eax
mov word [edi + 0x34], ax
mov dword [edi + 0x60], 7
mov dword [edi + 0x5c], eax
mov word [edi + 0x4c], ax
mov dword [edi + 0x78], 0xf
mov dword [edi + 0x74], eax
mov byte [edi + 0x64], al
mov dword [edi + 0x90], 0xf
mov dword [edi + 0x8c], eax
mov byte [edi + 0x7c], al
mov dword [edi + 0xa8], 0xf
mov dword [edi + 0xa4], eax
mov byte [edi + 0x94], al
push 0x5374b8
mov byte [ebp - 4], 6
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], eax
mov dword [edi + 0xb4], eax
mov dword [edi + 0xb8], eax
mov dword [edi + 0xbc], eax
mov dword [edi + 0xc0], eax
mov dword [edi + 0xc4], eax
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], eax
mov dword [edi + 0xd0], eax
mov dword [edi + 0xd4], eax
mov dword [edi + 0xd8], eax
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], eax
call fcn.0042af80
add esp, 4
mov dword [edi + 0xe0], eax
test eax, eax
je 0x4d9458
push 8
call fcn.00405f0d
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [ebp - 4], 7
test ebx, ebx
je 0x4d93fb
xorps xmm0, xmm0
push str.MAPIFreeBuffer
movq qword [ebx], xmm0
push dword [edi + 0xe0]
call esi
push str.MAPIAllocateBuffer
push dword [edi + 0xe0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx], eax
jmp 0x4d93fd
xor ebx, ebx
push str.MAPIInitialize
push dword [edi + 0xe0]
mov byte [ebp - 4], 6
mov dword [edi + 0xac], ebx
call esi
push str.MAPIUninitialize
push dword [edi + 0xe0]
mov dword [edi + 4], eax
call esi
mov ecx, dword [edi + 4]
mov dword [edi + 8], eax
test ecx, ecx
je 0x4d9458
test eax, eax
je 0x4d9458
push 0
call ecx
test eax, eax
mov eax, edi
js 0x4d9464
mov dword [edi + 0xb8], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov dword [edi + 0xb8], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0872
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004e47be
mov dword [ebp - 0x14], eax
cmp dword [0x55cef8], esi
jne 0x4f0965
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4f08f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4f0a45
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4f0a45
push 0x53dc90
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f0a45
push eax
call ebx
push 0x53dc9c
push edi
mov dword [0x55cef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x55cefc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x53dcc0
push edi
mov dword [0x55cf00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55cf08], eax
test eax, eax
je 0x4f0962
push 0x53dcdc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55cf04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4f098a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4f097d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4f099f
push 4
pop eax
jmp 0x4f0a47
cmp dword [ebp - 0x14], esi
je 0x4f099f
push dword [0x55cef8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4f0984
mov eax, dword [0x55cf04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4f09fd
cmp dword [0x55cf08], edi
je 0x4f09fd
push eax
call ebx
push dword [0x55cf08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4f09fd
test eax, eax
je 0x4f09fd
call ecx
test eax, eax
je 0x4f09f2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4f09f2
test byte [ebp - 8], 1
jne 0x4f09fd
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4f0a2d
mov eax, dword [0x55cefc]
cmp eax, edi
je 0x4f0a2a
push eax
call ebx
test eax, eax
je 0x4f0a2a
call eax
mov esi, eax
test esi, esi
je 0x4f0a2a
mov eax, dword [0x55cf00]
cmp eax, edi
je 0x4f0a2a
push eax
call ebx
test eax, eax
je 0x4f0a2a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x55cef8]
call ebx
test eax, eax
je 0x4f0a45
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4f0a47
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x4f55d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ecx + 4]
xor edx, edx
push edi
mov dword [ebp - 4], esi
mov ebx, dword [esi + 0x3c]
add ebx, esi
xor edi, edi
movzx ecx, word [ebx + 6]
cmp edx, ecx
jae 0x4f562b
movzx eax, word [ebx + 0x14]
lea ecx, [ebx + 0x18]
add eax, edi
add ecx, eax
je 0x4f562b
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x4f5606
xor esi, esi
jmp 0x4f560d
add esi, eax
cmp esi, dword [ebp + 8]
ja 0x4f5617
mov eax, dword [ecx + 8]
add eax, esi
cmp eax, dword [ebp + 8]
ja 0x4f5620
mov esi, dword [ebp - 4]
inc edx
add edi, 0x28
jmp 0x4f55e6
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f9b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510559
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00405f90
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00405ee0
mov dword [edi + 8], eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 1
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00405fc0
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.00405f90
mov dword [edi + 0x18], eax
lea ecx, [edi + 0x20]
mov byte [ebp - 4], 3
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.00405f90
mov dword [edi + 0x20], eax
lea eax, [edi + 0x2c]
push eax
mov byte [edi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x20019
push 0
push str.SoftwarePoliciesAdobeAcrobat_ReaderDCFeatureLockDown
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f9cbd
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 4
push eax
push 0
push str.bDisableCryptBroker
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f9cb4
cmp dword [ebp - 0x1c], 4
jne 0x4f9cb4
cmp dword [ebp - 0x14], 4
jne 0x4f9cb4
cmp dword [ebp - 0x18], eax
setne cl
mov byte [edi + 0x28], cl
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x10001d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
xor eax, eax
push esi
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
push edi
mov ecx, 0x3d69ca38
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], 0
call fcn.1001ac10
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
test eax, eax
sete al
test al, al
je 0x10001db3
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x1002588c
sub edi, 0x7e80af00
lea esi, [ebp - 0x230]
call fcn.1001ac90
lea edx, [ebp - 0x108]
push edx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x234], eax
jmp 0x10001de1
mov ecx, 0x3d69ca38
lea eax, [ebp - 0x218]
call fcn.1001ac10
push eax
call esi
mov dword [ebp - 0x234], eax
xor eax, eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
cmp dword [ebp - 0x234], 0
jne 0x10001e18
mov edx, dword [ebp - 0x244]
mov eax, dword [ebp - 0x240]
mov ecx, dword [ebp - 0x23c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
pop edi
mov dword [ebx + 8], ecx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e972
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x238]
push edx
call esi
mov edi, 0x4bdde6d5
lea esi, [ebp - 0x230]
mov dword [ebp - 0x238], eax
call fcn.1001acd0
push eax
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x238]
push 0xc
lea ecx, [ebp - 0x244]
mov esi, eax
xor eax, eax
push ecx
push edx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x21c], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x240]
mov edx, dword [ebp - 0x23c]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 8], edx
mov eax, ebx
pop esi
call fcn.1001e972
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
call ebx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push eax
push 4
push esi
mov dword [esi], ecx
call ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10029bc8
push 0x1001efb9
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002d018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], 0
push 0xa
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0xa
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x20]
push ecx
push 0x40
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [edi]
mov dword [esi], edx
mov al, byte [edi + 4]
mov byte [esi + 4], al
add esi, 5
mov byte [esi], 0xe9
mov ecx, edi
sub ecx, esi
mov dword [esi + 1], ecx
lea edx, [ebp - 0x1c]
push edx
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [edi], 0xe9
sub ebx, edi
sub ebx, 5
mov dword [edi + 1], ebx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esi - 5]
jmp 0x10002dc9
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [esi + 5]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
lea eax, [esi + 5]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [esi + 5]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
push ebx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
lea edx, [ebp - 4]
push edx
add ebx, esi
push 0x40
mov eax, edi
sub eax, ebx
push esi
lea ecx, [eax + esi - 5]
push edi
mov byte [ebx], 0xe9
mov dword [ebx + 1], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edi
mov byte [edi], 0xe9
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, ebx
sub eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002e90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call dword [sym.imp.MSVCR100.dll_memmove]
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 8]
push edx
push eax
push esi
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002ee0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002f26
push str.Error:_Unable_to_create_toolhelp_snapshot_
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e972
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002f14
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x10002f50
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002f78
test dl, dl
je 0x10002f74
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002f78
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002f58
xor eax, eax
jmp 0x10002f7d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002f9f
lea ecx, [ebp - 0x130]
push ecx
push esi
call ebx
test eax, eax
jne 0x10002f50
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e972
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e972
mov esp, ebp
pop ebp
ret
Function at 0x100030b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020e5e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1002d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test byte [0x10160eb0], 1
jne 0x1000314b
or dword [0x10160eb0], 1
mov edi, 0x1023694d
lea esi, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.1001b010
mov esi, eax
mov ecx, 0x10236961
lea eax, [ebp - 0x1c]
call fcn.1001af90
push esi
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001e5a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10160eac], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], ax
mov byte [ebp - 0x1e], al
mov dword [ebp - 4], 0xffffffff
push 0
push 0xffffffffffffffff
call dword [0x10160eac]
test eax, eax
jne 0x10003160
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e972
mov esp, ebp
pop ebp
ret