joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c61d0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, ecx
cmp edi, 0xffffffff
mov dword [esp + 8], esi
je 0x4c6306
cmp edi, dword [esi + 0x34d4]
jae 0x4c6306
mov eax, dword [esi + 4]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [edi + edi*4]
push eax
shl ecx, 5
sub ecx, edi
mov dword [esp + 0x18], eax
mov ebx, dword [esi + ecx*4 + 0xf88]
mov edx, dword [esi + ecx*4 + 0xf80]
mov ebp, dword [esi + ecx*4 + 0xf8c]
lea esi, [esi + ecx*4]
sub ebx, edx
sub ebp, dword [esi + 0xf84]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [esp + 0x14]
push ebp
push ebx
push edx
mov edi, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov ecx, dword [ecx + 0x4634]
mov dword [esp + 0x20], eax
cmp ecx, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebp
je 0x4c629e
call fcn.004784d0
test eax, eax
je 0x4c629e
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
mov ecx, dword [eax + 0x4634]
push 0
push 0
push 0
lea edx, [esp + 0x38]
push 1
push edx
push edi
call fcn.00477ac0
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push edi
call fcn.004c6680
mov eax, dword [esi + 0xf84]
mov ecx, dword [esi + 0xf80]
mov esi, dword [esp + 0x14]
push 0xcc0020
push 0
push 0
push edi
push ebp
push ebx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x18]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [esp + 0x10]
push esi
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x20
ret 4

Function at 0x4c69b0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xd0c], eax
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x4c9880
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, 0x400
xor eax, eax
lea edi, [esi + 0x8b8]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x290c]
test eax, eax
je 0x4c99ac
mov eax, dword [esi + 0x2904]
test eax, eax
jne 0x4c9938
mov ecx, dword [esi + 0xe8]
mov eax, dword [esi + 0x31a8]
lea edi, [esi + 0x31a8]
push ecx
mov ecx, edi
mov dword [esi + 0x2908], 1
call dword [eax + 0x34]
push 5
push 0x50b1d0
push 0x50b1d0
push str.IMG_PROGRESS
push 0x50b1d0
mov ecx, edi
call fcn.004b9d00
mov edx, dword [esi + 0x11c]
mov eax, dword [esi + 8]
push 1
push 0
push 0
push 2
push edx
push eax
push str.ProgressBar
mov ecx, edi
call fcn.004cb240
push 0
push 0x64
push 0
mov ecx, edi
call fcn.004b9cb0
test edi, edi
je 0x4c992f
mov ecx, dword [esi + 0x31b0]
lea eax, [esi + 0x31ac]
push 0
push ecx
jmp 0x4c99a6
xor eax, eax
push eax
mov ecx, dword [eax + 4]
push ecx
jmp 0x4c99a6
mov eax, dword [esi + 8]
mov dword [esi + 0x2908], 0
mov edx, dword [0x5e6a0c]
push 0
push edx
push 2
push eax
push 0
push 0
push 0
push 0
push 0x44000001
push str.ProgressBar
push 0x50abc8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x640000
push 0
push 0x401
push eax
mov dword [esi + 0x3b04], eax
call edi
mov ecx, dword [esi + 0x3b04]
push 0
push 0
push 0x409
push ecx
call edi
mov edx, dword [esi + 0x3b04]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 8]
push 0
push 0x1f4
push 0xc1c
push eax
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x4cabb0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x23c
lea eax, [esp + 4]
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 + 0xe8]
mov edi, dword [esp + 0x250]
test eax, eax
je 0x4cac32
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x24]
push edx
push eax
call ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [esp + 0x18]
sub ecx, edx
add ecx, ebp
add eax, ebx
push ecx
mov ecx, dword [esi + 0xe8]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.004bb040
mov eax, dword [esi + 0x89c]
test eax, eax
jne 0x4cada5
mov ecx, dword [esi + 0x11c]
push 0
push 0
push 0x7f
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push 2
sub eax, ecx
mov dword [esi + 0x8a0], 3
sub eax, 0x10
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esi + 8]
sar ebx, 1
push eax
add ebx, ecx
lea ebp, [edx + 6]
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4cac9b
add ebp, dword [esi + 0x8a4]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4cacb7
push 3
push 0
push 0
push 0x10
push 0x10
push eax
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi + 0x8a0]
lea eax, [ecx + ebp + 0x10]
mov ecx, dword [esp + 0x1c]
sub ecx, 0x10
mov dword [esp + 0x14], eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jge 0x4cacd8
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x11c]
lea edx, [esp + 0x44]
push 0x104
push edx
push eax
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.004c6b80
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebp, dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x458]
test eax, eax
je 0x4cad5b
mov ecx, dword [esi + 0x454]
push ecx
push edi
call ebp
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push 1
lea edx, [esp + 0x18]
push 1
push edx
call ebx
lea eax, [esp + 0x14]
push 0x48824
push eax
lea ecx, [esp + 0x4c]
push 0xffffffffffffffff
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
lea edx, [esp + 0x18]
push 0xffffffffffffffff
push edx
call ebx
mov ecx, dword [esi + 0x898]
test ecx, ecx
je 0x4cad77
call fcn.004b37f0
test eax, eax
je 0x4cad77
mov eax, dword [esi + 0x420]
push eax
jmp 0x4cad7e
mov ecx, dword [esi + 0x8a8]
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0x48824
push edx
lea eax, [esp + 0x4c]
push 0xffffffffffffffff
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x10]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret 4
Function at 0x4ccfd0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
push edi
mov esi, ecx
call fcn.004cd9f0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4cd02a
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
shr eax, 8
test al, al
jne 0x4cd006
push 2
call edi
shr eax, 8
test al, al
je 0x4cd02a
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [esi + 8]
je 0x4cd0ac
mov eax, dword [esi + 0xfc]
mov dword [esi + 0x100], 0xffffffff
cmp eax, 0xffffffff
mov dword [esi + 0xfc], 0xffffffff
mov dword [esi + 0x104], 0
je 0x4cd05b
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
mov byte [esi + 0x1e4], 4
call dword [eax + 0x28]
mov eax, dword [esi + 0xe0]
test eax, eax
je 0x4cd0a6
mov ecx, dword [esi + 8]
lea edi, [esi + 0x28]
push ecx
mov ecx, edi
call fcn.004d0e30
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.004d0de0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x11c]
push eax
push 0xffffffffffffffff
push 0x37ea
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
add esp, 8
ret
Function at 0x4d0b50
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xa20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x205
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa34]
test eax, eax
jne 0x4d0bc4
mov eax, dword [esp + 0xa30]
lea ecx, [esp + 0x10]
push eax
push 0x4efa44
push ecx
mov dword [esp + 0x18], 0x814
call dword [sym.imp.MSVCRT.dll_swprintf]
lea edx, [esi + 0x464]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x228]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push str.ToolBar
call fcn.0048d940
add esp, 0x20
test eax, eax
je 0x4d0ccc
mov ecx, 0x205
xor eax, eax
lea edi, [esp + 0x218]
push str.ToolbarEx
rep stosd dword es:[edi], eax
push 0x4ee160
lea eax, [esp + 0x220]
push 9
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 0xf4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jle 0x4d0c63
push ebp
lea edi, [esp + 0x230]
push ebx
mov ecx, esi
call fcn.004cef70
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d0c54
mov ecx, dword [esi + 0xf0]
push ebp
mov dl, byte [ecx + ebx*4]
lea ecx, [ecx + ebx*4]
mov byte [edi + 4], dl
mov ecx, dword [ecx]
mov eax, ecx
shl eax, 5
sub eax, ecx
mov ecx, dword [esi + 0xec]
shl eax, 4
mov dl, byte [eax + ecx + 0x44]
mov ecx, esi
mov byte [edi + 5], dl
call fcn.004ce900
test eax, eax
je 0x4d0c4e
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x4d0c54
mov dword [edi], 0
mov eax, dword [esi + 0xf4]
inc ebx
add edi, 8
cmp ebx, eax
jl 0x4d0c05
pop ebp
lea ebx, [esi + 0x464]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d0ccc
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xa30]
lea edx, [esp + 0x10]
push ecx
push 0x4efa44
push edx
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [esi + 0xf4]
add esp, 0xc
lea edx, [esp + 0x218]
lea ecx, [eax*8 + 0x14]
push ebx
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.ToolBar
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
pop edi
pop esi
pop ebx
add esp, 0xa20
ret 8

Function at 0x4d0e80
Capabilities:
Hide graphical window

Disassembly:
call fcn.004af0a0
mov ecx, eax
jmp 0x4d1130
mov eax, dword [ecx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4d11a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d983b
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004d2e90
push esi
mov esi, dword [esp + 0x1274]
push edi
push 0x5096b0
mov edi, ecx
push esi
call fcn.00433ce0
add esp, 8
test eax, eax
je 0x4d1302
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.00433d20
add esp, 0x10
test eax, eax
je 0x4d129b
lea ecx, [esp + 0x220]
push str.iexplore.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4d1252
lea edx, [esp + 0x220]
push 0x824
push edx
push 1
push esi
call fcn.00433d20
add esp, 0x10
cmp word [esp + 0x220], 0
jne 0x4d1252
lea eax, [esp + 0x220]
push 0x824
push eax
push 0
push esi
call fcn.00433d20
add esp, 0x10
lea ecx, [esp + 0x220]
push ecx
push 0x4ee160
push 0x824
push edi
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov word [edi + 0x1046], 0
push edi
call fcn.0048cb10
mov ecx, dword [esp + 0x126c]
add esp, 4
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x126c
ret 4
lea ecx, [esp + 8]
call fcn.00489190
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1278], 0
call fcn.00489260
mov esi, eax
test esi, esi
je 0x4d12e9
push esi
lea ecx, [esp + 0xc]
call fcn.00489360
test eax, eax
je 0x4d12df
push 0x824
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004893a0
push esi
lea ecx, [esp + 0xc]
call fcn.004892d0
lea ecx, [esp + 8]
mov dword [esp + 0x1270], 0xffffffff
call fcn.004891e0
jmp 0x4d1277
push 0x4ef36c
push esi
call fcn.00433ce0
add esp, 8
test eax, eax
push esi
je 0x4d125a
push 0x824
push edi
push 0x50b1d0
push 0x5040d0
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x4d1277

Function at 0x4d1840
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x28
mov eax, dword [esp + 0x2c]
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret
Function at 0x4d1fbe
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10a8
push 0x4d2f04
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 0x4d2044
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x4d201c
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x4d204a
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x4d2014
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x4d2014
mov al, 1
jmp 0x4d2016
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 0x4d20a9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x5e8070]
test esi, esi
je 0x4d20cd
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 0x4d20b1
pop esi
pop ecx
ret

Function at 0x4d20d0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5e807c], eax
je 0x4d20e6
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x5e808c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x4d2133
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 0x4d2124
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4d2124
push eax
call fcn.004d219a
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.004d2e69
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d20f5
mov dword [0x5e808c], ebx
call fcn.004d2173
mov esi, dword [0x5e8088]
cmp esi, ebx
je 0x4d2160
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.004d2e69
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x4d2148
pop edi
mov dword [0x5e8088], ebx
mov dword [0x5e807c], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d241d
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x5e8080]
push esi
test eax, eax
push edi
jne 0x4d2487
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x4d2485
push 8
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
pop ecx
test esi, esi
jne 0x4d2449
push 8
pop edi
jmp 0x4d2464
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x4d2475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.004d2e69
pop ecx
and dword [0x5e8084], 0
mov dword [0x5e8080], edi
mov eax, edi
jmp 0x4d2487
mov dword [esi + 4], edi
mov eax, dword [0x5e8088]
mov dword [esi], eax
mov dword [0x5e8088], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x4d2744
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 0x4d2768
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x4d276b
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x4d277e
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x4d2785
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x5e8074]
mov ecx, dword [0x5e8070]
test eax, eax
jne 0x4d279f
test ecx, ecx
je 0x4d27b4
mov eax, ecx
mov dword [0x5e8074], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x4d27b4
cmp edx, dword [ebp + 8]
jb 0x4d27b4
cmp edx, dword [ebp - 4]
jbe 0x4d290d
mov eax, ecx
test ecx, ecx
mov dword [0x5e8074], eax
je 0x4d27e4
test eax, eax
je 0x4d27d8
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d27d8
cmp ecx, dword [ebp + 8]
jb 0x4d27d8
cmp ecx, dword [ebp - 4]
jbe 0x4d290d
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x5e8074], eax
jne 0x4d27c3
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x4d284c
cmp edi, 0x70000000
jb 0x4d2809
cmp edi, 0x80000000
ja 0x4d2809
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d284c
cmp dword [ebp - 0x10], ebx
jne 0x4d2824
cmp dword [ebp - 0x14], ebx
jae 0x4d2834
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x4d27f4
jmp 0x4d284c
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
mov dword [0x5e8074], eax
jne 0x4d28c3
cmp esi, dword [ebp - 4]
jae 0x4d2934
cmp esi, 0x70000000
jb 0x4d286a
cmp esi, 0x80000000
ja 0x4d286a
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4d2934
cmp dword [ebp - 0x10], ebx
jne 0x4d28b8
cmp dword [ebp - 0x14], ebx
jb 0x4d28b8
mov ecx, esi
and ecx, 0xffff
je 0x4d28a0
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 [0x5e8074], eax
jne 0x4d28c3
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x4d284c
mov dword [eax], 0x52727464
mov eax, dword [0x5e8074]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x5e8074]
mov edx, dword [0x5e8070]
mov dword [eax + 4], edx
mov eax, dword [0x5e8074]
mov dword [0x5e8070], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x4d28f5
mov eax, dword [0x5e8074]
mov dword [eax + 8], ecx
mov eax, dword [0x5e8074]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x4d2934
cmp esi, dword [ebp - 4]
ja 0x4d2934
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 0x4d2936
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d293b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10b8
push 0x4d2f04
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 0x4d29b0
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x4d29ac
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x4d29ac
cmp word [eax + 0x14], 0
jne 0x4d29a1
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x4d29b2
mov eax, ecx
jmp 0x4d299b
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
Function at 0x1005ddf
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10072dc], 0
push esi
jne 0x1005d4d
call fcn.01005c44
test eax, eax
je 0x1005d90
mov eax, dword [0x10072dc]
cmp eax, 1
jne 0x1005d6e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1005d90
pop esi
ret
push eax
call dword [0x10072e4]
test eax, eax
jne 0x1005dd8
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005d94
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10072dc]
call dword [0x10072e4]
mov edi, eax
test edi, edi
je 0x1005db9
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1005dd5
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10072dc]
call dword [0x10072e0]
add edi, 0x10
cmp edi, esi
jb 0x1005dc1
mov eax, edi
pop edi
pop esi
ret
jmp 0x1005d3a
Function at 0x401000
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x238
mov esi, dword [esp + 0x250]
mov ebp, dword [esp + 0x24c]
xor eax, eax
cmp byte [0x4483ec], 0
sete al
jmp dword [eax*4 + 0x443438]

Function at 0x4036f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4037d0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4037d0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40373a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x403741
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x403720
jmp 0x403743
mov esi, 0x1505
jmp 0x403743
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4037d0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x403774
inc edi
dec ebx
je 0x4037ce
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4037ce
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x403770
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.0040a410
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x403770
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.0040a430
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x403770
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4037d0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret