joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ab070
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
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push esi
mov esi, dword [ebp + 8]
push dword [esi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4ab0b3
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x28]
push str.SCMI
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4ab0df
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x24]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4ab09e
lea eax, [ebp - 0x24]
mov byte [ebp - 0x20], 0
push edi
push eax
call fcn.00593e1b
mov dword [ebx], eax
lea eax, [ebp - 0x28]
mov dword [ebx + 0x10], 0
push dword [esi]
push 1
push 2
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x4ab21c
push dword [esi]
lea eax, [ebp - 0x24]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4ab21c
lea eax, [ebp - 0x24]
mov byte [ebp - 0x1c], 0
push eax
call fcn.00593e1b
push 2
mov edi, eax
lea eax, [ebp - 0x28]
push 0x5dbc1c
push eax
call fcn.00596360
add esp, 0x10
test eax, eax
jne 0x4ab1aa
push dword [esi]
lea eax, [ebp - 0x24]
push 1
push 0xc
push eax
call fcn.00595b79
lea eax, [ebx + 0xc]
mov byte [ebp - 0x18], 0
push eax
lea eax, [ebx + 8]
push eax
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x24]
push str._d__d__d
push eax
call fcn.00593320
add esp, 0x24
cmp edi, 0xc
jle 0x4ab202
lea eax, [edi - 0xc]
push eax
push esi
call fcn.0045d3f0
add esp, 8
jmp 0x4ab202
push 2
lea eax, [ebp - 0x28]
push 0x5dbc20
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x4ab232
mov dword [ebx + 0x10], 1
mov dword [ebp - 0x2c], eax
cmp dword [ebx + 0xc], eax
jle 0x4ab202
lea edi, [ebx + 0x15]
push dword [esi]
call fcn.00597fff
mov byte [edi - 1], al
push dword [esi]
call fcn.00597fff
mov byte [edi], al
push dword [esi]
call fcn.00597fff
mov byte [edi + 1], al
lea edi, [edi + 3]
mov eax, dword [ebp - 0x2c]
add esp, 0xc
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebx + 0xc]
jl 0x4ab1d3
push dword [esi]
lea eax, [ebp - 0x28]
push 1
push 2
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4ab126
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 2
lea eax, [ebp - 0x28]
push 0x5dbc24
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x4ab25a
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, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4abd00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push dword [esi]
push 1
push 5
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4abd4e
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 5
lea eax, [ebp - 0xc]
push str.FAX1D
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4abd7b
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045d210
movzx eax, ax
mov dword [edi], eax
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
mov dword [ebx], 0xc8
push dword [esi]
call fcn.00597fff
mov ecx, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, 0x64
add eax, 0x64
mov dword [ecx], eax
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
mov ecx, dword [ebp - 4]
add esp, 0x28
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4ac580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
push dword [esi]
mov dword [ebp - 0x10], eax
call fcn.00597fff
add esp, 4
cmp eax, 1
je 0x4ac5cd
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.00597fff
add esp, 4
test eax, eax
jne 0x4ac5b7
push dword [esi]
call fcn.00597fff
add esp, 4
mov ecx, 2
cmp eax, 1
jne 0x4ac5f4
mov word [edi], ax
jmp 0x4ac5f7
mov word [edi], cx
push dword [esi]
lea eax, [ebp - 0xc]
push 1
push 3
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4ac623
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov byte [ebp - 9], 0
push eax
call fcn.00593e1b
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push dword [esi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x4ac60d
lea eax, [ebp - 0xc]
mov byte [ebp - 8], 0
push eax
call fcn.00593e1b
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
lea eax, [ebp - 0xc]
push dword [esi]
push 1
push 5
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x4ac60d
lea eax, [ebp - 0xc]
mov byte [ebp - 7], 0
push eax
call fcn.00593e1b
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
push dword [esi]
call fcn.00597fff
add esp, 0x10
cmp eax, 2
jne 0x4ac5b7
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x4acd90
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 esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 6
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4acdd3
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 6
lea eax, [ebp - 0xc]
push str.mhwanh
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4acdff
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
call fcn.0045d240
push esi
mov word [edi], ax
call fcn.0045d240
push esi
mov word [edi + 2], ax
call fcn.0045d240
push esi
mov word [edi + 4], ax
call fcn.0045d240
push esi
mov word [edi + 6], ax
call fcn.0045d240
push esi
mov word [edi + 8], ax
call fcn.0045d240
push esi
mov word [edi + 0xa], ax
call fcn.0045d240
push esi
mov word [edi + 0xc], ax
call fcn.0045d240
push esi
mov word [edi + 0xe], ax
call fcn.0045d240
push 8
push esi
mov word [edi + 0x10], ax
call fcn.0045d3f0
mov ecx, dword [ebp - 4]
add esp, 0x2c
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4ad520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
push dword [edi]
call fcn.0045d510
push esi
push dword [edi + 4]
call fcn.0045d510
push esi
push dword [edi + 8]
call fcn.0045d510
push esi
push dword [edi + 0xc]
call fcn.0045d510
push esi
push dword [edi + 0x10]
call fcn.0045d510
push esi
push dword [edi + 0x14]
call fcn.0045d510
push dword [esi]
lea eax, [edi + 0x18]
push 1
push 8
push eax
call fcn.0059628c
add esp, 0x40
lea eax, [edi + 0x20]
push dword [esi]
push 1
push 0x64
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x84]
push 1
push 0xc
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x90]
push 1
push 0xc
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x9c]
push 1
push 0x24
push eax
call fcn.0059628c
add esp, 0x40
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4ad5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
movzx eax, byte [edi]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 1]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 2]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 3]
push eax
call fcn.005958b3
push esi
push dword [edi + 4]
call fcn.0045d510
push esi
push dword [edi + 8]
call fcn.0045d510
push dword [esi]
lea eax, [edi + 0xc]
push 1
push 0x14
push eax
call fcn.0059628c
add esp, 0x40
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4ad630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
movzx eax, byte [ebx]
push dword [esi]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 1]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 2]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 3]
push eax
call fcn.005958b3
lea edi, [ebx + 6]
add esp, 0x20
mov ebx, 8
push dword [esi]
lea eax, [edi - 2]
push 1
push 2
push eax
call fcn.0059628c
push dword [esi]
movzx eax, byte [edi]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 1]
push eax
call fcn.005958b3
push esi
push dword [edi + 2]
call fcn.0045d510
push esi
push dword [edi + 6]
call fcn.0045d510
movss xmm0, dword [edi + 0xa]
add esp, 0x28
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [edi + 0xe]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [edi + 0x12]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [edi + 0x16]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
add esp, 0xc
lea edi, [edi + 0x1c]
dec ebx
jne 0x4ad676
mov ebx, dword [ebp + 0xc]
sub esp, 8
movss xmm0, dword [ebx + 0xe4]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xe8]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xec]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xf0]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xf4]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xf8]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0xfc]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [ebx + 0x100]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
push dword [esi]
lea eax, [ebx + 0x104]
push 1
push 0xc8
push eax
call fcn.0059628c
push dword [esi]
lea eax, [ebx + 0x1cc]
push 1
push 0x1c
push eax
call fcn.0059628c
add esp, 0x2c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4ad810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
push dword [edi]
call fcn.0045d510
push esi
push dword [edi + 4]
call fcn.0045d510
push dword [esi]
lea eax, [edi + 8]
push 1
push 0x64
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x6c]
push 1
push 0xc
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x78]
push 1
push 0xc
push eax
call fcn.0059628c
add esp, 0x40
lea eax, [edi + 0x84]
push dword [esi]
push 1
push 0x40
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0xc4]
push 1
push 0x20
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0xe4]
push 1
push 0x20
push eax
call fcn.0059628c
movss xmm0, dword [edi + 0x104]
add esp, 0x28
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [edi + 0x108]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
movss xmm0, dword [edi + 0x10c]
add esp, 4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
push dword [esi]
lea eax, [edi + 0x110]
push 1
push 0x28
push eax
call fcn.0059628c
add esp, 0x1c
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4ad900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
movzx eax, byte [edi]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 1]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 2]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [edi + 3]
push eax
call fcn.005958b3
push esi
push dword [edi + 4]
call fcn.0045d510
push esi
push dword [edi + 8]
call fcn.0045d510
push dword [esi]
lea eax, [edi + 0xc]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x40
push esi
push dword [edi + 0x2c]
call fcn.0045d510
movss xmm0, dword [edi + 0x30]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
push dword [esi]
lea eax, [edi + 0x34]
push 1
push 0x20
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x54]
push 1
push 0xc8
push eax
call fcn.0059628c
push dword [esi]
lea eax, [edi + 0x11c]
push 1
push 0x2e4
push eax
call fcn.0059628c
add esp, 0x3c
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4ad9c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov edx, 0x7f0
movzx eax, word [edi + 0x24]
cmp ax, 1
jne 0x4ad9de
mov esi, 2
jmp 0x4ad9eb
xor ecx, ecx
mov esi, 0x100
cmp ax, dx
cmove esi, ecx
lea eax, [esi*4 + 0x28]
push eax
push 1
call fcn.00592c0b
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x4ada0a
pop edi
lea eax, [ecx + 1]
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov edx, 1
push ebx
lea ebx, [ecx + 0x28]
mov dword [ebp + 8], ebx
mov dword [eax], ecx
mov dword [ecx], 0x28
mov eax, dword [edi + 0x2c]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x30]
mov dword [ecx + 8], eax
mov word [ecx + 0xc], dx
movzx eax, word [edi + 0x24]
cmp ax, dx
jne 0x4ada40
mov word [ecx + 0xe], dx
jmp 0x4ada58
mov edx, 0x7f0
cmp ax, dx
mov eax, 0x18
je 0x4ada54
mov eax, 8
mov word [ecx + 0xe], ax
cmp word [ecx + 0xe], 8
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x24], 0
ja 0x4adafc
lea eax, [esi*4]
push eax
push 0
push ebx
call fcn.00595760
mov edx, dword [ebp + 0xc]
add esp, 0xc
test edx, edx
je 0x4adad5
test esi, esi
jle 0x4adafc
lea ecx, [ebx + 2]
add edx, 2
lea esp, [esp]
movzx eax, byte [edx - 2]
lea edx, [edx + 3]
mov byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 4]
mov byte [ecx - 5], al
movzx eax, byte [edx - 3]
mov byte [ecx - 4], al
dec esi
jne 0x4adab0
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
test esi, esi
jle 0x4adafc
mov ecx, dword [ebp + 8]
lea ebx, [esi - 1]
xor edi, edi
inc ecx
mov eax, edi
lea ecx, [ecx + 4]
cdq
add edi, 0xff
idiv ebx
mov byte [ecx - 3], al
mov byte [ecx - 4], al
mov byte [ecx - 5], al
dec esi
jne 0x4adae2
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4af060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, 0x1c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0xc]
lea ebx, [edi + 1]
lea edx, [edi + 4]
lea esp, [esp]
mov eax, dword [ebp + 0xc]
shr eax, cl
and al, 0x7f
test edi, edi
jne 0x4af0a7
test al, al
je 0x4af0a7
mov edi, 1
lea ebx, [edx + 1]
test edx, edx
je 0x4af0b5
test edi, edi
jne 0x4af0b3
test al, al
je 0x4af0b5
or al, 0x80
mov byte [esi], al
sub ecx, 7
inc esi
dec edx
jns 0x4af090
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 7]
push 1
sub eax, ebx
push ebx
push eax
call fcn.0059628c
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x4afb20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push edi
test ebx, ebx
jle 0x4afb69
nop
mov eax, ebx
mov edi, 0xff
sub eax, esi
cmp eax, edi
cmovl edi, eax
mov eax, dword [ebp + 8]
push dword [eax]
push edi
call fcn.005958b3
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [ebp + 0xc]
push 1
add eax, esi
push edi
push eax
call fcn.0059628c
add esp, 0x18
test eax, eax
je 0x4afb7f
add esi, edi
cmp esi, ebx
jl 0x4afb30
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.005958b3
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 6
pop ebx
pop ebp
ret

Function at 0x4afb90
Capabilities:
Write 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 6
push esi
call fcn.0059628c
movzx eax, word [esi + 6]
push edi
push eax
call fcn.0045d560
movzx eax, word [esi + 8]
push edi
push eax
call fcn.0045d560
push dword [edi]
movzx eax, byte [esi + 0xc]
push eax
call fcn.005958b3
push dword [edi]
movzx eax, byte [esi + 0x10]
push eax
call fcn.005958b3
push dword [edi]
movzx eax, byte [esi + 0x11]
push eax
call fcn.005958b3
add esp, 0x38
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4b0380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call fcn.0045d210
add esp, 4
test ax, ax
jne 0x4b04a7
push dword [esi]
lea eax, [ebp - 0x10]
push 1
push 0xc
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4b03d5
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 9
lea eax, [ebp - 0x10]
push 0x5dbf98
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x4b04a7
cmp byte [ebp - 7], 0x1b
jne 0x4b04a7
cmp byte [ebp - 6], 0x7f
jne 0x4b04a7
cmp byte [ebp - 5], al
jne 0x4b04a7
push esi
call fcn.0045d210
push esi
mov word [edi], ax
call fcn.0045d210
push esi
mov word [edi + 2], ax
call fcn.0045d210
add esp, 0xc
mov word [edi + 4], ax
cmp ax, 1
jne 0x4b04a7
push esi
call fcn.0045d210
push esi
mov word [edi + 6], ax
call fcn.0045d210
mov word [edi + 8], ax
lea eax, [edi + 0xa]
push dword [esi]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x18
test eax, eax
je 0x4b03c0
push esi
call fcn.0045d210
mov word [edi + 0xe], ax
push dword [esi]
call fcn.00597fff
push esi
call fcn.0045d210
push esi
mov word [edi + 0x10], ax
call fcn.0045d210
push esi
mov word [edi + 0x12], ax
call fcn.0045d030
push esi
call fcn.0045d030
add esp, 0x18
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b2440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4b2483
pop edi
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov byte [ebp - 8], 0
lea eax, [ebp - 0x10]
mov ecx, str.srisunim
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b24b0
test dl, dl
je 0x4b24ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b24b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b2490
xor eax, eax
jmp 0x4b24b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4b24ce
pop edi
mov eax, 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.00597fff
add esp, 4
test eax, eax
jne 0x4b24b9
push dword [esi]
call fcn.00597fff
mov byte [edi], al
push dword [esi]
call fcn.00597fff
mov byte [edi + 1], al
push dword [esi]
call fcn.00597fff
add esp, 0xc
mov byte [edi + 2], al
cmp al, 2
jne 0x4b24b9
push esi
call fcn.0045d240
push esi
mov word [edi + 4], ax
call fcn.0045d240
push esi
mov word [edi + 6], ax
call fcn.0045d240
mov word [edi + 8], ax
push dword [esi]
call fcn.005960c7
mov ecx, 0x100
sub ecx, eax
push ecx
push esi
call fcn.0045d3f0
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b3400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 0x10
push edi
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4b3427
pop edi
mov eax, 4
pop esi
pop ebp
ret
push esi
call fcn.0045d070
add esp, 4
mov dword [edi + 0x10], eax
cmp eax, 1
je 0x4b3441
pop edi
mov eax, 2
pop esi
pop ebp
ret
push dword [esi]
lea eax, [edi + 0x14]
push 1
push 0x10
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4b341e
push esi
call fcn.0045d070
push esi
mov dword [edi + 0x24], eax
call fcn.0045d070
push esi
mov dword [edi + 0x28], eax
call fcn.0045d070
push esi
mov dword [edi + 0x2c], eax
call fcn.0045d070
push esi
mov dword [edi + 0x30], eax
call fcn.0045d070
push esi
mov dword [edi + 0x34], eax
call fcn.0045d070
push esi
mov dword [edi + 0x38], eax
call fcn.0045d070
push esi
mov dword [edi + 0x3c], eax
call fcn.0045d070
add esp, 0x20
mov dword [edi + 0x40], eax
cmp eax, 8
je 0x4b34ac
cmp eax, 0x18
jne 0x4b3438
push esi
call fcn.0045d070
add esp, 4
mov dword [edi + 0x44], eax
cmp eax, 1
je 0x4b34c6
cmp eax, 8
jne 0x4b3438
push esi
call fcn.0045d070
add esp, 4
mov dword [edi + 0x48], eax
cmp eax, 1
je 0x4b34e0
cmp eax, 3
jne 0x4b3438
push esi
call fcn.0045d070
push esi
mov dword [edi + 0x4c], eax
call fcn.0045d070
push esi
mov dword [edi + 0x50], eax
call fcn.0045d070
push esi
mov dword [edi + 0x54], eax
call fcn.0045d070
mov dword [edi + 0x58], eax
lea eax, [edi + 0x5c]
push dword [esi]
push 1
push 0x64
push eax
call fcn.00595b79
add esp, 0x20
test eax, eax
je 0x4b341e
push dword [esi]
lea eax, [edi + 0xc0]
push 1
push 0x40
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4b341e
push dword [esi]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret