Function at 0x140273f30
Capabilities:
Write file on windows

Disassembly:
jmp 0x140273f30
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea rbp, [rsp + 0x40]
mov rsi, rdx
mov ecx, 0x40
mov edx, 0x28
mov rdi, r9
mov r13, r8
call sub.KERNEL32.dll_LocalAlloc
mov r12, rax
mov r15, qword [r13]
test r15, r15
jne 0x140273f9e
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502a68]
lea r10, [0x140502a70]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
test r12, r12
jne 0x140273fdc
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502a78]
lea r10, [0x140502a7c]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
test r12, r12
mov r14d, dword [r15]
mov dword [r12], r14d
mov eax, dword [r15 + 4]
mov dword [r12 + 4], eax
mov edx, dword [r15 + 8]
mov dword [r12 + 8], edx
movzx r8d, word [r15 + 0xc]
mov word [r12 + 0xc], r8w
movzx r9d, word [r15 + 0xe]
mov word [r12 + 0xe], r9w
mov r10d, dword [r15 + 0x10]
mov dword [r12 + 0x10], r10d
movsxd r14, dword [r15 + 0x14]
mov dword [r12 + 0x14], r14d
mov r11d, dword [r15 + 0x18]
mov dword [r12 + 0x18], r11d
mov eax, dword [r15 + 0x1c]
mov dword [r12 + 0x1c], eax
mov eax, dword [r15 + 0x20]
mov dword [r12 + 0x20], eax
mov r15d, dword [r15 + 0x24]
mov dword [r12 + 0x24], r15d
je 0x14027405e
xor ecx, ecx
mov rdx, r14
call sub.KERNEL32.dll_GlobalAlloc
mov r14, rax
test r14, r14
je 0x140274466
jmp 0x1402740e0
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502a84]
lea r10, [0x140502a88]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
xor ecx, ecx
mov rdx, r14
call sub.KERNEL32.dll_GlobalAlloc
mov r14, rax
test r14, r14
je 0x140274466
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502a90]
lea r10, [0x140502a94]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
mov r10, rsp
xor r8d, r8d
mov r11, qword [rbp + 0x70]
mov rax, qword [r13]
mov rdx, qword [rdi]
mov rcx, qword [r11]
mov r9d, dword [r12 + 8]
mov qword [r10 + 0x20], r14
mov qword [r10 + 0x28], rax
mov dword [r10 + 0x30], 0
call sub.GDI32.dll_GetDIBits
test eax, eax
je 0x140274538
mov rax, rsp
mov rcx, rsi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
mov dword [rax + 0x20], 2
mov dword [rax + 0x28], 0x80
mov qword [rax + 0x30], 0
call sub.KERNEL32.dll_CreateFileA
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x140274516
mov eax, 0x4d42
mov word [0x1406b0330], ax
test r12, r12
jne 0x140274206
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502a9c]
lea rdi, [0x140502aa0]
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502aa8]
lea rdi, [0x140502aac]
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502ab4]
lea rdi, [0x140502ab8]
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov edi, dword [r12]
xor r8d, r8d
mov eax, dword [r12 + 0x14]
add eax, edi
mov r15d, dword [r12 + 0x20]
mov word [0x1406b0336], r8w
mov word [0x1406b0338], r8w
lea edx, [rax + r15*4 + 0xe]
mov dword [0x1406b0332], edx
test r12, r12
jne 0x1402742a5
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502ac0]
lea r10, [0x140502ac4]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
mov r11, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502acc]
lea r10, [0x140502ad0]
mov qword [r11 + 0x20], rax
mov qword [r11 + 0x28], r10
call fcn.140002199
mov rcx, rsi
lea eax, [rdi + r15*4 + 0xe]
mov rdi, rsp
lea rdx, [0x1406b0330]
mov r8d, 0xe
lea r9, [rbp + 4]
mov dword [0x1406b033a], eax
mov qword [rdi + 0x20], 0
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x1402744f4
test r12, r12
jne 0x140274317
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502ad8]
lea rdi, [0x140502adc]
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov eax, dword [r12 + 0x20]
mov rdi, rsp
mov rcx, rsi
lea r9, [rbp + 4]
mov rdx, qword [r13]
lea r8d, [rax*4 + 0x28]
mov qword [rdi + 0x20], 0
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x1402744d2
test r12, r12
jne 0x1402743b8
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502ae4]
lea rdi, [0x140502ae8]
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov r10, rsp
mov ecx, 0x10100009
lea rdx, [0x140502a00]
mov r8d, 3
mov r9d, 9
lea rax, [0x140502af0]
lea rdi, str.PBIH
mov qword [r10 + 0x20], rax
mov qword [r10 + 0x28], rdi
call fcn.140002199
mov r12d, dword [r12 + 0x14]
mov rdi, r14
cmp r12d, 0xffff
jle 0x140274421
mov rax, rsp
mov rcx, rsi
mov rdx, rdi
mov r8d, 0xffff
lea r9, [rbp + 4]
mov qword [rax + 0x20], 0
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x14027440a
call sub.KERNEL32.dll_GetLastError
lea rcx, [0x140502afc]
lea rdx, [rbp]
mov r8d, 9
mov dword [rdx], eax
call fcn.14000360c
add r12d, 0xffff0001
add rdi, 0xffff
cmp r12d, 0xffff
jg 0x1402743c9
mov rax, rsp
mov rcx, rsi
mov rdx, rdi
mov r8d, r12d
lea r9, [rbp + 4]
mov qword [rax + 0x20], 0
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x1402744b0
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x140274491
mov rcx, r14
call sub.KERNEL32.dll_GlobalFree
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
lea rcx, str.GlobalAlloc
lea rdx, [rbp]
mov r8d, 0xb
mov dword [rdx], eax
call fcn.14000360c
test r12, r12
jne 0x1402740e0
jmp 0x1402740aa
call sub.KERNEL32.dll_GetLastError
lea rcx, str.CloseHandle
lea rdx, [rbp]
mov r8d, 0xb
mov dword [rdx], eax
call fcn.14000360c
jmp 0x14027444e
call sub.KERNEL32.dll_GetLastError
lea rcx, [0x140502b20]
lea rdx, [rbp]
mov r8d, 9
mov dword [rdx], eax
call fcn.14000360c
jmp 0x140274442
call sub.KERNEL32.dll_GetLastError
lea rcx, [0x140502b2c]
lea rdx, [rbp]
mov r8d, 9
mov dword [rdx], eax
call fcn.14000360c
jmp 0x140274347
call sub.KERNEL32.dll_GetLastError
lea rcx, str.WriteFile
lea rdx, [rbp]
mov r8d, 9
mov dword [rdx], eax
call fcn.14000360c
jmp 0x1402742dc
call sub.KERNEL32.dll_GetLastError
lea rcx, str.CreateFile
lea rdx, [rbp]
mov r8d, 0xa
mov dword [rdx], eax
call fcn.14000360c
jmp 0x14027414f
call sub.KERNEL32.dll_GetLastError
lea rcx, str.GetDIBits
lea rdx, [rbp]
mov r8d, 9
mov dword [rdx], eax
call fcn.14000360c
jmp 0x140274116