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

Disassembly:
push 0xffffffffffffffff
push 0x546008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00440c20
mov cx, word [esi + 0x10]
mov dx, word [esi + 0x12]
mov word [esp + 0x34], cx
mov word [esp + 0x36], dx
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x210], ecx
or ecx, 0xffffffff
lea edi, [esi + 0x21c]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
mov word [esi + 0x216], ax
mov word [esi + 0x214], ax
mov word [esi + 0x21a], cx
mov word [esi + 0x218], cx
mov dword [edi], eax
mov dword [esi], 0x54c508
mov edx, dword [0x67a8cc]
mov dword [esp + 0x2c], eax
push edx
push 1
lea eax, [esi + 0x1e4]
push 0x14
push eax
call ebp
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ebx, eax
mov ecx, esi
push ebx
call fcn.0043ede0
cmp dword [0x67a7f0], 0x19
jl 0x442d59
mov edx, dword [0x67a8cc]
add ebx, 8
push 0
push ebx
push edx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
push eax
push 1
push 4
push edi
call ebp
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x30]
push ecx
push 1
push 0x10
push edx
call ebp
mov al, byte [edi]
add esp, 0x2c
test al, 1
je 0x442d59
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x442d51
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x442d53
xor eax, eax
mov dword [esi + 0x104], eax
cmp dword [0x67a7f0], 0x1a
jl 0x442d79
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x1f8]
push edx
push 1
push 0x10
push eax
call ebp
add esp, 0x10
mov ecx, dword [esi + 0x10]
or eax, 0xffffffff
mov edx, dword [esi + 0x14]
mov dword [esi + 0x208], eax
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 8]
and ah, 0xfd
mov dword [esi + 0x214], ecx
mov ecx, dword [esp + 0x24]
or ah, 1
mov dword [esi + 8], eax
mov dword [esi + 0x218], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4435d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x546028
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 esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.00440c20
lea edi, [esi + 0x1e4]
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 0x1e8], ebx
mov dword [edi], ebx
mov word [esi + 0x1f6], bx
mov word [esi + 0x1f4], bx
mov word [esi + 0x1fa], ax
mov word [esi + 0x1f8], ax
mov dword [esi], 0x54c5fc
mov ecx, dword [0x67a8cc]
mov dword [esp + 0x24], ebx
push ecx
push 1
push 2
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ebp, dword [edi]
lea edx, [ebp*4]
push edx
call fcn.004784e0
add esp, 0x14
cmp eax, ebx
je 0x443676
lea edx, [ebp - 1]
mov ecx, eax
cmp edx, ebx
jl 0x443678
inc edx
mov word [ecx], bx
mov word [ecx + 2], bx
add ecx, 4
dec edx
jne 0x443667
jmp 0x443678
xor eax, eax
mov edx, dword [edi]
mov dword [esi + 0x1e8], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043ede0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1e8]
mov edx, dword [esi + 0x10]
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esp + 0x18], ecx
movsx ecx, word [eax]
movsx eax, word [eax + 2]
mov edi, ecx
mov dword [esp + 0x14], edx
sub edi, edx
mov edx, eax
add word [esp + 0x18], di
mov ebp, dword [esp + 0x16]
sub edx, ebp
mov word [esp + 0x14], cx
add word [esp + 0x1a], dx
mov ecx, dword [esp + 0x18]
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
movsx edx, word [esi + 0x16]
movsx eax, word [esi + 0x12]
movsx ecx, word [esi + 0x14]
sub edx, eax
inc edx
push edx
movsx edx, word [esi + 0x10]
sub ecx, edx
inc ecx
push ecx
push ebx
push ebx
lea ecx, [esp + 0x24]
call fcn.004c9320
mov ecx, dword [eax]
pop edi
mov dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x10]
mov dword [esi + 0x38], edx
mov edx, dword [esi + 8]
and dh, 0xfd
mov dword [esi + 0x1f4], eax
or dh, 1
mov dword [esi + 0x1f8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], edx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x4459d0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5460e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
mov dword [esp + 8], esi
call fcn.0043cc70
xor eax, eax
lea edx, [esi + 0x1d0]
mov dword [esi + 0x1e4], eax
mov dword [esi], 0x54c898
mov ecx, dword [0x67a8cc]
mov dword [esp + 0x10], eax
push ecx
push 1
push 0x1c
push edx
call dword [sym.imp.MSVCRT.dll_fread]
lea ecx, [esi + 0x1f0]
xor eax, eax
add esp, 0x10
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, esi
call fcn.0043d3d0
mov ecx, eax
call fcn.004c9d30
push eax
mov ecx, esi
call fcn.0043d3d0
mov ecx, eax
call fcn.004c9eb0
mov edx, dword [esi + 8]
mov ecx, dword [esp + 8]
and dh, 0xfd
mov dword [esi + 0xb8], 1
or dh, 1
mov eax, esi
mov dword [esi + 8], edx
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x445ca0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov esi, ecx
push eax
call fcn.0043cc70
lea eax, [esi + 0x1d0]
mov dword [eax], 0
mov dword [esi], 0x54c988
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 8
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x1d8]
add esp, 0x10
rep stosd dword es:[edi], eax
mov edx, dword [esi + 8]
mov dword [esi + 0xb8], 1
and dh, 0xfd
mov eax, esi
or dh, 1
pop edi
mov dword [esi + 8], edx
pop esi
ret 4
Function at 0x449bc0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x546216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0043cc70
lea ebp, [esi + 0x1d0]
xor ebx, ebx
lea ecx, [esi + 0x200]
mov dword [esp + 0x48], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x2c], ebx
call fcn.004bb6f0
lea edi, [esi + 0x218]
mov ecx, 8
xor eax, eax
mov byte [esp + 0x48], 1
mov dword [edi + 0x10], ebx
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x244]
mov dword [esi + 0x238], ebx
call fcn.00489090
mov dword [esi], 0x54cd60
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x30
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [0x67a7f0]
add esp, 0x10
cmp eax, 6
jge 0x449c6b
mov edx, dword [esi + 0x1e0]
mov dword [esi + 0x1fc], edx
cmp dword [0x67a7f0], 0x13
jl 0x449ded
mov eax, dword [0x67a8cc]
mov ebp, dword [sym.imp.MSVCRT.dll_ftell]
push eax
call ebp
mov edi, eax
mov al, byte [esi + 0x1d1]
add esp, 4
test al, 1
je 0x449cb7
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x449caf
push 1
push edi
mov ecx, eax
call fcn.00495d60
jmp 0x449cb1
xor eax, eax
mov dword [esi + 0x10c], eax
test byte [esi + 0x1d1], 2
je 0x449ce5
push 0x24
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x449cdd
lea ecx, [edi + 0x10]
push 1
push ecx
mov ecx, eax
call fcn.00495d60
jmp 0x449cdf
xor eax, eax
mov dword [esi + 0x104], eax
add edi, 0x20
mov ecx, esi
push edi
call fcn.0043ede0
cmp dword [0x67a7f0], 0x1a
jl 0x449ded
xor edx, edx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x18], edx
lea eax, [esi + 0x218]
push 0x20
mov dword [esp + 0x20], edx
push eax
mov eax, dword [0x67a8cc]
mov dword [esp + 0x28], edx
push eax
mov dword [esp + 0x30], edx
call ebp
add esp, 4
push eax
call fcn.0047a710
mov edx, dword [0x67a8cc]
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x18
push ecx
push edx
call ebp
add esp, 4
push eax
call fcn.0047a710
mov ecx, dword [0x67a8cc]
add esp, 0xc
lea eax, [esp + 0x14]
push 0x14
push eax
push ecx
call ebp
add esp, 4
push eax
call fcn.0047a710
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x5c]
push edx
push 1
push 4
push eax
mov dword [esp + 0x6c], ebx
call dword [sym.imp.MSVCRT.dll_fread]
movsx ecx, word [esi + 0x1d2]
mov eax, dword [0x67a8e4]
add esp, 0x1c
test ecx, eax
je 0x449db3
mov edx, dword [esp + 0x50]
mov ecx, esi
push edx
call fcn.0041c180
test byte [esp + 0x28], 1
je 0x449ded
mov ecx, esi
call fcn.0044a760
test eax, eax
jne 0x449dcd
or dword [esp + 0x28], 0x80000000
lea eax, [esp + 0x14]
push esi
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004470d0
add esp, 0xc
mov ecx, esi
mov dword [esi + 0x238], eax
call fcn.00449ee0
push ebx
mov ecx, esi
call fcn.0044b140
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x40]
and dh, 0xfd
mov eax, esi
or dh, 1
pop edi
mov dword [esi + 8], edx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x44d370
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x585938
push str._tmp_gst_state.dat
xor ebx, ebx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x44d3a5
push 0x58593c
push str._tmp_gst_state.dat
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x44d3ca
mov eax, dword [esp + 0x10]
push esi
push 3
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
ret 4
pop edi
mov eax, ebx
pop esi
pop ebx
ret 4

Function at 0x44d480
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2000
call fcn.005322e0
push esi
push edi
call fcn.0046dfd0
mov eax, dword [esp + 0x200c]
movsx ecx, word [eax + 2]
movsx edx, word [eax]
movsx esi, word [eax + 6]
movsx eax, word [eax + 4]
sub esi, ecx
sub eax, edx
inc esi
inc eax
push esi
push eax
push ecx
mov ecx, dword [esp + 0x201c]
push edx
push ecx
lea edx, [esp + 0x101c]
push str.gst_launch_1.0_rtspsrc_location_s_protocols0x00000004___rtph264depay___vpudec___imxv4l2sink_syncfalse_overlay_left_d_overlay_top_d_overlay_width_d_overlay_height_d_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x1c
mov esi, 0x14
push 0x64
call edi
dec esi
jne 0x44d4da
push 0x585968
push 0x585964
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1000
lea eax, [esp + 0x18]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [esp + 0x24]
push str.gst_launch_1.0
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 0x24
test eax, eax
pop edi
pop esi
je 0x44d54e
cmp byte [eax], 0
je 0x44d54e
mov eax, 1
add esp, 0x2000
ret 8
xor eax, eax
add esp, 0x2000
ret 8
Function at 0x44d690
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x67a8cc]
push edi
push 0
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
push edx
push 1
push 0x81f0
push esi
call dword [sym.imp.MSVCRT.dll_fread]
lea ebx, [esi + 0xc8]
mov ecx, 6
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esi + 0x80e8]
mov dword [esi + 0xe0], eax
mov dword [esi + 0x80e4], 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, 0x2000
lea edi, [esi + 0xe4]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov dword [esi + 0x81e8], eax
mov dword [esi + 0x81ec], eax
mov eax, dword [0x67a8e4]
add esp, 0x1c
test eax, ecx
je 0x44d734
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d730
lea ecx, [esi + 0x28]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x44d732
xor eax, eax
mov dword [ebx], eax
mov edx, dword [0x67a8e8]
mov eax, dword [esi]
test edx, eax
je 0x44d765
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d75d
lea ecx, [esi + 0x58]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x44d75f
xor eax, eax
mov dword [esi + 0xcc], eax
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d782
lea edx, [esi + 0x68]
push 1
push edx
mov ecx, eax
call fcn.00495db0
jmp 0x44d784
xor eax, eax
push 0x24
mov dword [esi + 0xd0], eax
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d7aa
lea ecx, [esi + 0x88]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
jmp 0x44d7ac
xor eax, eax
push 0x24
mov dword [esi + 0xd4], eax
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d7d2
lea edx, [esi + 0x98]
push 1
push edx
mov ecx, eax
call fcn.00495db0
jmp 0x44d7d4
xor eax, eax
mov ecx, dword [esi]
mov dword [esi + 0xd8], eax
mov eax, dword [0x67a8f4]
test eax, ecx
je 0x44d817
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x44d80f
lea ecx, [esi + 0xa8]
push 1
push ecx
mov ecx, eax
call fcn.00495db0
mov dword [esi + 0xdc], eax
pop edi
pop esi
pop ebx
ret 4
xor eax, eax
mov dword [esi + 0xdc], eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x44e6b0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x546346
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.0043cc70
lea edi, [esi + 0x1d4]
xor ebp, ebp
mov ecx, edi
mov dword [esp + 0x1c], ebp
call fcn.0044d680
mov eax, dword [esi + 0xc4]
mov dword [esi + 0x83c4], ebp
mov dword [esi + 0x83c8], ebp
mov dword [esi], 0x54cf40
mov ebx, dword [eax + 0x20]
lea edx, [esi + 0x1d0]
and ebx, 0xfffffffe
mov byte [esp + 0x1c], 1
mov dword [eax + 0x20], ebx
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push ecx
push 1
push 4
push edx
call ebx
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x34]
push eax
push 1
push 4
push ecx
mov dword [esp + 0x44], ebp
call ebx
mov edx, dword [0x67a8cc]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x24
mov ecx, esi
push eax
call fcn.0043ede0
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
call fcn.0044d690
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 0x44f640
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
call fcn.00440c20
lea ecx, [esi + 0x1e4]
xor edx, edx
lea eax, [esi + 0x200]
mov dword [ecx], edx
mov dword [esi + 0x1ec], edx
mov dword [esi + 0x1f0], edx
mov dword [esi + 0x1f4], edx
mov dword [esi + 0x1f8], edx
mov dword [esi + 0x1fc], 0xffffffff
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x20c], edx
mov dword [esi], 0x54d300
mov edx, dword [0x67a8cc]
push edx
push 1
push 8
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 8]
add esp, 0x10
movsx ecx, word [esi + 0x1e8]
and ah, 0xfd
mov dword [esi + 0x208], ecx
or eax, 0x101
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret 4
Function at 0x450090
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x546478
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x14], ebp
call fcn.0044f640
mov eax, dword [ebp + 0xc4]
xor ebx, ebx
mov dword [ebp + 0x210], ebx
mov dword [ebp + 0x314], ebx
mov dword [ebp], 0x54d3fc
mov ecx, dword [eax + 0x20]
and ecx, 0xfffffffe
push 1
mov dword [eax + 0x20], ecx
mov ecx, dword [0x67a8cc]
push 0x100
push ecx
mov dword [esp + 0x48], ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
xor edx, edx
push eax
mov dword [esp + 0x25], edx
push 1
lea ecx, [esp + 0x28]
mov word [esp + 0x2d], dx
push 4
push ecx
mov byte [esp + 0x30], bl
mov byte [esp + 0x37], dl
call edi
add esp, 0x1c
mov esi, str.flag
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x450152
cmp cl, bl
je 0x45014e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x450152
add eax, 2
add esi, 2
cmp cl, bl
jne 0x45012e
xor eax, eax
jmp 0x450157
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4501a7
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x44]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x34]
push edx
push 1
push 0x10
push eax
call edi
mov ecx, dword [0x67a8e8]
mov eax, dword [esp + 0x64]
add esp, 0x20
test ecx, eax
je 0x4501a7
mov edx, dword [0x67a8cc]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebp
push eax
call fcn.0043ede0
mov ecx, 0x6969c0
lea esi, [ebp + 0x10]
call fcn.004b3e00
movsx edx, word [esi]
shl eax, 1
mov ecx, eax
movsx eax, word [esi + 4]
sub eax, ecx
mov ecx, 0x6969c0
sub eax, edx
inc eax
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call fcn.004b3e00
movsx edx, word [esi + 2]
mov ecx, eax
movsx eax, word [esi + 6]
sub eax, edx
sub eax, ecx
movsx ecx, word [esi]
inc eax
push eax
push edi
movsx eax, word [ebp + 0x12]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004c9320
mov edx, dword [eax]
mov dword [esi], edx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
movsx ecx, word [esi + 6]
movsx edx, word [esi + 2]
movsx eax, word [esi + 4]
sub ecx, edx
inc ecx
push ecx
movsx ecx, word [esi]
sub eax, ecx
lea ecx, [esp + 0x28]
inc eax
push eax
push ebx
push ebx
call fcn.004c9320
mov edx, dword [eax]
push esi
mov dword [ebp + 0x34], edx
mov ecx, ebp
mov eax, dword [eax + 4]
mov dword [ebp + 0x38], eax
call fcn.00441770
push 0x100
call fcn.004784b0
add esp, 4
cmp eax, ebx
je 0x450251
mov ecx, eax
call fcn.004d3b40
jmp 0x450253
xor eax, eax
mov ecx, ebp
mov dword [ebp + 0x210], eax
call fcn.00450670
mov ecx, 0x40
xor eax, eax
lea edi, [ebp + 0x214]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x34]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x450a30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5464b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0044f640
lea ebp, [esi + 0x418]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esi + 0x210], eax
mov dword [ebp], eax
mov eax, dword [esi + 0xc4]
mov dword [esi], 0x54d5f4
lea edx, [esi + 0x314]
mov ebx, dword [eax + 0x20]
mov ecx, 0x41
and ebx, 0xfffffffe
mov edi, edx
mov dword [eax + 0x20], ebx
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
rep stosd dword es:[edi], eax
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 0x100
push edx
call ebx
mov eax, dword [0x67a8cc]
xor edx, edx
mov dword [esp + 0x25], edx
push eax
push 1
lea ecx, [esp + 0x2c]
mov word [esp + 0x31], dx
push 4
push ecx
mov byte [esp + 0x34], 0
mov byte [esp + 0x3b], dl
call ebx
add esp, 0x20
mov edi, str.flag
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x450b03
test cl, cl
je 0x450aff
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x450b03
add eax, 2
add edi, 2
test cl, cl
jne 0x450adf
xor eax, eax
jmp 0x450b08
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x450b54
mov eax, dword [0x67a8cc]
push eax
push 1
push 4
push ebp
call ebx
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x41c]
push ecx
push 1
push 0x10
push edx
call ebx
mov eax, dword [0x67a8e8]
mov ecx, dword [ebp]
add esp, 0x20
test eax, ecx
je 0x450b54
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0043ede0
mov eax, dword [esp + 0x40]
mov ecx, 0x6969c0
lea edi, [esi + 0x10]
movsx ebp, word [eax + 0x14]
movsx edx, word [eax + 0x10]
sub ebp, edx
inc ebp
call fcn.004b3e00
movsx edx, word [edi + 2]
mov ecx, eax
movsx eax, word [edi + 6]
sub eax, edx
inc eax
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sub ebx, ecx
mov ecx, 0x6969c0
call fcn.004b3e00
movsx ecx, word [esi + 0x14]
sub ecx, ebp
push ebx
sub ecx, eax
push ebp
movsx eax, word [esi + 0x12]
push eax
push ecx
lea ecx, [esp + 0x2c]
call fcn.004c9320
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
movsx eax, word [edi + 6]
movsx ecx, word [edi + 2]
movsx edx, word [edi + 4]
sub eax, ecx
lea ecx, [esp + 0x24]
inc eax
push eax
movsx eax, word [edi]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004c9320
mov ecx, dword [eax]
push edi
mov dword [esi + 0x34], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
call fcn.00441770
mov eax, dword [esp + 0x40]
lea edi, [esi + 0x214]
mov ecx, dword [eax + 0x210]
xor eax, eax
mov dword [esi + 0x210], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x451130
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5464d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.0044f640
mov ebx, dword [esp + 0x48]
mov eax, dword [esi + 0xc4]
mov dword [esi + 0x210], ebx
mov dword [esi], 0x54d6f0
mov ecx, dword [eax + 0x20]
push 1
and ecx, 0xfffffffe
push 0x100
mov dword [eax + 0x20], ecx
mov ecx, dword [0x67a8cc]
push ecx
mov dword [esp + 0x48], 0
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
xor edx, edx
mov dword [esp + 0x21], edx
push eax
push 1
lea ecx, [esp + 0x28]
mov word [esp + 0x2d], dx
push 4
push ecx
mov byte [esp + 0x30], 0
mov byte [esp + 0x37], dl
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov ebp, str.flag
lea edi, [esp + 0x14]
mov dl, byte [edi]
mov cl, byte [ebp]
mov al, dl
cmp dl, cl
jne 0x4511f5
test al, al
je 0x4511f1
mov cl, byte [edi + 1]
mov dl, byte [ebp + 1]
mov al, cl
cmp cl, dl
jne 0x4511f5
add edi, 2
add ebp, 2
test al, al
jne 0x4511cc
xor eax, eax
jmp 0x4511fa
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x451250
mov edx, dword [0x67a8cc]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
lea eax, [esp + 0x4c]
push 4
push eax
call edi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x34]
push ecx
push 1
push 0x10
push edx
call edi
mov eax, dword [0x67a8e8]
mov ecx, dword [esp + 0x64]
add esp, 0x20
test eax, ecx
je 0x451250
mov ecx, dword [0x67a8cc]
push ecx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0043ede0
movsx ebp, word [ebx + 0x14]
movsx edx, word [ebx + 0x10]
movsx edi, word [ebx + 0x16]
movsx eax, word [ebx + 0x12]
movsx ebx, word [ebx + 0x10]
sub ebp, edx
sub edi, eax
inc ebp
mov ecx, 0x6969c0
inc edi
call fcn.004b3e00
movsx ecx, word [esi + 0x12]
mov edx, edi
push edi
add edx, eax
push ebp
add ecx, edx
push ecx
push ebx
lea ecx, [esp + 0x2c]
call fcn.004c9320
mov ecx, dword [eax]
lea edi, [esi + 0x10]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
movsx eax, word [edi + 6]
movsx ecx, word [edi + 2]
movsx edx, word [edi + 4]
sub eax, ecx
lea ecx, [esp + 0x24]
inc eax
push eax
movsx eax, word [edi]
sub edx, eax
inc edx
push edx
push 0
push 0
call fcn.004c9320
mov ecx, dword [eax]
push edi
mov dword [esi + 0x34], ecx
mov ecx, esi
mov edx, dword [eax + 4]
mov dword [esi + 0x38], edx
call fcn.00441770
mov ecx, 0x40
xor eax, eax
lea edi, [esi + 0x214]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x34]
and ah, 0xfe
pop edi
or ah, 2
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8