joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4812e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x481339
cmp dword [esi + 0xc], 0
jne 0x481335
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 1
push 0
call edi
push 0
push 0
push 0
push 0
mov dword [0x4eb22c], eax
call edi
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x10], eax
lea eax, [esi + 8]
push eax
push 0
push esi
push ecx
push 0
push 0
mov byte [0x4eb228], 1
call fcn.0048ca0b
add esp, 0x18
mov dword [esi + 0xc], eax
pop edi
mov byte [esi + 4], 1
mov al, 1
pop esi
ret 4

Function at 0x481680
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x481810
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov ebp, ecx
call edi
push 1
mov esi, eax
call edi
push ebx
push str.Shell_TrayWnd
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x481858
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x481873
sub eax, dword [esp + 0x18]
lea ecx, [edi - 0xe2]
lea eax, [eax + esi - 0xcd]
jmp 0x4818a3
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jle 0x481883
add ecx, 0xffffff1e
jmp 0x48189d
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x481896
add eax, 5
lea ecx, [edi - 0xe2]
jmp 0x4818a3
mov ecx, dword [esp + 0x1c]
add ecx, 0x1f
lea eax, [esi - 0xcd]
mov edx, dword [ebp + 4]
push 0x10
push 0xdf
push 0xc8
push ecx
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x481b10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c475e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi], 0x4cfe70
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x2c], edi
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 2
call fcn.00488b00
mov dword [esi + 0x78], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x482230
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x482298
mov ecx, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ecx
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
je 0x482273
mov edx, dword [eax + 4]
push edx
call ebx
test eax, eax
je 0x482273
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x48228f
mov edx, dword [eax + 4]
push edx
call ebx
test eax, eax
je 0x48228f
mov eax, dword [esi + 0x28]
mov ecx, dword [eax + 4]
push 0
push ecx
call edi
add dword [0x4eb270], 1
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10

Function at 0x482640
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4c4b68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x48267e
push 0
call fcn.00488ce0
test al, al
jne 0x48274b
mov byte [esi + 0x215], 1
mov ecx, esi
mov byte [0x4eb28d], 1
call fcn.004821c0
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
je 0x4826d0
mov ecx, dword [eax + 4]
push ecx
call ebp
test eax, eax
je 0x4826d0
mov ecx, dword [esi + 0x2c]
push 1
call fcn.00488ce0
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 4]
add eax, 4
push 0
push edx
call edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4826ef
mov eax, dword [eax + 4]
push eax
call ebp
test eax, eax
je 0x4826ef
mov esi, dword [esi + 0x28]
mov ecx, dword [esi + 4]
add esi, 4
push 0
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call fcn.00438a40
add esp, 4
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 0
push 0xe
mov dword [esp + 0x28], 0
call edx
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x48274b
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x48274b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x48274b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x10
Function at 0x4828a0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xor ebx, ebx
push ebx
mov ebp, ecx
call edi
push 1
mov esi, eax
call edi
push ebx
push str.Shell_TrayWnd
mov edi, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x4828e8
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, ebx
jle 0x482903
sub eax, dword [esp + 0x18]
lea ecx, [edi - 0x100]
lea eax, [eax + esi - 0xcf]
jmp 0x482933
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jle 0x482913
add ecx, 0xffffff00
jmp 0x48292d
mov eax, dword [esp + 0x18]
cmp eax, edi
jge 0x482926
add eax, 3
lea ecx, [edi - 0x100]
jmp 0x482933
mov ecx, dword [esp + 0x1c]
add ecx, 1
lea eax, [esi - 0xcf]
mov edx, dword [ebp + 4]
push 0x10
push 0xff
push 0xcc
push ecx
push eax
push 0xfffffffffffffffe
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x482dc0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb2c
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0xb28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, ecx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x482e08
mov ecx, dword [edi + 0x40]
sub ecx, eax
mov eax, 0xa57eb503
imul ecx
add edx, ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x482e0d
call fcn.0048c687
imul esi, esi, 0x630
add esi, dword [edi + 0x3c]
mov ecx, 0x18c
lea edi, [esp + 0x2f8]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2f8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x482e70
push 0x104
lea ecx, [esp + 0x92c]
push ecx
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [esp + 0x928]
push edx
push 0x4cff94
call fcn.00490854
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
push 0x2b4
lea eax, [esp + 0x48]
push eax
push 0
lea ecx, [esp + 0x938]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jl 0x482e9b
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebx]
mov edi, dword [esp + 0x3c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebx]
push edx
mov esi, eax
call dword [sym.imp.GDI32.dll_SaveDC]
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 3
push 0
push 0
push 0x10
push 0x10
push ecx
mov ecx, dword [ebx]
add edx, 0xc
push edx
add eax, 0xe
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawIconEx]
push 0xffffffffffffffff
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
test esi, esi
je 0x482f3a
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test eax, eax
je 0x482f3a
xor esi, esi
mov edx, dword [ebx]
push 0xffffffffffffffff
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call ebx
mov ecx, dword [esp + 0x38]
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
test esi, esi
je 0x482f6f
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x482f76
push edi
call ebx
mov ecx, dword [esp + 0xb34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048c010
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4855b0
Capabilities:
Hide graphical window
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4c4b68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x215], 0
jne 0x485713
cmp dword [esp + 0x30], 0
je 0x485680
mov ebx, 8
cmp dword [esi + 0x210], ebx
jb 0x485605
mov eax, dword [esi + 0x1fc]
jmp 0x48560b
lea eax, [esi + 0x1fc]
push eax
push 0
push str.ShownTrayTips
push 0x4d00b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edi, eax
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x485715
test edi, edi
sete al
mov ecx, esi
push eax
call fcn.00484a00
test eax, eax
je 0x485713
test edi, edi
mov dword [esi + 0x30], 1
jne 0x485713
cmp dword [esi + 0x210], ebx
jb 0x48565f
mov esi, dword [esi + 0x1fc]
jmp 0x485665
add esi, 0x1fc
push esi
push 0x4cb0cc
push str.ShownTrayTips
push 0x4d00b0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x485713
cmp dword [esi + 0x30], 0
je 0x485713
call fcn.004821c0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
mov eax, dword [esi + 0x28]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
je 0x4856c1
mov edx, dword [eax + 4]
push edx
call ebx
test eax, eax
je 0x4856c1
mov eax, dword [esi + 0x28]
add eax, 4
mov eax, dword [eax]
push 0
push eax
call edi
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4856e0
mov ecx, dword [eax + 4]
push ecx
call ebx
test eax, eax
je 0x4856e0
mov esi, dword [esi + 0x2c]
mov edx, dword [esi + 4]
add esi, 4
push 0
push edx
call edi
lea eax, [esp + 0x10]
push eax
call fcn.00438a40
add esp, 4
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 0
push 0xe
mov dword [esp + 0x28], 0
call eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00424a10
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 0x10
Function at 0x489d90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.004893f0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 0x10

Function at 0x489dd0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push 8
mov esi, ecx
mov ecx, dword [esi + 0x4c]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0xc]
push 8
push edx
xor bl, bl
xor edi, edi
call fcn.00490979
add esp, 8
test eax, eax
jbe 0x489e3b
jmp 0x489e10
movzx eax, word [esp + edi*2 + 0xc]
cmp ax, 0x30
jb 0x489e39
cmp ax, 0x39
ja 0x489e39
lea eax, [esp + 0xc]
push 8
push eax
add edi, 1
call fcn.00490979
add esp, 8
cmp edi, eax
jb 0x489e10
jmp 0x489e3b
mov bl, 1
lea ecx, [esp + 0xc]
push ecx
call fcn.0049084f
add esp, 4
test eax, eax
jg 0x489e70
neg bl
mov ecx, esi
sbb ebx, ebx
and ebx, 0x27ff
add ebx, 1
mov dword [esi + 0x84], ebx
call fcn.004898d0
mov edx, dword [esi + 4]
push 1
push 0
push edx
jmp 0x489eab
cmp eax, 0x2800
jle 0x489e92
mov ecx, esi
mov dword [esi + 0x84], 0x2800
call fcn.004898d0
mov eax, dword [esi + 4]
push 1
push 0
push eax
jmp 0x489eab
test bl, bl
mov dword [esi + 0x84], eax
je 0x489ea3
mov ecx, esi
call fcn.004898d0
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0048c010
add esp, 0x14
ret 0x10

Function at 0x489ed0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
push 8
mov esi, ecx
mov ecx, dword [esi + 0x50]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0xc]
push 8
push edx
xor bl, bl
xor edi, edi
call fcn.00490979
add esp, 8
test eax, eax
jbe 0x489f3b
jmp 0x489f10
movzx eax, word [esp + edi*2 + 0xc]
cmp ax, 0x30
jb 0x489f39
cmp ax, 0x39
ja 0x489f39
lea eax, [esp + 0xc]
push 8
push eax
add edi, 1
call fcn.00490979
add esp, 8
cmp edi, eax
jb 0x489f10
jmp 0x489f3b
mov bl, 1
lea ecx, [esp + 0xc]
push ecx
call fcn.0049084f
add esp, 4
test eax, eax
jg 0x489f70
neg bl
mov ecx, esi
sbb ebx, ebx
and ebx, 0x27ff
add ebx, 1
mov dword [esi + 0x8c], ebx
call fcn.004898d0
mov edx, dword [esi + 4]
push 1
push 0
push edx
jmp 0x489fab
cmp eax, 0x2800
jle 0x489f92
mov ecx, esi
mov dword [esi + 0x8c], 0x2800
call fcn.004898d0
mov eax, dword [esi + 4]
push 1
push 0
push eax
jmp 0x489fab
test bl, bl
mov dword [esi + 0x8c], eax
je 0x489fa3
mov ecx, esi
call fcn.004898d0
mov ecx, dword [esi + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0048c010
add esp, 0x14
ret 0x10
Function at 0x489fd0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x18
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x24]
push 0xf0
push eax
call edi
mov ecx, dword [esi + 0x28]
push 0
neg eax
push 0
sbb eax, eax
push 0xf0
neg eax
push ecx
mov dword [esi + 0x78], eax
call edi
mov edx, dword [esi + 0x30]
push 0
neg eax
push 0
sbb eax, eax
push 0xf0
neg eax
push edx
mov dword [esi + 0x7c], eax
call edi
neg eax
sbb eax, eax
push 0
neg eax
push 0
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x34]
push 0xf0
push eax
call edi
mov edx, dword [esi + 0x4c]
mov ebp, dword [sym.imp.USER32.dll_GetWindowTextW]
neg eax
push 0xa
lea ecx, [esp + 0x14]
sbb eax, eax
push ecx
neg eax
push edx
mov dword [esi + 0x88], eax
call ebp
lea eax, [esp + 0x10]
push eax
call fcn.0049084f
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 4
test eax, eax
mov dword [esi + 0x84], eax
jg 0x48a0a4
mov ecx, dword [esi + 0x4c]
push 0x4cb0cc
push ecx
mov dword [esi + 0x84], 1
call ebx
mov edx, dword [esi + 0x4c]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
jmp 0x48a0cd
cmp eax, 0x2800
jle 0x48a0cf
mov eax, dword [esi + 0x4c]
push str.10240
push eax
mov dword [esi + 0x84], 0x2800
call ebx
mov ecx, dword [esi + 0x4c]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call edi
mov eax, dword [esi + 0x50]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call fcn.0049084f
add esp, 4
test eax, eax
mov dword [esi + 0x8c], eax
jg 0x48a117
mov edx, dword [esi + 0x50]
push 0x4cb0cc
push edx
mov dword [esi + 0x8c], 1
call ebx
mov eax, dword [esi + 0x50]
push 0xffffffffffffffff
push 0
push 0xb1
push eax
jmp 0x48a140
cmp eax, 0x2800
jle 0x48a142
mov ecx, dword [esi + 0x50]
push str.10240
push ecx
mov dword [esi + 0x8c], 0x2800
call ebx
mov edx, dword [esi + 0x50]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call edi
mov ecx, esi
call fcn.004898d0
mov eax, dword [esi + 4]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0048c010
add esp, 0x18
ret 0x10
Function at 0x48c010
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e880c]
jne 0x48c01a
repz ret
jmp fcn.00491fbc
Function at 0x4921d1
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e88c8]
je 0x4921ec
inc edi
cmp edi, 0x17
jb 0x4921dd
cmp edi, 0x17
jae 0x49236c
push ebp
push 3
call fcn.0049d9af
cmp eax, 1
pop ecx
je 0x492338
push 3
call fcn.0049d9af
test eax, eax
pop ecx
jne 0x492220
cmp dword [0x4e8890], 1
je 0x492338
cmp ebx, 0xfc
je 0x49236b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4eb640
push ebp
call fcn.004925b9
add esp, 0xc
test eax, eax
je 0x492256
push esi
push esi
push esi
push esi
push esi
call fcn.0048c567
add esp, 0x14
push 0x104
mov esi, 0x4eb659
push esi
push 0
mov byte [0x4eb75d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49229a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004925b9
add esp, 0xc
test eax, eax
je 0x49229a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048c567
add esp, 0x14
push esi
call fcn.00492620
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4922df
push esi
call fcn.00492620
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4eb954
push 0x4d09f4
sub ecx, eax
push ecx
push eax
call fcn.0048db94
add esp, 0x14
test eax, eax
je 0x4922df
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048c567
add esp, 0x14
jmp 0x4922e1
xor esi, esi
push 0x4d09f0
push ebx
push ebp
call fcn.0049d93e
add esp, 0xc
test eax, eax
je 0x492301
push esi
push esi
push esi
push esi
push esi
call fcn.0048c567
add esp, 0x14
push dword [edi*8 + 0x4e88cc]
push ebx
push ebp
call fcn.0049d93e
add esp, 0xc
test eax, eax
je 0x492323
push esi
push esi
push esi
push esi
push esi
call fcn.0048c567
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049d781
add esp, 0xc
jmp 0x49236b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49236b
cmp ebp, 0xffffffff
je 0x49236b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e88cc]
push dword [esi]
call fcn.00492620
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49d781
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0049195a
xor ebx, ebx
cmp dword [0x4ebd90], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49d857
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49d937
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49d937
push eax
call fcn.004918ec
mov dword [esp], 0x4d0d10
push edi
mov dword [0x4ebd90], eax
call esi
push eax
call fcn.004918ec
mov dword [esp], 0x4d0cfc
push edi
mov dword [0x4ebd94], eax
call esi
push eax
call fcn.004918ec
mov dword [0x4ebd98], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00496554
test eax, eax
pop ecx
pop ecx
je 0x49d825
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048c567
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49d857
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004918ec
cmp eax, ebx
pop ecx
mov dword [0x4ebda0], eax
je 0x49d857
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004918ec
pop ecx
mov dword [0x4ebd9c], eax
mov eax, dword [0x4ebd9c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49d8dc
cmp dword [0x4ebda0], ecx
je 0x49d8dc
push eax
call fcn.00491963
push dword [0x4ebda0]
mov esi, eax
call fcn.00491963
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49d8dc
cmp edi, ebx
je 0x49d8dc
call esi
cmp eax, ebx
je 0x49d8a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49d8a9
test byte [ebp - 0x18], 1
jne 0x49d8dc
lea eax, [ebp - 0x10]
push eax
call fcn.0049658b
test eax, eax
pop ecx
je 0x49d8c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048c567
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49d8d3
or dword [ebp + 0x10], 0x200000
jmp 0x49d917
or dword [ebp + 0x10], 0x40000
jmp 0x49d917
mov eax, dword [0x4ebd94]
cmp eax, dword [ebp - 8]
je 0x49d917
push eax
call fcn.00491963
cmp eax, ebx
pop ecx
je 0x49d917
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49d917
mov eax, dword [0x4ebd98]
cmp eax, dword [ebp - 8]
je 0x49d917
push eax
call fcn.00491963
cmp eax, ebx
pop ecx
je 0x49d917
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ebd90]
call fcn.00491963
cmp eax, ebx
pop ecx
je 0x49d937
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49d939
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a8c3a
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp + 8], eax
jne 0x4a8c53
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
pop esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0048c300
add esp, 0xc
push 0
push 4
mov dword [ebp - 0x20], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
test ebx, ebx
je 0x4a8cda
push edi
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a8cd2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jne 0x4a8cc8
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 4], eax
je 0x4a8cc8
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x4a8cc2
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call edi
jmp 0x4a8cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x4a8c95
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a9662
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ec114], 0
push esi
jne 0x4a95d5
call fcn.004a9500
test eax, eax
je 0x4a9618
mov eax, dword [0x4ec114]
cmp eax, 1
jne 0x4a95f6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a9618
pop esi
ret
push eax
call dword [0x4ec11c]
test eax, eax
jne 0x4a9660
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 0x4a961c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ec114]
call dword [0x4ec11c]
mov edi, eax
test edi, edi
je 0x4a9643
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4a965f
lea edi, [esi + 0xff0]
push esi
push dword [0x4ec114]
call dword [0x4ec118]
add esi, 0x10
cmp esi, edi
jb 0x4a9649
mov eax, esi
pop edi
pop esi
ret
jmp 0x4a95c2