joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40eb02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8788
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x38], 0
je 0x40ecbb
mov esi, 0x20000
lea ecx, [esp + 0x1c]
push esi
call fcn.0040e5b6
and dword [esp + 0x70], 0
push dword [ebx + 0x38]
push esi
push 1
push dword [esp + 0x28]
call fcn.00494388
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov edi, eax
mov edx, edi
call fcn.0040e025
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40eb9f
mov esi, dword [ebx + 0x48]
cmp esi, 2
je 0x40eb86
cmp esi, 4
jne 0x40ebc0
mov ecx, dword [esp + 0x1c]
mov edx, edi
push esi
call fcn.0048d687
pop ecx
test eax, eax
je 0x40ebc0
mov dword [esp + 0x18], 4
xor cl, cl
cmp dword [ebx + 0x48], 3
sete al
movzx eax, al
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0048d56a
mov byte [esp + 0x70], 1
jmp 0x40ec7d
cmp esi, 1
je 0x40ebca
cmp esi, 3
jne 0x40eb9f
mov cl, 1
jmp 0x40eba1
cmp dword [ebx + 0x34], 0
jne 0x40ec85
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov bl, byte [ebx + 9]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
test bl, bl
mov ebx, dword [esp + 0x14]
jne 0x40ec85
push dword [ebx + 0x44]
call dword [0x4c02f0]
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.0048d5c4
mov ecx, dword [ebx + 0x58]
mov edi, eax
push edi
push dword [esp + 0x34]
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov esi, dword [ebx + 4]
mov ecx, esi
mov dword [ebx + 0x34], eax
mov edx, dword [esi]
call dword [edx]
add dword [ebx + 0x10], edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebx + 0x3c]
call fcn.00431059
fcomp qword [ebx + 0x50]
fnstsw ax
test ah, 0x41
jne 0x40ec65
push 0
lea ecx, [ebx + 0x3c]
call fcn.00431059
fadd qword [0x4ee168]
mov ecx, dword [ebx + 0x14]
push ebx
push 3
fstp qword [ebx + 0x50]
mov eax, dword [ecx]
call dword [eax]
push dword [ebx + 0x38]
push 0x20000
push 1
push dword [esp + 0x28]
call fcn.00494388
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x40ebce
push dword [ebx + 0x38]
call fcn.004944a0
mov eax, dword [esp + 0x2c]
and dword [ebx + 0x38], 0
mov dword [ebx + 0x60], eax
pop ecx
test eax, eax
jne 0x40eca4
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x60], eax
lea ecx, [esp + 0x28]
call fcn.0048d5a8
or dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004028f1
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov byte [ebx + 8], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebx + 0x14]
push ebx
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423416
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b93f1
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0xee0], 0
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x2c], edx
je 0x423481
push edx
push edi
push dword [ebp + 8]
call fcn.0041cba4
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
lea eax, [ecx - 0x7d1]
cmp eax, 0x3e9
ja 0x426187
jmp dword [eax*4 + 0x4261ba]
mov eax, dword [ebx]
push edx
push edi
push ecx
mov ecx, ebx
call dword [eax + 0xe8]
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4290b8
Capabilities:
Write file on windows

Disassembly:
push 0xb4
mov eax, 0x4b95a3
call fcn.004b6a29
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 0x10]
push 0x4d7b54
mov dword [ebp - 4], ebx
call fcn.0042f09e
mov edi, eax
test edi, edi
je 0x42915f
push ecx
push ecx
lea ecx, [ebp - 0xc0]
call fcn.0042c0ac
push dword [ebp + 0xc]
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov ecx, esi
push eax
call fcn.004285c2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0042c176
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x429121
lea eax, [ebp - 0x28]
push edi
push dword [ebp - 0x18]
push 1
push eax
call fcn.00495039
push edi
call fcn.004944a0
add esp, 0x14
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.0040177c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.0042c133
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], vtable.std::ios_base.0
push eax
call fcn.004b6556
pop ecx
jmp 0x4291a6
lea eax, [esi + 0x254]
cmp dword [eax + 0x14], 8
jb 0x42916d
mov eax, dword [eax]
push ebx
push ebx
push eax
push str.Could_not_save_file_0.
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004797dd
push 0x30
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov edx, dword [esi]
mov ecx, esi
push eax
lea eax, [esi + 0x73c]
push eax
call dword [edx + 0xb0]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040f05a
push ebx
push 1
lea ecx, [ebp + 0x10]
call fcn.0040f05a
call fcn.004b69d8
ret 0x20

Function at 0x42a6e7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.004914f0
push dword [esi]
push eax
push 1
push dword [ebp + 8]
call fcn.00495039
add esp, 0x14
pop esi
pop ebp
ret 4
Function at 0x42f0c2
Capabilities:
Read file on windows

Disassembly:
push 0x10
mov eax, 0x4b9d06
call fcn.004b69f6
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor ebx, ebx
mov dword [ebp - 4], eax
inc ebx
push 0x4d4964
mov dword [ebp - 0x10], ebx
call fcn.0042f09e
mov edi, eax
test edi, edi
je 0x42f14c
push 0x10000
lea ecx, [ebp - 0x1c]
call fcn.0040e5b6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ebx, eax
push edi
push ebx
push 1
push eax
jmp 0x42f131
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
push eax
push ecx
push dword [esi + 4]
mov ecx, esi
call fcn.00430148
push edi
push ebx
push 1
push dword [ebp - 0x1c]
call fcn.00494388
add esp, 0x10
test eax, eax
jne 0x42f116
push edi
call fcn.004944a0
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004028f1
mov eax, esi
call fcn.004b69c4
ret 4

Function at 0x437947
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x74], 0
je 0x4379b6
mov edi, dword [esi + 0x20]
add edi, dword [esi + 0x74]
cmp dword [edi + 8], 6
je 0x437965
push 5
pop edx
call fcn.00437ae7
mov ecx, dword [esi + 8]
mov eax, dword [ecx - 0x10]
mov dword [ecx], eax
mov eax, dword [ecx - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ecx - 8]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 8]
mov eax, dword [edi]
mov dword [ecx - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ecx - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ecx - 8], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 8]
cmp eax, 0x10
jg 0x4379a2
xor edx, edx
mov ecx, esi
inc edx
call fcn.00437d07
add dword [esi + 8], 0x10
mov ecx, esi
mov edx, dword [esi + 8]
push 1
add edx, 0xffffffe0
call fcn.0043825f
pop ecx
push 2
pop edx
mov ecx, esi
pop edi
pop esi
jmp fcn.00437ae7

Function at 0x437ae7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x437b0b
mov dword [eax + 0x44], ebx
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call fcn.004971c0
mov eax, dword [esi + 0x10]
mov byte [esi + 6], bl
cmp dword [eax + 0x58], 0
je 0x437b57
mov edx, dword [esi + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [edx]
mov dword [esi + 0xc], edx
call fcn.0043bffa
push dword [esi + 0xc]
mov edx, ebx
mov ecx, esi
call fcn.00437a62
mov ax, word [esi + 0x36]
pop ecx
mov ecx, esi
mov word [esi + 0x34], ax
mov byte [esi + 0x39], 1
call fcn.00437abf
mov eax, dword [esi + 0x10]
and dword [esi + 0x74], 0
and dword [esi + 0x70], 0
push esi
call dword [eax + 0x58]
pop ecx
push 1
call fcn.00494982
int3
Function at 0x43ec51
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4fc504]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push edi
mov dword [ebp - 0x214], ebx
mov edi, 0x200
mov dword [ebp - 0x218], eax
mov ebx, edx
lea eax, [ebp - 0x218]
push eax
call sym.SciTE.exe_luaL_prepbuffer
pop ecx
cmp edi, esi
jbe 0x43eca6
mov edi, esi
push ebx
push edi
push 1
push eax
call fcn.00494388
add dword [ebp - 0x218], eax
add esp, 0x10
sub esi, eax
je 0x43ecc1
cmp eax, edi
je 0x43ec93
lea eax, [ebp - 0x218]
push eax
call sym.SciTE.exe_luaL_pushresult
pop ecx
push 0
pop ebx
test esi, esi
je 0x43ece8
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call sym.SciTE.exe_lua_objlen
pop ecx
pop ecx
test eax, eax
je 0x43eceb
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004906a0
mov esp, ebp
pop ebp
ret

Function at 0x43ef86
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0xc], edx
push edi
push 1
pop edi
mov esi, dword [ebx + 8]
sub esi, dword [ebx + 0xc]
sar esi, 4
dec esi
je 0x43efeb
mov eax, dword [ebp + 8]
push eax
push ebx
dec esi
call sym.SciTE.exe_lua_type
pop ecx
pop ecx
cmp eax, 3
jne 0x43effe
test edi, edi
je 0x43efde
push dword [ebp + 8]
push ebx
call sym.SciTE.exe_lua_tonumber
fstp qword [esp]
push str._.14g
push dword [esp + 0x1c]
call fcn.00494dce
add esp, 0x10
test eax, eax
jg 0x43f02c
xor edi, edi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
test esi, esi
jne 0x43efaa
push 0
mov edx, edi
mov ecx, ebx
call fcn.0043e56e
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
push ebx
call sym.SciTE.exe_luaL_checklstring
add esp, 0xc
test edi, edi
je 0x43efde
push dword [esp + 0x10]
push dword [esp + 0x18]
push 1
push eax
call fcn.00495039
add esp, 0x10
cmp eax, dword [esp + 0x14]
jne 0x43efde
xor edi, edi
inc edi
jmp 0x43efe0
Function at 0x4444e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov esi, edi
mov dword [esp + 0x10], edx
shr esi, 5
mov ebx, edi
inc esi
mov dword [esp + 0x14], eax
mov edx, edi
cmp edi, esi
jb 0x444535
mov edi, dword [esp + 0x10]
movzx ecx, byte [edi + edx - 1]
mov eax, ebx
shl eax, 5
sub edx, esi
add ecx, eax
mov eax, ebx
shr eax, 2
add ecx, eax
xor ebx, ecx
cmp edx, esi
jae 0x444513
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, ebx
mov esi, dword [eax + ecx*4]
jmp 0x444561
cmp dword [esi + 0xc], edi
jne 0x44455f
push edi
lea eax, [esi + 0x10]
push eax
push dword [esp + 0x18]
call fcn.00491738
add esp, 0xc
test eax, eax
je 0x44457d
mov esi, dword [esi]
test esi, esi
jne 0x444545
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push ebx
push edi
call fcn.0044444a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov bl, byte [esi + 5]
mov eax, dword [ecx + 0x10]
movzx ecx, bl
and ecx, 3
movzx edx, byte [eax + 0x14]
not edx
test cl, dl
je 0x44459d
xor bl, 3
mov byte [esi + 5], bl
mov eax, esi
jmp 0x444576
Function at 0x452f76
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba763
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
call fcn.0042ea73
and dword [esp + 0x48], 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.0042e93d
cmp dword [eax + 0x14], 0x10
jb 0x452fd0
mov eax, dword [eax]
mov edx, 0x4e94f9
mov ecx, eax
call fcn.00406032
mov ebx, eax
lea ecx, [esp + 0x20]
push 0
neg ebx
push 1
sbb bl, bl
call fcn.0040177c
inc bl
lea ecx, [esp + 8]
push 0
push 1
setne bl
call fcn.0040f05a
mov al, bl
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret

Function at 0x45441f
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba917
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push esi
call fcn.004541b3
push eax
lea ecx, [esp + 0x1c]
call fcn.004016ae
and dword [esp + 0x40], 0
lea eax, [esp + 0x10]
and dword [esp + 0x14], 0
lea edx, [esp + 0x18]
push eax
push 0x64
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.00454216
cmp dword [esp + 0x30], 0
pop ecx
pop ecx
je 0x4544ad
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4544a2
lea eax, [esp + 0x18]
push eax
call fcn.00494517
pop ecx
mov esi, eax
jmp 0x4544b0
mov esi, dword [ebp + 0xc]
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0040177c
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 8
Function at 0x4622f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0xcc]
test al, al
jne 0x462303
inc al
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.00461e26
Function at 0x4748d7
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10008]
cmp eax, dword [esi + 0x1000c]
jb 0x474926
cmp byte [esi + 4], 0
jne 0x474922
cmp dword [esi], 0
je 0x474922
push edi
push dword [esi]
mov edi, 0x10000
lea eax, [esi + 6]
push edi
push 1
push eax
call fcn.00494388
add esp, 0x10
mov dword [esi + 0x1000c], eax
cmp eax, edi
pop edi
jae 0x474919
mov byte [esi + 4], 1
and dword [esi + 0x10008], 0
pop esi
ret
mov byte [esi + 5], 1
pop esi
ret
Function at 0x47dd41
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0x100000
push 0x47dd35
call fcn.0049a919
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne al
pop ebp
ret 4
Function at 0x47dec4
Capabilities:
Terminate process

Disassembly:
push 0x4c
mov eax, 0x4be550
call fcn.004b6a29
mov edi, ecx
push 0
lea esi, [edi + 0xa7c]
push str.buffers
mov ecx, esi
call fcn.00452214
cmp eax, 0x64
jle 0x47deee
push 0x64
pop eax
cmp eax, 1
jge 0x47def6
xor eax, eax
inc eax
push eax
lea ecx, [edi + 0xb18]
call fcn.0046adc4
push 0x80000000
push str.position.left
mov ecx, esi
call fcn.00452214
push 0x80000000
push str.position.top
mov ecx, esi
mov ebx, eax
call fcn.00452214
push 0x80000000
push str.position.width
mov ecx, esi
mov dword [ebp - 0x58], eax
call fcn.00452214
push 0x80000000
push str.position.height
mov ecx, esi
mov dword [ebp - 0x50], eax
call fcn.00452214
push 0
push str.position.maximize
mov ecx, esi
mov dword [ebp - 0x54], eax
call fcn.00452214
neg eax
push 3
sbb eax, eax
pop ecx
and eax, ecx
cmp dword [ebp - 0x50], 0xffffffff
mov dword [edi + 0xbc4], eax
je 0x47df7a
cmp dword [ebp - 0x54], 0xffffffff
jne 0x47df8b
mov eax, 0x80000000
mov dword [edi + 0xbc4], ecx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
push 0
push str.position.tile
mov ecx, esi
call fcn.00452214
test eax, eax
je 0x47dfbd
push 0
push str.SciTEWindow
call dword [0x4c03dc]
mov ecx, dword [ebp - 0x50]
test eax, eax
je 0x47dfc0
cmp ebx, 0x80000000
je 0x47dfc0
add ebx, ecx
jmp 0x47dfc0
mov ecx, dword [ebp - 0x50]
lea eax, [edi + 0x23c]
cmp dword [eax + 0x14], 8
jb 0x47dfce
mov eax, dword [eax]
push edi
push dword [0x50740c]
push 0
push 0
push dword [ebp - 0x54]
push ecx
push dword [ebp - 0x58]
push ebx
push 0x2cf0000
push eax
push dword [0x507408]
xor ebx, ebx
push ebx
call dword [0x4c0498]
mov dword [edi + 0x73c], eax
push ebx
cmp eax, ebx
jne 0x47e006
call fcn.00494982
push str.save.position
mov ecx, esi
call fcn.00452214
test eax, eax
je 0x47e01d
mov ecx, edi
call fcn.0047ddf1
push dword [edi + 0x73c]
call dword [0x4c03ec]
push eax
mov ecx, edi
call fcn.004815b6
push dword [edi + 0x73c]
call dword [0x4c0394]
push str.print.margins
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.00451b02
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 0x10
mov ecx, dword [ebp - 0x4c]
jae 0x47e05c
lea ecx, [ebp - 0x4c]
push 0x20
pop ebx
push ebx
lea edx, [ebp - 0x34]
call fcn.00475b88
mov esi, eax
lea eax, [ebp - 0x34]
pop ecx
push eax
call fcn.00494520
pop ecx
push ebx
lea edx, [ebp - 0x34]
mov dword [edi + 0x1224], eax
mov ecx, esi
call fcn.00475b88
mov esi, eax
lea eax, [ebp - 0x34]
pop ecx
push eax
call fcn.00494520
pop ecx
push ebx
lea edx, [ebp - 0x34]
mov dword [edi + 0x122c], eax
mov ecx, esi
call fcn.00475b88
mov esi, eax
lea eax, [ebp - 0x34]
pop ecx
push eax
call fcn.00494520
pop ecx
push ebx
lea edx, [ebp - 0x34]
mov dword [edi + 0x1228], eax
mov ecx, esi
call fcn.00475b88
pop ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00494520
pop ecx
mov ecx, edi
mov dword [edi + 0x1230], eax
call fcn.004752c4
cmp dword [edi + 0x7c4], 0
je 0x47e0f6
mov ecx, edi
call fcn.00468a37
mov ecx, dword [edi + 0x7c4]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040177c
call fcn.004b69d8
ret
Function at 0x47f340
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x4fc504]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
test eax, eax
jle 0x47f3d4
cmp dword [0x50791c], 0
jne 0x47f3d4
mov dword [0x50791c], 1
cmp eax, 2
jne 0x47f38a
lea eax, [ebp - 0xd4]
push str.Memory_exhausted.
push eax
call fcn.00494cb0
pop ecx
pop ecx
jmp 0x47f39f
push eax
lea eax, [ebp - 0xd4]
push str.Scintilla_failed_with_status__d.
push eax
call fcn.00493c9c
add esp, 0xc
lea eax, [ebp - 0xd4]
push str._SciTE_will_now_close.
push eax
call fcn.00494cc0
pop ecx
pop ecx
lea edx, [ebp - 0xd4]
lea ecx, [ebp - 0xec]
call fcn.00430c28
cmp dword [ebp - 0xd8], 8
mov eax, dword [ebp - 0xec]
jae 0x47f3eb
jmp 0x47f3e5
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.004906a0
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0xec]
push 0x10
push str.Failure_in_Scintilla
push eax
push dword [esi + 0x73c]
call dword [0x4c0408]
push 0
call fcn.00494982
int3
Function at 0x484cf2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bed5d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add ecx, 0x12d8
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0048cceb
and dword [esp + 0x30], 0
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.004935bf
cmp dword [esp + 0x20], 0x10
mov esi, eax
pop ecx
mov ecx, dword [esp + 8]
jae 0x484d5d
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00494cb0
pop ecx
pop ecx
push 0
push 1
lea ecx, [esp + 0x10]
call fcn.0040177c
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 4

Function at 0x48b496
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bed5d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x44]
lea ecx, [esp + 0xc]
call fcn.0048981a
pop ecx
mov edx, eax
and dword [esp + 0x30], 0
cmp dword [edx + 0x14], 0x10
jb 0x48b4e9
mov edx, dword [edx]
mov ecx, dword [esi + 0x38]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 8]
push 0
push 1
call fcn.0040177c
cmp byte [ebp + 8], 0
je 0x48b514
mov ecx, dword [esi + 0x38]
push 0
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, dword [esi + 0x38]
push 1
push 1
mov al, byte [ecx + 0x39]
xor al, byte [ebp + 0xc]
mov edx, dword [ecx]
movzx eax, al
push eax
call dword [edx + 0x1c]
mov eax, dword [esi + 0x38]
cmp byte [eax + 0x48], 0
je 0x48b53a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 8
Function at 0x48d8fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x48da7d
cmp dword [esi], 0
jne 0x48d926
push eax
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x48da75
cmp dword [esi], 3
jne 0x48d94f
xor ebx, ebx
inc ebx
cmp byte [esi + 0x10], 0
je 0x48d945
push eax
push ebx
push 3
push 0x4d588d
call fcn.00495039
add esp, 0x10
push dword [esi + 4]
mov byte [esi + 0x10], 0
push ebx
jmp 0x48d91b
mov edi, dword [ebp + 0xc]
push 2
pop ecx
cmp edi, dword [esi + 0xc]
jbe 0x48d984
push dword [esi + 8]
mov dword [esi + 0xc], edi
call fcn.0049075e
xor ecx, ecx
lea eax, [edi + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004907d4
pop ecx
pop ecx
push 2
mov dword [esi + 8], eax
pop ecx
xor ebx, ebx
inc ebx
cmp byte [esi + 0x10], 0
je 0x48d9b1
mov eax, dword [esi]
cmp eax, ebx
je 0x48d997
cmp eax, ecx
jne 0x48d9ad
push dword [esi + 4]
imul eax, eax, 3
push ebx
push ecx
add eax, 0x4d5884
push eax
call fcn.00495039
add esp, 0x10
mov byte [esi + 0x10], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
add eax, edi
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
call fcn.0048daa5
mov edi, dword [esi + 8]
jmp 0x48da5e
cmp dword [ebp - 0x14], 0
jne 0x48da56
mov eax, dword [ebp - 0x10]
cmp eax, 0x10000
jl 0x48da3b
add eax, 0xffff0000
mov ecx, eax
sar ecx, 0xa
add ecx, 0xd800
cmp dword [esi], ebx
jne 0x48da0d
movzx edx, cl
shl edx, 8
sar ecx, 8
add edx, ecx
jmp 0x48da0f
mov edx, ecx
mov word [edi], dx
and eax, 0x3ff
push 2
pop edx
add edi, edx
add eax, 0xdc00
cmp dword [esi], ebx
jne 0x48da32
movzx ecx, al
shl ecx, 8
sar eax, 8
add ecx, eax
jmp 0x48da34
mov ecx, eax
mov word [edi], cx
add edi, edx
jmp 0x48da56
cmp dword [esi], ebx
jne 0x48da4c
movzx ecx, al
shl ecx, 8
sar eax, 8
add ecx, eax
jmp 0x48da4e
mov ecx, eax
push 2
pop eax
mov word [edi], cx
add edi, eax
lea ecx, [ebp - 0x18]
call fcn.0048daa5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jbe 0x48d9dc
push dword [esi + 4]
sub edi, dword [esi + 8]
push ebx
push edi
push dword [esi + 8]
call fcn.00495039
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8