joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4810e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1e8
push ebx
push ebp
push esi
push edi
push 0x40
lea eax, [esp + 0x4c]
mov dword [esp + 0x1c], 0
xorps xmm0, xmm0
mov dword [esp + 0x24], 7
push 0
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 3
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], 5
mov dword [esp + 0x50], 0
call fcn.004f0670
push 0x40
lea eax, [esp + 0xd0]
mov dword [esp + 0x98], 3
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
push 0
push eax
mov dword [esp + 0xb0], 8
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 3
movlpd qword [esp + 0xc0], xmm0
mov dword [esp + 0xc8], 1
mov dword [esp + 0xd0], 8
mov dword [esp + 0xd4], 0
call fcn.004f0670
push 0x40
lea eax, [esp + 0x154]
mov dword [esp + 0x11c], 3
xorps xmm0, xmm0
mov dword [esp + 0x124], 0
push 0
push eax
mov dword [esp + 0x134], 9
mov dword [esp + 0x138], 0
mov dword [esp + 0x13c], 3
movlpd qword [esp + 0x144], xmm0
mov dword [esp + 0x14c], 1
mov dword [esp + 0x154], 7
mov dword [esp + 0x158], 0
call fcn.004f0670
push 0x40
xorps xmm0, xmm0
mov dword [esp + 0x1a0], 3
lea eax, [esp + 0x1d8]
mov dword [esp + 0x1a8], 0
push 0
push eax
mov dword [esp + 0x1b8], 9
mov dword [esp + 0x1bc], 0
mov dword [esp + 0x1c0], 3
movlpd qword [esp + 0x1c8], xmm0
mov dword [esp + 0x1d0], 4
movlpd qword [esp + 0x1d8], xmm0
call fcn.004f0670
mov eax, dword [esp + 0x22c]
lea edi, [esp + 0x50]
add esp, 0x30
mov dword [esp + 0x1f0], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], edi
lea ebx, [eax + 0x28]
push dword [ebx + 0x1c]
push 2
push ebx
call fcn.0048b5b0
add esp, 0xc
test al, al
je 0x481373
mov esi, dword [edi + 0x68]
push 5
push 0
push esi
push ebx
call fcn.0048b630
add esp, 0x10
test al, al
je 0x481373
xor ebp, ebp
test esi, esi
je 0x48134d
mov esi, edi
nop word [eax + eax]
mov edi, dword [esi - 8]
xor eax, eax
test edi, edi
push 1
sete al
push eax
push ebx
call fcn.0048b5b0
add esp, 0xc
test al, al
je 0x481373
test edi, edi
jne 0x481312
push 8
jmp 0x48132e
push 3
push edi
push ebx
call fcn.0048b5b0
add esp, 0xc
test al, al
je 0x481373
cmp edi, 1
je 0x48132c
cmp edi, 2
jne 0x481340
push 5
push dword [esi + 4]
push dword [esi]
push ebx
call fcn.0048b630
add esp, 0x10
test al, al
je 0x481373
mov edi, dword [esp + 0x14]
inc ebp
add esi, 0x10
cmp ebp, dword [edi + 0x68]
jb 0x4812f0
mov ebp, dword [esp + 0x10]
add edi, 0x78
inc ebp
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebp
cmp ebp, 4
jb 0x4812b3
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1e8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1e8
ret
Function at 0x4d5750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x16c
mov eax, dword [0x991fc0]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x180]
push ebx
mov ebx, dword [esp + 0x180]
push esi
mov esi, dword [esp + 0x178]
push edi
push 0xff
mov dword [esp + 0x18], eax
lea eax, [esp + 0x79]
push 0
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x80], 0
call fcn.004f0670
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d57a5
push esi
sub ecx, edx
lea eax, [esp + 0x78]
push ecx
push str._Z_zu_s
push eax
call fcn.004d5300
lea esi, [esp + 0x84]
xor edi, edi
add esp, 0x10
add esi, eax
cmp dword [esp + 0x184], edi
jbe 0x4d598b
mov ecx, 1
mov dword [esp + 0xc], ecx
push ebp
mov eax, dword [ebx + edi*4]
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
cmp ebp, 6
jne 0x4d5845
mov ebx, dword [esp + 0x14]
mov byte [esi], 0x50
inc esi
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x1c]
cmp eax, 8
ja case.0x4d5804.1
jmp dword [eax*4 + 0x4d59b8]
mov eax, 1
jmp 0x4d5825
mov eax, 2
jmp 0x4d5825
mov eax, 3
jmp 0x4d5825
mov eax, 4
push eax
push str.U3AS_d
push esi
call fcn.004d5300
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add esi, eax
mov eax, dword [ebx + edi*4]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 4]
mov ebp, dword [eax]
test dword [esp + 0x184], ecx
je 0x4d5852
mov byte [esi], 0x4b
inc esi
movzx edx, byte [ebx + 0x11]
movzx eax, byte [ebx + 0x10]
imul edx, eax
cmp edx, 1
jbe 0x4d58a0
xor ecx, ecx
test edi, edi
je 0x4d588f
nop dword [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + ecx*4]
cmp dword [eax], 6
jne 0x4d587f
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
cmp ebx, eax
je 0x4d5941
inc ecx
cmp ecx, edi
jb 0x4d5870
push edx
push str.Dv_d_
push esi
call fcn.004d5300
add esp, 0xc
add esi, eax
cmp ebp, 8
je 0x4d5958
cmp ebp, 0xd
je 0x4d5951
movsx eax, byte [ebx + 4]
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x97a9ac
mov dword [esp + 0x20], 0x54754c
mov dword [esp + 0x24], 0x545140
mov dword [esp + 0x28], 0x97a9b0
mov dword [esp + 0x2c], str.dhcsml
mov dword [esp + 0x30], 0x97a9b8
mov dword [esp + 0x34], 0x97a9bc
mov dword [esp + 0x38], 0x545150
mov dword [esp + 0x3c], 0x97a9c0
mov dword [esp + 0x40], 0x97a9c4
mov dword [esp + 0x44], 0x97a9c8
mov dword [esp + 0x48], 0x547558
movups xmmword [esp + 0x4c], xmm0
mov dword [esp + 0x6c], 0
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov eax, dword [esp + eax*4 + 0x1c]
jmp 0x4d595d
push 0x97a984
push esi
call fcn.004d5300
add esp, 8
jmp 0x4d596c
mov eax, str.9ocl_event
jmp 0x4d595d
mov eax, str.11ocl_sampler
push eax
push 0x51158c
push esi
call fcn.004d5300
add esp, 0xc
mov ecx, dword [esp + 0x10]
inc edi
mov ebx, dword [esp + 0x14]
add esi, eax
rol ecx, 1
mov dword [esp + 0x10], ecx
cmp edi, dword [esp + 0x188]
jb 0x4d57e4
pop ebp
lea eax, [esp + 0x74]
push eax
call fcn.00502388
mov ecx, dword [esp + 0x18]
add esp, 4
pop edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x170]
pop esi
pop ebx
xor ecx, esp
call fcn.004eef15
add esp, 0x16c
ret
Function at 0x4d78d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov ecx, dword [esp + 0x70]
xorps xmm0, xmm0
movq qword [esp + 0x2c], xmm0
mov dword [esp + 0x30], ecx
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 8], eax
movups xmmword [esp + 0x34], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [esp + 0x44], xmm0
test eax, eax
je 0x4d7cc2
push ebx
push ebp
push esi
push edi
mov esi, dword [eax + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi]
test eax, eax
je 0x4d7ca6
test esi, esi
je 0x4d7ca6
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
mov dword [esp + 0x10], ebp
cmp dword [esi + 0xc], 1
jne 0x4d7c7e
mov eax, dword [esp + 0x88]
test dword [esi + 0x1c], eax
je 0x4d7c7e
push esi
call fcn.00417a40
add esp, 4
test al, al
jne 0x4d7c7e
push dword [esi + 0x20]
call fcn.0045f6d0
add esp, 4
test al, al
je 0x4d7c7e
cmp dword [esi + 0x18], 0
mov eax, esi
je 0x4d79b2
nop dword [eax]
mov ecx, dword [eax + 0x18]
cmp ecx, 5
je 0x4d7c7e
test ecx, ecx
jne 0x4d7994
xor eax, eax
jmp 0x4d79ac
movups xmm0, xmmword [eax + 0x24]
psrldq xmm0, 0xc
movd eax, xmm0
mov ecx, dword [eax]
xor eax, eax
cmp dword [ecx + 0xc], 1
cmove eax, ecx
cmp dword [eax + 0x18], 0
jne 0x4d7980
mov eax, dword [eax + 0x24]
test eax, eax
je 0x4d7c7e
push eax
push dword [esp + 0x88]
call fcn.00461b20
add esp, 8
test eax, eax
je 0x4d7c7e
push dword [esp + 0x8c]
mov edi, dword [eax + 8]
lea eax, [esp + 0x60]
push esi
push eax
call fcn.00417ab0
mov eax, dword [esp + 0x84]
xor edx, edx
add esp, 0xc
cmp dword [eax], edx
je 0x4d7c66
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 4
jne 0x4d7a14
mov eax, dword [eax]
mov eax, dword [eax + 0x34]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0xc]
lea edi, [eax + ecx*8]
mov eax, dword [esp + 0x78]
inc edx
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
test ecx, ecx
jne 0x4d7a00
mov ebp, dword [edi + 0x14]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x80], esi
nop word [eax + eax]
mov eax, dword [esp + 0x78]
mov ecx, dword [ecx + eax]
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], ecx
mov edx, dword [ecx + 0x18]
jmp dword [edx*4 + 0x4d7cc8]
xor ebx, ebx
lea eax, [ebx + 0x48]
push eax
lea eax, [esi + 0x48]
push eax
call fcn.00407fa0
push esi
call fcn.00417a40
add esp, 0xc
mov esi, ebp
mov dword [esp + 0x14], esi
test ebp, ebp
je 0x4d7c98
mov eax, dword [ebp]
test eax, eax
je 0x4d7c98
xor ebp, ebp
cmp dword [eax], ebp
cmovne ebp, eax
jmp 0x4d7c9a
xor ebp, ebp
mov dword [esp + 0x10], ebp
test esi, esi
jne 0x4d7936
push dword [esp + 0x18]
call fcn.004073e0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4d7912
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x4e6750
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x30]
push edi
mov byte [esp + 0x10], al
lea eax, [esp + 0x40]
push 1
push eax
push ebp
push esi
mov dword [esp + 0x50], 0
call fcn.00412190
mov ebx, eax
mov dword [esp + 0x50], 1
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x28], ebx
push eax
push ebp
push esi
call fcn.00412190
mov edi, eax
mov dword [esp + 0x60], 2
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x3c], edi
push eax
push ebp
push esi
call fcn.00412190
push ebx
mov ebx, dword [esp + 0x68]
mov esi, eax
push 0x9a
push ebx
mov dword [esp + 0x58], esi
call fcn.0041d8d0
push edi
push 0x9a
push ebx
mov dword [esp + 0x68], eax
call fcn.0041d8d0
add esp, 0x48
mov dword [esp + 0x24], eax
push esi
push 0x9a
push ebx
call fcn.0041d8d0
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
je 0x4e6882
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 3
push eax
push ebp
push ebx
call fcn.00412190
movsd xmm0, qword [0x97b188]
mov edi, eax
add esp, 0x10
movzx esi, byte [edi + 0x11]
push esi
sub esp, 8
movsd qword [esp], xmm0
call fcn.00406d20
push esi
push 1
push dword [ebx + 0x10]
mov ebp, eax
mov dword [esp + 0x58], edx
call fcn.00409c50
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4e686a
mov eax, dword [esp + 0x40]
push esi
mov dword [esi + 0x30], ebp
push ebx
mov dword [esi + 0x34], eax
call fcn.0041dcb0
add esp, 8
add esi, 0x18
push esi
push edi
push 0xed
push ebx
call fcn.0041d920
mov dword [esp + 0x3c], eax
add esp, 0x10
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
push eax
push edi
push 0xd4
push ebx
call fcn.0041d920
push dword [esp + 0x34]
mov esi, eax
push edi
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
mov esi, eax
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.004e5780
add esp, 0x40
mov dword [esp + 0x40], eax
push esi
push ebx
call fcn.0041e030
push dword [esp + 0x30]
mov ebp, eax
push dword [esp + 0x30]
push 0xd4
push ebx
call fcn.0041d920
push edi
push dword [esp + 0x40]
mov esi, eax
push 0xd4
push ebx
call fcn.0041d920
push esi
push eax
push 0x125
push ebx
call fcn.0041d920
push eax
push ebx
call fcn.0041e090
add esp, 0x40
mov esi, eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004e5ac0
push esi
mov esi, dword [esp + 0x40]
mov ebx, eax
push esi
call fcn.0041e030
mov edi, eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004e5e00
push edi
mov edi, dword [esp + 0x50]
mov esi, eax
push edi
call fcn.0041df70
push esi
push ebx
push edi
call fcn.0041dd80
push ebp
push edi
mov esi, eax
call fcn.0041df70
push esi
push dword [esp + 0x78]
push edi
call fcn.0041dd80
add esp, 0x40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x4f04f0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4f052f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4f052f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4f052f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4f052f
cmp dword [ecx + 0x74], 0xe
jbe 0x4f052f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4fd23e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x995bd0]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4fd280
cmp byte [ebx], 0xa
jne 0x4fd280
or byte [edi + eax + 0x28], 4
jmp 0x4fd285
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4fd388
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4fd363
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4fd2b4
mov eax, dword [ebp - 8]
jmp 0x4fd2d4
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4fd2f0
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4fd2ce
add eax, 2
mov cl, 0xa
jmp 0x4fd2d1
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4fd296
jmp 0x4fd388
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fd35e
cmp dword [ebp - 0x10], 0
je 0x4fd35e
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x995bd0]
test byte [eax + edi + 0x28], 0x48
je 0x4fd33d
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4fd32d
mov byte [esi], 0xa
jmp 0x4fd387
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x995bd0]
mov byte [eax + edi + 0x2a], cl
jmp 0x4fd387
cmp byte [ebp - 1], 0xa
jne 0x4fd347
cmp esi, ebx
je 0x4fd328
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00507e8b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fd388
mov byte [esi], 0xd
jmp 0x4fd387
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x995bd0]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4fd385
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4fd388
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fd391
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x995bd0]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4fd3d5
push 0xa
pop esi
cmp word [ebx], si
jne 0x4fd3d5
or byte [eax + edi + 0x28], 4
jmp 0x4fd3da
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4fd545
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4fd51d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4fd427
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4fd451
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4fd470
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4fd43e
push ebx
add eax, 4
pop edx
jmp 0x4fd446
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4fd3ec
jmp 0x4fd545
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4fd518
cmp dword [ebp - 0x14], 0
je 0x4fd518
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x995bd0]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4fd4f4
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4fd4bc
mov word [esi], ax
jmp 0x4fd542
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x995bd0]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x995bd0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x995bd0]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4fd542
cmp word [ebp - 4], ax
jne 0x4fd4fe
cmp esi, ebx
je 0x4fd4b4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00507e8b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fd545
push 0xd
pop eax
jmp 0x4fd4b4
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x995bd0]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4fd53f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4fd545
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ff0ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004efe20
mov eax, dword [0x991fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005035c8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ff0ef
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ff266
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004ef960
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x995bd0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00507e6d
mov ecx, dword [esi*4 + 0x995bd0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4ff25f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ff25f
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ff25f
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507e6d
add esp, 0x14
cmp edx, esi
jl 0x4ff25f
jg 0x4ff1ba
cmp eax, esi
jb 0x4ff25f
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4ff25f
jl 0x4ff1dc
cmp dword [ebp - 0x1008], eax
ja 0x4ff25f
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4ff201
cmp ebx, esi
je 0x4ff246
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4ff246
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ff227
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ff233
cmp byte [ecx + 1], 0xa
jne 0x4ff233
inc ecx
jmp 0x4ff233
movzx eax, al
movsx eax, byte [eax + 0x992120]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ff20d
cmp edx, ebx
jne 0x4ff20d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4ff264
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004eef15
leave
ret
Function at 0x5044b5
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x5044cf
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x5044e6
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x50453e
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00507bc5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x50453e
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x50453e
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x50453e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x504538
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x50453a
xor bl, bl
mov al, bl
jmp 0x504540
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x507f6d
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00507ee9
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5080dc
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5080dc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x508091
jg 0x507fc9
test eax, eax
je 0x508087
push 1
push 0x1000
call fcn.00502d60
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x507fec
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x50807e
push 0x8000
push ebx
call fcn.005010da
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x508015
jg 0x508010
cmp ecx, 0x1000
jb 0x508015
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005040d1
add esp, 0x10
cmp eax, 0xffffffff
je 0x50805a
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x508010
jl 0x508041
test ecx, ecx
jne 0x508002
push dword [ebp - 0xc]
push ebx
call fcn.005010da
push esi
call fcn.00502dc0
add esp, 0xc
xor ebx, ebx
jmp 0x5080ea
cmp byte [edi + 0x24], 0
je 0x508071
cmp dword [edi + 0x20], 5
jne 0x508071
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x50807c
mov ebx, dword [edi + 0x18]
jmp 0x50807e
xor ebx, ebx
push esi
call fcn.00502dc0
pop ecx
jmp 0x5080ea
test ecx, ecx
jg 0x508053
jl 0x508091
test eax, eax
jae 0x508053
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00507e8b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5080b1
cmp byte [edi + 0x1c], 0
je 0x508053
jmp 0x5080e2
push ebx
call fcn.00507bc5
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x508053
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x5080ea
cmp byte [edi + 0x1c], 0
je 0x5080e7
mov ebx, dword [edi + 0x18]
jmp 0x5080ea
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00507e8b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret