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

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
mov esi, ecx
je 0x4ae907
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 0
push eax
mov eax, dword [0x659a18]
push eax
call ebx
mov ecx, dword [0x659a18]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x214
push esi
call ebp
lea edi, [esi + 0x210]
add esp, 0x1c
mov dword [edi], 0
mov al, byte [0x8d8080]
test al, 1
jne 0x4ae864
mov dl, al
mov ecx, 0x8d80a0
or dl, 1
mov byte [0x8d8080], dl
call fcn.004aeac0
push fcn.00402b00
call fcn.0051c6ca
add esp, 4
push 0
lea edx, [esi + 0x88]
push 1
lea eax, [esi + 4]
push edx
push eax
push edi
call dword [0x8d80a0]
mov eax, dword [esi + 0x208]
add esp, 0x14
test eax, eax
jle 0x4ae8ee
mov eax, dword [esi + 0x20c]
test eax, eax
je 0x4ae8ee
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call ebx
mov edx, dword [esi + 0x208]
shl edx, 2
push edx
call fcn.00470b90
mov edx, dword [esi + 0x208]
mov dword [esi + 0x20c], eax
mov ecx, dword [0x659a18]
push ecx
push edx
push 4
push eax
call ebp
mov eax, dword [esi + 0x208]
add esp, 0x20
xor edi, edi
test eax, eax
jle 0x4ae8ee
mov eax, dword [esi + 0x20c]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.004abf80
mov eax, dword [esi + 0x208]
inc edi
cmp edi, eax
jl 0x4ae8d4
push 0
push 0
push 0x4aeaa0
push 0x5fe464
call fcn.00472a50
add esp, 0x10
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x4aed90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
push esi
push 0x56c118
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4aee06
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x20
lea ecx, [esp + 0x14]
push 1
push ecx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_fread]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push str.0x_x
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x28]
add esp, 0x20
pop edi
pop esi
add esp, 0x24
ret 4
mov eax, dword [esp + 4]
pop esi
add esp, 0x24
ret 4
Function at 0x4aef30
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000
call fcn.0051c710
mov eax, dword [esp + 0x1004]
push esi
test eax, eax
mov esi, ecx
je 0x4af055
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push ebp
push edi
push 0
push eax
mov eax, dword [0x659a18]
push eax
call ebx
mov ecx, dword [0x659a18]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 0x44
push esi
call ebp
mov edi, dword [esi + 8]
add esp, 0x1c
test edi, edi
je 0x4aef93
push 0x14
call sub.MFC42u.DLL_operatornew
add esp, 4
mov ecx, eax
mov dword [esi + 8], eax
push edi
call fcn.004aa4b0
mov eax, dword [esi + 0x2c]
test eax, eax
jle 0x4af042
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4af042
mov edx, dword [0x659a18]
push 0
push eax
push edx
call ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov eax, dword [0x659a18]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
lea edx, [esp + 0x24]
push 4
push edx
call ebp
mov eax, dword [esi + 0x2c]
mov ecx, eax
shl ecx, 5
add ecx, eax
lea edx, [eax + ecx*2]
shl edx, 2
push edx
call fcn.00470b90
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
add esp, 0x20
xor ebp, ebp
test eax, eax
jle 0x4af042
xor edi, edi
lea ebx, [esp + 0x10]
mov eax, dword [ebx]
mov ecx, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
add ecx, edi
call fcn.004aa7b0
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4af031
call fcn.0049d440
test eax, eax
je 0x4af031
mov ecx, dword [esi + 0x30]
add ecx, edi
call fcn.004aa830
mov eax, dword [esi + 0x2c]
inc ebp
add ebx, 4
add edi, 0x10c
cmp ebp, eax
jl 0x4af008
mov dword [esi + 0x3c], 0
mov ecx, dword [0x6b5f20]
pop edi
pop ebp
mov dword [esi + 0x40], ecx
pop ebx
pop esi
add esp, 0x1000
ret 4

Function at 0x4af810
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x10], esi
call fcn.0041b920
lea edi, [esi + 0xbc]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.0041b350
mov dword [edi + 0x10], ebx
mov word [esi + 0xd0], bx
mov word [esi + 0xd2], bx
or eax, 0xffffffff
mov word [esi + 0xd4], bx
mov word [esi + 0xd6], bx
mov word [esi + 0xda], bx
mov word [esi + 0xd8], bx
mov word [esi + 0xde], ax
mov word [esi + 0xdc], ax
mov dword [esi], 0x53ee44
mov ecx, dword [0x659a18]
push ecx
push 1
push 0x14
push edi
call dword [sym.imp.MSVCRT.dll_fread]
movsx edx, word [esi + 0x16]
movsx eax, word [esi + 0x12]
movsx ecx, word [esi + 0x14]
add esp, 0x10
sub edx, eax
inc edx
push edi
push edx
movsx edx, word [esi + 0x10]
sub ecx, edx
inc ecx
push ecx
mov ecx, 0x6b1228
call fcn.004af450
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x10]
or eax, 0x40000
pop edi
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4b5a30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi], eax
call fcn.004a81e0
xor eax, eax
or ecx, 0xffffffff
mov word [esi + 0x22], ax
mov word [esi + 0x20], ax
mov word [esi + 0x26], cx
mov word [esi + 0x24], cx
mov ecx, dword [esp + 8]
mov word [esi + 0x28], ax
mov word [esi + 0x2a], ax
mov edx, dword [0x659a18]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
lea ecx, [esi + 4]
push eax
push 1
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov eax, esi
pop esi
ret 8

Function at 0x4b72a0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x90]
test ecx, ecx
je 0x4b730a
mov eax, dword [esp + 8]
xor edx, edx
mov dl, ah
and eax, 0xff
push edi
push 0
lea edi, [eax + eax*2]
shl edi, 4
sub edi, eax
shl edi, 1
lea eax, [edx + edi - 0x3bbf]
shl eax, 5
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + 0x90]
mov edi, dword [esp + 0x1c]
push ecx
push 1
push 0x20
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
xor esi, esi
mov dl, byte [esi + edi]
push edx
call fcn.00470f50
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x4b72f4
pop edi
pop esi
ret 8
Function at 0x4b7310
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea ecx, [esp + 4]
mov dword [esp + 0xc], ebx
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [0x54acf4]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0x24], ebx
call fcn.004c3990
add esp, 8
test eax, eax
je 0x4b736d
mov edx, dword [esp + 4]
push 0x56a1d4
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
push ebx
push str.fpHzk24:_p
call fcn.00402b00
add esp, 8
test ebx, ebx
je 0x4b74d8
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
sub edx, 0xa0
sub eax, 0xaf
mov ecx, edx
push ebp
push esi
lea edx, [eax + eax*2]
push edi
shl edx, 4
sub edx, eax
push 0
lea eax, [ecx + edx*2 - 0x5f]
lea eax, [eax + eax*8]
shl eax, 3
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [esp + 0x40]
push ebx
push 1
push 0x48
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
xor esi, esi
mov al, byte [esi + edi]
push eax
call fcn.00470f50
add esp, 4
mov byte [esi + edi], al
inc esi
cmp esi, 0x48
jl 0x4b73d3
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
mov ebp, eax
cmp ecx, 0x48
mov dword [esp + 0x14], ebp
jge 0x4b74b6
mov edx, eax
and edx, 0x80000007
jns 0x4b7412
dec edx
or edx, 0xfffffff8
inc edx
lea ebx, [edx*4 + 0x659a34]
cdq
and edx, 7
add eax, edx
mov esi, eax
sar esi, 3
add esi, ecx
add esi, edi
jmp 0x4b7432
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, ecx
mov cl, byte [edi + eax]
add edi, eax
and ebp, 0x80000007
jns 0x4b7451
dec ebp
or ebp, 0xfffffff8
inc ebp
mov edx, dword [ebp*4 + 0x659a34]
lea ebp, [ebp*4 + 0x659a34]
mov eax, ecx
and eax, 0xff
and eax, edx
mov dl, byte [esi]
test byte [ebx], dl
mov dl, byte [ebp]
je 0x4b7477
or cl, dl
mov byte [edi], cl
jmp 0x4b747d
not dl
and dl, cl
mov byte [edi], dl
test eax, eax
je 0x4b748b
mov al, byte [ebx]
mov cl, byte [esi]
or cl, al
mov byte [esi], cl
jmp 0x4b7495
mov cl, byte [ebx]
mov al, byte [esi]
not cl
and al, cl
mov byte [esi], al
mov ebp, dword [esp + 0x14]
add esi, 3
inc ebp
cmp ebp, 0x18
mov dword [esp + 0x14], ebp
jl 0x4b742a
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
add ecx, 3
inc eax
cmp ecx, 0x48
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ecx
jl 0x4b73f4
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4b7e60
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
jne 0x4b7e6d
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x6b5c74], eax
jne 0x4b7e8e
push str.cannot_find_so_file_n
call fcn.0040e090
add esp, 4
xor al, al
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call esi
test eax, eax
mov dword [0x6b5c78], eax
jne 0x4b7eb5
mov eax, dword [0x6b5c74]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6b5c74]
push str.sqlite3_close
push ecx
call esi
test eax, eax
mov dword [0x6b5c7c], eax
jne 0x4b7edd
mov edx, dword [0x6b5c74]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6b5c74]
push str.sqlite3_exec
push eax
call esi
test eax, eax
mov dword [0x6b5c80], eax
jne 0x4b7f04
mov ecx, dword [0x6b5c74]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6b5c74]
push str.sqlite3_get_table
push edx
call esi
test eax, eax
mov dword [0x6b5c84], eax
jne 0x4b7f2b
mov eax, dword [0x6b5c74]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6b5c74]
push str.sqlite3_free
push ecx
call esi
test eax, eax
mov dword [0x6b5c8c], eax
jne 0x4b7f53
mov edx, dword [0x6b5c74]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6b5c74]
push str.sqlite3_free_table
push eax
call esi
test eax, eax
mov dword [0x6b5c88], eax
jne 0x4b7f7a
mov ecx, dword [0x6b5c74]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6b5c74]
push str.sqlite3_shutdown
push edx
call esi
test eax, eax
mov dword [0x6b5ca8], eax
jne 0x4b7fa1
mov eax, dword [0x6b5c74]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6b5c74]
push str.sqlite3_initialize
push ecx
call esi
test eax, eax
mov dword [0x6b5cb0], eax
jne 0x4b7fc9
mov edx, dword [0x6b5c74]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6b5c74]
push str.sqlite3_prepare_v2
push eax
call esi
test eax, eax
mov dword [0x6b5c94], eax
jne 0x4b7ff0
mov ecx, dword [0x6b5c74]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov edx, dword [0x6b5c74]
push str.sqlite3_step
push edx
call esi
test eax, eax
mov dword [0x6b5c98], eax
jne 0x4b8017
mov eax, dword [0x6b5c74]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov ecx, dword [0x6b5c74]
push str.sqlite3_errmsg
push ecx
call esi
test eax, eax
mov dword [0x6b5c9c], eax
jne 0x4b803f
mov edx, dword [0x6b5c74]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov eax, dword [0x6b5c74]
push str.sqlite3_finalize
push eax
call esi
test eax, eax
mov dword [0x6b5ca0], eax
jne 0x4b8066
mov ecx, dword [0x6b5c74]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
Function at 0x4b92d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call ebx
mov edx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
lea eax, [esp + 0x24]
push 4
push eax
call edi
mov eax, dword [esp + 0x2c]
mov word [esi], ax
and eax, 0xffff
shl eax, 1
push eax
call fcn.00470b90
mov dword [esi + 4], eax
mov ecx, dword [0x659a18]
xor edx, edx
push ecx
mov dx, word [esi]
push edx
push 2
push eax
call edi
mov eax, dword [0x659a34]
mov ecx, dword [esp + 0x44]
add esp, 0x30
test eax, ecx
je 0x4b935f
xor ecx, ecx
push 1
mov cx, word [esi]
and ecx, 0x80000001
jns 0x4b9350
dec ecx
or ecx, 0xfffffffe
inc ecx
mov edx, dword [0x659a18]
shl ecx, 1
push ecx
push edx
call ebx
add esp, 0xc
mov ecx, dword [esi + 4]
xor eax, eax
mov ax, word [esi]
push eax
push ecx
call fcn.004b9470
add esp, 8
mov byte [esi + 3], al
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b9380
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push esi
mov esi, ecx
push edi
mov ecx, dword [0x659a18]
push 0
push eax
push ecx
call ebx
mov edx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
lea eax, [esp + 0x28]
push 4
push eax
call edi
mov cx, word [esp + 0x30]
lea eax, [esp + 0x28]
mov word [esi], cx
mov edx, dword [0x659a18]
push edx
push 1
push 4
push eax
call edi
xor ecx, ecx
mov cx, word [esi]
shl ecx, 1
push ecx
call fcn.00470b90
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov eax, dword [0x659a18]
push 0
push edx
push eax
call ebx
mov ecx, dword [0x659a18]
mov eax, dword [esi + 4]
xor edx, edx
push ecx
mov dx, word [esi]
push edx
push 2
push eax
call edi
mov edx, dword [esi + 4]
xor ecx, ecx
mov cx, word [esi]
add esp, 0x4c
push ecx
push edx
call fcn.004b9470
add esp, 8
mov byte [esi + 3], al
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4b9fc0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
or eax, 0xffffffff
push 0
lea esi, [edi + 4]
lea ebx, [edi + 0xc]
mov word [esi + 2], 0
mov word [esi], 0
mov word [esi + 6], ax
mov word [esi + 4], ax
mov eax, dword [esp + 0x14]
mov dword [ebx], 0
mov dword [edi], 0x53e7d0
mov ecx, dword [0x659a18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
push edx
push 1
push 8
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
call esi
mov eax, dword [0x659a18]
push eax
push 1
push 8
push ebx
call esi
add esp, 0x2c
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4ba9e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.004b9fc0
lea edi, [esi + 0x18]
xor ebp, ebp
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x14], ebp
mov dword [edi], ebp
mov dword [esi], 0x54bcd8
mov ecx, dword [0x659a18]
lea edx, [esp + 0x24]
push ecx
push 1
push 4
push edx
mov dword [esp + 0x2c], ebp
call ebx
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp eax, ebp
jle 0x4baa9d
mov eax, dword [0x659a18]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
mov ecx, dword [esp + 0x28]
mov edx, dword [0x659a18]
push 0
push ecx
push edx
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x659a18]
push eax
push 1
push 4
push edi
call ebx
mov ecx, dword [edi]
push ecx
call fcn.00470b90
mov ecx, dword [edi]
mov dword [esi + 0x14], eax
mov edx, dword [0x659a18]
push edx
push ecx
push 1
push eax
call ebx
mov edx, dword [0x659a18]
push 0
push ebp
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x40
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4bac90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531ba3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x14], edi
call fcn.004ba0e0
lea esi, [edi + 0x14]
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esi + 4], ebx
mov word [esi], bx
mov byte [esi + 3], bl
mov byte [esi + 2], 1
mov dword [edi], 0x5366e0
mov ecx, dword [0x659a18]
push ecx
mov byte [esp + 0x28], 1
call dword [sym.imp.MSVCRT.dll_ftell]
mov edx, dword [esp + 0x34]
add esp, 4
mov ecx, esi
push edx
push eax
call fcn.004b92d0
lea ebp, [edi + 0x20]
xor eax, eax
mov dword [esp + 0x15], eax
lea edx, [esp + 0x14]
mov dword [ebp], ebx
mov ecx, dword [0x659a18]
push ecx
push 4
mov word [esp + 0x21], ax
push 1
push edx
mov byte [esp + 0x24], bl
mov byte [esp + 0x2b], al
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov esi, str.tflg
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4bad59
cmp cl, bl
je 0x4bad55
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4bad59
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4bad35
xor eax, eax
jmp 0x4bad5e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4bad9a
mov eax, dword [0x659a18]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push eax
lea esi, [edi + 0x1c]
push 1
push 4
push esi
call ebx
mov ecx, dword [0x659a34]
mov eax, dword [esi]
add esp, 0x10
test eax, ecx
je 0x4badad
mov edx, dword [0x659a18]
push edx
push 1
push 4
push ebp
call ebx
add esp, 0x10
jmp 0x4badad
mov eax, dword [0x659a18]
push 1
push 0xfffffffffffffffc
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x4bb550
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x659a18]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call edi
mov eax, dword [0x659a18]
lea ebx, [esi + 4]
push eax
push 1
push 4
push ebx
call edi
mov ecx, dword [ebx]
shl ecx, 2
push ecx
call fcn.00470b90
mov ecx, dword [ebx]
mov dword [esi + 8], eax
mov edx, dword [0x659a18]
push edx
push ecx
push 4
push eax
call edi
mov edx, dword [0x659a18]
add esp, 0x40
lea eax, [esp + 0xc]
push edx
push 1
push 0x10
push eax
call edi
push 0x24
call fcn.00470250
add esp, 0x14
test eax, eax
je 0x4bb5ee
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, eax
call fcn.00489020
jmp 0x4bb5f0
xor eax, eax
mov dword [esi + 0xc], eax
lea eax, [esi + 0x10]
or edx, 0xffffffff
pop edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4bb700
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x531c49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [esp + 0x134]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x34], esi
call fcn.004ba0e0
lea ebx, [esi + 0x14]
xor ebp, ebp
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0x18], ebp
mov dword [ebx], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi], 0x54bd48
mov edx, dword [0x659a18]
xor ecx, ecx
push edx
mov dword [esp + 0x20], ecx
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x28], ecx
push 0x10
push eax
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], ecx
call edi
mov ecx, dword [0x659a18]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
mov dword [esp + 0x3c], eax
add esp, 0x14
lea eax, [esp + 0x34]
mov ecx, 0x20
mov dword [eax], ebp
add eax, 8
dec ecx
jne 0x4bb793
mov edx, dword [esp + 0x20]
mov eax, dword [0x659a18]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push edx
push eax
call ebp
movsx edx, word [0x675ac6]
mov ecx, dword [0x659a18]
lea eax, [esp + 0x40]
push ecx
push edx
push 8
push eax
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [0x659a18]
push 0
push ecx
push edx
call ebp
mov eax, dword [0x659a18]
push eax
push 1
push 4
push ebx
call edi
mov ecx, dword [ebx]
shl ecx, 2
push ecx
call fcn.00470b90
mov dword [esi + 0x18], eax
mov edx, dword [0x659a18]
xor eax, eax
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push 1
lea eax, [esp + 0x54]
push 4
push eax
call edi
mov ecx, dword [esp + 0x68]
mov edx, dword [0x659a18]
add esp, 0x4c
add ecx, 4
push 0
push ecx
push edx
call ebp
mov eax, dword [0x659a18]
lea ecx, [esp + 0x20]
push eax
push 1
push 4
push ecx
call edi
mov eax, dword [ebx]
add esp, 0x1c
xor edi, edi
test eax, eax
jbe 0x4bb897
push 0x298
call fcn.00470250
add esp, 4
test eax, eax
je 0x4bb868
lea edx, [esp + 0x34]
lea ecx, [esp + 0x10]
push edx
lea edx, [esi + 4]
push ecx
push edx
mov ecx, eax
call fcn.004bb290
jmp 0x4bb86a
xor eax, eax
mov ecx, dword [esi + 0x18]
mov dword [ecx + edi*4], eax
mov edx, dword [esp + 0x10]
push edx
mov ecx, esi
call fcn.004bb920
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.004bb920
mov dword [esp + 0x14], eax
mov eax, dword [ebx]
inc edi
cmp edi, eax
jb 0x4bb840
push 0x18
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
mov byte [esp + 0x13c], 1
je 0x4bb8bf
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, eax
call fcn.004bb550
jmp 0x4bb8c1
xor eax, eax
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [0x659a18]
push 0
push edx
push eax
call ebp
mov ecx, dword [esp + 0x140]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4
Function at 0x4bb920
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
movsx eax, word [0x675ac6]
lea edx, [ecx + eax*8 - 8]
mov eax, dword [0x659a18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x659a18]
lea edx, [esp + 0xc]
push ecx
push 1
push 8
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*2]
add esp, 0x24
ret 4

Function at 0x4bc440
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [str._proc_devices]
sub esp, 0x400
push ebx
xor ebx, ebx
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 8
cmp esi, ebx
jle 0x4bc4b8
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x10]
push ecx
push esi
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
test eax, eax
pop edi
jle 0x4bc4b8
lea edx, [esp + 8]
push str.tsc7846
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
cmp eax, ebx
je 0x4bc4ae
cmp byte [eax], bl
je 0x4bc4ae
mov ebx, 1
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
mov eax, ebx
pop esi
pop ebx
add esp, 0x400
ret