joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e156
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004b009e
mov dword [ebp - 0xc], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00499ca8
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call fcn.004b007c
add esp, 0x10
call fcn.0049f6f8
test al, al
je 0x49e1b0
push eax
push esp
push edx
push edi
pop edx
pop esp
pop edi
push eax
push ebx
push esp
pop esi
pop ecx
pop ebx
push esp
push edi
push ebp
push edx
pop ebp
push esp
push ecx
pop edi
push edi
pop ecx
push ecx
pop ebx
call fcn.0049f782
test al, al
je 0x49e1cf
pop eax
pop edx
push esi
pop ebp
pop ebp
pop ebp
push eax
pop ebp
push edi
pop eax
pop ecx
push edx
push ebp
pop esp
pop eax
pop ecx
pop ebp
pop ecx
pop ebp
pop esi
pop ebp
push eax
call fcn.0049f9aa
test al, al
je 0x49e1eb
push esi
push ecx
push esi
push edi
push esp
pop edx
push esi
push ebp
pop ecx
pop eax
pop ebx
pop edi
push ebx
push esi
push esp
pop esi
pop edx
push esp
pop edx
mov eax, dword [ebp - 0xc]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 8], ebx
test eax, eax
js 0x49e293
mov esi, dword [ebp - 4]
cmp word [esi + ebx*2], 0x5c
jne 0x49e284
call fcn.0049f920
test al, al
je 0x49e22f
push ecx
push esp
push esi
push ebx
push edx
pop esi
pop ebx
pop esp
pop edi
pop eax
pop esi
pop edx
pop esp
pop esi
pop esp
pop ebp
push ebx
pop edi
pop edx
pop ebx
pop esi
push eax
pop ecx
push ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.0049f920
test al, al
je 0x49e25c
push edi
pop ecx
push ecx
pop esi
push ebx
pop ebp
push edx
pop esp
pop esi
push edx
pop ebx
push ecx
push esp
pop ebp
pop edi
pop edi
pop ebp
pop edi
pop esp
pop ecx
push edx
pop edx
push ecx
push esp
pop eax
pop ebp
push esp
push eax
push esp
pop edi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
movzx edi, word [esi + ebx*2]
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49e27d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x49e2a5
mov eax, dword [ebp - 0xc]
mov word [esi + ebx*2], di
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x49e201
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.00499ca3
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x49e293
Function at 0x49e2a9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.0049ecea
lea eax, [ebp - 0x20c]
push eax
call fcn.004b009e
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.0049f6f8
test al, al
je 0x49e317
push esp
pop eax
pop edi
push ebx
push ecx
pop esi
pop eax
pop edx
pop edx
push esp
pop eax
pop esp
pop ebx
push edx
pop ecx
pop edi
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x49e441
mov esi, 0x4fe070
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b000b
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004b000b
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004b000b
add esp, 0x18
call fcn.0049f5e4
test al, al
je 0x49e373
pop edx
push ebx
push edx
push ecx
push esi
push ebp
pop esi
push edx
push esp
push ecx
pop esi
pop eax
pop ebx
push eax
pop ebp
push edx
pop edx
push eax
pop ebp
push ebx
push ecx
pop ebx
push ebx
call fcn.0049f48b
test al, al
je 0x49e392
pop ebp
pop esp
push edi
push eax
push ebp
push edx
pop edi
push edx
pop ebp
push esi
push ecx
pop edi
pop esp
pop edi
pop eax
pop esi
pop ebx
pop esi
pop esi
pop esi
push edx
pop esi
call fcn.0049f782
test al, al
je 0x49e3bb
push edi
pop edx
push edi
pop esi
pop ecx
push esi
pop esi
push eax
push ecx
pop esp
pop ecx
pop eax
pop ebp
pop ecx
push ebx
pop ebp
pop ecx
push eax
pop edi
push ebp
push ecx
pop ecx
push ebx
push esi
pop esi
push esi
push ecx
pop esi
pop edi
pop eax
pop esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49e3d9
lea eax, [ebp - 0x20c]
push eax
call fcn.0049e156
pop ecx
call fcn.0049f80c
test al, al
je 0x49e3f3
pop ebx
pop esi
pop esi
push esi
pop eax
push esi
push eax
pop edx
push ecx
pop ecx
pop ebx
push edi
push ebx
pop ebx
push esi
pop esp
pop ebp
call fcn.0049fb8d
test al, al
je 0x49e413
pop edi
pop ecx
pop ebx
pop edx
pop esi
pop ebp
push esi
push edi
pop edi
push edi
pop edx
push ebx
push esi
pop eax
pop ebp
push ebp
push edi
push ebx
pop esi
pop edi
push ecx
push eax
pop ebx
cmp word [ebp - 0x20c], 0
jne 0x49e421
xor eax, eax
jmp 0x49e42e
lea eax, [ebp - 0x20c]
push eax
call fcn.004b009e
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x49e69b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x51dfa0], 0
push ebx
push esi
push edi
je 0x49e6fd
call fcn.0049f80c
test al, al
je 0x49e6d4
pop ebx
pop esi
pop esi
push esi
pop eax
push esi
push eax
pop edx
push ecx
pop ecx
pop ebx
push edi
push ebx
pop ebx
push esi
pop esp
pop ebp
call fcn.0049fb8d
test al, al
je 0x49e842
pop edi
pop ecx
pop ebx
pop edx
pop esi
pop ebp
push esi
push edi
pop edi
push edi
pop edx
push ebx
push esi
pop eax
pop ebp
push ebp
push edi
push ebx
pop esi
pop edi
push ecx
push eax
pop ebx
jmp 0x49e842
call fcn.0049f851
test al, al
je 0x49e724
push edi
push edi
push ebp
pop edi
push esi
pop ebx
pop ecx
push ecx
push edi
push esp
pop ecx
pop esi
pop esp
push esi
pop esi
push ecx
push esi
pop edi
pop esi
pop ebp
push edx
push eax
pop edx
pop edx
push edi
push edx
push edi
push esi
pop ebp
pop esi
call fcn.0049fa79
test al, al
je 0x49e741
push esp
pop esp
push esp
pop edx
push edx
pop edi
pop edi
pop eax
push ebx
push ecx
pop ecx
push ebx
push ebx
pop edi
pop ebp
pop ebx
push ecx
push edi
pop ebp
push edi
call fcn.0049f9ef
test al, al
je 0x49e769
pop esi
pop esp
pop edi
push edx
push ecx
push edi
push edi
pop ecx
push eax
push ebx
push ebp
push eax
push eax
pop ebx
push esp
pop ecx
push esp
pop ecx
pop ebx
push esp
pop edx
pop edx
push ecx
pop edi
pop edi
push ebp
pop esi
pop esi
push ebx
pop eax
pop esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004a35f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x49e7d9
lea eax, [ebp - 0x20c]
push eax
call fcn.004b0262
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.004a2254
pop ecx
pop ecx
test eax, eax
jne 0x49e7d2
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.004a2254
pop ecx
pop ecx
test eax, eax
je 0x49e7d9
mov byte [0x51dfa0], 1
call fcn.0049f59f
test al, al
je 0x49e800
push ebp
pop ebp
pop edi
push edx
pop ebx
push esi
pop ecx
pop edi
pop edi
pop esp
pop eax
push ecx
push ecx
pop esi
push edi
push edx
push esi
pop esp
push eax
pop ebp
push edi
push esi
pop ecx
pop ebp
pop eax
push esp
pop ecx
pop edi
pop eax
pop esp
call fcn.0049f4d0
test al, al
je 0x49e81d
pop esi
pop ebx
pop ecx
pop edx
pop edx
push eax
pop ebp
pop ebp
push esi
push ebp
push ebx
pop edx
push edx
push esp
pop edx
push edi
pop ebx
pop edx
pop ecx
push ecx
call fcn.0049fb48
test al, al
je 0x49e842
push eax
pop edi
pop edi
pop ecx
push edx
pop edx
push eax
push esi
pop esi
pop eax
push esi
push edx
push edi
push ebp
pop esi
push esi
pop ecx
push ebp
pop esp
push edx
push ecx
pop edi
pop esp
pop edi
pop ebp
push ebp
push ecx
push esi
mov ecx, dword [ebp - 4]
mov al, byte [0x51dfa0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x49f060
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.0049f7c7
test al, al
je 0x49f087
push ebx
pop eax
pop edx
pop ebp
pop edi
push edi
pop edi
push eax
push esp
push edi
pop esi
pop ebx
pop esi
pop eax
push ebp
pop ebx
push esi
push ecx
pop edx
pop ebx
call fcn.0049f7c7
test al, al
je 0x49f0a8
push esi
push edx
push edi
push eax
pop esi
push edx
push esp
pop esp
push edx
pop edi
pop edi
push ebp
pop edx
pop eax
push ecx
pop ebx
push ecx
pop ecx
push eax
pop esi
push ebx
push ebp
pop esp
push ebx
push dword [ebp + 8]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
pop edi
sbb eax, eax
inc eax
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49ff61
Capabilities:
Enumerate processes

Disassembly:
push 0x280
mov eax, 0x4e5fb8
call fcn.004bd677
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x28c], ebx
test eax, eax
je 0x4a014f
push eax
lea ecx, [ebp - 0x40]
call fcn.00403200
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
call fcn.004a1382
mov dword [esp], 0x22c
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.004a35f0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x28c], edi
cmp edi, 0xffffffff
je 0x4a013f
call fcn.0049f80c
test al, al
je 0x49ffe4
pop ebp
push ecx
push ebp
push esi
pop ecx
push ebp
pop ebp
push ebp
push edi
push edx
push edx
pop esi
push ecx
pop esi
push ebx
push edx
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4a00c0
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp word [ebp - 0x260], ax
je 0x4a0027
lea eax, [ebp - 0x260]
push eax
call fcn.004b009e
pop ecx
push eax
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403330
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.004a1382
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405430
test eax, eax
je 0x4a007b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004a1176
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
or ebx, 1
call fcn.00405430
mov byte [ebp - 0x285], 0
test eax, eax
jne 0x4a0082
mov byte [ebp - 0x285], 1
test bl, 1
je 0x4a0096
push 0
push 1
lea ecx, [ebp - 0x58]
and ebx, 0xfffffffe
call fcn.00403270
cmp byte [ebp - 0x285], 0
jne 0x4a0155
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00403270
lea eax, [ebp - 0x284]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4a0000
call fcn.0049f6b3
test al, al
je 0x4a00eb
pop esp
pop esi
pop ecx
pop edx
pop edx
push ebx
push edx
push ebp
pop ecx
pop ebp
pop eax
pop esi
push ebx
pop esp
pop eax
push ebp
push esi
push esp
pop eax
push esi
push ebx
push eax
push esp
pop ecx
pop edi
push ebx
call fcn.0049f73d
test al, al
je 0x4a010a
push eax
pop esi
pop edx
push ebp
pop ebx
push ebx
pop eax
push ebx
push ebx
push eax
push edx
push esp
pop ecx
pop esi
push ebx
pop edi
push ebx
push ebx
push esp
pop ebp
pop esi
pop esp
call fcn.0049f851
test al, al
je 0x4a0133
push edi
push eax
pop ebx
pop ebx
push esp
pop ecx
push esi
pop eax
push edx
pop ecx
pop edi
push esp
pop esp
pop edx
push ebx
pop edx
push esi
pop ebx
push ecx
push eax
pop edi
pop eax
pop eax
pop edi
pop esi
push ebx
pop ecx
push ebp
push edx
pop ebp
push ebp
push ebp
push dword [ebp - 0x28c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00403270
mov eax, esi
call fcn.004bd632
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x28]
push 0
push 1
call fcn.00403270
jmp 0x4a0141
Function at 0x4b2280
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b20ff

Function at 0x4b6154
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b5e14

Function at 0x4bfef0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6268
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403430
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004c01c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4bff75
test al, 0x10
je 0x4bff75
mov bl, 1
jmp 0x4bff77
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4bff93
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403800
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov al, bl
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x4c0300
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6301
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
push 0x20
lea eax, [ebp - 0x30]
push eax
push 0x59
push edi
call esi
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x5a
push edi
call esi
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
cmp word [ebp - 0x30], ax
jne 0x4c0388
xor ecx, ecx
jmp 0x4c039f
lea ecx, [ebp - 0x30]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c0390
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
call fcn.00403330
mov dword [ebp - 4], 1
lea eax, [ebp - 0x68]
mov esi, dword [ebp - 0x54]
cmp esi, 8
mov edi, dword [ebp - 0x68]
push 2
push 0x4fb814
push dword [ebp - 0x58]
cmovae eax, edi
push eax
call fcn.00405470
add esp, 0x10
test eax, eax
jne 0x4c03e7
push 0x4fb7f4
mov ecx, ebx
call fcn.00403200
jmp 0x4c040f
push 2
push 0x4fb81c
push dword [ebp - 0x58]
cmp esi, 8
lea eax, [ebp - 0x68]
cmovae eax, edi
push eax
call fcn.00405470
add esp, 0x10
mov ecx, ebx
push str.Chinese
call fcn.00403200
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x4c042f
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00403800
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], eax
mov word [ebp - 0x68], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push dword [0x51f2f8]
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x1b4
mov edx, dword [esi + 0x224]
movzx eax, word [esi + 0x234]
inc edx
imul edx, eax
mov dword [ebp - 0xc], edx
call fcn.004a8f05
push dword [0x51f2f8]
mov dword [0x51f2ec], eax
push 0xffffffffffffffff
push eax
call fcn.004a35f0
add esp, 0x10
push 0
push 0
push 0x4c
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 0x1b4
push dword [0x51f2ec]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0x1b4
jae 0x4c56e9
push str.Premature_end_of_file_encountered_while_building_the_Master_SAT.
call fcn.004076b0
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push edi
xor edi, edi
cmp dword [esi + 0x228], edi
jbe 0x4c578b
mov ecx, dword [ebp - 0xc]
nop dword [eax + eax]
cmp byte [0x51f324], 1
je 0x4c57c2
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
movzx eax, word [esi + 0x234]
sub eax, 4
shr ecx, 2
push eax
mov eax, dword [0x51f2ec]
lea eax, [eax + ecx*4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [esi + 0x234]
mov ecx, dword [ebp - 8]
sub eax, 4
add dword [ebp - 0x10], ecx
cmp ecx, eax
jb 0x4c57a0
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 4
jb 0x4c57a0
mov ecx, dword [ebp - 0xc]
inc edi
movzx eax, word [esi + 0x234]
inc ecx
imul ecx, eax
mov dword [ebp - 0xc], ecx
cmp edi, dword [esi + 0x228]
jb 0x4c5700
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push str.Premature_end_of_file_encountered_while_building_the_Master_SAT.
call fcn.004076b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x210]
call fcn.004a51e5
push dword [esi + 0x20c]
call fcn.004a51e5
push dword [esi + 0x208]
call fcn.004a51e5
push esi
call fcn.004a51e5
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 2
pop edi
pop esi
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x51f2f4]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
call fcn.004a8f05
push dword [0x51f2f4]
mov dword [edi + 0x208], eax
push 0xffffffffffffffff
push eax
call fcn.004a35f0
add esp, 0x10
xor esi, esi
cmp dword [edi + 0x214], ebx
jbe 0x4c58d4
nop
cmp byte [0x51f324], 1
je 0x4c592d
mov eax, dword [0x51f2ec]
mov ecx, dword [eax + esi*4]
test ecx, ecx
js 0x4c590b
movzx eax, word [edi + 0x234]
inc ecx
push 0
imul ecx, eax
push 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
mov ecx, ebx
push eax
movzx eax, word [edi + 0x234]
push eax
mov eax, dword [edi + 0x208]
shr ecx, 2
lea eax, [eax + ecx*4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [edi + 0x234]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], eax
jb 0x4c58e9
inc esi
cmp esi, dword [edi + 0x214]
jb 0x4c5860
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push str.Premature_end_of_file_encountered_while_building_the_SAT.
call fcn.004076b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push str.Invalid_Master_SAT_termination_index.
call fcn.004076b0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x210]
call fcn.004a51e5
push dword [edi + 0x20c]
call fcn.004a51e5
push dword [edi + 0x208]
call fcn.004a51e5
push edi
call fcn.004a51e5
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 2
pop edi
pop esi
pop ebx
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
Function at 0x4c5970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp dword [esi + 0x208], 0
jne 0x4c59cd
push dword [esi + 0x210]
call fcn.004a51e5
push dword [esi + 0x20c]
call fcn.004a51e5
push dword [esi + 0x208]
call fcn.004a51e5
push esi
call fcn.004a51e5
add esp, 0x10
mov al, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
movzx eax, word [esi + 0x234]
push ebx
mov ebx, dword [esi + 0x21c]
push edi
push dword [0x51f2f0]
mov dword [ebp - 8], 0
lea edi, [ebx + 1]
mov dword [ebp - 0x10], 0
imul edi, eax
mov byte [ebp - 9], 0
call fcn.004a8f05
push dword [0x51f2f0]
mov dword [esi + 0x20c], eax
push 0xffffffffffffffff
push eax
call fcn.004a35f0
add esp, 0x10
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x220], 0
jbe 0x4c5aed
nop word [eax + eax]
cmp byte [0x51f324], 1
je 0x4c5b46
test ebx, ebx
js 0x4c5b24
movzx eax, word [esi + 0x234]
shr eax, 2
imul eax, dword [esi + 0x214]
cmp ebx, eax
jle 0x4c5a6b
push str.SAT_index_out_of_bounds.
call fcn.004076b0
add esp, 4
mov byte [ebp - 9], 1
push 0
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebp - 9], 0
jne 0x4c5a93
mov eax, dword [esi + 0x208]
mov edi, dword [eax + ebx*4]
movzx eax, word [esi + 0x234]
inc edi
imul edi, eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
movzx eax, word [esi + 0x234]
push eax
mov eax, dword [esi + 0x20c]
shr ecx, 2
lea eax, [eax + ecx*4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 8]
movzx eax, word [esi + 0x234]
add dword [ebp - 0x10], ecx
cmp ecx, eax
jb 0x4c5b02
cmp byte [ebp - 9], 1
je 0x4c5b31
mov eax, dword [esi + 0x208]
mov ebx, dword [eax + ebx*4]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [esi + 0x220]
jb 0x4c5a30
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push str.Premature_end_of_file_encountered_while_building_the_Short_SAT.
call fcn.004076b0
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push str.Invalid_SAT_termination_index.
call fcn.004076b0
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4
push dword [esi + 0x210]
call fcn.004a51e5
push dword [esi + 0x20c]
call fcn.004a51e5
push dword [esi + 0x208]
call fcn.004a51e5
push esi
call fcn.004a51e5
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 2
pop edi
pop ebx
pop esi
call fcn.00499a52
mov esp, ebp
pop ebp
ret 4