Function at 0x140004d10
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
cmp qword [rsp + 0xb0], 0
je 0x140004d54
cmp qword [rsp + 0xb8], 0
je 0x140004d54
cmp dword [rsp + 0xc0], 0
jne 0x140004d5b
xor eax, eax
jmp 0x14000504b
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140004d8f
xor eax, eax
jmp 0x14000504b
mov byte [rsp + 0x30], 0x53
mov byte [rsp + 0x31], 0x48
mov byte [rsp + 0x32], 0xb8
mov byte [rsp + 0x33], 0xc7
mov byte [rsp + 0x34], 0x11
mov byte [rsp + 0x35], 0x62
mov byte [rsp + 0x36], 0xb3
mov byte [rsp + 0x37], 2
mov byte [rsp + 0x38], 1
mov byte [rsp + 0x39], 0
mov byte [rsp + 0x3a], 0
mov byte [rsp + 0x3b], 0x48
mov byte [rsp + 0x3c], 0xbb
mov byte [rsp + 0x3d], 0x8e
mov byte [rsp + 0x3e], 0xe3
mov byte [rsp + 0x3f], 0x9d
mov byte [rsp + 0x40], 0x24
mov byte [rsp + 0x41], 0x1c
mov byte [rsp + 0x42], 0xca
mov byte [rsp + 0x43], 0
mov byte [rsp + 0x44], 0
mov byte [rsp + 0x45], 0x48
mov byte [rsp + 0x46], 0x33
mov byte [rsp + 0x47], 0xc3
mov byte [rsp + 0x48], 0x5b
mov byte [rsp + 0x49], 0x50
mov byte [rsp + 0x4a], 0xc3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140004e36
xor eax, eax
jmp 0x14000504b
mov rax, qword [rsp + 0x78]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp dword [rax], 0x4550
je 0x140004e63
xor eax, eax
jmp 0x14000504b
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0
jmp 0x140004e8f
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x68]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x58], eax
jge 0x140004ee5
mov rax, qword [rsp + 0x50]
mov rax, qword [rsp + 0x50]
lea rcx, [0x140011e00]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x140004ec5
inc rax
test dl, dl
jne 0x140004eb2
xor eax, eax
jmp 0x140004eca
sbb eax, eax
or eax, 1
test eax, eax
jne 0x140004ed5
mov byte [rsp + 0x20], 1
jmp 0x140004ee5
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
jmp 0x140004e85
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140004ef5
xor eax, eax
jmp 0x14000504b
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov ecx, 0x1000
div ecx
mov eax, edx
test eax, eax
jne 0x140004f13
xor eax, eax
jmp 0x14000504b
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov ecx, 0x1000
div ecx
inc eax
imul eax, eax, 0x1000
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov ecx, dword [rsp + 0x5c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x70], eax
imul eax, dword [rsp + 0xc0], 0x20
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x70], eax
jae 0x140004f61
xor eax, eax
jmp 0x14000504b
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
mov ecx, 1
imul rcx, rcx, 0
movzx ecx, byte [rsp + rcx + 0x30]
cmp eax, ecx
jne 0x140004fc2
xor eax, eax
jmp 0x14000504b
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x90], rax
movabs rax, 0xfffff78000000014
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x98]
mov qword [rsp + rax + 0x30], rcx
mov eax, 1
imul rax, rax, 0xd
mov rcx, qword [rsp + 0x80]
mov qword [rsp + rax + 0x30], rcx
mov r8d, 0x1b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140005c90
mov rax, qword [rsp + 0x28]
add rsp, 0xa8
ret