Function at 0x432550
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x47ac4a
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp + 0x18], ebx
mov dword [ebp], ebx
mov dword [ebp + 0x24], 0
mov dword [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x43282e
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x28]
call fcn.00403d50
mov dword [ebp - 4], 7
lea ecx, [ebp + 0x40]
push eax
mov dword [ebp + 0x24], 4
call fcn.00401e00
mov dword [ebp - 4], 0xb
mov esi, 4
mov dword [ebp + 0x24], esi
and esi, 0xfffffffb
mov dword [ebp + 0x24], esi
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 0x28]
call fcn.00403cb0
mov byte [ebp - 4], 0x11
lea edx, [ebp + 0x40]
push 0x491e78
push 0x491e84
lea ecx, [ebp + 0x58]
call fcn.00404070
or esi, 8
add esp, 8
mov dword [ebp + 0x24], esi
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x40]
call fcn.00403cb0
cmp dword [ebp + 0x6c], 8
lea esi, [ebp + 0x58]
cmovae esi, dword [ebp + 0x58]
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x43289a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x20], eax
mov byte [ebp - 4], 0x14
test esi, esi
je 0x432671
test esi, 0xffff0000
jne 0x43265a
movzx eax, si
lea ecx, [ebp + 0x20]
push eax
call fcn.00404b50
jmp 0x43267d
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432660
sub ecx, edx
sar ecx, 1
jmp 0x432673
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp + 0x20]
call fcn.00404e20
mov byte [ebp - 4], 0x15
and dword [ebp + 0x24], 0xfffffff7
mov byte [ebp - 4], 0x16
lea ecx, [ebp + 0x58]
call fcn.00403cb0
mov esi, dword [ebp + 0x20]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x18], eax
mov dword [ebp + 4], 0x48ec3c
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x19
cmp eax, 0xffffffff
jne 0x4326e1
mov byte [ebp - 4], 0x16
push eax
mov dword [ebp + 4], 0x48ec3c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0
jmp 0x432813
push esi
lea ecx, [ebp + 0x10]
call fcn.0040bf70
mov byte [ebp - 4], 0x1b
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
mov ecx, ebx
push eax
call fcn.004328b0
mov byte [ebp - 4], 0x1c
lea ecx, [ebp + 0xc]
mov eax, dword [ebp + 0x14]
push 0
push ecx
push dword [eax - 0xc]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 0x1b
mov eax, edi
mov edx, dword [ebp + 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432735
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
mov eax, edi
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432753
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
mov eax, dword [ebp + 0x18]
mov dword [ebp + 4], 0x48ec3c
test eax, eax
je 0x432773
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], 0
lea edx, [ebx + 4]
lea ecx, [ebp + 0x1c]
call fcn.00423540
mov byte [ebp - 4], 0x1f
cmp byte [ebx + 8], 0
jne 0x43279f
push 0
push dword [ebp + 0x1c]
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4327f5
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push eax
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0x500
mov dword [ebp - 0x3c], str.runas
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov byte [ebp - 4], 0x16
mov eax, edi
mov edx, dword [ebp + 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432813
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, edi
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43282e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
lea eax, [ebx + 4]
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0
mov edx, dword [eax]
mov eax, edi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432855
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebx]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x43287d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x74]
pop ebp
ret
push 0x80004005
call fcn.00402f30
int3