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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, 0x4d4d
push dword [esi + 0x4fa58]
mov word [esi], ax
call fcn.005960c7
add eax, 7
add esp, 4
cmp eax, dword [ebp + 8]
jge 0x4e2e7c
push ebx
push edi
jmp 0x4e2dd0
push dword [esi + 0x4fa58]
call fcn.005960c7
add esp, 4
mov ecx, esi
mov ebx, eax
call fcn.004d2a10
mov edi, eax
cmp edi, 8
jb 0x4e2e7a
push dword [esi + 0x4fa58]
lea eax, [ebp - 4]
push 1
push 4
push eax
call fcn.00595b79
lea eax, [ebp - 4]
add esp, 0x10
cmp dword [eax], 0x766f6f6d
je 0x4e2e23
cmp dword [eax], 0x61746475
je 0x4e2e23
cmp dword [eax], 0x48544e43
jne 0x4e2e2e
lea eax, [edi + ebx]
mov ecx, esi
push eax
call fcn.004e2da0
lea eax, [ebp - 4]
cmp dword [eax], 0x41444e43
jne 0x4e2e4f
push dword [esi + 0x4fa58]
call fcn.005960c7
add esp, 4
mov ecx, esi
push eax
call fcn.004e0150
push 0
lea eax, [edi + ebx]
push eax
push dword [esi + 0x4fa58]
call fcn.00595cb4
push dword [esi + 0x4fa58]
call fcn.005960c7
add eax, 7
add esp, 0x10
cmp eax, dword [ebp + 8]
jl 0x4e2dd0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4e3020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0x4949
push dword [edi + 0x4fa58]
mov word [edi], ax
lea eax, [ebp - 0xac]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
mov ecx, edi
call fcn.004d2a10
push dword [edi + 0x4fa58]
mov esi, eax
call fcn.005960c7
add esp, 4
lea ebx, [esi + eax]
lea eax, [ebp - 0xac]
cmp dword [eax], 0x46464952
je 0x4e324e
cmp dword [eax], 0x5453494c
je 0x4e324e
cmp dword [eax], 0x6774636e
jne 0x4e3117
push dword [edi + 0x4fa58]
call fcn.005960c7
add eax, 7
add esp, 4
cmp eax, ebx
jae 0x4e32a4
mov ecx, edi
call fcn.004d29d0
mov ecx, edi
movzx esi, ax
call fcn.004d29d0
movzx ecx, ax
lea eax, [esi + 1]
and eax, 0xfffffffe
cmp eax, 0x14
jne 0x4e30e0
cmp ecx, eax
jne 0x4e30e0
push 0
mov ecx, edi
call fcn.004d2df0
jmp 0x4e30f1
push 1
push ecx
push dword [edi + 0x4fa58]
call fcn.00595cb4
add esp, 0xc
push dword [edi + 0x4fa58]
call fcn.005960c7
add eax, 7
add esp, 4
cmp eax, ebx
jb 0x4e30b2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xac]
cmp dword [eax], 0x54494449
jne 0x4e322c
cmp esi, 0x40
jae 0x4e322c
push dword [edi + 0x4fa58]
lea eax, [ebp - 0x44]
push 1
push 0x40
push eax
call fcn.00595b79
lea eax, [ebp - 0x94]
mov byte [ebp + esi - 0x44], 0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0x88], 0
push eax
lea eax, [ebp - 0xa4]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x44]
push str._s__s__d__d:_d:_d__d
push eax
movdqu xmmword [ebp - 0xa8], xmm0
movdqu xmmword [ebp - 0x98], xmm0
call fcn.00593320
add esp, 0x30
cmp eax, 6
jne 0x4e32a4
xor esi, esi
mov ebx, 0x5e03c4
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00452150
add esp, 8
test eax, eax
je 0x4e31cf
inc esi
add ebx, 4
cmp esi, 0xc
jb 0x4e31b2
sub dword [ebp - 0x94], 0x76c
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0x98], esi
call fcn.00597095
add esp, 4
test edx, edx
jl 0x4e32a4
jg 0x4e3200
test eax, eax
je 0x4e32a4
lea eax, [ebp - 0xa8]
push eax
call fcn.00597095
add esp, 4
mov dword [edi + 0x378], eax
mov dword [edi + 0x37c], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 1
push esi
push dword [edi + 0x4fa58]
call fcn.00595cb4
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004d2a10
push dword [edi + 0x4fa58]
call fcn.005960c7
push dword [edi + 0x4fa58]
mov esi, eax
call fcn.005960c7
mov edx, eax
add esp, 8
lea ecx, [edx + 7]
cmp ecx, ebx
jae 0x4e32a4
lea esp, [esp]
cmp edx, esi
je 0x4e32a4
mov ecx, edi
mov esi, edx
call fcn.004e3020
push dword [edi + 0x4fa58]
call fcn.005960c7
mov edx, eax
add esp, 4
lea eax, [edx + 7]
cmp eax, ebx
jb 0x4e3280
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4e3650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0x4949
push 0
push 4
push dword [edi + 0x4fa58]
mov word [edi], ax
call fcn.00595cb4
add esp, 0xc
mov ecx, edi
call fcn.004d2a10
push 0
mov ecx, edi
mov ebx, eax
call fcn.004d2a10
push eax
push dword [edi + 0x4fa58]
call fcn.00595cb4
add esp, 0xc
test ebx, ebx
je 0x4e377e
mov ecx, edi
dec ebx
call fcn.004d2a10
mov ecx, edi
mov esi, eax
call fcn.004d2a10
push dword [edi + 0x4fa58]
lea eax, [ebp - 0xc]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
lea eax, [ebp - 0xc]
mov ecx, str.META
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e36f7
test dl, dl
je 0x4e36f3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e36f7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e36d7
xor eax, eax
jmp 0x4e36fc
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e3706
mov dword [edi + 0x3a0], esi
mov ecx, str.THUMB
lea eax, [ebp - 0xc]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4e3730
test dl, dl
je 0x4e372c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4e3730
add eax, 2
add ecx, 2
test dl, dl
jne 0x4e3710
xor eax, eax
jmp 0x4e3735
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e373f
mov dword [edi + 0x39c], esi
mov eax, str.RAW0
lea ecx, [ebp - 0xc]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4e3767
test dl, dl
je 0x4e3763
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4e3767
add ecx, 2
add eax, 2
test dl, dl
jne 0x4e3747
xor eax, eax
jmp 0x4e376c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e3776
mov dword [edi + 0x398], esi
test ebx, ebx
jne 0x4e36a8
mov eax, dword [edi + 0x3a0]
push 0
add eax, 0x14
push eax
push dword [edi + 0x4fa58]
call fcn.00595cb4
push dword [edi + 0x4fa58]
lea esi, [edi + 0x211]
push 1
push 0x40
push esi
call fcn.00595b79
push 0x20
push esi
mov byte [edi + 0x250], 0
call fcn.00593a90
mov esi, eax
add esp, 0x24
test esi, esi
je 0x4e37df
lea ecx, [esi + 1]
lea edx, [edi + 0x251]
sub edx, ecx
mov edi, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4e37d0
mov byte [esi], al
mov ecx, edi
call fcn.004d29d0
mov ecx, edi
mov word [edi + 0x44a6], ax
call fcn.004d29d0
mov ecx, edi
mov word [edi + 0x44a4], ax
mov dword [edi + 0x446c4], 0x4ec5e0
call fcn.004d2a10
mov ecx, edi
call fcn.004d29d0
mov ecx, edi
mov word [edi + 0x44b8], ax
call fcn.004d29d0
mov ecx, dword [ebp - 4]
mov word [edi + 0x44ba], ax
xor ecx, ebp
mov dword [edi + 0x446c8], 0x4e8130
mov dword [edi + 0x43f4], 0x3fff
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4e8cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
push dword [ebx + 0x4fa58]
push edi
push 2
push esi
call fcn.00595b79
add esp, 0x10
cmp eax, edi
jae 0x4e8cfb
mov ecx, ebx
call fcn.004cdd80
push 0x1234
call fcn.0045c6a0
xor ecx, ecx
add esp, 4
mov edx, 0x1234
cmp ax, dx
mov edx, 0x4949
sete cl
xor eax, eax
cmp word [ebx], dx
sete al
cmp eax, ecx
jne 0x4e8d34
lea eax, [edi + edi]
push eax
push esi
push esi
call fcn.005bb3c8
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4e95d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
cmp ax, word [esi + 0x44a8]
jae 0x4e97ca
push ebx
movzx eax, word [esi + 0x44aa]
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x4e97b6
mov eax, edi
and eax, 7
add eax, eax
mov dword [ebp - 0x28], eax
mov eax, edi
and eax, 7
add eax, eax
mov dword [ebp - 0x38], eax
lea ecx, [ecx]
movzx ecx, word [esi + 0x44b0]
mov ebx, edi
movzx eax, word [esi + 0x44b4]
shr ebx, cl
imul ebx, eax
mov eax, edx
shr eax, cl
mov ecx, dword [esi + 0x44c0]
mov dword [ebp - 0x20], ecx
add ebx, eax
mov eax, edx
mov edx, dword [ebp - 0x28]
and eax, 1
add edx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x388]
mov dword [ebp - 0x3c], eax
shl ebx, 2
lea ecx, [edx + edx]
mov dword [ebp - 0x40], ebx
shr eax, cl
mov ecx, dword [ebp - 0x20]
and eax, 3
add eax, ebx
cmp word [ecx + eax*2], 0
jne 0x4e979d
xor eax, eax
xor edi, edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0xc], edi
lea ebx, [eax - 4]
cmp ebx, eax
ja 0x4e979a
lea eax, [edx + edx]
mov dword [ebp - 0x30], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 4]
cmp eax, ecx
ja 0x4e9766
movzx edx, word [esi + 0x44a8]
mov ecx, ebx
and ecx, 7
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x10]
add ecx, ecx
mov dword [ebp - 0x14], ecx
jmp 0x4e96d0
cmp ebx, dword [ebp - 0x2c]
jae 0x4e975d
cmp eax, dword [ebp - 0x24]
jae 0x4e975d
mov esi, dword [esi + 0x388]
mov edi, eax
and edi, 1
mov edx, esi
add edi, ecx
mov ecx, dword [ebp - 0x30]
add edi, edi
shr edx, cl
mov ecx, edi
shr esi, cl
xor edx, esi
test dl, 3
jne 0x4e9751
mov edx, dword [ebp - 8]
mov esi, ebx
movzx ecx, word [edx + 0x44b0]
movzx edx, word [edx + 0x44b4]
shr esi, cl
imul esi, edx
mov edx, eax
shr edx, cl
mov ecx, edi
mov edi, dword [ebp - 0xc]
add esi, edx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x388]
shr edx, cl
and edx, 3
lea edx, [edx + esi*4]
mov esi, dword [ebp - 8]
mov ecx, dword [esi + 0x44c0]
movzx ecx, word [ecx + edx*2]
mov edx, dword [ebp - 0x10]
test cx, cx
je 0x4e975a
inc edi
add dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], edi
jmp 0x4e975a
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc eax
cmp eax, edx
jbe 0x4e96d0
mov eax, dword [ebp - 4]
inc ebx
add eax, 2
cmp ebx, eax
jbe 0x4e96a0
test edi, edi
je 0x4e979a
mov eax, dword [ebp - 0x18]
xor edx, edx
div edi
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
add ecx, ecx
shr edx, cl
mov ecx, dword [ebp - 0x20]
and edx, 3
add edx, dword [ebp - 0x40]
mov word [ecx + edx*2], ax
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
movzx ebx, word [esi + 0x44aa]
inc edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], ebx
cmp edx, ebx
jb 0x4e9620
movzx eax, word [esi + 0x44a8]
inc edi
mov dword [ebp - 4], edi
cmp edi, eax
jb 0x4e95f2
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4eaed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push dword [edi + 0x4fa58]
push 1
push 3
push eax
call fcn.00595b79
push dword [edi + 0x4fa58]
xor esi, esi
mov dword [ebp - 0x10], esi
call fcn.00595867
mov ebx, dword [ebp + 8]
add esp, 0x14
test eax, eax
jne 0x4eafd9
lea ebx, [ebx]
push dword [edi + 0x4fa58]
call fcn.00597fff
add esp, 4
mov cl, al
cmp byte [ebp - 4], 0xff
mov byte [ebp - 1], cl
jne 0x4eafaf
cmp byte [ebp - 3], 0xd8
jne 0x4eafaf
cmp byte [ebp - 2], 0xff
jne 0x4eafaf
cmp cl, 0xdb
jne 0x4eafaf
mov eax, dword [ebp + 0xc]
push dword [edi + 0x4fa58]
cmp dword [eax + 0xa0], 0xffffffff
jne 0x4eaff9
call fcn.005960c7
push 0
lea esi, [eax - 4]
mov eax, dword [ebp + 8]
push esi
push dword [eax]
call fcn.00595cb4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00479f90
add esp, 0x1c
test ax, ax
je 0x4eafac
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jle 0x4eafac
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0xc]
jle 0x4eafac
mov dword [ebp - 8], eax
mov ebx, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 1
mov cl, byte [ebp - 1]
movzx eax, byte [ebp - 3]
push dword [edi + 0x4fa58]
mov byte [ebp - 4], al
movzx eax, byte [ebp - 2]
mov byte [ebp - 3], al
mov byte [ebp - 2], cl
call fcn.00595867
add esp, 4
test eax, eax
je 0x4eaf20
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax]
call fcn.00595cb4
add esp, 0xc
xor eax, eax
test esi, esi
invalid
inc ebp

Function at 0x4ebb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push esi
push edi
je 0x4ebbed
mov eax, dword [ebp + 0x14]
xor ecx, ecx
jmp 0x4ebb60
imul eax, eax, 0x2e90edd
inc eax
mov dword [ecx + 0x6455e8], eax
add ecx, 4
cmp ecx, 0x10
jb 0x4ebb60
mov ecx, dword [0x6455f0]
mov esi, 0x6455ec
xor ecx, dword [0x6455e8]
mov edi, 0x7b
mov eax, dword [0x6455f4]
shr ecx, 0x1f
add eax, eax
or ecx, eax
mov dword [0x6455f4], ecx
lea ecx, [ecx]
mov ecx, dword [esi + 8]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
mov eax, dword [esi - 8]
xor eax, dword [esi]
shr ecx, 0x1f
add eax, eax
or ecx, eax
mov dword [esi + 8], ecx
dec edi
jne 0x4ebba0
xor ecx, ecx
mov dword [0x6457e8], ecx
push dword [ecx*4 + 0x6455e8]
call fcn.0045c670
mov ecx, dword [0x6457e8]
add esp, 4
mov dword [ecx*4 + 0x6455e8], eax
inc ecx
mov dword [0x6457e8], ecx
cmp ecx, 0x7f
jb 0x4ebbc3
jmp 0x4ebbf3
mov ecx, dword [0x6457e8]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4ebc3f
push ebx
mov ebx, dword [ebp + 8]
lea esi, [ecx - 1]
mov eax, ecx
dec edi
inc ecx
inc esi
test eax, eax
je 0x4ebc38
lea edx, [esi - 0x3f]
mov eax, ecx
and edx, 0x7f
and eax, 0x7f
mov edx, dword [edx*4 + 0x6455e8]
xor edx, dword [eax*4 + 0x6455e8]
mov eax, esi
xor dword [ebx], edx
and eax, 0x7f
add ebx, 4
mov dword [eax*4 + 0x6455e8], edx
test edi, edi
jne 0x4ebc01
mov dword [0x6457e8], ecx
pop ebx
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4f1150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x18], eax
jle 0x4f126a
push esi
mov esi, dword [ebp + 8]
push ebx
push edi
lea ebx, [ebx]
push esi
xor edi, edi
xor ebx, ebx
call fcn.0045d210
movzx eax, ax
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4f123e
jmp 0x4f1190
push dword [esi]
lea eax, [ebp - 2]
push 1
push 1
push eax
call fcn.00595b79
mov al, byte [ebp - 2]
inc edi
add esp, 0x10
mov dword [ebp - 8], edi
test al, 1
je 0x4f11b6
movzx eax, al
shr eax, 1
add ebx, eax
jmp 0x4f1235
movzx esi, al
shr esi, 2
test al, 2
je 0x4f11ff
mov eax, dword [ebp + 8]
inc esi
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test esi, esi
je 0x4f11fc
movzx eax, byte [ebp - 1]
mov ecx, esi
mov edi, dword [ebp + 0x10]
imul eax, eax, 0x1010101
add edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
add ebx, esi
rep stosb byte es:[edi], al
mov edi, dword [ebp - 8]
inc edi
jmp 0x4f1232
inc esi
je 0x4f1232
add edi, esi
mov dword [ebp - 8], edi
mov edi, dword [ebp + 8]
lea ebx, [ebx]
push dword [edi]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
mov ecx, dword [ebp + 0x10]
add esp, 0x10
mov al, byte [ebp - 1]
mov byte [ebx + ecx], al
inc ebx
dec esi
jne 0x4f1210
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 8]
cmp edi, dword [ebp - 0x14]
jl 0x4f1190
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0xc]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x4f1267
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp + 0x18]
jl 0x4f1170
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4f1ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x20
push esi
mov esi, dword [ebp + 0xc]
cmp esi, ecx
push dword [eax]
mov eax, esi
cmovg eax, ecx
push 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00595b79
mov eax, 0x1f
add esp, 0x10
cmp esi, eax
cmovg esi, eax
cmp esi, 0x20
jae 0x4f2053
lea eax, [ebp - 0x24]
mov byte [ebp + esi - 0x24], 0
push eax
call fcn.00593e1b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
call fcn.00592dbb
int3

Function at 0x4f2950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0x18]
push esi
call fcn.00593e38
mov ebx, eax
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x4f2976
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push esi
push ebx
call fcn.00595b79
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0x4c82e0
push 0x5d7d18
push eax
mov dword [ebp - 0x18], fcn.004f3030
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], esi
call fcn.00535880
add esp, 0x1c
test eax, eax
je 0x4f29be
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
xor esi, esi
push edi
xor edi, edi
test ebx, ebx
jle 0x4f2a38
lea ebx, [ebx]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
nop
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.00534050
add esp, 8
cmp eax, 1
je 0x4f2a0d
cmp eax, 0xfffffffd
jne 0x4f2a04
lea eax, [ebp - 0x3c]
push eax
call fcn.00535a10
add esp, 4
test eax, eax
jne 0x4f2a0d
cmp dword [ebp - 0x2c], eax
ja 0x4f29e0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x4f2a38
cmp dword [ebp - 0x2c], 0
jne 0x4f2a33
inc edi
cmp edi, ebx
jl 0x4f29d0
jmp 0x4f2a38
mov esi, 4
push dword [ebp - 4]
call fcn.00592c4b
lea eax, [ebp - 0x3c]
push eax
call fcn.00535770
add esp, 8
mov ax, si
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f2dc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
push 1
push 4
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4f2de7
pop edi
mov eax, 4
pop esi
pop ebp
ret
cmp dword [esi], 0x4c494f
je 0x4f2df8
pop edi
mov eax, 2
pop esi
pop ebp
push edi
call fcn.0045d030
add esp, 4
mov dword [esi + 4], eax
cmp eax, 0x693d71
jne 0x4f2def
push edi
call fcn.0045d210
add esp, 4
mov word [esi + 8], ax
cmp ax, 1
jne 0x4f2def
push edi
call fcn.0045d030
add esp, 4
mov dword [esi + 0xc], eax
test eax, eax
je 0x4f2def
push edi
call fcn.0045d030
push edi
mov dword [esi + 0x10], eax
call fcn.0045d030
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push dword [edi]
push 1
push 0x53
push eax
call fcn.00595b79
add esp, 0x18
test eax, eax
je 0x4f2dde
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4f2ee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x14], ebx
jle 0x4f3011
jmp 0x4f2f00
test bx, bx
jne 0x4f3011
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4f301b
mov al, byte [ebp - 1]
test al, al
jns 0x4f2fa7
and al, 0x7f
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
push 1
push eax
call fcn.00595b79
movzx eax, byte [ebp - 1]
add esp, 0x10
inc eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4f3008
nop
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 0x18]
add eax, esi
push eax
call fcn.00592150
add esi, dword [ebp + 0xc]
add esp, 0xc
cmp esi, dword [ebp + 0x10]
jl 0x4f2f99
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x4f3008
inc edi
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x4f2f60
jmp 0x4f3008
movzx eax, al
inc eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x4f3008
lea esp, [esp]
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp + 0x18]
push 1
push dword [ebp + 0xc]
add eax, esi
push eax
call fcn.00595b79
add esi, dword [ebp + 0xc]
add esp, 0x10
cmp esi, dword [ebp + 0x10]
jl 0x4f2ffc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x4f3008
inc edi
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x4f2fc0
cmp edi, dword [ebp + 0x14]
jl 0x4f2f00
pop edi
pop esi
mov ax, bx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f3c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x1c], ebx
call fcn.00505000
movzx eax, ax
add esp, 8
test ax, ax
jne 0x4f3dee
mov ecx, dword [ebp - 0xc]
mov eax, ecx
and eax, 7
inc eax
movzx edx, ax
mov eax, 1
test cl, cl
jns 0x4f3ca4
mov cl, dl
shl eax, cl
lea eax, [eax + eax*2]
test ebx, ebx
je 0x4f3c9a
push dword [esi]
push 1
push eax
push ebx
call fcn.00595b79
add esp, 0x10
jmp 0x4f3ca4
push eax
push esi
call fcn.0045d3f0
add esp, 8
push edi
push dword [esi]
call fcn.00597fff
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x4f3d0f
cmp edi, 0x3b
je 0x4f3d0f
cmp edi, 0x21
jne 0x4f3d0a
push dword [esi]
call fcn.00597fff
mov edi, eax
add esp, 4
cmp edi, 0xf9
je 0x4f3cdf
lea eax, [edi - 0xfe]
cmp eax, 1
ja 0x4f3d0a
push dword [esi]
call fcn.00597fff
add esp, 4
test eax, eax
je 0x4f3d0a
lea ecx, [ecx]
cmp eax, 0xffffffff
je 0x4f3d0a
push eax
push esi
call fcn.0045d3f0
push dword [esi]
call fcn.00597fff
add esp, 0xc
test eax, eax
jne 0x4f3cf0
cmp edi, 0x2c
jne 0x4f3ca5
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.004f3be0
add esp, 8
test ax, ax
jne 0x4f3d3f
mov ecx, 4
xor eax, eax
pop edi
test cx, cx
pop esi
sete al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x24]
test bl, bl
jns 0x4f3d7c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
and eax, 7
inc eax
movzx eax, ax
mov cl, al
mov eax, 1
shl eax, cl
lea eax, [eax + eax*2]
test edx, edx
je 0x4f3d72
push dword [esi]
push 1
push eax
push edx
call fcn.00595b79
add esp, 0x10
jmp 0x4f3d7c
push eax
push esi
call fcn.0045d3f0
add esp, 8
movzx edi, word [ebp - 0x28]
cmp edi, dword [ebp + 0x18]
jne 0x4f3deb
movzx eax, word [ebp - 0x26]
cmp eax, dword [ebp + 0x1c]
jne 0x4f3deb
push dword [esi]
call fcn.00597fff
movzx eax, ax
add esp, 4
mov dword [ebp - 0x1c], eax
add eax, 0xfffffffe
cmp ax, 7
ja 0x4f3deb
call fcn.0045bc00
test al, al
je 0x4f3deb
push dword [ebp + 0xc]
movzx eax, word [ebp - 0x26]
push eax
push edi
shr ebx, 6
and ebx, 1
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call fcn.004f3240
add esp, 0x1c
movzx ecx, ax
xor eax, eax
test cx, cx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret