Function at 0x1400ff980
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x5e0], rbx
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rbx, r9
mov dword [rsp + 0x68], r8d
mov r12d, 1
xor r13d, r13d
or r15, 0xffffffffffffffff
test rdx, rdx
jne 0x1400ffcbc
lea rax, [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov word [rbp - 0x38], r13w
mov r8d, r15d
mov rdx, qword [0x14044b580]
lea rcx, [rbp - 0x40]
call fcn.1400c76f0
nop
mov rdx, qword [0x14044b610]
cmp word [rdx], r13w
jne 0x1400ffac9
mov rdx, qword [rbp + 0x4d0]
test rdx, rdx
je 0x1400ffa25
lea rcx, [rbp - 0x40]
call fcn.1400c7590
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ffa73
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x1400ffd4e
call fcn.1402804a8
jmp 0x1400ffd4e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x1400ffa58
mov dword [rsp + 0x50], r13d
mov ecx, edi
call fcn.14012a2dc
mov rsi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x50], edi
je 0x1400ffca1
mov rcx, rsi
call fcn.14012a2d4
jmp 0x1400ffa58
lea rcx, [rbp - 0x40]
call fcn.1400c7590
lea rax, [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov word [rbp + 0x58], r13w
mov r8d, r15d
mov rdx, qword [0x14044b6a0]
lea rcx, [rbp + 0x50]
call fcn.1400c76f0
nop
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400ffb05
mov rbx, qword [0x14045f1f8]
jmp 0x1400ffb33
mov rcx, qword [rbp + 0x50]
call fcn.1400c7220
mov rdi, rax
mov r9, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, qword [rbp - 0x40]
call fcn.1400eef60
mov rbx, rax
test rdi, rdi
je 0x1400ffb33
mov rcx, rdi
call fcn.14012a2d4
test rbx, rbx
jne 0x1400ffb53
lea rax, [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
cmp rcx, rax
je 0x1400ffa58
call fcn.1402804a8
jmp 0x1400ffa58
mov dword [rsp + 0x50], r13d
lea rax, [rbp + 0xe8]
mov qword [rbp + 0xe0], rax
mov word [rbp + 0xe8], r13w
mov r8d, r15d
mov rdx, qword [rbp + 0x4d0]
lea rcx, [rbp + 0xe0]
call fcn.1400c76f0
nop
lea r8, [0x140351bf4]
lea rdx, [0x140351bcc]
lea rcx, [rbp + 0xe0]
call fcn.1400c7ad0
cmp dword [rbx], 1
je 0x1400ffbb0
mov dword [0x14045fef0], 0x80000
jmp 0x1400ffbdb
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rdx, qword [rbp + 0xe0]
mov rcx, qword [rbx + 8]
call fcn.1400eec80
mov dword [0x14045fef0], eax
test eax, eax
je 0x1400ffbfc
lea rax, [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
cmp rcx, rax
je 0x1400ffb38
call fcn.1402804a8
jmp 0x1400ffb38
mov edi, dword [rbp + 0x47c]
test edi, edi
je 0x1400ffbdb
mov ecx, edi
call fcn.14012a2dc
mov rsi, rax
cmp dword [rbx], 1
je 0x1400ffc21
mov dword [0x14045fef0], 0x80000
jmp 0x1400ffc45
mov r9d, edi
mov r8, rsi
mov edx, dword [rsp + 0x50]
mov rcx, qword [rbx + 8]
call fcn.1400eed80
mov dword [0x14045fef0], eax
test eax, eax
je 0x1400ffc63
cmp eax, 0x600
je 0x1400ffc63
mov rcx, rsi
call fcn.14012a2d4
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400ffbdb
mov rcx, rbx
call fcn.1400ef0f0
jmp 0x1400ffbdb
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400ffc75
mov rcx, rbx
call fcn.1400ef0f0
nop
lea rax, [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
cmp rcx, rax
je 0x1400ffc8e
call fcn.1402804a8
nop
lea rax, [rbp + 0x58]
mov rcx, qword [rbp + 0x50]
cmp rcx, rax
je 0x1400ffca1
call fcn.1402804a8
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x1400ffd45
call fcn.1402804a8
jmp 0x1400ffd45
test rbx, rbx
jne 0x1400ffcd3
mov rbx, qword [0x14045fa58]
test rbx, rbx
cmove rbx, qword [0x14045f408]
mov r8, rdx
mov rdx, rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400ffd4e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
test rax, rax
jne 0x1400ffd09
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1400ffd4e
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x1400ffd4e
mov ecx, edi
call fcn.14012a2dc
mov rsi, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r8d, edi
mov rcx, rsi
call fcn.140278ed0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
jne 0x1400ffdea
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, r12d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401000d0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test eax, eax
je 0x1401000d0
mov dword [rsp + 0x60], r13d
mov ecx, edi
call fcn.14012a2dc
mov rsi, rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x60], edi
je 0x1400ffde1
mov rcx, rsi
call fcn.14012a2d4
jmp 0x1401000d0
test rsi, rsi
je 0x1401000d0
mov qword [rbp + 0x180], r13
mov dword [rbp + 0x1a0], r13d
mov qword [rbp + 0x238], rsi
mov qword [rbp + 0x228], rsi
movsxd rcx, edi
add rcx, rsi
mov qword [rbp + 0x240], rcx
mov qword [rbp + 0x230], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x170]
call fcn.1400ef2a0
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x1400ffe56
mov rbx, r13
mov qword [rsp + 0x58], rbx
jmp 0x1400ffec1
mov edi, dword [rsp + 0x4c]
mov r14d, dword [rsp + 0x48]
cmp dword [rsp + 0x70], 8
je 0x1400ffe82
mov r9d, 4
mov r8d, edi
mov edx, r14d
mov rcx, rax
call fcn.1400ef780
mov rbx, rax
mov qword [rsp + 0x58], rax
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, 8
cmp dword [rax + rcx], 0
je 0x1400ffea3
mov eax, ntohs
mov eax, dword [rax + rcx]
jmp 0x1400ffea9
mov eax, dword [0x14045ff0c]
test eax, eax
je 0x1400ffec1
mov r9d, 4
mov r8d, edi
mov edx, r14d
mov rcx, rbx
call fcn.1400ef8a0
mov rcx, rsi
call fcn.14012a2d4
xor eax, eax
test rbx, rbx
je 0x1401000d2
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x78], Ordinal_46
mov edx, dword [rsp + 0x48]
mov dword [rbp - 0x74], edx
mov eax, dword [rsp + 0x4c]
neg eax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x6c], 0x200001
mov edi, edx
imul edi, dword [rsp + 0x4c]
lea eax, [rdi*4]
mov dword [rbp - 0x64], eax
xor r12b, r12b
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rbp - 0x78]
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateDIBSection]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401000d0
test edi, edi
jle 0x140100087
lea r8, [rbx + 3]
mov r14, 0xfffffffffffffffe
sub r14, rbx
sub r15, rbx
mov qword [rsp + 0x60], r15
mov r13, rbx
neg r13
mov r15, 0xfffffffffffffffd
sub r15, rbx
mov esi, edi
mov rbx, qword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
lea rdi, [r8 + r13]
movzx ecx, byte [r8]
mov rax, qword [rsp + 0x40]
mov byte [rdi + rax], cl
lea r9, [r15 + r8]
lea r10, [r14 + r8]
lea r11, [rbx + r8]
cmp cl, 0xff
jae 0x140100013
movzx ecx, byte [r8 - 1]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r9 + rax], dl
movzx ecx, byte [r8 - 2]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], dl
movzx ecx, byte [r8 - 3]
movzx eax, byte [r8]
imul ecx, eax
mov eax, 0x80808081
mul ecx
shr edx, 7
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], dl
mov r12b, 1
jmp 0x14010003d
movzx ecx, byte [r8 - 1]
mov rax, qword [rsp + 0x40]
mov byte [r9 + rax], cl
movzx ecx, byte [r8 - 2]
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], cl
movzx ecx, byte [r8 - 3]
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], cl
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x68]
cmp dword [r9 + rax], ecx
jne 0x140100071
mov byte [r9 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [r10 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [r11 + rax], 0
mov rax, qword [rsp + 0x40]
mov byte [rdi + rax], 0
mov r12b, 1
add r8, 4
sub rsi, 1
jne 0x1400fff90
mov rbx, qword [rsp + 0x58]
xor r13d, r13d
mov rcx, rbx
call fcn.1402804a8
mov ecx, 0xb8
call fcn.14012a618
mov qword [rsp + 0x58], rax
lea rcx, [rax + 0x30]
mov qword [rax + 0x28], rcx
mov word [rcx], r13w
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov r14d, dword [rsp + 0x48]
mov dword [rax + 0x18], r14d
mov edi, dword [rsp + 0x4c]
mov dword [rax + 0x1c], edi
mov byte [rax + 0x20], r12b
jmp 0x1401000d2
xor eax, eax
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14012a2b0
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x590
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret