joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419550
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a3a50], ebx
push esi
push edi
jne 0x4195d0
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41960b
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4a3a50], eax
je 0x41960b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a3a54], eax
call esi
cmp dword [0x4a3624], 2
mov dword [0x4a3a58], eax
jne 0x4195d0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a3a60], eax
je 0x4195d0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a3a5c], eax
mov eax, dword [0x4a3a5c]
test eax, eax
je 0x419615
call eax
test eax, eax
je 0x4195fc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a3a60]
test eax, eax
je 0x4195fc
test byte [ebp - 8], 1
jne 0x419615
cmp dword [0x4a3630], 4
jb 0x41960f
or byte [ebp + 0x12], 0x20
jmp 0x419634
xor eax, eax
jmp 0x419644
or byte [ebp + 0x12], 4
jmp 0x419634
mov eax, dword [0x4a3a54]
test eax, eax
je 0x419634
call eax
mov ebx, eax
test ebx, ebx
je 0x419634
mov eax, dword [0x4a3a58]
test eax, eax
je 0x419634
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a3a50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419f66
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x493ea0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x419f97
xor eax, eax
jmp 0x41a120
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4a6500]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x419fd3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041bdd7
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a0ae
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41a0ec
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41a037
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a028
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41a008
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x41a077
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41a080
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x419ff9
jmp 0x41a082
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41a11b
cmp dword [ebp - 0x6c], edi
je 0x41a0ec
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41a0e1
call fcn.00412ffe
mov dword [eax], 9
call fcn.00413007
mov dword [eax], esi
jmp 0x41a116
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x41a0d6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41a082
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41a082
push dword [ebp - 0x6c]
call fcn.00413010
pop ecx
jmp 0x41a116
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a104
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41a104
xor eax, eax
jmp 0x41a11e
call fcn.00412ffe
mov dword [eax], 0x1c
call fcn.00413007
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41a11e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00410507
add ebp, 0x3a0
leave
ret
Function at 0x41a5d9
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41a607
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
test eax, eax
je 0x41a60c
cmp eax, 1
je 0x41a60c
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41a610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x493ea0]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41a688
push ebx
call fcn.0041a5d9
test eax, eax
pop ecx
jne 0x41a657
call fcn.00413007
mov dword [eax], 0xf
call fcn.00412ffe
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00410507
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x41a69a
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41a64a
inc eax
cmp eax, 0x104
ja 0x41a64a
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41a6d2
cmp eax, dword [ebp + 0x10]
jg 0x41a6b5
mov eax, dword [ebp + 0x10]
push eax
call fcn.00411889
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41a6e7
call fcn.00412ffe
mov dword [eax], 0xc
jmp 0x41a64a
cmp eax, dword [ebp + 0x10]
jle 0x41a6e7
call fcn.00412ffe
mov dword [eax], 0x22
jmp 0x41a64a
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00418380
pop ecx
pop ecx
jmp 0x41a64c
Function at 0x41c0fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41c2d2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a6500]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41c2d2
test cl, 0x48
je 0x41c169
cmp byte [eax + 5], 0xa
je 0x41c169
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x41c1bb
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41c1a3
call fcn.00412ffe
mov dword [eax], 9
call fcn.00413007
mov dword [eax], esi
jmp 0x41c1b3
cmp eax, 0x6d
je 0x41c2d2
push eax
call fcn.00413010
pop ecx
or eax, 0xffffffff
jmp 0x41c2d4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41c2cd
test eax, eax
je 0x41c1e2
cmp byte [ebx], 0xa
jne 0x41c1e2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c1eb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41c2c7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c2b7
cmp al, 0xd
je 0x41c21d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41c2a9
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41c237
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41c232
add dword [ebp + 0x10], 2
jmp 0x41c28b
mov dword [ebp + 0x10], eax
jmp 0x41c2a5
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x41c25f
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x41c2a5
cmp dword [ebp - 0xc], 0
je 0x41c2a5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c280
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c28b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c2a8
cmp ebx, dword [ebp + 0xc]
jne 0x41c290
cmp byte [ebp - 1], 0xa
jne 0x41c290
mov byte [ebx], 0xa
jmp 0x41c2a8
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419e47
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41c2a9
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41c201
jmp 0x41c2c7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c2c7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41c2d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41cd2f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41cd48
or eax, 0xffffffff
jmp 0x41cda9
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41cda5
push 0x3d
push esi
call fcn.004122c8
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41cda5
cmp esi, eax
je 0x41cda5
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4a3644]
sete cl
cmp eax, dword [0x4a3648]
mov dword [ebp - 8], ecx
jne 0x41cd8b
mov edi, eax
call fcn.0041ccce
mov dword [0x4a3644], eax
cmp eax, ebx
jne 0x41cde4
cmp dword [ebp + 0xc], ebx
je 0x41cdad
cmp dword [0x4a364c], ebx
je 0x41cdad
call fcn.0041c3d2
test eax, eax
je 0x41cde4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41cdb6
xor eax, eax
jmp 0x41cda8
push 4
call fcn.00411889
cmp eax, ebx
pop ecx
mov dword [0x4a3644], eax
je 0x41cda5
mov dword [eax], ebx
cmp dword [0x4a364c], ebx
jne 0x41cde4
push 4
call fcn.00411889
cmp eax, ebx
pop ecx
mov dword [0x4a364c], eax
je 0x41cda5
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4a3644]
call fcn.0041cc81
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41ce45
cmp dword [esi], ebx
je 0x41ce45
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004110a6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41ce28
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41ce86
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41ce1f
mov eax, edi
shl eax, 2
push eax
push dword [0x4a3644]
call fcn.00412343
cmp eax, ebx
pop ecx
pop ecx
je 0x41ce86
jmp 0x41ce81
cmp dword [ebp - 8], ebx
jne 0x41cef1
cmp edi, ebx
jge 0x41ce54
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a3644]
call fcn.00412343
cmp eax, ebx
pop ecx
pop ecx
je 0x41cda5
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4a3644], eax
cmp dword [ebp + 0xc], ebx
je 0x41cedb
push dword [ebp - 4]
call fcn.00412110
inc eax
inc eax
push eax
call fcn.00411889
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41cedb
push dword [ebp - 4]
push esi
call fcn.00418380
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41ced4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004110a6
pop ecx
cmp dword [ebp - 8], ebx
je 0x41cee9
push dword [ebp - 4]
call fcn.004110a6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41cda8
push dword [ebp - 4]
call fcn.004110a6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41cdb2
Function at 0x41d090
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0
push 0
push ebp
mov edi, ecx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov esi, eax
xor ebx, ebx
test esi, esi
jne 0x41d0bd
mov ecx, edi
call fcn.004041a0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 4
mov eax, dword [edi]
mov edx, dword [eax - 4]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, esi
or ecx, edx
jge 0x41d0dd
push esi
mov ecx, edi
call fcn.00402aa0
mov eax, dword [edi]
push esi
push eax
push ebp
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov ecx, dword [edi]
test ecx, ecx
jne 0x41d0f2
xor eax, eax
jmp 0x41d102
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41d0f7
sub eax, esi
js 0x41d11e
cmp eax, dword [ecx - 8]
jg 0x41d11e
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
pop edi
pop esi
mov ebx, 1
mov byte [eax + ecx], 0
pop ebp
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00401410
int3
Function at 0x41d410
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x473268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov esi, dword [esp + 0x20]
test esi, esi
mov dword [esp + 0x18], 0
jne 0x41d451
lea esi, [esp + 8]
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x41d45d
lea edi, [esp + 0xc]
push str._DS_PROTECTED_
mov ecx, esi
call fcn.0041d090
test eax, eax
jmp 0x41d48e
push str.USERNAME
mov ecx, esi
call fcn.0041d090
test eax, eax
je 0x41d616
mov esi, dword [esi]
push str.DEFAULT
push esi
call fcn.004161c6
add esp, 8
test eax, eax
je 0x41d4ef
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d4dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
push str.EXPIRED
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.0041d090
test eax, eax
je 0x41d578
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d53c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 2
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x14
ret
call fcn.004684ee
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [0x4a3aec]
test eax, eax
mov byte [esp + 0x18], 2
mov eax, str.USESLEFT
jne 0x41d5a3
mov eax, str.DAYSLEFT
push eax
lea ecx, [esp + 0x28]
call fcn.00405170
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call fcn.0041d090
test eax, eax
je 0x41d5ff
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004117dd
add esp, 4
lea ecx, [esp + 0x24]
mov dword [edi], eax
call fcn.00402fe0
lea ecx, [esp + 0x20]
call fcn.00402fe0
lea ecx, [esp + 8]
call fcn.00402fe0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret
lea ecx, [esp + 0x24]
call fcn.00402fe0
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402fe0
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.System_fault__the_application_will_be_shut_down_immediately_
call fcn.004061f0
call fcn.0041d370
add esp, 4
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x42c860
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [0x4a4018]
mov ebx, eax
mov al, byte [0x4a3bf8]
mov byte [ebp], al
mov eax, dword [0x4a4014]
push esi
mov esi, dword [eax + 4]
lea edx, [esi + 2]
cmp ebp, edx
mov ecx, ebp
jae 0x42c8d6
mov ecx, dword [eax + 0xc]
mov edx, dword [0x4a3c00]
push edi
lea edi, [ecx + esi + 2]
lea ecx, [esi + edx + 2]
cmp ecx, esi
jbe 0x42c8ac
lea ebx, [ebx]
mov dl, byte [ecx - 1]
dec ecx
dec edi
mov byte [edi], dl
cmp ecx, dword [eax + 4]
ja 0x42c8a0
mov edx, edi
sub edx, ecx
lea ecx, [edx + ebp]
add ebx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [eax + 4]
add eax, 2
cmp ecx, eax
mov dword [0x4a3c00], edx
pop edi
jae 0x42c8d6
mov eax, str.flex_scanner_push_back_overflow
jmp 0x4301a0
mov dl, byte [esp + 0x10]
dec ecx
mov byte [ecx], dl
pop esi
mov dword [0x4a70a0], ebx
mov al, byte [ecx]
pop ebp
mov byte [0x4a3bf8], al
mov dword [0x4a4018], ecx
pop ebx
ret

Function at 0x42c950
Capabilities:
Terminate process

Disassembly:
push esi
push 0x28
call fcn.00411889
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c96b
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4301a0
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
add eax, 2
push eax
call fcn.00411889
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x42c98f
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4301a0
mov eax, dword [esp + 8]
push eax
push esi
mov dword [esi + 0x14], 1
call fcn.0042c900
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x42cb10
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x4a3c00]
push esi
mov esi, dword [0x4a4014]
mov eax, dword [esi + 4]
lea edx, [eax + ecx + 1]
mov ecx, dword [0x4a4018]
cmp ecx, edx
push edi
mov edi, dword [0x4a70a0]
jbe 0x42cb3f
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
jmp 0x4301a0
mov edx, dword [esi + 0x20]
test edx, edx
jne 0x42cb54
sub ecx, edi
xor eax, eax
cmp ecx, 1
setne al
pop edi
pop esi
inc eax
ret
push ebx
push ebp
mov ebp, ecx
sub ebp, edi
dec ebp
test ebp, ebp
jle 0x42cb6a
mov edx, ebp
mov bl, byte [edi]
mov byte [eax], bl
inc eax
inc edi
dec edx
jne 0x42cb61
cmp dword [esi + 0x24], 2
jne 0x42cb7f
xor eax, eax
mov dword [0x4a3c00], eax
mov dword [esi + 0x10], eax
jmp 0x42cc13
mov eax, dword [esi + 0xc]
sub eax, ebp
dec eax
test eax, eax
jg 0x42cbed
lea esp, [esp]
mov eax, dword [esi + 4]
lea edi, [esi + 4]
sub ecx, eax
mov ebx, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42cbce
mov ecx, dword [esi + 0xc]
lea edx, [ecx + ecx]
test edx, edx
jg 0x42cbb2
mov edx, ecx
shr edx, 3
add edx, ecx
mov dword [esi + 0xc], edx
mov esi, edx
add esi, 2
push esi
push eax
call fcn.00412343
mov esi, dword [0x4a4014]
add esp, 8
mov dword [edi], eax
jmp 0x42cbd4
mov dword [edi], 0
mov edi, dword [edi]
test edi, edi
je 0x42cc38
mov eax, dword [esi + 0xc]
sub eax, ebp
dec eax
test eax, eax
lea ecx, [edi + ebx]
mov dword [0x4a4018], ecx
jle 0x42cb90
cmp eax, 0x2000
jle 0x42cbf9
mov eax, 0x2000
mov ecx, dword [esi + 4]
add ecx, ebp
push ecx
call fcn.0042c410
add esp, 4
test eax, eax
mov dword [0x4a3c00], eax
mov dword [esi + 0x10], eax
jne 0x42cc4c
test ebp, ebp
jne 0x42cc42
mov edx, dword [0x4a4020]
push edx
mov edi, 1
call fcn.0042c9b0
mov esi, dword [0x4a4014]
mov eax, dword [0x4a3c00]
add esp, 4
jmp 0x42cc4e
mov eax, str.fatal_error___scanner_input_buffer_overflow
jmp 0x4301a0
mov edi, 2
mov dword [esi + 0x24], edi
jmp 0x42cc4e
xor edi, edi
mov ecx, dword [esi + 4]
add eax, ebp
mov byte [eax + ecx], 0
mov edx, dword [esi + 4]
mov byte [eax + edx + 1], 0
mov dword [0x4a3c00], eax
mov eax, dword [esi + 4]
pop ebp
pop ebx
mov dword [0x4a70a0], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4303f0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
mov ebp, dword [0x4a4c60]
mov ebx, eax
mov al, byte [0x4a4840]
mov byte [ebp], al
mov eax, dword [0x4a4c5c]
push esi
mov esi, dword [eax + 4]
lea edx, [esi + 2]
cmp ebp, edx
mov ecx, ebp
jae 0x430466
mov ecx, dword [eax + 0xc]
mov edx, dword [0x4a4848]
push edi
lea edi, [ecx + esi + 2]
lea ecx, [esi + edx + 2]
cmp ecx, esi
jbe 0x43043c
lea ebx, [ebx]
mov dl, byte [ecx - 1]
dec ecx
dec edi
mov byte [edi], dl
cmp ecx, dword [eax + 4]
ja 0x430430
mov edx, edi
sub edx, ecx
lea ecx, [edx + ebp]
add ebx, edx
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [eax + 4]
add eax, 2
cmp ecx, eax
mov dword [0x4a4848], edx
pop edi
jae 0x430466
mov eax, str.flex_scanner_push_back_overflow
jmp 0x4301a0
mov dl, byte [esp + 0x10]
dec ecx
mov byte [ecx], dl
pop esi
mov dword [0x4a7090], ebx
mov al, byte [ecx]
pop ebp
mov byte [0x4a4840], al
mov dword [0x4a4c60], ecx
pop ebx
ret

Function at 0x4304e0
Capabilities:
Terminate process

Disassembly:
push esi
push 0x28
call fcn.00411889
mov esi, eax
add esp, 4
test esi, esi
jne 0x4304fb
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4301a0
mov eax, dword [esp + 0xc]
mov dword [esi + 0xc], eax
add eax, 2
push eax
call fcn.00411889
add esp, 4
test eax, eax
mov dword [esi + 4], eax
jne 0x43051f
mov eax, str.out_of_dynamic_memory_in_yy_create_buffer__
jmp 0x4301a0
mov eax, dword [esp + 8]
push eax
push esi
mov dword [esi + 0x14], 1
call fcn.00430490
add esp, 8
mov eax, esi
pop esi
ret
Function at 0x4306a0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x4a4848]
push esi
mov esi, dword [0x4a4c5c]
mov eax, dword [esi + 4]
lea edx, [eax + ecx + 1]
mov ecx, dword [0x4a4c60]
cmp ecx, edx
push edi
mov edi, dword [0x4a7090]
jbe 0x4306cf
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
jmp 0x4301a0
mov edx, dword [esi + 0x20]
test edx, edx
jne 0x4306e4
sub ecx, edi
xor eax, eax
cmp ecx, 1
setne al
pop edi
pop esi
inc eax
ret
push ebx
push ebp
mov ebp, ecx
sub ebp, edi
dec ebp
test ebp, ebp
jle 0x4306fa
mov edx, ebp
mov bl, byte [edi]
mov byte [eax], bl
inc eax
inc edi
dec edx
jne 0x4306f1
cmp dword [esi + 0x24], 2
jne 0x43070f
xor eax, eax
mov dword [0x4a4848], eax
mov dword [esi + 0x10], eax
jmp 0x4307a3
mov eax, dword [esi + 0xc]
sub eax, ebp
dec eax
test eax, eax
jg 0x43077d
lea esp, [esp]
mov eax, dword [esi + 4]
lea edi, [esi + 4]
sub ecx, eax
mov ebx, ecx
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x43075e
mov ecx, dword [esi + 0xc]
lea edx, [ecx + ecx]
test edx, edx
jg 0x430742
mov edx, ecx
shr edx, 3
add edx, ecx
mov dword [esi + 0xc], edx
mov esi, edx
add esi, 2
push esi
push eax
call fcn.00412343
mov esi, dword [0x4a4c5c]
add esp, 8
mov dword [edi], eax
jmp 0x430764
mov dword [edi], 0
mov edi, dword [edi]
test edi, edi
je 0x4307c8
mov eax, dword [esi + 0xc]
sub eax, ebp
dec eax
test eax, eax
lea ecx, [edi + ebx]
mov dword [0x4a4c60], ecx
jle 0x430720
cmp eax, 0x2000
jle 0x430789
mov eax, 0x2000
mov ecx, dword [esi + 4]
add ecx, ebp
push ecx
call fcn.0042ff80
add esp, 4
test eax, eax
mov dword [0x4a4848], eax
mov dword [esi + 0x10], eax
jne 0x4307dc
test ebp, ebp
jne 0x4307d2
mov edx, dword [0x4a4c68]
push edx
mov edi, 1
call fcn.00430540
mov esi, dword [0x4a4c5c]
mov eax, dword [0x4a4848]
add esp, 4
jmp 0x4307de
mov eax, str.fatal_error___scanner_input_buffer_overflow
jmp 0x4301a0
mov edi, 2
mov dword [esi + 0x24], edi
jmp 0x4307de
xor edi, edi
mov ecx, dword [esi + 4]
add eax, ebp
mov byte [eax + ecx], 0
mov edx, dword [esi + 4]
mov byte [eax + edx + 1], 0
mov dword [0x4a4848], eax
mov eax, dword [esi + 4]
pop ebp
pop ebx
mov dword [0x4a7090], eax
mov eax, edi
pop edi
pop esi
ret