joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4855f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00493f80
push 0x104
lea ecx, [ebp - 0x108]
push 0
push ecx
call fcn.00493f80
add esp, 0x18
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x20c], 0
je 0x485681
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x485655
sub eax, edx
cmp byte [ebp + eax - 0x20d], 0x5c
je 0x485681
lea edi, [ebp - 0x20c]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x485670
mov ax, word [0x4cd950]
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push str._sXZIP_d
push edx
call fcn.0049543b
add esp, 0x10
cmp byte [ebp - 0x108], 0
je 0x4856e1
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4856b5
sub eax, edx
cmp byte [ebp + eax - 0x109], 0x5c
je 0x4856e1
lea edi, [ebp - 0x108]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4856d0
mov ax, word [0x4cd950]
mov word [edi], ax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00484a50
add esp, 4
lea eax, [ebp - 0x108]
mov edx, esi
mov ecx, eax
pop edi
sub edx, ecx
pop esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x485700
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x487580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x30c]
push eax
push esi
mov byte [esi + 0xd], 0xfa
call fcn.00487070
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.00493f80
push 0x49
lea edx, [ebp - 0x30c]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00495060
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x20c]
push 0x49
push edx
call fcn.0048e990
mov eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x30c]
push ecx
push esi
mov dword [esi + 0x49], eax
call fcn.00487070
push edi
push 0x4d
lea edx, [ebp - 0x30c]
push 1
push edx
call fcn.0049ac5a
add esp, 0x44
cmp eax, 0x4d
je 0x48762d
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
add dword [0x50ec7a], 0x4d
cmp byte [esi + 0x13], 0
jne 0x487673
cmp byte [0x50ed63], 0
je 0x487673
mov ecx, dword [0x50ec3a]
test ecx, ecx
jle 0x487673
mov eax, dword [0x50ec66]
test eax, eax
je 0x487673
push edi
push ecx
push 1
push eax
call fcn.0049ac5a
mov ecx, dword [0x50ec3a]
add esp, 0x10
cmp eax, ecx
jne 0x487618
add dword [0x50ec7a], ecx
cmp byte [esi + 0x13], 0
push ebx
je 0x4876bb
movzx eax, byte [esi + 0x14]
mov ecx, dword [0x50ec6c]
movzx ebx, byte [esi + 0x14]
push edi
push eax
add ecx, 0x437
push 1
push ecx
call fcn.0049ac5a
add esp, 0x10
cmp eax, ebx
je 0x4876b5
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
add dword [0x50ec7a], ebx
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x487860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50ec3e]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
call fcn.00484180
push esi
call fcn.004bbf77
add esp, 0xc
cmp eax, 0x4034b50
jne 0x4878d7
mov ecx, dword [0x50ec6c]
mov byte [ecx + 0xb], 1
mov edx, dword [0x50ec3e]
push edx
push esi
call fcn.00484180
lea eax, [ebp - 0x108]
push eax
push esi
call fcn.00488020
add esp, 0x10
cmp eax, 1
jne 0x4879cf
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
cmp eax, 0x70695a58
jne 0x4878c3
mov ecx, dword [0x50ec6c]
mov byte [ecx + 0xb], 0
mov edx, dword [0x50ec3e]
push edx
push esi
call fcn.00484180
push esi
push 0x4d
lea eax, [ebp - 0x208]
push 1
push eax
call fcn.0049a72e
add esp, 0x18
cmp eax, 0x4d
jne 0x4878c3
lea ecx, [ebp - 0x208]
push 0x50ed58
push ecx
call fcn.00487280
add esp, 8
cmp byte [0x50ed63], 0
je 0x48794c
cmp byte [0x50ed6b], 0
jne 0x48794c
mov edx, dword [0x50ed7d]
push edx
push esi
call fcn.004841b0
add esp, 8
test eax, eax
jne 0x4878c3
lea eax, [ebp - 0x208]
push eax
call fcn.00487510
add esp, 4
cmp eax, 1
je 0x4878c3
cmp byte [0x50ed6b], 0
je 0x4879cf
cmp byte [ebp + 0xc], 0
je 0x4879cf
movzx ecx, byte [0x50ed6c]
mov edx, dword [0x50ec6c]
push esi
push ecx
add edx, 0x437
push 1
push edx
call fcn.0049a72e
movzx ecx, byte [0x50ed6c]
add esp, 0x10
cmp eax, ecx
jne 0x4878c3
mov dl, byte [0x50ed6b]
mov eax, dword [0x50ec6c]
mov byte [eax + 0x17], dl
mov ecx, dword [0x50ed6d]
movzx edx, byte [0x50ed6b]
push ecx
push edx
call fcn.00488d70
add esp, 8
test eax, eax
jne 0x4878c3
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret

Function at 0x488020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0049b181
mov eax, dword [0x50eda8]
add esp, 4
test eax, eax
jne 0x48806b
push 0x108
push 1
call fcn.00495ea1
add esp, 8
mov dword [0x50eda8], eax
test eax, eax
jne 0x48806b
push str._Zip_cloacking
push 0x3fa
call fcn.00486d60
add esp, 8
mov eax, 1
pop esi
pop ebp
ret
push esi
push 0x1e
push 1
push eax
call fcn.0049a72e
add esp, 0x10
cmp eax, 0x1e
jne 0x488063
mov eax, dword [0x50eda8]
movzx ecx, word [eax + 0x1a]
push esi
push ecx
lea edx, [ebp + 0xc]
push 1
push edx
call fcn.0049a72e
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
add esp, 0x10
cmp eax, edx
jne 0x488063
push esi
push 0x4d
push 1
push 0x50ed58
call fcn.0049a72e
xor ecx, ecx
add esp, 0x10
cmp eax, 0x4d
setne cl
pop esi
mov eax, ecx
pop ebp
ret
Function at 0x4880d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50eda8], 0
jne 0x488129
push 0x108
push 1
call fcn.00495ea1
add esp, 8
mov dword [0x50eda8], eax
test eax, eax
jne 0x488129
push str._Zip_cloacking
push 0x3fa
call fcn.00486d60
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00493f80
push 0
push 0
call fcn.0048a280
lea edx, [ebp - 0x108]
add esp, 0x14
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x488150
mov ecx, dword [0x50eda8]
mov dword [ecx], 0x4034b50
mov eax, dword [0x50eda8]
mov edx, 0x14
mov word [eax + 4], dx
mov edx, dword [0x50eda8]
mov ecx, 2
mov word [edx + 6], cx
mov ecx, dword [0x50eda8]
mov eax, 0xb
mov word [ecx + 8], ax
mov eax, dword [0x50eda8]
xor edx, edx
mov word [eax + 0xa], dx
mov edx, dword [0x50eda8]
xor ecx, ecx
mov word [edx + 0xc], cx
mov eax, dword [0x50eda8]
mov dword [eax + 0xe], ecx
mov ecx, dword [0x50eda8]
mov dword [ecx + 0x12], 0
mov edx, dword [0x50edba]
mov eax, dword [edx + 2]
mov ecx, dword [0x50eda8]
mov dword [ecx + 0x16], eax
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4881e0
sub eax, edx
mov edx, dword [0x50eda8]
mov word [edx + 0x1a], ax
mov ecx, dword [0x50eda8]
mov eax, 0x4d
mov word [ecx + 0x1c], ax
mov edx, dword [0x50ec6c]
mov eax, dword [edx + 4]
mov ecx, dword [0x50eda8]
push eax
push 0x1e
push 1
push ecx
call fcn.0049ac5a
add esp, 0x10
cmp eax, 0x1e
je 0x488249
push 0x4cd9ca
push 0x3ef
call fcn.00486d60
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov edx, dword [0x50ec6c]
mov eax, dword [edx + 4]
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
push eax
push edx
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0049ac5a
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
add esp, 0x10
cmp eax, edx
jne 0x488224
mov eax, dword [0x50ec6c]
mov ecx, dword [eax + 4]
push ecx
push 0x50ed58
call fcn.00487580
add esp, 8
test eax, eax
jne 0x488224
push esi
mov esi, dword [0x50eda8]
push edi
lea edi, [esi + 0x1e]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
movsw word es:[edi], word [esi]
pop edi
xor ecx, ebp
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x488910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50eda8], 0
push edi
mov edi, dword [ebp + 8]
jne 0x48896e
push 0x108
push 1
call fcn.00495ea1
add esp, 8
mov dword [0x50eda8], eax
test eax, eax
jne 0x48896e
push str._Zip_cloacking
push 0x3fa
call fcn.00486d60
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50ec6c]
mov ecx, dword [eax]
push ecx
call fcn.0049b181
mov edx, dword [0x50ec6c]
mov eax, dword [edx]
mov ecx, dword [0x50eda8]
push eax
push 0x1e
push 1
push ecx
call fcn.0049a72e
add esp, 0x14
cmp eax, 0x1e
je 0x4889c2
push 0x4cd9ca
push 0x3e9
call fcn.00486d60
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov edx, dword [0x50ec6c]
mov eax, dword [edx]
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
push eax
push edx
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.0049a72e
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
add esp, 0x10
cmp eax, edx
jne 0x48899c
push esi
movzx esi, word [ecx + 0x1c]
cmp esi, 0xa00b0
jbe 0x488a17
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x488a2c
jmp 0x488a20
push edi
call fcn.0049f5d8
add esp, 4
dec esi
jne 0x488a20
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x488a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f9590]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x50eda8], esi
jne 0x488a9a
push 0x108
push 1
call fcn.00495ea1
add esp, 8
mov dword [0x50eda8], eax
cmp eax, esi
jne 0x488a9a
push str._Zip_cloacking
push 0x3fa
call fcn.00486d60
add esp, 8
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50ec6c]
mov ecx, dword [eax]
push ebx
push edi
push ecx
call fcn.0049b181
push 0x104
lea edx, [ebp - 0x108]
push esi
push edx
mov dword [0x50edb6], esi
mov dword [0x50edda], esi
call fcn.00493f80
mov eax, dword [0x50ec6c]
mov ecx, dword [eax]
mov edx, dword [0x50eda8]
push ecx
push 0x1e
push 1
push edx
call fcn.0049a72e
add esp, 0x20
cmp eax, 0x1e
jne 0x488bd6
jmp 0x488af0
mov ecx, dword [0x50ec6c]
mov eax, dword [0x50eda8]
cmp dword [eax], 0x4034b50
mov edx, dword [ecx]
push edx
jne 0x488bfe
movzx eax, word [eax + 0x1a]
push eax
lea ecx, [ebp - 0x108]
push 1
push ecx
call fcn.0049a72e
mov ecx, dword [0x50eda8]
movzx edx, word [ecx + 0x1a]
add esp, 0x10
cmp eax, edx
jne 0x488bd6
movzx esi, word [ecx + 0x1c]
mov eax, dword [0x50ec6c]
mov edi, dword [eax]
mov ebx, ecx
cmp esi, 0xa00b0
ja 0x488bd6
test esi, esi
je 0x488b5c
nop
push edi
call fcn.0049f5d8
add esp, 4
dec esi
jne 0x488b50
mov ecx, dword [ebx + 0x12]
push 1
push ecx
push edi
call fcn.0049aa87
mov eax, dword [0x50eda8]
mov edx, dword [eax + 0x16]
add dword [0x50edda], edx
mov eax, dword [eax + 0x16]
mov edx, dword [0x50edb6]
push 0
push 0
push 0
push eax
lea ecx, [ebp - 0x108]
push ecx
push edx
call fcn.0048eea0
add esp, 0x24
test eax, eax
jne 0x488be8
inc dword [0x50edb6]
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00493f80
mov ecx, dword [0x50ec6c]
mov edx, dword [ecx]
mov eax, dword [0x50eda8]
push edx
push 0x1e
push 1
push eax
call fcn.0049a72e
add esp, 0x1c
cmp eax, 0x1e
je 0x488af0
push 0x4cd9ca
push 0x3e9
call fcn.00486d60
add esp, 8
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004944f9
mov esp, ebp
pop ebp
ret
call fcn.00488910
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.004944f9
mov esp, ebp
pop ebp
ret
Function at 0x489470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x50edac]
mov ecx, dword [eax + 0xd]
mov edx, dword [ebp + 8]
push ebx
add ecx, edx
push esi
push edi
cmp ecx, dword [eax + 9]
jle 0x4895e4
mov ecx, dword [eax + 9]
mov edi, dword [eax + 0xd]
mov esi, dword [ebp + 0x14]
mov ebx, ecx
sub ebx, edi
sub edi, ecx
add edi, edx
test ebx, ebx
jle 0x4894c3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push ebx
push 1
push eax
call fcn.0049ac5a
add esp, 0x10
mov dword [esi], eax
cmp eax, ebx
jne 0x4895da
mov eax, dword [0x50edac]
cmp edi, dword [eax + 9]
jle 0x48955a
lea esp, [esp]
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 1
lea ecx, [ebp + 0x10]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x4895d4
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x50edac]
mov eax, dword [edx + 9]
push ecx
mov ecx, dword [esi]
add ecx, dword [ebp + 0xc]
push eax
push 1
push ecx
call fcn.0049ac5a
add dword [esi], eax
mov eax, dword [0x50edac]
mov edx, dword [eax + 9]
mov dword [eax + 0xd], edx
mov eax, dword [0x50edac]
sub edi, dword [eax + 9]
inc dword [eax + 1]
mov eax, dword [0x50ec6c]
mov ecx, dword [0x50edac]
mov edx, dword [ecx + 1]
add eax, 0x127
push eax
dec edx
push edx
push 0xc02
call fcn.00487e20
mov eax, dword [0x50edac]
add esp, 0x1c
cmp edi, dword [eax + 9]
jg 0x4894d0
test edi, edi
je 0x4895ff
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 1
lea ecx, [ebp + 0x10]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x4895d4
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
add edx, dword [ebp + 0xc]
push ecx
push edi
push 1
push edx
call fcn.0049ac5a
add dword [esi], eax
mov eax, dword [0x50edac]
mov dword [eax + 0xd], edi
mov eax, dword [0x50edac]
inc dword [eax + 1]
mov ecx, dword [0x50ec6c]
mov edx, dword [0x50edac]
mov eax, dword [edx + 1]
add ecx, 0x127
push ecx
dec eax
push eax
push 0xc02
call fcn.00487e20
add esp, 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov dword [esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
add dword [eax + 0xd], edx
mov ecx, dword [ebp + 0x10]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push 1
push edx
call fcn.0049ac5a
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x489610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
cmp eax, 0x200
jle 0x4897f9
mov edx, dword [ebp + 0xc]
mov eax, dword [0x50edac]
mov dword [ebp - 4], edx
lea esp, [esp]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 0xd]
add ecx, 0x200
xor edi, edi
cmp ecx, dword [eax + 9]
jle 0x4897a3
mov ecx, dword [eax + 9]
mov esi, dword [eax + 0xd]
mov ebx, ecx
sub ebx, esi
sub esi, ecx
add esi, 0x200
test ebx, ebx
jle 0x48968f
mov eax, dword [ebp + 0x10]
push eax
push ebx
push 1
push edx
call fcn.0049ac5a
mov edi, eax
mov eax, dword [0x50edac]
add esp, 0x10
cmp edi, ebx
jne 0x4897c5
cmp esi, dword [eax + 9]
jle 0x48972a
jmp 0x4896a0
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 1
lea ecx, [ebp + 8]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x489833
mov ecx, dword [ebp + 8]
mov edx, dword [0x50edac]
mov eax, dword [edx + 9]
push ecx
mov ecx, dword [ebp - 4]
push eax
add ecx, edi
push 1
push ecx
call fcn.0049ac5a
add edi, eax
mov eax, dword [0x50edac]
mov edx, dword [eax + 9]
mov dword [eax + 0xd], edx
mov eax, dword [0x50edac]
sub esi, dword [eax + 9]
inc dword [eax + 1]
mov eax, dword [0x50ec6c]
mov ecx, dword [0x50edac]
mov edx, dword [ecx + 1]
add eax, 0x127
push eax
dec edx
push edx
push 0xc02
call fcn.00487e20
mov eax, dword [0x50edac]
add esp, 0x1c
cmp esi, dword [eax + 9]
jg 0x4896a0
test esi, esi
je 0x4897c5
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 1
lea ecx, [ebp + 8]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x489833
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push ecx
push esi
add edx, edi
push 1
push edx
call fcn.0049ac5a
add edi, eax
mov eax, dword [0x50edac]
mov dword [eax + 0xd], esi
mov eax, dword [0x50edac]
inc dword [eax + 1]
mov ecx, dword [0x50ec6c]
mov edx, dword [0x50edac]
mov eax, dword [edx + 1]
add ecx, 0x127
push ecx
dec eax
push eax
push 0xc02
call fcn.00487e20
add esp, 0x1c
jmp 0x4897c0
add dword [eax + 0xd], 0x200
mov ecx, dword [ebp + 8]
push ecx
push 0x200
push 1
push edx
call fcn.0049ac5a
add esp, 0x10
mov edi, eax
mov eax, dword [0x50edac]
cmp edi, 0x200
jne 0x489833
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 4]
sub esi, edi
mov edi, dword [ebp - 0xc]
add edi, 0x200
add edx, 0x200
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edx
cmp esi, 0x200
jg 0x489640
test esi, esi
je 0x489825
mov edx, dword [ebp + 0xc]
lea eax, [edi + edx]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push esi
mov dword [ebp + 8], 0
call fcn.00489470
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, esi
jne 0x489833
add edi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x50ec6c]
cmp byte [eax + 0x19], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
jne 0x48987f
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push edi
push esi
push edx
call fcn.0049ac5a
imul esi, edi
add esp, 0x10
add dword [0x50ec7a], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x50edac]
cmp byte [eax], 1
jne 0x4898b0
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
imul ecx, edi
push edx
push eax
push ecx
call fcn.00489610
add esp, 0x10
test eax, eax
je 0x4898d7
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
mov edx, esi
imul edx, edi
push eax
push ecx
push edx
call fcn.00489470
add esp, 0x10
test eax, eax
je 0x4898d7
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
imul esi, edi
add dword [0x50ec7a], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4898f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
push 1
push ebx
call fcn.0049a72e
mov esi, dword [ebp + 0x14]
add esp, 0x10
mov dword [esi], eax
cmp eax, edi
je 0x4899fd
sub edi, eax
mov eax, dword [0x50edac]
cmp edi, dword [eax + 9]
jle 0x48999f
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 0
lea ecx, [ebp + 0x10]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x489a04
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x50edac]
mov eax, dword [edx + 9]
push ecx
mov ecx, dword [esi]
push eax
add ecx, ebx
push 1
push ecx
call fcn.0049a72e
add dword [esi], eax
mov eax, dword [0x50edac]
mov edx, dword [0x50ec6c]
sub edi, dword [eax + 9]
mov eax, dword [eax + 1]
add edx, 0x127
push edx
push eax
push 0xc03
call fcn.00487e20
mov eax, dword [0x50edac]
inc dword [eax + 1]
mov eax, dword [0x50edac]
add esp, 0x1c
cmp edi, dword [eax + 9]
jg 0x489925
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 0
lea ecx, [ebp + 0x10]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
test eax, eax
jne 0x489a04
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
push ecx
push edi
add edx, ebx
push 1
push edx
call fcn.0049a72e
add dword [esi], eax
mov eax, dword [0x50ec6c]
mov ecx, dword [0x50edac]
mov edx, dword [ecx + 1]
add eax, 0x127
push eax
push edx
push 0xc03
call fcn.00487e20
mov eax, dword [0x50edac]
add esp, 0x1c
inc dword [eax + 1]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
mov dword [esi], 0
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x489a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
cmp esi, 0x200
jle 0x489b83
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push 0x200
lea ebx, [edi + ecx]
push 1
push ebx
mov dword [ebp + 8], eax
call fcn.0049a72e
mov esi, eax
add esp, 0x10
cmp esi, 0x200
je 0x489b66
mov eax, dword [0x50edac]
mov edi, 0x200
sub edi, esi
cmp edi, dword [eax + 9]
jle 0x489afa
mov eax, dword [eax + 1]
mov ecx, dword [0x50ec6c]
push 0
lea edx, [ebp + 8]
push edx
push eax
add ecx, 0x127
push ecx
call fcn.004892e0
add esp, 0x10
cmp eax, 1
je 0x489bbd
mov edx, dword [ebp + 8]
mov eax, dword [0x50edac]
mov ecx, dword [eax + 9]
push edx
push ecx
lea edx, [ebx + esi]
push 1
push edx
call fcn.0049a72e
mov ecx, dword [0x50ec6c]
add esi, eax
mov eax, dword [0x50edac]
mov edx, dword [eax + 1]
sub edi, dword [eax + 9]
add ecx, 0x127
push ecx
push edx
push 0xc03
call fcn.00487e20
mov eax, dword [0x50edac]
inc dword [eax + 1]
mov eax, dword [0x50edac]
add esp, 0x1c
cmp edi, dword [eax + 9]
jg 0x489a80
mov edx, dword [eax + 1]
mov eax, dword [0x50ec6c]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
add eax, 0x127
push eax
call fcn.004892e0
add esp, 0x10
test eax, eax
jne 0x489bbd
mov ecx, dword [ebp + 8]
push ecx
push edi
push 1
add ebx, esi
push ebx
call fcn.0049a72e
mov edx, dword [0x50ec6c]
add esi, eax
mov eax, dword [0x50edac]
mov ecx, dword [eax + 1]
add edx, 0x127
push edx
push ecx
push 0xc03
call fcn.00487e20
mov eax, dword [0x50edac]
inc dword [eax + 1]
add esp, 0x1c
cmp esi, 0x200
jne 0x489bbd
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
sub eax, 0x200
add edi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
cmp eax, 0x200
jg 0x489a40
mov esi, eax
test esi, esi
je 0x489baf
mov edx, dword [ebp + 0xc]
lea eax, [edi + edx]
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push esi
mov dword [ebp + 8], 0
call fcn.004898f0
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, esi
jne 0x489bbd
add edi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret