Function at 0x140002cd0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140039020]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14000301a
mov edx, 0x85
mov r8d, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140002d51
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
test rax, rax
jne 0x140002d58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
jmp 0x14000301f
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x58], rax
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
mov qword [rsp + 0x60], r14
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r13, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r15, rax
mov r8d, r14d
mov rdx, rbx
mov rcx, rax
call fcn.140007dd0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea r8, [rsp + 0x58]
mov edx, 1
mov rcx, r13
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x140002dd7
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140003011
xor edx, edx
mov r8d, 0xa0
lea rcx, [rbp - 0x70]
call fcn.140008480
lea rax, vtable.CBMPHide.0
mov qword [rbp - 0x70], rax
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], bl
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], bl
mov qword [rbp - 0x18], rbx
mov qword [rbp - 8], rbx
mov qword [rbp], 0xf
mov byte [rbp - 0x18], bl
xor r8d, r8d
lea rdx, [0x14003471b]
lea rcx, [rbp - 0x58]
call fcn.1400020a0
mov qword [rbp + 8], rbx
mov dword [rbp - 0x68], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x10], xmm0
lea rcx, [r14 + 0x28]
call fcn.140005f84
mov qword [rsp + 0x50], rax
lea r8, [r14 + 0x28]
xor edx, edx
mov rbx, rax
mov rcx, rax
call fcn.140008480
mov dword [rsp + 0x40], 0x7c3e4d42
mov dword [rsp + 0x44], 0x15
mov dword [rsp + 0x48], 0x360000
mov word [rsp + 0x4c], 0
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rsi + r8], 0
jne 0x140002ea0
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.1400020a0
test r15, r15
je 0x140002f26
add r14d, 0xe
mov dword [rbp - 0x68], r14d
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx], xmm0
mov eax, dword [rsp + 0x48]
mov dword [rbx + 8], eax
movzx eax, word [rsp + 0x4c]
mov word [rbx + 0xc], ax
lea rcx, [rbx + 0xe]
mov r8, qword [rsp + 0x60]
mov rdx, r15
call fcn.140007dd0
mov ecx, r14d
call fcn.140005f84
mov r15, rax
mov qword [rbp + 8], rax
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140008480
mov r8d, r14d
mov rdx, rbx
mov rcx, r15
call fcn.140007dd0
mov qword [rbp + 0x20], r15
lea rax, [r15 + 0xe]
mov qword [rbp + 0x28], rax
jmp 0x140002f32
mov rax, qword [rbp + 0x28]
mov r15, qword [rbp + 8]
mov r14d, dword [rbp - 0x68]
movzx r9d, word [rax + 0xe]
mov r8d, dword [rax + 8]
mov edx, dword [rax + 4]
lea rcx, str.test.bmp_width:_d_height:_d_bitCount_d_n
call fcn.140001120
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 0xf
nop
inc rdi
cmp byte [rsi + rdi], bl
jne 0x140002f60
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400020a0
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000304c
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140002ff4
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400030be
call fcn.140005f40
mov rcx, qword [rsp + 0x50]
call fcn.140005f40
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
lea rcx, [rbp - 0x70]
call fcn.140001e10
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140005f20
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor eax, eax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov r8d, r14d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp r14d, dword [rsp + 0x60]
jne 0x140002fb8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140002ff4
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fef
call fcn.14000df68
int3