Function at 0x500b90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x3ac
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3b8]
push esi
mov esi, dword [esp + 0x3c4]
push edi
mov edi, dword [esp + 0x3cc]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x2b9]
push ebx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x2c0], bl
call fcn.005dfd60
add esp, 0xc
cmp esi, ebx
je 0x500bfa
mov byte [esi], bl
cmp edi, ebx
je 0x500c00
mov dword [edi], ebx
push 0x60cf0c
push ebp
call fcn.005e00ad
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x500c30
cmp esi, ebx
je 0x50109e
push ebp
push str.Unable_to_open_file__s_
push esi
call fcn.005dfb23
add esp, 0xc
jmp 0x50109e
push 0x3f
lea ecx, [esp + 0x89]
push ebx
push ecx
mov byte [esp + 0x90], bl
call fcn.005dfd60
push 0xf7
lea edx, [esp + 0x1cd]
push ebx
push edx
mov byte [esp + 0x1d4], bl
call fcn.005dfd60
push edi
push 0x40
lea eax, [esp + 0xa4]
push 1
push eax
call fcn.005e057f
add esp, 0x28
cmp eax, 0x40
je 0x500ca0
push edi
call fcn.005dff6d
add esp, 4
cmp esi, ebx
je 0x50109e
push ebp
push str.Unable_to_read_DosHeader_from__s_
push esi
call fcn.005dfb23
add esp, 0xc
jmp 0x50109e
mov ecx, dword [esp + 0xc0]
push ebx
push ecx
push edi
call fcn.005e0626
push edi
push pe_nt_image_headers32
lea edx, [esp + 0x1d0]
push 1
push edx
call fcn.005e057f
add esp, 0x1c
cmp eax, 0xf8
je 0x500cf3
push edi
call fcn.005dff6d
add esp, 4
cmp esi, ebx
je 0x50109e
push ebp
push str.Unable_to_read_NTHeaders_from__s_
push esi
call fcn.005dfb23
add esp, 0xc
jmp 0x50109e
lea eax, [esp + 0x234]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
mov ebp, dword [eax + 4]
mov ebx, dword [eax]
test ebp, ebp
je 0x500e2e
lea eax, [ebp - 0x11]
cmp eax, 0x5ffee
ja 0x500dad
lea ecx, [ebp + 0x10]
push 1
push ecx
call fcn.005e34ab
mov esi, eax
add esp, 8
test esi, esi
je 0x500da9
push 0
push ebx
push edi
call fcn.005e0626
push edi
push ebp
push 1
push esi
call fcn.005e057f
add esp, 0x1c
cmp byte [esi + 0xc], 6
jne 0x500d6f
cmp byte [esi + 0xd], 9
jne 0x500d6f
cmp byte [esi + 0xe], 0x2a
jne 0x500d6f
cmp byte [esi + 0xf], 0x86
jne 0x500d6f
cmp byte [esi + 9], 0x82
jne 0x500d6f
cmp byte [esi + 8], 0x30
je 0x500e4d
cmp byte [esi + 0xd], 6
jne 0x500d97
cmp byte [esi + 0xe], 9
jne 0x500d97
cmp byte [esi + 0xf], 0x2a
jne 0x500d97
cmp byte [esi + 0x10], 0x86
jne 0x500d97
cmp byte [esi + 9], 0x83
jne 0x500d97
cmp byte [esi + 8], 0x30
je 0x500e4d
push esi
call fcn.005e0865
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x500e2e
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push ebx
push edi
mov byte [esp + 0x3c], 0
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
call fcn.005e0626
push edi
push 0x10
lea edx, [esp + 0x44]
push 1
push edx
call fcn.005e057f
mov al, byte [esp + 0x59]
add esp, 0x1c
cmp byte [esp + 0x3c], 6
jne 0x500e07
cmp al, 9
jne 0x500e07
cmp byte [esp + 0x3e], 0x2a
jne 0x500e2e
cmp byte [esp + 0x3f], 0x86
jne 0x500e2e
cmp byte [esp + 0x39], 0x82
jmp 0x500e25
cmp al, 6
jne 0x500e2e
cmp byte [esp + 0x3e], 9
jne 0x500e2e
cmp byte [esp + 0x3f], 0x2a
jne 0x500e2e
cmp byte [esp + 0x40], 0x86
jne 0x500e2e
cmp byte [esp + 0x39], 0x83
jne 0x500e2e
cmp byte [esp + 0x38], 0x30
je 0x500e89
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
inc ecx
add eax, 8
cmp ecx, 0x10
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
jl 0x500d02
jmp 0x500e99
cmp dword [esp + 0x1c], 0
je 0x500e72
push eax
push str.Microsoft_Corp
push esi
call fcn.004f5ad0
add esp, 0xc
cmp eax, 0xffffffff
je 0x500e72
mov eax, dword [esp + 0x1c]
mov dword [eax], 1
push esi
call fcn.005e0865
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x24], ecx
jmp 0x500e91
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebp
push edi
call fcn.005dff6d
add esp, 4
cmp dword [esp + 0x20], 0
jne 0x500ec9
test esi, esi
je 0x50109e
mov eax, dword [esp + 0x14]
push eax
push str.Unable_to_find_Verisign_Sign_in_file__s_
push esi
call fcn.005dfb23
add esp, 0xc
jmp 0x50109e
cmp dword [esp + 0x3c4], 0
jne 0x500ef4
test esi, esi
je 0x500eea
mov ecx, dword [esp + 0x14]
push ecx
push str.Found_Verisign_Sign_in_file__s
push esi
call fcn.005dfb23
add esp, 0xc
mov eax, 1
jmp 0x5010a0
mov edx, dword [esp + 0x14]
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push edx
call fcn.004e0400
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x50105f
mov eax, dword [esp + 0x28]
xor ebx, ebx
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [esp + 0x1c]
push ecx
call fcn.004dca10
mov ebp, dword [esp + 0x14]
push 0x60d624
push ebp
call fcn.005e00ad
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x50103d
push 0x3f
lea edx, [esp + 0x49]
push ebx
push edx
mov byte [esp + 0x50], bl
call fcn.005dfd60
push 0xf7
lea eax, [esp + 0xd5]
push ebx
push eax
mov byte [esp + 0xdc], bl
call fcn.005dfd60
push ebx
push ebx
push esi
call fcn.005e0626
push esi
push 0x40
lea ecx, [esp + 0x70]
push 1
push ecx
call fcn.005e057f
add esp, 0x34
cmp eax, 0x40
je 0x500fd2
push esi
call fcn.005dff6d
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x50109e
push ebp
push str.Unable_to_remove_checksum_from__s_
push eax
call fcn.005dfb23
add esp, 0xc
jmp 0x50109e
mov edi, dword [esp + 0x80]
push ebx
push edi
push esi
call fcn.005e0626
push esi
push pe_nt_image_headers32
lea edx, [esp + 0xd8]
push 1
push edx
call fcn.005e057f
add esp, 0x1c
cmp eax, 0xf8
jne 0x500fa9
mov eax, dword [esp + 0x24]
push ebx
lea eax, [esp + eax*8 + 0x140]
mov dword [esp + 0x120], ebx
push edi
push esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.005e0626
push esi
push pe_nt_image_headers32
lea eax, [esp + 0xd8]
push 1
push eax
call fcn.005e025d
push esi
call fcn.005dff6d
add esp, 0x20
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x500eea
push ebp
push str.Sign_REMOVED_from_file__s.
push eax
call fcn.005dfb23
add esp, 0xc
mov eax, 1
jmp 0x5010a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x2b8]
push 0x104
push ecx
call fcn.004d8b50
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
je 0x50109e
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2b4]
push edx
push ecx
push str.Unable_to_MyCreateFileA__s._Reason:__s
push eax
call fcn.005dfb23
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x3b8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x3ac
ret