joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475aa0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x30], 0
call fcn.00474060
add esp, 0x2c
test eax, eax
je 0x475b88
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x475b14
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.004a6750
mov edx, dword [0x5991d0]
mov ecx, dword [0x5991d4]
add esp, 8
mov dword [0x598998], edx
mov edx, dword [0x5991d8]
mov dword [0x59899c], ecx
mov dword [0x5989a0], edx
pop esi
pop ecx
ret
cmp eax, 3
jne 0x475b4e
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0048c0d0
mov ecx, dword [0x598a40]
mov edx, dword [0x598a44]
add esp, 8
mov dword [0x598998], ecx
mov ecx, dword [0x598a48]
mov dword [0x59899c], edx
mov dword [0x5989a0], ecx
pop esi
pop ecx
ret
mov edx, dword [esp + 0x10]
cmp eax, 6
push edx
push esi
jne 0x475b8e
call fcn.004b7690
mov ecx, dword [0x5997e0]
mov edx, dword [0x5997e4]
add esp, 8
mov dword [0x598998], ecx
mov ecx, dword [0x5997e8]
mov dword [0x59899c], edx
mov dword [0x5989a0], ecx
pop esi
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop esi
pop ecx
ret
Function at 0x478af0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x478c5b
cmp esi, 0xffffffff
je 0x478c5b
cmp dword [0x5989a8], ebp
je 0x478c5b
mov ecx, dword [0x5989b0]
cmp ecx, ebp
je 0x478c5b
mov eax, dword [0x5989ac]
cmp eax, ebp
jge 0x478b39
neg eax
cmp ecx, eax
ja 0x478c5b
push edi
push ecx
mov dword [esp + 0x14], ebp
call fcn.0052644a
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x20], edi
je 0x478c50
mov ecx, dword [0x5989b0]
xor eax, eax
mov edx, ecx
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ebx, dword [0x5989b0]
mov edi, dword [0x5989ac]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
xor ecx, ecx
mov dword [esp + 0x1c], eax
test edi, edi
setl cl
dec ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
push edi
push esi
call ebp
cmp eax, 0xffffffff
je 0x478c42
mov eax, dword [esp + 0x28]
push 0
test eax, eax
je 0x478bd5
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
push esi
call fcn.004bf5a0
add esp, 0x18
jmp 0x478be7
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x18]
push 0
push eax
push ecx
push esi
call ebp
test edi, edi
je 0x478c42
mov ebx, dword [0x598954]
xor edx, edx
test ebx, ebx
jle 0x478c42
mov ebp, dword [0x598950]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + 4]
cmp esi, ecx
jb 0x478c28
mov edi, dword [eax]
mov esi, dword [esp + 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x478c3a
inc edx
add ebp, 4
cmp edx, ebx
mov dword [esp + 0x14], 0
jge 0x478c42
jmp 0x478c0e
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00526473
add esp, 4
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x10
ret
Function at 0x482e90
Capabilities:
Get file size

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004813f0
push eax
call fcn.004c2d10
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x482ef5
mov dword [0x598a40], 0xc
mov dword [0x598a44], 0x14b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.0052644a
mov esi, eax
add esp, 4
test esi, esi
jne 0x482f59
mov dword [0x598a40], 0x21
mov dword [0x598a44], 0x14bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x483043
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x482fda
test eax, eax
jne 0x482fda
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call fcn.004bf6a0
add esp, 0x14
test eax, eax
je 0x483059
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.004c01a0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x483078
mov dword [0x598a40], 0x11
mov dword [0x598a44], 0x14cb
jmp 0x48306d
mov dword [0x598a40], 0xe
mov dword [0x598a44], 0x14da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
push esi
call fcn.00526473
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x484f00
Capabilities:
Get file size

Disassembly:
sub esp, 0x388
push esi
push edi
mov dword [0x598a40], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
mov ecx, 0xe1
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x394]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push esi
call fcn.00481680
add esp, 8
test eax, eax
jne 0x484f63
mov ecx, dword [esp + 0x398]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
pop edi
pop esi
add esp, 0x388
ret
mov eax, dword [esp + 0x398]
test eax, eax
je 0x484f74
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
pop edi
pop esi
add esp, 0x388
ret
Function at 0x485f00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x598a40], ebp
call ebx
mov dword [0x598a48], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x48603c
mov ecx, 0xf8
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0048cdf0
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x485fa5
test edi, edi
jne 0x485fa5
test ebp, ebp
jne 0x485fa5
test ebx, ebx
jne 0x485fa5
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x485fa5
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x486031
cmp eax, 3
jne 0x486031
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.004c0150
add esp, 0xc
test eax, eax
je 0x48602d
mov eax, dword [esp + 0x40]
test esi, esi
je 0x485fd5
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x485fe0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x485fec
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x48600b
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x48601d
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x48602d
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x4860cd
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x4860cd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x4860e8
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4860c6
mov dword [0x598a40], 0xd
mov dword [0x598a44], 0x29f7
call ebx
mov dword [0x598a48], eax
jmp 0x4860ea
mov edi, 1
jmp 0x4860ea
mov dword [0x598a40], 1
mov dword [0x598a44], 0x29ea
call ebx
mov dword [0x598a48], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x485f4e
mov dword [0x598a40], 0xf
mov dword [0x598a44], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x486240
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
push edi
xor edi, edi
mov dword [0x598a40], edi
call ebx
mov esi, dword [esp + 0x400]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x598a48], eax
lea eax, [esp + 0x10]
push 1
push eax
push edi
push esi
mov dword [esp + 0x20], edi
call ebp
push edi
push edi
push edi
push esi
mov dword [esp + 0x28], eax
call ebp
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, 0xffffffff
stosb byte es:[edi], al
je 0x486305
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x486305
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x486320
mov ecx, 0xf8
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x3e0
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4862fe
mov dword [0x598a40], 0xd
mov dword [0x598a44], 0x29f7
call ebx
mov dword [0x598a48], eax
jmp 0x486322
mov edi, 1
jmp 0x486322
mov dword [0x598a40], 1
mov dword [0x598a44], 0x29ea
call ebx
mov dword [0x598a48], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x48635d
mov dword [0x598a40], 0xf
mov dword [0x598a44], 0x1bcd
call ebx
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
lea eax, [esp + 0x1c]
push eax
call fcn.0048cdf0
add esp, 4
cmp eax, 3
jne 0x4863d4
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.004c0150
add esp, 0xc
test eax, eax
je 0x4863b9
mov eax, dword [esp + 0x404]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
pop ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x3ec
ret
mov dword [0x598a40], 0x1c
mov dword [0x598a44], 0x1bdb
call ebx
mov dword [0x598a48], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x486be0
Capabilities:
Timestomp file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x544f58
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
mov dword [0x598a40], edi
call ebp
mov esi, dword [esp + 0x44]
mov dword [0x598a48], eax
cmp esi, edi
je 0x486d13
push esi
call fcn.00422fc1
add esp, 4
test eax, eax
je 0x486d13
mov ebx, dword [esp + 0x48]
cmp ebx, edi
je 0x486d13
push esi
lea ecx, [esp + 0x2c]
call fcn.004c0000
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push esi
mov dword [esp + 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
jne 0x486c95
mov dword [0x598a40], 3
mov dword [0x598a44], 0x1cfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x28]
mov dword [0x598a48], eax
mov dword [esp + 0x3c], ebp
call fcn.004c00a0
jmp 0x486d2e
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x4c]
push eax
push ebx
push esi
call fcn.00486d50
add esp, 0xc
lea ecx, [esp + 0x10]
mov edi, eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], ebp
call fcn.004c00a0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
mov dword [0x598a40], 1
mov dword [0x598a44], 0x1ce7
call ebp
mov dword [0x598a48], eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4872c0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.004813f0
push eax
call fcn.004c2d10
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x487325
mov dword [0x598a40], 0xc
mov dword [0x598a44], 0x1da7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebx + 0x70]
mov edi, dword [ebx + 0x6c]
add eax, edi
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x74]
lea ecx, [eax + edx*2]
mov edx, dword [ebp]
lea eax, [ecx + ecx + 0x7a]
mov ecx, ebp
push eax
mov dword [esp + 0x68], eax
call dword [edx + 8]
mov edi, eax
push edi
mov dword [esp + 0x14], edi
call fcn.0052644a
mov esi, eax
add esp, 4
test esi, esi
jne 0x487389
mov dword [0x598a40], 0x21
mov dword [0x598a44], 0x1db1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x6c]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x68]
push ecx
push esi
push eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x487471
mov edi, dword [esp + 0x68]
mov ebp, dword [esp + 0x60]
mov ebx, dword [edi + 0x378]
mov eax, dword [edi + 0x37c]
test ebx, ebx
mov dword [esp + 0x64], eax
jne 0x48740a
test eax, eax
jne 0x48740a
lea edx, [esp + 0x64]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [esp + 0x64]
push 0
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x487487
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
push edx
push esi
mov dword [edi + 0x378], ebx
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], ecx
call fcn.004c01a0
add esp, 8
mov dword [edi + 0x384], eax
mov dword [esp + 0x14], 1
jmp 0x4874a6
mov dword [0x598a40], 0x11
mov dword [0x598a44], 0x1dbd
jmp 0x48749b
mov dword [0x598a40], 0xe
mov dword [0x598a44], 0x1dcc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
push esi
call fcn.00526473
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x4891a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x598a40], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x598a48], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x489252
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x489252
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x48935c
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x489272
mov dword [0x598a40], 0xd
mov dword [0x598a44], 0x29f7
call esi
mov dword [0x598a48], eax
jmp 0x48935c
mov dword [0x598a40], 1
mov dword [0x598a44], 0x29ea
call esi
mov dword [0x598a48], eax
jmp 0x48935c
mov ecx, 4
mov edi, 0x57b3f4
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x48928b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4892b0
mov ecx, 4
mov edi, 0x57b3cc
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4892a8
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x48935c
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x489312
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x48935c
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x489333
mov dword [0x598a40], 0xd
mov dword [0x598a44], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
jmp 0x48935c
mov dword [0x598a40], 1
mov dword [0x598a44], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
jmp 0x48935c
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0048b980
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret
Function at 0x48b460
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
call fcn.004813f0
push eax
call fcn.004c2d10
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x48b4cb
mov dword [0x598a40], 0xc
mov dword [0x598a44], 0x265e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x70]
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 8]
mov ebx, eax
push ebx
call fcn.0052644a
mov esi, eax
add esp, 4
test esi, esi
jne 0x48b512
mov dword [0x598a40], 0x21
mov dword [0x598a44], 0x2667
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov dword [0x598a48], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x64]
lea edi, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x70]
push ebx
push esi
push ecx
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call dword [edx + 0x10]
test eax, eax
je 0x48b5d2
mov ebp, dword [esp + 0x60]
lea edx, [esp + 0x18]
xor ebx, ebx
push 1
push edx
push ebx
push ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x6c]
push ebx
push ecx
mov dword [esp + 0x1c], eax
mov dword [edi], eax
mov eax, dword [esp + 0x20]
push edx
push esi
push ebp
mov dword [edi + 4], eax
mov dword [esp + 0x80], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x48b5e8
mov eax, dword [esp + 0x70]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x64]
push eax
push esi
mov dword [edi + 8], eax
call fcn.004c01a0
add esp, 8
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], 1
jmp 0x48b607
mov dword [0x598a40], 0x15
mov dword [0x598a44], 0x2673
jmp 0x48b5fc
mov dword [0x598a40], 0xe
mov dword [0x598a44], 0x267f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x598a48], eax
push esi
call fcn.00526473
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret