joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fc90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esi + 4]
push ebx
push ebp
xor ebp, ebp
cmp ecx, ebp
je 0x43fca3
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
cmp eax, ebp
mov dword [esi + 4], ebp
je 0x43fcb7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
mov eax, dword [esp + 0xc]
push 0x472d94
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
cmp ebx, ebp
jne 0x43fcd5
pop ebp
xor al, al
pop ebx
ret 4
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
je 0x43fda1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, ebp
je 0x43fda1
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi + 8], eax
je 0x43fda1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x43fd94
push edi
push ebx
push eax
call fcn.0044f650
mov ecx, dword [esi + 8]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x43fd94
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00442490
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x43fd94
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x43fd82
pop edi
pop ebp
mov al, 1
pop ebx
ret 4
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x43fd91
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], ebp
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
pop edi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x43fdb0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x464f0e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, dword [esp + 0x20]
lea eax, [esi + 0x40]
mov dword [esi], vtable.GuiManager.0
xor ebx, ebx
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov dword [esp + 0x18], ebx
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov dword [esp + 0x18], 1
lea eax, [esi + 0x4c]
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov byte [esp + 0x18], 2
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov byte [esp + 0x18], 3
lea eax, [esi + 0x58]
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov byte [esp + 0x18], 4
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov byte [esp + 0x18], 5
lea eax, [esi + 0x64]
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov byte [esp + 0x18], 6
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov ecx, 7
mov byte [esp + 0x18], cl
lea eax, [esi + 0x70]
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov byte [esp + 0x18], 8
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov byte [esp + 0x18], 9
lea eax, [esi + 0x7c]
mov dword [esp + 0xc], eax
mov dword [eax], vtable.GdiPlusBitmap.0
mov dword [eax + 4], ebx
mov byte [esp + 0x18], 0xa
mov dword [eax], vtable.GdiPlusBitmapResource.0
mov dword [eax + 8], ebx
mov byte [esp + 0x18], 0xb
mov dword [esi + 0xb4], ecx
mov dword [esi + 0xb0], ebx
mov word [esi + 0xa0], bx
mov byte [esp + 0x18], 0xc
mov dword [esi + 0xd4], ecx
mov dword [esi + 0xd0], ebx
mov word [esi + 0xc0], bx
mov byte [esp + 0x18], 0xd
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov word [esi + 0xc], bx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x30], bl
push 0x7f89
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xb8], ebx
mov byte [esi + 0x31], bl
mov byte [esi + 0x32], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x28], eax
mov dword [esp + 0x18], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x440240
Capabilities:
Hide graphical window
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46bfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
push 0x443900
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x14], edi
je 0x4402af
mov eax, dword [0x484814]
cmp eax, ebx
je 0x4402af
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
call fcn.00441010
mov eax, dword [esi + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x44039b
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
lea esp, [esp]
mov eax, dword [esp + 0x2c]
add eax, 0xffff7e0b
cmp eax, 3
ja case.default.0x4402ee
jmp dword [eax*4 + 0x440404]
mov edi, dword [esi + 0x10]
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
push 5
push 0
push 0
push 1
call ebx
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call ebx
sub eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x10]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x14]
jmp 0x440380
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x440380
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00440420
jmp 0x440380
mov edx, dword [esp + 0x34]
push edx
call fcn.004404c0
jmp 0x440380
mov eax, dword [esp + 0x28]
cmp eax, dword [esi + 0x10]
lea ecx, [esp + 0x28]
jne 0x440379
mov eax, esi
call fcn.00441db0
jmp 0x440380
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4402e0
xor ebx, ebx
call fcn.00441210
cmp edi, ebx
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
je 0x4403c6
push edi
call esi
mov eax, dword [0x484814]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x4403c2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esp + 0x14]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esp + 0x50], 0xffffffff
cmp edi, ebx
je 0x4403f0
push edi
call esi
mov eax, dword [0x484814]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x4403f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x440560
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x46be6e
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4812a4]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xc4]
lea eax, [esp + 0x4c]
push eax
call fcn.0043f520
xor ebx, ebx
mov dword [esp + 0xbc], ebx
push 0x1d
push str.INSTALLER_DIALOG_EULA_CAPTION
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00407a50
mov byte [esp + 0xbc], 1
lea edi, [esp + 0x14]
call fcn.00419720
mov edi, 7
mov ecx, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x440600
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x38]
call fcn.00411fd0
mov byte [esp + 0xbc], 2
mov esi, dword [ebp + 0x10]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x98]
mov dword [esp + 0x5c], 0x83
call fcn.00411ca0
lea ecx, [esp + 0x4c]
push ecx
push 0x43f690
push esi
push 0x66
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
mov esi, eax
je 0x44066a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x50], ebx
mov byte [esp + 0xbc], 1
cmp dword [esp + 0x48], 8
jb 0x440686
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00449824
add esp, 4
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov byte [esp + 0xbc], bl
cmp dword [esp + 0x2c], 0x10
jb 0x4406ae
mov edx, dword [esp + 0x18]
push edx
call fcn.00449824
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.0043f5c0
mov eax, esi
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00449829
add esp, 0xac
ret 4
Function at 0x440c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46b6e0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4812a4]
xor eax, esp
mov dword [esp + 0x24], eax
push edi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], vtable.InstallationDirectoryDialog.0
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], 0
mov dword [esp + 0x38], 1
push 0xffffffffffffffff
push 0
mov eax, esi
lea ecx, [esp + 0x18]
call fcn.00411ca0
mov edi, dword [edi + 0x10]
lea eax, [esp + 0xc]
push eax
push 0x442730
push edi
push 0x85
push 0
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov edi, eax
cmp edi, 1
jne 0x440d1d
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.00411ca0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004426c0
mov eax, edi
jmp 0x440d30
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004426c0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00449829
add esp, 0x34
ret
Function at 0x441360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x46afe3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
mov eax, dword [0x4812a4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
call fcn.00419b10
test eax, eax
mov dword [edi + 0x98], eax
jne 0x4414d4
push 0xa
push str.110
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x4414d4
push 0xc
call sub.gdiplus.dll_GdipAlloc
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], esi
cmp eax, esi
je 0x4413eb
push eax
call fcn.00442370
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
push ebp
mov dword [edi + 0x94], esi
mov eax, dword [esi + 4]
push ebx
push eax
call sub.gdiplus.dll_GdipPrivateAddMemoryFont
mov dword [esi + 8], eax
mov esi, dword [edi + 0x94]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
push ecx
xor ebp, ebp
push edx
mov dword [esp + 0x1c], ebp
call sub.gdiplus.dll_GdipGetFontCollectionFamilyCount
cmp dword [esp + 0x14], ebp
mov dword [esi + 8], eax
jle 0x4414d4
push 0x442360
push 0x442350
mov ebx, 1
push ebx
push 8
lea eax, [esp + 0x30]
push eax
call fcn.0044c18e
mov dword [esp + 0x30], ebx
mov eax, dword [edi + 0x94]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x1c], ebp
call fcn.00442290
cmp dword [esp + 0x14], ebp
jle 0x4414ba
push 8
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [esp + 0x1c], esi
mov byte [esp + 0x30], 2
cmp esi, ebp
je 0x4414ae
fld dword [0x473650]
lea eax, [esp + 0x18]
push eax
push 3
push ebx
push ecx
mov ecx, dword [esp + 0x30]
fstp dword [esp]
push ecx
mov dword [esp + 0x2c], ebp
call sub.gdiplus.dll_GdipCreateFont
mov edx, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi], edx
jmp 0x4414b0
xor esi, esi
mov byte [esp + 0x30], bl
mov dword [edi + 0x98], esi
mov dword [esp + 0x30], 0xffffffff
push 0x442360
push ebx
push 8
lea eax, [esp + 0x2c]
push eax
call fcn.0044c251
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x448690
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4812a4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004485cf
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044d590
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4486df
cmp dword [ebp - 0x1c], 5
jb 0x4486f7
jmp 0x4486f3
cmp dword [ebp - 0x10], 1
jne 0x4486f7
cmp dword [ebp - 0x1c], 4
ja 0x4486f3
jne 0x4486f7
cmp dword [ebp - 0x18], 0
jbe 0x4486f7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46d668
call fcn.00439f20
test eax, eax
jge 0x448718
mov byte [0x48592c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00449829
add ebp, 0x78
leave
ret

Function at 0x449829
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4812a4]
jne 0x449833
repz ret
jmp fcn.00451843
Function at 0x44a397
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x44a3d4
cmp dword [ebp + 0x14], edi
je 0x44a3d4
cmp ecx, edi
jne 0x44a3db
call fcn.0044d841
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0044ad08
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x44a3ef
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x44a410
cmp ebx, 0xffffffff
je 0x44a3ff
push ebx
push edi
push ecx
call fcn.0044d590
add esp, 0xc
cmp esi, edi
je 0x44a3bc
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x44a3bc
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x44a42c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x44a433
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x44a524
test word [esi + 0xc], 0x10c
je 0x44a487
mov eax, dword [esi + 4]
test eax, eax
je 0x44a487
jl 0x44a585
cmp ebx, eax
mov edi, ebx
jb 0x44a458
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x44a52c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0044af89
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x44a51c
cmp ebx, dword [ebp - 0xc]
jb 0x44a4f4
cmp dword [ebp - 0xc], 0
je 0x44a4b1
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x44a4a6
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x44a4ad
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x44a4bc
mov eax, SysReAllocString
cmp ebx, eax
ja 0x44a4bc
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x44a558
push eax
push dword [ebp - 8]
push esi
call fcn.00452faa
pop ecx
push eax
call fcn.004546f1
add esp, 0xc
test eax, eax
je 0x44a597
cmp eax, 0xffffffff
je 0x44a585
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x44a51c
push esi
call fcn.00454010
cmp eax, 0xffffffff
pop ecx
je 0x44a589
cmp dword [ebp - 4], 0
je 0x44a558
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x44a43b
mov eax, dword [ebp + 0x14]
jmp 0x44a3d6
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x44a543
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0044d590
add esp, 0xc
call fcn.0044d841
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x44a3cc
cmp dword [ebp + 0xc], 0xffffffff
je 0x44a56e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0044d590
add esp, 0xc
call fcn.0044d841
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x44a3cc
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x44a3d6
or dword [esi + 0xc], 0x10
jmp 0x44a589
Function at 0x456184
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 + 0x481a50]
je 0x45619f
inc edi
cmp edi, 0x17
jb 0x456190
cmp edi, 0x17
jae 0x45631f
push ebp
push 3
call fcn.0045e98d
cmp eax, 1
pop ecx
je 0x4562eb
push 3
call fcn.0045e98d
test eax, eax
pop ecx
jne 0x4561d3
cmp dword [0x4812a0], 1
je 0x4562eb
cmp ebx, 0xfc
je 0x45631e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x484248
push ebp
call fcn.00452081
add esp, 0xc
test eax, eax
je 0x456209
push esi
push esi
push esi
push esi
push esi
call fcn.0044ac0c
add esp, 0x14
push 0x104
mov esi, 0x484261
push esi
push 0
mov byte [0x484365], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45624d
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00452081
add esp, 0xc
test eax, eax
je 0x45624d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044ac0c
add esp, 0x14
push esi
call fcn.0044dcb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456292
push esi
call fcn.0044dcb0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x48455c
push 0x46e95c
sub ecx, eax
push ecx
push eax
call fcn.0044c85e
add esp, 0x14
test eax, eax
je 0x456292
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044ac0c
add esp, 0x14
jmp 0x456294
xor esi, esi
push 0x46e958
push ebx
push ebp
call fcn.0045ac2d
add esp, 0xc
test eax, eax
je 0x4562b4
push esi
push esi
push esi
push esi
push esi
call fcn.0044ac0c
add esp, 0x14
push dword [edi*8 + 0x481a54]
push ebx
push ebp
call fcn.0045ac2d
add esp, 0xc
test eax, eax
je 0x4562d6
push esi
push esi
push esi
push esi
push esi
call fcn.0044ac0c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0045e7d0
add esp, 0xc
jmp 0x45631e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x45631e
cmp ebp, 0xffffffff
je 0x45631e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x481a54]
push dword [esi]
call fcn.0044dcb0
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 0x45e7d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00451b9f
xor ebx, ebx
cmp dword [0x4846c8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45e8a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45e986
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x45e986
push eax
call fcn.00451b31
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4846c8], eax
call esi
push eax
call fcn.00451b31
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4846cc], eax
call esi
push eax
call fcn.00451b31
mov dword [0x4846d0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004514bf
test eax, eax
pop ecx
pop ecx
je 0x45e874
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044ac0c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45e8a6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00451b31
cmp eax, ebx
pop ecx
mov dword [0x4846d8], eax
je 0x45e8a6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00451b31
pop ecx
mov dword [0x4846d4], eax
mov eax, dword [0x4846d4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45e92b
cmp dword [0x4846d8], ecx
je 0x45e92b
push eax
call fcn.00451ba8
push dword [0x4846d8]
mov esi, eax
call fcn.00451ba8
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45e92b
cmp edi, ebx
je 0x45e92b
call esi
cmp eax, ebx
je 0x45e8f8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45e8f8
test byte [ebp - 0x18], 1
jne 0x45e92b
lea eax, [ebp - 0x10]
push eax
call fcn.004514f6
test eax, eax
pop ecx
je 0x45e913
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044ac0c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45e922
or dword [ebp + 0x10], 0x200000
jmp 0x45e966
or dword [ebp + 0x10], 0x40000
jmp 0x45e966
mov eax, dword [0x4846cc]
cmp eax, dword [ebp - 8]
je 0x45e966
push eax
call fcn.00451ba8
cmp eax, ebx
pop ecx
je 0x45e966
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45e966
mov eax, dword [0x4846d0]
cmp eax, dword [ebp - 8]
je 0x45e966
push eax
call fcn.00451ba8
cmp eax, ebx
pop ecx
je 0x45e966
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4846c8]
call fcn.00451ba8
cmp eax, ebx
pop ecx
je 0x45e986
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45e988
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret