Function at 0x449160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548e6d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], 0x65
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 0x29], 1
call dword [eax + 0x28]
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp byte [esi + 0x73a], 0
je 0x4495bf
cmp byte [esi + 0x728], 0
jne 0x4495b8
cmp byte [esi + 0x739], 0
jne 0x4495b8
push 0
lea ebx, [esi + 0x72c]
push ebx
push 0x2000
push dword [esi + 0x700]
push dword [esi + 0x724]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [ebx]
mov ebx, edi
mov dword [ebp - 0x34], ebx
test eax, eax
jne 0x4492e2
test edi, edi
je 0x449214
mov byte [esi + 0x739], 1
mov dword [ebp - 0x34], ebx
mov ecx, dword [esi + 0x73c]
test ecx, ecx
je 0x449368
mov eax, dword [esi + 0x740]
cmp eax, dword [esi + 0x744]
jge 0x449368
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x30], ecx
test ecx, ecx
je 0x449368
push ebx
push dword [esi + 0x700]
add eax, 4
push 1
mov dword [esi + 0x740], eax
call sym.winvnc.exe_adler32_z
add esp, 0xc
cmp eax, dword [ebp - 0x30]
jne 0x449368
mov edi, dword [esi + 0x3a0]
mov ecx, ebx
and ecx, 0xff0000
mov dword [ebp - 0x28], 0x507
mov eax, ebx
mov dword [ebp - 0x24], 0x2000000
shr eax, 0x10
or ecx, eax
mov eax, ebx
shl eax, 0x10
and ebx, 0xff00
or eax, ebx
shr ecx, 8
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], ecx
cmp dword [edi + 8], 0xffffffff
je 0x449572
cmp byte [edi + 0x1a], 0
jne 0x4492f6
cmp byte [edi + 0x18], 0
je 0x4492f6
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x21], 0
je 0x4492f6
push 1
lea eax, [ebp - 0x2a]
mov byte [ebp - 0x2a], 7
push eax
mov ecx, edi
call fcn.00484200
push 0xc
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00484200
jmp 0x449572
test edi, edi
jne 0x449214
mov byte [esi + 0x728], 1
jmp 0x44957e
cmp byte [edi + 0x18], 0
mov ecx, 0xc
je 0x449357
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x21], 0
je 0x449357
cmp byte [edi + 0x68], 0
je 0x44932e
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x6c]
movq xmm0, qword [ebp - 0x28]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
add dword [edi + 0x6c], 0xc
jmp 0x449572
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 0xc
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00484510
mov ecx, dword [ebp - 0x38]
push ecx
push eax
mov ecx, edi
call fcn.00483fe0
jmp 0x449572
push ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00483fe0
jmp 0x449572
xor dl, dl
mov ebx, 0x2400
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x29], dl
cmp byte [esi + 0x738], dl
je 0x4493b0
push 0xffffffffffffffff
push dword [ebp - 0x34]
lea eax, [ebp - 0x30]
push dword [esi + 0x700]
push eax
push dword [esi + 0x704]
call sym.winvnc.exe_compress2
add esp, 0x14
test eax, eax
jne 0x44959c
mov edi, dword [esi + 0x72c]
mov dl, 1
mov ebx, dword [ebp - 0x30]
mov byte [ebp - 0x29], dl
mov eax, edi
mov dword [ebp - 0x1c], 0x507
shr eax, 0x18
mov dword [ebp - 0x30], eax
cmp ebx, edi
jbe 0x449409
xor dl, dl
movzx eax, dl
shl eax, 0x18
mov byte [ebp - 0x29], dl
mov dword [ebp - 0x18], eax
mov ecx, edi
mov eax, edi
and ecx, 0xff00
shl eax, 0x10
or ecx, eax
shr edi, 8
shl ecx, 8
and edi, 0xff00
or ecx, edi
or ecx, dword [ebp - 0x30]
mov dword [ebp - 0x14], ecx
mov edi, dword [esi + 0x3a0]
cmp dword [edi + 8], 0xffffffff
jne 0x449440
mov byte [ebp - 0x29], 0
jmp 0x449572
movzx eax, dl
shl eax, 0x18
mov dword [ebp - 0x18], eax
test dl, dl
je 0x4493d1
mov edx, ebx
mov eax, ebx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov ecx, ebx
shl ecx, 0x10
mov eax, ebx
and eax, 0xff00
shr edx, 8
or ecx, eax
shl ecx, 8
or edx, ecx
mov dword [ebp - 0x14], edx
jmp 0x4493f4
cmp byte [edi + 0x1a], 0
jne 0x449475
cmp byte [edi + 0x18], 0
je 0x449475
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x21], 0
je 0x449475
push 1
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x2b], 7
push eax
mov ecx, edi
call fcn.00484200
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00484200
jmp 0x4494d3
cmp byte [edi + 0x18], 0
mov ecx, 0xc
je 0x4494c7
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x21], 0
je 0x4494c7
cmp byte [edi + 0x68], 0
je 0x4494aa
mov ecx, dword [edi + 0x64]
add ecx, dword [edi + 0x6c]
movq xmm0, qword [ebp - 0x1c]
movq qword [ecx], xmm0
mov eax, dword [ebp - 0x14]
mov dword [ecx + 8], eax
add dword [edi + 0x6c], 0xc
jmp 0x4494d3
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00484510
mov ecx, dword [ebp - 0x3c]
jmp 0x4494ca
lea eax, [ebp - 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.00483fe0
cmp byte [ebp - 0x29], 0
mov edi, dword [esi + 0x3a0]
je 0x449559
cmp dword [edi + 8], 0xffffffff
mov ecx, dword [esi + 0x704]
jne 0x4494f1
xor ecx, ecx
test ecx, ecx
jmp 0x44956e
test ebx, ebx
jne 0x4494fc
or ecx, 0xffffffff
test ecx, ecx
jmp 0x44956e
cmp byte [edi + 0x18], 0
je 0x449545
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x21], 0
je 0x449545
cmp byte [edi + 0x68], 0
je 0x44952c
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x6c]
push ebx
push ecx
push eax
call fcn.0051a200
add dword [edi + 0x6c], ebx
or ecx, 0xffffffff
add esp, 0xc
test ecx, ecx
jmp 0x44956e
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0
push eax
push ebx
push ecx
mov ecx, edi
call fcn.00484510
mov ebx, dword [ebp - 0x40]
mov ecx, eax
push ebx
push ecx
mov ecx, edi
call fcn.00483ee0
xor ecx, ecx
cmp eax, ebx
sete cl
test ecx, ecx
jmp 0x44956e
push dword [esi + 0x72c]
mov ecx, edi
push dword [esi + 0x700]
call fcn.00484170
test eax, eax
setne byte [ebp - 0x29]
mov eax, dword [esi + 0x72c]
add dword [esi + 0x730], eax
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0x29], 0
jne 0x449194
xor al, al
jmp 0x4495ca
push eax
push str.vncClient::SendFileChunk_:_Compress_returned_error_in_File_Send_:_d_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0x10
mov byte [esi + 0x739], 1
mov ecx, esi
call fcn.004495f0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret