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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
xor eax, eax
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
cmp ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x416434
push eax
mov eax, dword [0x67a8cc]
push ebx
push eax
call esi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x1c]
push ecx
push 1
push 4
push edx
call edi
add esp, 0x1c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41645c
mov eax, dword [0x67a8cc]
push 0
push ebp
push eax
call esi
mov ecx, dword [0x67a8cc]
lea edx, [esp + 0x20]
push ecx
push 1
push 4
push edx
call edi
add esp, 0x1c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x5dde68], eax
add eax, ecx
test eax, eax
mov dword [0x5dde64], eax
jle 0x4165bc
lea edx, [eax*4]
mov ecx, 0x6d07d8
push edx
call fcn.004bb1f0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4164bc
mov eax, dword [0x67a8cc]
add ebx, 4
push 0
push ebx
push eax
call esi
mov ecx, dword [0x67a8cc]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push ecx
push edx
push 4
push eax
call edi
add esp, 0x1c
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4164f2
mov ecx, dword [0x67a8cc]
add ebp, 4
push 0
push ebp
push ecx
call esi
mov edx, dword [0x67a8cc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push 4
lea eax, [edx + ecx*4]
push eax
call edi
add esp, 0x1c
mov esi, dword [0x5dde64]
mov ecx, esi
shl ecx, 5
add ecx, esi
lea edx, [ecx*4 + 4]
push edx
call fcn.004784e0
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x416538
push fcn.004179a0
push fcn.004161a0
lea edi, [eax + 4]
push esi
push 0x84
push edi
mov dword [eax], esi
call fcn.0053230f
mov dword [0x5dde60], edi
jmp 0x41653e
mov dword [0x5dde60], ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
xor esi, esi
cmp eax, ebx
jle 0x416574
mov edi, ebp
mov eax, dword [edi]
mov ecx, dword [0x5dde60]
push 0
push 0
push eax
add ecx, ebx
call fcn.00416690
mov eax, dword [esp + 0x10]
inc esi
add edi, 4
add ebx, 0x84
cmp esi, eax
jl 0x41654e
cmp esi, dword [0x5dde64]
jge 0x4165b1
mov edi, esi
lea ebx, [ebp + esi*4]
shl edi, 5
add edi, esi
shl edi, 2
mov eax, dword [0x5dde60]
mov edx, dword [ebx]
push 0
push 1
push edx
lea ecx, [edi + eax]
call fcn.00416690
mov eax, dword [0x5dde64]
inc esi
add ebx, 4
add edi, 0x84
cmp esi, eax
jl 0x41658a
push ebp
mov ecx, 0x6d07d8
call fcn.004bb220
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x417f50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push 0
mov ecx, dword [0x67a8cc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
push edx
push 1
push 0xc
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 8]
add esp, 0x1c
test eax, eax
je 0x417faa
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x417fa5
mov ecx, dword [esi + 8]
push 0
push ecx
mov ecx, eax
call fcn.004cfb10
mov dword [esi + 8], eax
pop esi
ret 4
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret 4

Function at 0x417fd0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, ecx
push 0
mov ecx, dword [0x67a8cc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push edi
call ebx
mov eax, dword [0x67a8cc]
lea esi, [edi + 4]
push eax
push 1
push 4
push esi
call ebx
mov eax, dword [esi]
add esp, 0x2c
test eax, eax
je 0x418046
push 0x98
call fcn.004784b0
add esp, 4
test eax, eax
je 0x418042
mov ecx, dword [edi]
mov edx, dword [esi]
and ecx, 0xff
push ecx
push edx
mov ecx, eax
call fcn.0049a6b0
mov dword [esi], eax
pop edi
pop esi
pop ebx
ret 4
xor eax, eax
mov dword [esi], eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x4181d0
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]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 4]
push eax
push 1
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
lea ebx, [esi + 8]
push edx
push 1
push 0x10
push ebx
call edi
mov eax, dword [0x67a8e4]
mov ecx, dword [esi]
add esp, 0x3c
test eax, ecx
je 0x418252
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41824d
push 1
push ebx
mov ecx, eax
call fcn.00495db0
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret 4
xor eax, eax
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x418d80
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push 0
mov ecx, dword [0x67a8cc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
push edx
push 1
push 8
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x1c
mov eax, esi
pop esi
ret 4
Function at 0x418dc0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
push 0
mov dword [esi + 8], 0
mov ecx, dword [0x67a8cc]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call ebx
mov eax, dword [0x67a8cc]
lea edi, [esi + 4]
push eax
push 1
push 4
push edi
call ebx
mov eax, dword [edi]
add esp, 0x2c
test eax, eax
jle 0x418e2b
shl eax, 4
push eax
call fcn.00478e60
mov edx, dword [edi]
mov dword [esi + 8], eax
mov ecx, dword [0x67a8cc]
push ecx
push edx
push 0x10
push eax
call ebx
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
ret 4

Function at 0x418e60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54542e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 4], 1
mov dword [esp + 8], esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi], 0x549bb0
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
mov dword [esi + 0x30], edi
call fcn.004181a0
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 1
call fcn.0043ca20
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 2
mov dword [esi + 0x6c], edi
call fcn.0043ca20
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], edi
mov dword [esi], 0x549c14
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x419ad0
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]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call ebx
mov eax, dword [esi]
shl eax, 2
push eax
call fcn.00478e60
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 4], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x67a8cc]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push ecx
push 4
push edx
call ebx
mov eax, dword [esi]
add esp, 0x30
xor edi, edi
test eax, eax
jle 0x419b7d
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x419b76
push 0xb4
call fcn.004784b0
add esp, 4
test eax, eax
je 0x419b62
mov ecx, eax
call fcn.00418e60
jmp 0x419b64
xor eax, eax
mov ecx, dword [esi + 4]
push ebx
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4]
call fcn.00419100
mov eax, dword [esi]
inc edi
cmp edi, eax
jl 0x419b3e
pop edi
pop esi
pop ebx
ret 4

Function at 0x419ba0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
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]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 4]
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 [0x67a904]
mov eax, dword [esi]
add esp, 0x3c
test ecx, eax
je 0x419c2c
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x419c27
lea edx, [esp + 8]
push 1
push edx
mov ecx, eax
call fcn.00495db0
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0x10
ret 4
xor eax, eax
mov dword [esi + 8], eax
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x41a760
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov ecx, dword [0x67a8cc]
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [0x67a8cc]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push ebx
call esi
mov eax, dword [0x67a8cc]
lea ecx, [esp + 0x2c]
push eax
push 1
push 8
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call esi
mov edx, dword [0x67a8cc]
lea eax, [esp + 0x44]
push edx
push 1
push 0x10
push eax
call esi
add esp, 0x3c
lea esi, [esp + 0x10]
lea edi, [ebx + 4]
mov ebp, 2
cmp dword [esi], 0
je 0x41a7f6
push 0x48
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41a7e8
mov ecx, eax
call fcn.0041a090
jmp 0x41a7ea
xor eax, eax
mov ecx, dword [esi]
mov dword [edi], eax
push ecx
mov ecx, eax
call fcn.0041a0f0
add edi, 4
add esi, 4
dec ebp
jne 0x41a7cc
test byte [ebx], 1
je 0x41a832
push 0x24
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41a82d
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, eax
call fcn.00495db0
pop edi
pop esi
mov dword [ebx + 0xc], eax
pop ebp
pop ebx
add esp, 0x18
ret 4
xor eax, eax
mov dword [ebx + 0xc], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4

Function at 0x41aba0
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]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push edx
push 1
push 4
push esi
call ebx
mov eax, dword [esi]
shl eax, 2
push eax
call fcn.00478e60
mov ecx, dword [esi]
mov edi, eax
shl ecx, 2
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 4], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x67a8cc]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push ecx
push 4
push edx
call ebx
mov eax, dword [esi]
add esp, 0x30
xor edi, edi
test eax, eax
jle 0x41ac4a
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
test ebx, ebx
je 0x41ac43
push 0x20
call fcn.004784b0
add esp, 4
test eax, eax
je 0x41ac2f
mov ecx, eax
call fcn.0041a730
jmp 0x41ac31
xor eax, eax
mov ecx, dword [esi + 4]
push ebx
mov dword [ecx + edi*4], eax
mov edx, dword [esi + 4]
mov ecx, dword [edx + edi*4]
call fcn.0041a760
mov eax, dword [esi]
inc edi
cmp edi, eax
jl 0x41ac0e
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b430
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545554
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004e04e0
or ebp, 0xffffffff
mov dword [esi + 4], edi
mov dword [esi + 8], 1
mov dword [esi + 0xc], edi
add esp, 4
mov word [esi + 0x12], di
mov word [esi + 0x10], di
mov word [esi + 0x16], bp
mov word [esi + 0x14], bp
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], eax
call fcn.004bb6f0
mov word [esi + 0x36], di
mov word [esi + 0x34], di
mov word [esi + 0x3a], bp
mov word [esi + 0x38], bp
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], 0xffff
mov dword [esi + 0x48], edi
mov word [esi + 0x4c], di
mov word [esi + 0x4e], di
mov dword [esi], 0x549d08
lea eax, [esi + 0x50]
push 0x41b400
push 0x41b3e0
push 2
mov dword [eax], eax
mov dword [eax + 4], eax
lea eax, [esi + 0x5c]
push 0x14
push eax
mov dword [esp + 0x40], edi
mov dword [esi + 0x58], edi
call fcn.0053230f
push fcn.0041afc0
push 0x41b410
push 2
lea ecx, [esi + 0x84]
push 0x14
push ecx
mov byte [esp + 0x40], 1
call fcn.0053230f
lea ecx, [esi + 0xac]
push ecx
mov eax, esp
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [eax], edi
call fcn.0041af30
mov ebx, dword [esp + 0x34]
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi], 0x549c2c
mov edx, dword [0x67a8cc]
push edi
push ebx
push edx
mov byte [esp + 0x38], 3
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [0x67a8cc]
mov word [esp + 0x22], di
push eax
push 1
mov word [esp + 0x28], di
mov word [esp + 0x2e], bp
mov word [esp + 0x2c], bp
push 8
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], eax
movsx ecx, word [esi + 0x16]
movsx edx, word [esi + 0x12]
movsx eax, word [esi + 0x14]
sub ecx, edx
add esp, 0x1c
inc ecx
push ecx
movsx ecx, word [esi + 0x10]
sub eax, ecx
lea ecx, [esp + 0x20]
inc eax
push eax
push edi
push edi
call fcn.004c9320
mov edx, dword [eax]
pop edi
mov dword [esi + 0x34], edx
mov eax, dword [eax + 4]
mov dword [esi + 0x38], eax
mov cx, word [esi + 0x10]
mov dx, word [esi + 0x12]
mov word [esp + 0x30], cx
mov word [esp + 0x32], dx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 8]
mov dword [esi + 4], ebx
and ah, 0xfc
mov dword [esi + 8], eax
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4
Function at 0x41c920
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x545648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esp + 0x54]
lea edx, [esp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], ecx
push edi
movsx ecx, word [eax + 0x12]
movsx eax, word [eax + 0x10]
add word [esp + 0x10], ax
add word [esp + 0x14], ax
add word [esp + 0x12], cx
add word [esp + 0x16], cx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x30]
push 0
push ecx
mov ecx, ebx
call fcn.004bc360
mov ecx, eax
call fcn.004c95c0
mov ebp, dword [eax]
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], ebp
lea edi, [esi + 0x1c]
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
call fcn.004bb6f0
mov eax, dword [0x940ae8]
mov dword [esp + 0x50], 0
test eax, 0x10000
je 0x41c9ec
push edi
lea ecx, [esp + 0x34]
call fcn.004bb7b0
test dword [esp + 0x5c], 0x20000
je 0x41c9df
push 0xff
lea ecx, [esp + 0x34]
call fcn.004bc070
jmp 0x41c9e8
lea ecx, [esp + 0x30]
call fcn.004bc130
lea edi, [esp + 0x30]
movsx eax, word [esp + 0x1a]
movsx esi, word [esp + 0x12]
movsx ecx, bp
movsx ebp, word [esp + 0x10]
mov word [esp + 0x58], cx
mov word [esp + 0x5a], ax
mov edx, dword [esp + 0x58]
push 0
mov dword [esp + 0x60], edx
push 1
movsx edx, ax
movsx esi, si
sub edx, esi
movsx esi, cx
movsx ebp, bp
sub esi, ebp
mov word [esp + 0x62], dx
mov word [esp + 0x60], si
mov edx, dword [esp + 0x60]
mov dword [esp + 0x60], edx
movsx edx, word [esp + 0x26]
sub edx, eax
movsx eax, word [esp + 0x24]
sub eax, ecx
inc edx
inc eax
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
push ebx
push edi
call fcn.0047d2c0
add esp, 0x20
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0xffffffff
call fcn.004bc350
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x44
ret 8
Function at 0x41db00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545708
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.0041d450
xor eax, eax
mov dword [esi], 0x549e94
mov dword [esi + 0x204], eax
mov ecx, dword [0x67a8cc]
push ecx
push 1
lea edx, [esi + 0x1fc]
push 8
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + 0x200]
add esp, 0x10
cmp eax, 1
jge 0x41db69
mov dword [esi + 0x200], 1
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0043ede0
mov ecx, dword [esi + 8]
mov dword [esi + 0xbc], 0xffffffff
and ch, 0xfd
mov eax, esi
or ch, 1
mov dword [esi + 8], ecx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x41e6e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545768
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.0041d450
lea edi, [esi + 0x1fc]
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
lea edx, [esp + 0x20]
mov dword [edi], eax
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov dword [esi], 0x54a074
mov ecx, dword [0x67a8cc]
mov dword [esp + 0x18], eax
push ecx
push 1
push 2
push edx
mov dword [esp + 0x30], eax
call ebx
mov eax, dword [0x67a8cc]
push eax
push 1
push 2
push edi
call ebx
mov eax, dword [edi]
add esp, 0x20
cmp eax, 2
je 0x41e766
mov eax, dword [esi + 0xc4]
and dword [eax + 0x20], 0xfffffffe
mov ecx, dword [0x67a8cc]
mov ebx, dword [sym.imp.MSVCRT.dll_ftell]
push ecx
call ebx
add esp, 4
mov ecx, esi
push eax
call fcn.0043e9b0
mov edx, dword [0x67a8cc]
push edx
call ebx
add esp, 4
mov ecx, esi
push eax
call fcn.0043ee20
mov eax, dword [edi]
add eax, 0xfffffffc
cmp eax, 0xb
ja case.default.0x41e79e
jmp dword [eax*4 + 0x41e87c]
mov eax, 0x102
jmp 0x41e7cd
mov eax, 0x106
jmp 0x41e7cd
mov eax, 0x105
jmp 0x41e7cd
mov eax, 0x103
jmp 0x41e7cd
mov eax, 0xc9
jmp 0x41e7cd
mov eax, 0xcb
push eax
mov eax, dword [esi + 0x18]
push 1
push esi
push eax
call fcn.0047e080
add esp, 0x10
mov eax, dword [esi + 8]
test ah, 3
jne 0x41e7eb
or ah, 3
mov dword [esi + 8], eax
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe9
jl 0x41e811
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xea
jle 0x41e84e
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x102
je 0x41e84e
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x115
je 0x41e84e
push 1
push 0x2392
call fcn.00493e00
mov ecx, eax
call fcn.00490450
test eax, eax
je 0x41e863
mov edi, dword [edi]
cmp edi, 4
jl 0x41e85a
cmp edi, 0xf
jle 0x41e863
mov eax, dword [esi + 8]
or ah, 8
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x41ee70
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x545788
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.0041d450
lea ebp, [esi + 0x1fc]
xor ebx, ebx
mov dword [esi + 0x200], ebx
push 0x24
mov dword [ebp], ebx
mov dword [esi + 0x208], ebx
mov dword [esi + 0x20c], ebx
mov dword [esp + 0x20], ebx
mov dword [esi], 0x54a164
call fcn.004784b0
mov edi, eax
add esp, 4
cmp edi, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_ftell]
je 0x41eeef
mov ecx, dword [0x67a8cc]
push 1
push ecx
call ebx
add esp, 4
mov ecx, edi
push eax
call fcn.00495d60
jmp 0x41eef1
xor eax, eax
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov dword [esi + 0xcc], eax
mov edx, dword [0x67a8cc]
push edx
push 1
push 2
push ebp
call edi
mov eax, dword [0x67a8cc]
push eax
call ebx
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043e9b0
mov ecx, dword [0x67a8cc]
push ecx
call ebx
add esp, 4
mov ecx, esi
push eax
call fcn.0043ee20
mov eax, dword [0x67a8cc]
xor edx, edx
push eax
push 1
lea ecx, [esp + 0x2c]
mov word [esp + 0x2d], dx
push 4
push ecx
mov byte [esp + 0x34], 0
mov byte [esp + 0x37], dl
call edi
push 4
lea edx, [esp + 0x38]
push str.flag
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x1c
test eax, eax
jne 0x41ef82
mov eax, dword [0x67a8cc]
push eax
push 1
lea eax, [esi + 0x200]
push 4
push eax
call edi
add esp, 0x10
mov ecx, dword [esi + 8]
mov eax, dword [ebp]
and ch, 0xfd
or ch, 1
cmp eax, 2
mov dword [esi + 8], ecx
je 0x41efa0
mov eax, dword [esi + 0xcc]
and dword [eax + 0x20], 0xfffffffe
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe9
jl 0x41efc6
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xea
jle 0x41f003
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x102
je 0x41f003
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x115
je 0x41f003
push 1
push 0x2392
call fcn.00493e00
mov ecx, eax
call fcn.00490450
test eax, eax
je 0x41f00c
mov eax, dword [esi + 8]
or ah, 8
mov dword [esi + 8], eax
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 0x41f510
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5457a8
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.0041d450
lea eax, [esi + 0x1fc]
xor ebx, ebx
lea ebp, [esi + 0x220]
mov dword [esi + 0x200], ebx
mov dword [eax], ebx
mov dword [esi + 0x214], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [ebp], ebx
mov dword [esi + 0x228], ebx
mov dword [esi + 0x22c], ebx
mov ecx, dword [esi + 0xc4]
mov dword [esi], 0x54a254
mov edi, dword [sym.imp.MSVCRT.dll_fread]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], ebx
and edx, 0xfffffffe
mov dword [ecx + 0x20], edx
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 2
push eax
call edi
mov edx, dword [0x67a8cc]
lea eax, [esi + 0x200]
push edx
push 1
push 2
push eax
call edi
mov eax, dword [0x67a8cc]
lea ecx, [esi + 0x204]
push eax
push 4
push 4
push ecx
call edi
mov edx, dword [0x67a8cc]
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x34
mov ecx, esi
push eax
call fcn.0043e9b0
mov eax, dword [0x67a8cc]
push eax
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, esi
push eax
call fcn.0043ee20
cmp dword [0x67a7f0], 0x1a
jl 0x41f67b
mov ecx, dword [0x67a8cc]
push ecx
push 1
push 4
push ebp
call edi
mov al, byte [ebp]
add esp, 0x10
test al, 1
je 0x41f651
push 0x24
call fcn.004784b0
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41f647
mov edx, dword [0x67a8cc]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov ecx, ebp
push eax
call fcn.00495d60
mov dword [esi + 0x12c], eax
jmp 0x41f664
xor eax, eax
mov dword [esi + 0x12c], eax
jmp 0x41f664
mov eax, dword [0x67a8cc]
push 1
push 0x10
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov ecx, dword [0x67a8cc]
lea edx, [esi + 0x230]
push ecx
push 1
push 4
push edx
call edi
add esp, 0x10
mov eax, dword [esi + 0x200]
dec eax
cmp eax, 6
ja case.default.0x41f687
jmp dword [eax*4 + 0x41f78c]
mov eax, 0x102
jmp 0x41f6bd
mov eax, 0x103
jmp 0x41f6bd
mov eax, 0x105
jmp 0x41f6bd
mov eax, 0x106
jmp 0x41f6bd
mov eax, 0xc9
jmp 0x41f6bd
mov eax, 0xca
jmp 0x41f6bd
mov eax, 0xcb
push eax
mov eax, dword [esi + 0x18]
push 2
push esi
push eax
call fcn.0047e080
add esp, 0x10
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 eax, dword [esi + 8]
test ah, 3
jne 0x41f6f8
or ah, 3
mov dword [esi + 8], eax
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xe9
jl 0x41f71e
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0xea
jle 0x41f75b
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x102
je 0x41f75b
call fcn.00488f40
mov ecx, eax
call fcn.004752c0
cmp eax, 0x115
je 0x41f75b
push 1
push 0x2392
call fcn.00493e00
mov ecx, eax
call fcn.00490450
test eax, eax
je 0x41f774
mov eax, dword [esi + 0x200]
cmp eax, 1
jl 0x41f76b
cmp eax, 7
jle 0x41f774
mov eax, dword [esi + 8]
or ah, 8
mov dword [esi + 8], eax
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