joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca9f0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 0x15134], edi
call dword [sym.imp.USER32.dll_GetMessagePos]
movsx ecx, ax
shr eax, 0x10
movsx edx, ax
mov dword [esp + 8], ecx
mov ecx, dword [esi + 4]
lea eax, [esp + 8]
mov dword [esp + 0xc], edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
lea ecx, [esi + 0xa14]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4caa5d
mov ecx, esi
mov dword [esi + 0x1512c], 1
mov dword [esi + 0x15124], edi
call fcn.004cabc0
pop edi
pop esi
add esp, 8
ret
mov edx, dword [esi + 0x15110]
push ebx
push ebp
push 0x11
mov ebp, dword [esi + edx*4 + 0x14cf0]
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
mov ebx, 1
je 0x4caaac
cmp dword [esi + 0x15108], ebx
jle 0x4caaac
mov eax, dword [esi + 0x10dc]
cmp dword [eax + 0x78], edi
je 0x4caaac
mov ecx, esi
call fcn.004cb890
pop ebp
pop ebx
mov dword [esi + 0x15138], 0
pop edi
pop esi
add esp, 8
ret
lea ecx, [esi + 0x6fc]
push ecx
mov ecx, esi
call fcn.004ca250
mov edi, eax
cmp edi, 0xffffffff
je 0x4cab22
cmp edi, ebp
je 0x4caadd
push 0
push edi
mov ecx, esi
mov dword [esi + 0x15134], ebx
call fcn.004ca6a0
mov dword [esi + 0x1516c], ebx
jmp 0x4cab15
mov eax, dword [esi + 0x10dc]
mov dword [esi + 0x1516c], ebx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4cab15
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4cab15
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
push edi
mov ecx, esi
call fcn.004cc860
test eax, eax
je 0x4cab15
push edi
mov ecx, esi
call fcn.004cb240
lea ecx, [esi + 0x6f0]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
pop ebp
pop ebx
mov dword [esi + 0x15138], 0
pop edi
pop esi
add esp, 8
ret
Function at 0x4cabc0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esi + 0x1513c], 1
call dword [sym.imp.USER32.dll_GetMessagePos]
mov edi, eax
mov eax, dword [esi + 0x15124]
cmp eax, edi
je 0x4cad8a
push 2
mov ecx, esi
mov dword [esi + 0x15124], edi
call fcn.004d24b0
mov eax, dword [esi + 0x15108]
test eax, eax
jle 0x4cad8a
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ca250
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4cad44
mov eax, dword [esi + 0x10dc]
movsx ecx, di
shr edi, 0x10
movsx edx, di
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 0x34]
xor edi, edi
cmp ecx, edi
je 0x4cac9e
cmp dword [esi + 0x1512c], edi
jne 0x4cac9e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je 0x4cac9e
mov eax, dword [esi + 0x6f0]
cmp eax, 0xffffffff
je 0x4cac9e
cmp eax, dword [esp + 0x10]
jne 0x4cac72
mov ecx, dword [esi + 0x6f4]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x4cac9e
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
mov dword [esi + 0x1516c], 1
mov dword [esi + 0x10ec], 1
call fcn.004cada0
mov dword [esi + 0x10ec], edi
mov dword [esi + 0x1516c], edi
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edi, dword [esi + 0x1511c]
cmp edi, ebx
je 0x4cacf4
mov eax, dword [esi + 0x10dc]
mov dword [esi + 0x1511c], ebx
mov ecx, dword [eax + 0x74]
test ecx, ecx
je 0x4cacdc
mov edx, dword [eax + 0x70]
mov eax, dword [esi + 4]
push 0
push edx
push 0xa
push eax
call dword [sym.imp.USER32.dll_SetTimer]
cmp edi, 0xffffffff
je 0x4caceb
push edi
push 0
mov ecx, esi
call fcn.004c9450
mov ecx, dword [esi + 0x1511c]
push ecx
jmp 0x4cad5a
mov edx, dword [esi + 0x15110]
cmp edi, dword [esi + edx*4 + 0x14cf0]
jne 0x4cad63
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esi + 0xa14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [esi + 0x1512c]
test ecx, ecx
je 0x4cad2e
mov ecx, dword [esi + 0x15130]
test ecx, ecx
jne 0x4cad36
cmp dword [esi + 0x15130], eax
je 0x4cad63
mov dword [esi + 0x15130], eax
mov eax, dword [esi + 0x1511c]
jmp 0x4cad59
mov eax, dword [esi + 0x1511c]
mov dword [esi + 0x1511c], 0xffffffff
cmp eax, 0xffffffff
je 0x4cad63
push eax
push 0
mov ecx, esi
call fcn.004c9450
cmp dword [esi + 0x10d8], ebx
je 0x4cad8a
mov ecx, dword [esi + 4]
lea edi, [esi + 0x38]
push ecx
mov ecx, edi
mov dword [esi + 0x10d8], ebx
call fcn.004d1180
mov edx, dword [esi + 4]
mov ecx, edi
push edx
call fcn.004d1130
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4cada0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4dab9e
push eax
mov eax, 0x1280
mov dword fs:[0], esp
call fcn.004d3780
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
push 0xc
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
xor ebp, ebp
add esp, 4
cmp ebx, ebp
je 0x4cae26
mov dword [ebx + 4], ebp
mov dword [ebx + 8], ebp
mov dword [ebx], 0x4dbc2c
mov eax, dword [ebx]
push ebx
call dword [eax + 4]
push 0x24
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebp
mov dword [esp + 0x1298], ebp
je 0x4cae10
push ebx
mov ecx, eax
call fcn.004a7000
mov esi, eax
jmp 0x4cae12
xor esi, esi
or edi, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x1298], edi
jne 0x4cae2d
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
xor eax, eax
jmp 0x4caf74
mov edx, dword [esi]
push esi
call dword [edx + 4]
xor eax, eax
mov edx, dword [str.XTabDrag]
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [0x4fefe8]
mov dword [esp + 0x34], eax
mov eax, dword [0x4fefe4]
mov dword [esp + 0x40], edx
mov edx, dword [0x4fefec]
mov dword [esp + 0x44], eax
mov ax, word [0x4feff0]
mov dword [esp + 0x30], edi
mov dword [esp + 0x48], ecx
mov word [esp + 0x50], ax
mov ecx, 0x48f
xor eax, eax
lea edi, [esp + 0x52]
mov dword [esp + 0x4c], edx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push 0
mov ebp, 1
push ecx
mov ecx, dword [esp + 0x1c]
push 0xfc5
mov word [esp + 0x30], 0xd
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
stosw word es:[edi], ax
mov dword [esp + 0x1c], 0
call fcn.004cb6b0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4caefb
push eax
push str.XTabDrag:_s
lea edx, [esp + 0x48]
push 0x928
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esp + 0x20]
push eax
call fcn.004d3765
add esp, 0x14
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov edx, dword [esp + 0x24]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ebp
lea edx, [esp + 0x28]
push ecx
push edx
push esi
call dword [eax + 0x1c]
lea eax, [esp + 0x38]
push eax
push 2
push ebx
push esi
call dword [sym.imp.ole32.dll_DoDragDrop]
mov ecx, dword [ebx]
push ebx
mov edi, eax
call dword [ecx + 8]
mov edx, dword [esi]
push esi
call dword [edx + 8]
xor eax, eax
cmp edi, 0x40100
sete al
mov ecx, dword [esp + 0x1290]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128c
ret 4
Function at 0x4cce40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x238
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xac]
mov edi, dword [esp + 0x24c]
test eax, eax
je 0x4ccec2
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x20]
push edx
push eax
call ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
sub eax, ebp
mov ebp, dword [esp + 0x14]
sub ecx, edx
add ecx, ebp
add eax, ebx
push ecx
mov ecx, dword [esi + 0xac]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004c08f0
mov ecx, dword [esi + 0xe0]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x10]
mov dword [esi + 0x698], 3
test eax, eax
lea ebx, [edx + 3]
je 0x4ccf12
mov ecx, dword [esp + 0x14]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x34]
sub eax, ecx
sub eax, 0x10
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [esi + 0x698]
mov ecx, dword [esp + 0x18]
sub ecx, 0x10
lea eax, [eax + ebx + 0x10]
mov dword [esp + 0x18], ecx
cmp ecx, eax
mov dword [esp + 0x10], eax
jge 0x4ccf33
mov dword [esp + 0x18], eax
mov edx, dword [esi + 0xe0]
lea ecx, [esp + 0x40]
push 0x104
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 2
mov ecx, esi
call fcn.004c4d10
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call ebx
mov ebp, eax
call fcn.004ba9f0
test eax, eax
je 0x4ccf7a
mov eax, dword [esi + 0x3ec]
push eax
jmp 0x4ccf81
mov ecx, dword [esi + 0x69c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x10]
push 0x48824
push edx
lea eax, [esp + 0x48]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push ebp
push edi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x238
ret 4
Function at 0x4cd020
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dac2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004c4c50
lea ebx, [esi + 4]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call fcn.004d21c0
mov dword [esi + 0x2c], 0x4dc564
mov dword [esi + 0x30], 0x64
lea ebp, [esi + 0x34]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.004d10c0
lea ecx, [esi + 0x58]
mov byte [esp + 0x1c], 3
call fcn.004a7660
lea ecx, [esi + 0x2f8]
mov byte [esp + 0x1c], 4
call fcn.004ab220
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x2f4], edi
mov dword [esi + 0x354], edi
lea ecx, [esi + 0x620]
mov byte [esp + 0x1c], 5
call fcn.004ab220
lea ecx, [esi + 0x638]
mov byte [esp + 0x1c], 6
call fcn.004ab220
lea ecx, [esi + 0x650]
mov byte [esp + 0x1c], 7
call fcn.004ab220
lea ecx, [esi + 0x668]
mov byte [esp + 0x1c], 8
call fcn.004ab220
lea ecx, [esi + 0x680]
mov byte [esp + 0x1c], 9
call fcn.004ab220
mov dword [esi], 0x4dd7f8
mov dword [ebx], 0x4dd7ec
mov dword [esi + 0x2c], 0x4dd7e4
or eax, 0xffffffff
mov dword [ebp], 0x4dd7e0
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x54], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x80], edi
mov dword [esi + 0xa8], edi
mov ecx, 0xa
mov dword [esi + 0x414], 0x808080
mov dword [esi + 0x400], ecx
mov dword [esi + 0x404], ecx
mov dword [esi + 0x84], edi
mov dword [esi + 0x38], edi
mov ecx, 1
mov dword [esi + 0x88], edi
mov dword [esi + 0x94], ecx
mov dword [esi + 0x98], eax
mov dword [esi + 0x8c], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xa0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0xd4], edi
mov dword [esi + 0xd0], edi
mov word [esi + 0xe4], di
mov word [esi + 0x124], di
mov word [esi + 0x35c], di
mov dword [esi + 0x3e8], edi
mov dword [esi + 0x3ec], edi
mov dword [esi + 0x3f0], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x618], edi
mov dword [esi + 0x61c], edi
mov dword [esi + 0xdc], edi
mov dword [esi + 0x3f4], edi
mov dword [esi + 0x3f8], edi
mov dword [esi + 0x3fc], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x2f4], edi
mov dword [esi + 0x318], eax
mov dword [esi + 0x310], eax
mov dword [esi + 0x48], edi
mov dword [esi + 0x410], ecx
mov dword [esi + 0xc0], 0x64
mov dword [esi + 0xa4], ecx
mov dword [esi + 0x40c], ecx
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4cedc0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cee33
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4cedf1
push 2
call edi
shr eax, 8
test al, al
je 0x4cee33
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 8]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4ceea5
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xc4], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xc8], 0
je 0x4cee5a
push eax
mov ecx, esi
call fcn.004cf760
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1a8], 4
call fcn.004cf760
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4ceea5
mov eax, dword [esi + 8]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call fcn.004d1180
mov ecx, dword [esi + 8]
push ecx
mov ecx, edi
call fcn.004d1130
mov edx, dword [esi + 8]
mov eax, dword [esi + 0xe0]
push edx
push 0xffffffffffffffff
push 0x1082
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
add esp, 0x18
ret
Function at 0x4d1600
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x5c
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], 0x67
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x38]
add esp, 4
mov dword [esp + 0x30], edx
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea esi, [esp + 0xc]
lea edi, [esp + 0x3c]
push edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x70]
push eax
mov eax, dword [ebx + 4]
push 0x1132
push eax
mov dword [esp + 0x48], 0xffff0002
mov dword [esp + 0x44], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
add esp, 0x5c
ret 0x18

Function at 0x4d1be0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4dae4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0x262c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x4d1c1f
mov ecx, eax
call fcn.0049d450
jmp 0x4d1c21
xor eax, eax
push 0
mov dword [esi + 0x58], eax
push 0
push 0
lea eax, [esi + 0x8d0]
push 0
push eax
push 0
lea ecx, [esi + 0x5c]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b1c80
test esi, esi
je 0x4d1c4e
lea eax, [esi + 0x28]
jmp 0x4d1c50
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x8e8], eax
mov eax, dword [esp + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
push 0
mov ecx, esi
call fcn.004d22a0
mov ecx, dword [esi + 0x58]
call fcn.0049f8b0
test eax, eax
je 0x4d1c91
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xf8]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d1ca4
mov ecx, dword [esi + 0x58]
push 0
push eax
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ecx, dword [esi + 0x58]
push 0
call fcn.0049eb10
mov eax, dword [esi + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x4d28d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dde38
push 0x4d37f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x4d295e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4d2936
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4d2964
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4d292e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4d292e
mov al, 1
jmp 0x4d2930
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d29c3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x6dde10]
test esi, esi
je 0x4d29e7
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x4d29cb
pop esi
pop ecx
ret

Function at 0x4d29ea
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x6dde1c], eax
je 0x4d2a00
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x6dde2c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4d2a4d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x4d2a3e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4d2a3e
push eax
call fcn.004d2ab4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d3765
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d2a0f
mov dword [0x6dde2c], ebx
call fcn.004d2a8d
mov esi, dword [0x6dde28]
cmp esi, ebx
je 0x4d2a7a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d3765
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d2a62
pop edi
mov dword [0x6dde28], ebx
mov dword [0x6dde1c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d2d37
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x6dde20]
push esi
test eax, eax
push edi
jne 0x4d2da1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4d2d9f
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d2d63
push 8
pop edi
jmp 0x4d2d7e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4d2d8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d3765
pop ecx
and dword [0x6dde24], 0
mov dword [0x6dde20], edi
mov eax, edi
jmp 0x4d2da1
mov dword [esi + 4], edi
mov eax, dword [0x6dde28]
mov dword [esi], eax
mov dword [0x6dde28], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4d305e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x4d3082
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4d3085
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4d3098
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4d309f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x6dde14]
mov ecx, dword [0x6dde10]
test eax, eax
jne 0x4d30b9
test ecx, ecx
je 0x4d30ce
mov eax, ecx
mov dword [0x6dde14], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4d30ce
cmp edx, dword [ebp + 8]
jb 0x4d30ce
cmp edx, dword [ebp - 4]
jbe 0x4d3227
mov eax, ecx
test ecx, ecx
mov dword [0x6dde14], eax
je 0x4d30fe
test eax, eax
je 0x4d30f2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d30f2
cmp ecx, dword [ebp + 8]
jb 0x4d30f2
cmp ecx, dword [ebp - 4]
jbe 0x4d3227
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x6dde14], eax
jne 0x4d30dd
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4d3166
cmp edi, 0x70000000
jb 0x4d3123
cmp edi, 0x80000000
ja 0x4d3123
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d3166
cmp dword [ebp - 0x10], ebx
jne 0x4d313e
cmp dword [ebp - 0x14], ebx
jae 0x4d314e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4d310e
jmp 0x4d3166
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x6dde14], eax
jne 0x4d31dd
cmp esi, dword [ebp - 4]
jae 0x4d324e
cmp esi, 0x70000000
jb 0x4d3184
cmp esi, 0x80000000
ja 0x4d3184
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d324e
cmp dword [ebp - 0x10], ebx
jne 0x4d31d2
cmp dword [ebp - 0x14], ebx
jb 0x4d31d2
mov ecx, esi
and ecx, 0xffff
je 0x4d31ba
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x6dde14], eax
jne 0x4d31dd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4d3166
mov dword [eax], 0x52727464
mov eax, dword [0x6dde14]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x6dde14]
mov edx, dword [0x6dde10]
mov dword [eax + 4], edx
mov eax, dword [0x6dde14]
mov dword [0x6dde10], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4d320f
mov eax, dword [0x6dde14]
mov dword [eax + 8], ecx
mov eax, dword [0x6dde14]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4d324e
cmp esi, dword [ebp - 4]
ja 0x4d324e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, esi
jmp 0x4d3250
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d3255
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dde48
push 0x4d37f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d32ca
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4d32c6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4d32c6
cmp word [eax + 0x14], 0
jne 0x4d32bb
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4d32cc
mov eax, ecx
jmp 0x4d32b5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret