joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e7d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x517820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
mov ecx, vtable.CMenu.0
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x34]
mov byte [esp + 0x28], 1
cmp ebp, 0x3ad5
jne 0x41e829
mov edi, 0x3ad9
mov dword [esp + 0x34], 0x3cce
jmp 0x41e836
mov edi, 0x4331
mov dword [esp + 0x34], 0x4526
mov esi, dword [sym.imp.USER32.dll_CreatePopupMenu]
call esi
push eax
lea ecx, [esp + 0x1c]
call fcn.004fc4dc
push 0x5b764c
push 5
lea eax, [esp + 0x20]
push edi
push eax
mov ecx, ebx
call fcn.00415310
call esi
push eax
lea ecx, [esp + 0x14]
call fcn.004fc4dc
mov ecx, dword [esp + 0x34]
push 0x5b764c
push 0x15
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, ebx
call fcn.00415310
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push str.ALWAYS
push ebp
mov eax, dword [esi + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 4]
push 0x5b764c
push 0
push 0x800
push ecx
call edi
mov eax, dword [esi + 4]
lea edx, [ebp + 1]
push str.Default_Binary_Statement
push edx
push 0
push eax
call edi
mov ecx, dword [esi + 4]
add ebp, 2
push str.Default_Comparison_Statement
push ebp
push 0
push ecx
call edi
mov edx, dword [esi + 4]
push 0x5b764c
push 0
push 0x800
push edx
call edi
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.00420140
lea ecx, [esp + 0x18]
call fcn.004fc509
mov ecx, dword [esi + 4]
push str.Binary_Statement_with_Query
push eax
push 0x10
push ecx
call edi
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.00420140
lea ecx, [esp + 0x10]
call fcn.004fc509
push str.Comparison_Statement_with_Query
push eax
mov eax, dword [esi + 4]
push 0x10
push eax
call edi
mov esi, vtable.CMenu.0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004fc533
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 3
call fcn.004fc533
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x41ea50
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x517880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebp, vtable.CMenu.0
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov byte [esp + 0x30], 2
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004fc4dc
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004fc4dc
push 1
lea eax, [esp + 0x24]
push 0x2f93
push eax
mov ecx, esi
call fcn.0041dce0
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00420140
lea ecx, [esp + 0x20]
call fcn.004fc509
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push 0x53c75c
push eax
push 0x10
push edx
call edi
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004fc4dc
lea eax, [esp + 0x18]
push 0x2f2b
push eax
mov ecx, esi
call fcn.0041e230
lea ecx, [esp + 0x18]
mov ebx, eax
push ecx
mov ecx, esi
call fcn.00420140
test ebx, ebx
lea ecx, [esp + 0x18]
jne 0x41eb38
call fcn.004fc509
mov edx, dword [esp + 0x14]
push 0x53c74c
push eax
push 0x11
push edx
jmp 0x41eb4a
call fcn.004fc509
push 0x53c74c
push eax
mov eax, dword [esp + 0x1c]
push 0x10
push eax
call edi
mov ecx, dword [esp + 0x14]
push str.Level
push 0x2f2a
push 0
push ecx
call edi
mov edx, dword [esp + 0x14]
push 0x5b764c
push 0
push 0x800
push edx
call edi
mov eax, dword [esp + 0x14]
push 0x542d3c
push 0x2b13
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00420140
mov eax, dword [esp + 0x38]
push 0
push esi
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push 0
call fcn.004f91fa
lea ecx, [esp + 0x10]
call fcn.004fc533
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004fc533
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.004fc533
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 5
call fcn.004fc533
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x41f250
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5179a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
mov ebx, vtable.CMenu.0
xor eax, eax
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov edi, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov byte [esp + 0x30], 2
call edi
push eax
lea ecx, [esp + 0x24]
call fcn.004fc4dc
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ebp
push eax
lea ecx, [esp + 0x28]
push 0x3ec4
push ecx
mov ecx, esi
call fcn.00415310
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.004fc4dc
mov edx, dword [esp + 0x3c]
push ebp
push edx
push 0x4101
push 0x40ce
lea eax, [esp + 0x28]
push 0x40b9
push eax
mov ecx, esi
call fcn.0041e600
call edi
push eax
lea ecx, [esp + 0x14]
call fcn.004fc4dc
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00420140
lea ecx, [esp + 0x20]
call fcn.004fc509
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push str.Replace_with_Query
push eax
push 0x10
push edx
call edi
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00420140
lea ecx, [esp + 0x18]
call fcn.004fc509
mov ecx, dword [esp + 0x14]
push str.Replace_with_Literal
push eax
push 0x10
push ecx
call edi
mov edx, dword [esp + 0x14]
push 0x5b764c
push 0
push 0x800
push edx
call edi
mov eax, dword [esp + 0x14]
push 0x542d3c
push 0x2b13
push 0
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00420140
mov eax, dword [esp + 0x38]
push 0
push esi
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
push 0
call fcn.004f91fa
lea ecx, [esp + 0x10]
call fcn.004fc533
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004fc533
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.004fc533
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 5
call fcn.004fc533
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x41f4d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x517a00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, vtable.CMenu.0
xor esi, esi
push edi
mov edi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CreatePopupMenu]
mov byte [esp + 0x30], 2
call ebx
push eax
lea ecx, [esp + 0x24]
call fcn.004fc4dc
mov eax, dword [esp + 0x24]
push str.DO_NOTHING
push 0x38d9
push esi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
push eax
call esi
mov ecx, dword [esp + 0x24]
push 0x5b764c
push 0
push 0x800
push ecx
call esi
lea edx, [esp + 0x20]
push 0x38da
push edx
mov ecx, edi
call fcn.004150f0
call ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004fc4dc
mov eax, dword [esp + 0x1c]
push str.DO_NOTHING
push 0x4134
push 0
push eax
call esi
mov ecx, dword [esp + 0x1c]
push 0x5b764c
push 0
push 0x800
push ecx
call esi
lea edx, [esp + 0x18]
push 0x4135
push edx
mov ecx, edi
call fcn.004150f0
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004fc4dc
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.00420140
lea ecx, [esp + 0x20]
call fcn.004fc509
mov ecx, dword [esp + 0x14]
push str.Insert_a_New_Action
push eax
push 0x10
push ecx
call esi
push str.Insert_a_Nested_IF_THEN_Clause
push 0x38d6
push 0
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x14]
push str.Insert_a_Nested_IF_THEN_ELSE_Clause
push 0x38d8
push 0
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x5b764c
push 0
push 0x800
push ecx
call esi
lea edx, [esp + 0x18]
mov ecx, edi
push edx
call fcn.00420140
lea ecx, [esp + 0x18]
call fcn.004fc509
push str.Replace_with_a_Different_Action
push eax
mov eax, dword [esp + 0x1c]
push 0x10
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x5b764c
push 0
push 0x800
push ecx
call esi
mov edx, dword [esp + 0x14]
push 0x542e88
push 0x471c
push 0
push edx
call esi
mov eax, dword [esp + 0x14]
push 0x5b764c
push 0
push 0x800
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0x542d3c
push 0x2b13
push 0
push ecx
call esi
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.00420140
mov eax, dword [esp + 0x38]
push 0
push edi
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push 0
lea ecx, [esp + 0x24]
call fcn.004f91fa
lea ecx, [esp + 0x10]
call fcn.004fc533
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.004fc533
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 4
call fcn.004fc533
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], 5
lea ecx, [esp + 0x10]
call fcn.004fc533
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x43d8b0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
push 1
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x43d903
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esp + 0x10], 0x12
je 0x43d90a
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call esi
test eax, eax
jne 0x43d8db
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push 1
call fcn.004b782a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x45f320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
push ebx
push ebp
push esi
push edi
push 0x4e20
call fcn.0045df40
mov eax, dword [esp + 0x88]
xor ebp, ebp
add esp, 4
mov dword [esp + 0x10], ebp
cmp dword [eax + 0xc], ebp
jle 0x45f4a7
xor ebx, ebx
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
lea edi, [esp + 0x5c]
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 8]
add edx, ebp
mov dword [esp + 0x40], ecx
mov eax, dword [edx]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
fld dword [esp + 0x2c]
mov ecx, dword [edx + 4]
fsub dword [esp + 0x38]
mov edx, dword [edx + 8]
mov dword [esp + 0x30], ecx
fld dword [esp + 0x30]
fsub dword [esp + 0x3c]
mov dword [esp + 0x34], edx
mov ecx, 9
fld dword [esp + 0x34]
fsub dword [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x64]
fmul st(1)
fld dword [esp + 0x60]
fmul st(3)
faddp st(1)
fld dword [esp + 0x5c]
fmul st(4)
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
faddp st(1)
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
fstp dword [esp + 0x20]
fld dword [esp + 0x70]
fmul st(1)
fld dword [esp + 0x6c]
fmul st(3)
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x20]
faddp st(1)
fld dword [esp + 0x68]
fmul st(4)
mov dword [esp + 0x4c], eax
mov dword [esp + 0x14], ecx
faddp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x7c]
fmul st(1)
fld dword [esp + 0x78]
fmul st(3)
mov edx, dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x74]
fmul st(4)
mov dword [esp + 0x18], edx
faddp st(1)
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [esp + 0x44]
fadd dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [esp + 0x48]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x50]
push ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [esp + 0x50]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x58], edx
mov edx, dword [0x11cfb60]
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
lea eax, [ebx + edx]
push eax
call fcn.004e34c0
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0x18]
add esp, 8
inc eax
mov edx, dword [ecx + 0xc]
add ebp, 0xc
add ebx, 0x18
mov dword [esp + 0x10], eax
cmp eax, edx
mov eax, ecx
jl 0x45f34c
mov ecx, dword [eax + 4]
mov ebp, dword [eax + 0x10]
test ecx, ecx
mov dword [esp + 0x10], 0
jle 0x45f50f
add ebp, 2
xor edx, edx
xor ecx, ecx
mov dl, byte [ebp]
mov esi, edx
test esi, esi
jle 0x45f4fc
lea edi, [ecx + 1]
mov ebx, dword [ebp + 2]
mov eax, edi
push 0
cdq
idiv esi
movsx ecx, word [ebx + ecx*2]
movsx eax, word [ebx + edx*2]
push eax
push ecx
call fcn.0045de00
xor edx, edx
mov ecx, edi
mov dl, byte [ebp]
add esp, 0xc
mov esi, edx
cmp ecx, esi
jl 0x45f4c9
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + 4]
inc ecx
add ebp, 0x38
cmp ecx, edx
mov dword [esp + 0x10], ecx
jl 0x45f4bc
mov eax, dword [esp + 0x94]
push eax
call fcn.0045e460
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x4b6d67
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b6d87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b7c60
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b6daa
test byte [esp + 8], 2
je 0x4b6daa
call fcn.004b7cd3
mov dword [eax], 0xd
call fcn.004b7cdc
mov dword [eax], 5
jmp 0x4b6d83
xor eax, eax
ret

Function at 0x4c0fb2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x551a10
cmp edx, dword [eax]
je 0x4c0fd4
add eax, 8
inc ecx
cmp eax, 0x551aa0
jl 0x4c0fc5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x551a10]
jne 0x4c1102
mov eax, dword [0x12013a4]
cmp eax, 1
je 0x4c10dc
test eax, eax
jne 0x4c1005
cmp dword [0x54eeb4], 1
je 0x4c10dc
cmp edx, 0xfc
je 0x4c1102
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c103c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bf630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbd10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c107f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbd10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x542cc0
push edi
call fcn.004b70e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bf630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bf640
lea eax, [ebp - 0xa0]
push 0x52d9c8
push eax
call fcn.004bf640
push dword [esi + 0x551a14]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bf640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bf476
add esp, 0x2c
pop edi
jmp 0x4c1102
lea eax, [ebp + 8]
lea esi, [esi + 0x551a14]
push 0
push eax
push dword [esi]
call fcn.004bbd10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4c4ee7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call fcn.004c4e94
add esp, 4
mov dword [ebp - 8], eax
push 0x161
push 0x55206c
push 8
call fcn.004cb090
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4c4f20
push 1
call fcn.004b782a
mov ecx, dword [ebp - 8]
mov edx, dword [0x13a0e94]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x13a0e94]
mov eax, dword [ebp - 4]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4cafb0
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x20
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0
push 0xf42400
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
test eax, eax
mov dword [0x13b00a0], eax
jne 0x4cafe8
push str.Unable_to_create_memory_heap__your_system_may_not_have_enough_memory_to_run.
call fcn.004cd1d0
mov eax, dword [0x13b00a0]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapCompact]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
lea edx, [eax + ecx]
cmp edx, 0x3200000
jae 0x4cb01c
push ecx
push eax
mov eax, dword [esp + 0x10]
push eax
push str.Your_system_doesnt_have_enough_available_memory_to_continue._r_n_r_nMemory_Statistics:_r_nTotal_Physical:__d_r_nAvaliable_Physical:__d_r_nAvailable_Virtual:__d_r_n_r_nYou_may_be_able_to_continue_by_rebooting__or_freeing_up_some_disk_space.
call fcn.004cd1d0
add esp, 0x10
add esp, 0x20
ret
mov eax, dword [esp + 8]
cmp eax, 0x3e00000
jae 0x4cb032
mov byte [0x13b00b4], 1
add esp, 0x20
ret
cmp eax, 0x2e00000
jae 0x4cb04b
mov byte [0x13b00b4], 1
mov byte [0x13b00b5], 1
add esp, 0x20
ret
push 0x271
push str.D:descent3mainmemmem.cpp
push 0x80
call fcn.004cb090
add esp, 0xc
mov dword [0x13b00b0], eax
test eax, eax
jne 0x4cb078
push str.No_available_heap_memory.
call fcn.004cd1d0
add esp, 4
push 0x4cb140
call fcn.004beda9
add esp, 4
add esp, 0x20
ret

Function at 0x4cca20
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor dl, dl
xor ebx, ebx
push edi
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x4cca46
cmp al, 0xa
jne 0x4cca3d
cmp dl, 0xd
je 0x4cca3d
inc ebx
inc ecx
mov dl, al
mov al, byte [ecx]
test al, al
jne 0x4cca33
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + ebx + 1]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4ccabd
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4ccabd
mov cl, byte [esi]
xor dl, dl
test cl, cl
je 0x4cca96
cmp cl, 0xa
jne 0x4cca89
cmp dl, 0xd
je 0x4cca89
mov byte [eax], 0xd
inc eax
mov dl, byte [esi]
mov byte [eax], dl
mov cl, byte [esi + 1]
inc eax
inc esi
test cl, cl
jne 0x4cca7b
push edi
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
ret
Function at 0x4ccb20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x51c608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], 1
mov edi, dword [esp + 0x30]
mov dword [esi], 0x52e334
xor ebx, ebx
mov eax, dword [edi + 4]
mov dword [esp + 0x28], ebx
mov dword [esi + 0x258], eax
mov ecx, dword [edi + 8]
mov dword [esi + 0x25c], ecx
mov ecx, dword [esi + 0x258]
mov edx, dword [edi]
lea eax, [esp + 0x10]
push eax
push ecx
mov dword [esi + 0x260], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x264], edx
mov dword [edi + 0xc], edx
mov dword [esi + 0x268], eax
sub ecx, edx
mov dword [edi + 0x10], eax
mov dword [esi + 0x26c], ecx
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov ecx, esi
mov dword [esi + 0x270], eax
mov dword [edi + 0x18], eax
mov byte [esi + 8], bl
call fcn.004cce20
mov ecx, esi
call fcn.004ccf80
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x214], ebx
mov eax, esi
pop edi
mov byte [0x13b8352], bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4ccd40
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push 1
push 0
push 0
push 0
mov esi, ecx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4ccd8b
cmp dword [esp + 8], 0x12
jne 0x4ccd6b
push 1
call fcn.004b782a
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 4]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, 1
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0x214]
test eax, eax
je 0x4ccd9e
mov cl, byte [esi + 4]
push ecx
call eax
add esp, 4
mov al, byte [esi + 4]
test al, al
je 0x4ccdd1
push edi
mov edi, dword [esi + 0x258]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, edi
je 0x4ccdc6
test byte [esi + 0x260], 8
jne 0x4ccdc6
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov eax, 3
pop esi
add esp, 0x1c
ret
mov eax, 2
pop esi
add esp, 0x1c
ret

Function at 0x4cce20
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
lea eax, [esp]
lea edx, [esp + 8]
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
call fcn.004cce80
mov cl, byte [0x13b8353]
add esp, 0x10
test cl, cl
jne 0x4cce6d
test eax, eax
jne 0x4cce66
push eax
push str.Outrage_Error
push str.This_application_will_only_run_under_Win32_systems.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call fcn.004b782a
mov byte [0x13b8353], 1
cmp eax, 2
sete al
mov byte [esi + 0x210], al
pop esi
add esp, 0xc
ret
Function at 0x4cd1d0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, str.Error:
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, 0x13b873c
mov edx, 0x7d0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x13b873c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
not ecx
dec ecx
push eax
sub edx, ecx
lea eax, [ecx + 0x13b873c]
push edx
push eax
call fcn.004cd390
push 0x13b871c
push str._s_Error
push 0x13b8f0c
call fcn.004b68ef
mov al, byte [0x13b8f54]
add esp, 0x1c
test al, al
pop edi
pop esi
jne 0x4cd24b
call fcn.004cd280
push 0
mov dword [0x13b8f4c], 0
mov dword [0x13b8f50], 0
call fcn.004b782a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4d0360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c629
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004d25d5
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x40], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
call fcn.004d02f0
sub eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x40]
call fcn.004d0310
sub eax, 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x3c], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0xffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0xffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0xffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0xffffff
mov eax, dword [ebp - 0x10]
mov byte [eax + 0xc], 0xff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 1
push 0
mov ecx, dword [ebp - 0x10]
call fcn.004d2607
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4