Function at 0x407bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x68
push 0xffffffffffffffff
push 0x485859
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4b1598]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp + 0x24], ebx
xor edi, edi
mov dword [ebp + 0x64], edi
cmp dword [ebx + 0x12c], edi
jne 0x407c52
cmp dword [ebx + 0x118], 0x10
jb 0x407c23
mov eax, dword [ebx + 0x104]
jmp 0x407c29
lea eax, [ebx + 0x104]
movzx ecx, word [ebx + 0x11c]
push ecx
push eax
mov ecx, ebx
call fcn.004062a0
test al, al
jne 0x407c52
push 0x4add68
lea edx, [ebp + 0x2c]
push edx
mov dword [ebp + 0x2c], 0x6a
call fcn.0041125d
cmp dword [ebx + 0x34], edi
mov dword [ebp - 4], edi
jne 0x407c6f
push 0x4add68
lea eax, [ebp + 0x3c]
push eax
mov dword [ebp + 0x3c], 0xc9
call fcn.0041125d
push 9
call fcn.00402190
add esp, 4
cmp dword [ebx + 0x38], 0x10
mov esi, eax
jb 0x407c86
mov eax, dword [ebx + 0x24]
jmp 0x407c89
lea eax, [ebx + 0x24]
mov ecx, dword [ebx + 0x124]
push eax
push str.MAIL_FROM:__s__r_n
push ecx
call fcn.00411b16
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00402d90
push esi
mov ecx, ebx
call fcn.00405610
mov eax, dword [ebx + 0x138]
cmp eax, edi
lea esi, [ebx + 0x134]
je 0x407cd8
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x407ced
push 0x4add68
lea ecx, [ebp + 0x1c]
push ecx
mov dword [ebp + 0x1c], 0xcb
call fcn.0041125d
push 0xa
call fcn.00402190
add esp, 4
mov dword [ebp + 0x60], eax
xor edi, edi
lea esp, [esp]
mov eax, dword [esi + 4]
test eax, eax
je 0x407d69
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x407d69
push edi
mov ecx, esi
call fcn.004058f0
cmp dword [eax + 0x34], 0x10
jb 0x407d36
mov eax, dword [eax + 0x20]
jmp 0x407d39
add eax, 0x20
mov edx, dword [ebx + 0x124]
push eax
push str.RCPT_TO:__s__r_n
push edx
call fcn.00411b16
mov eax, dword [ebp + 0x60]
add esp, 0xc
push eax
mov ecx, ebx
call fcn.00402d90
mov ecx, dword [ebp + 0x60]
push ecx
mov ecx, ebx
call fcn.00405610
add edi, 1
jmp 0x407d00
xor edi, edi
jmp 0x407d70
mov eax, dword [ebx + 0x148]
test eax, eax
lea ecx, [ebx + 0x144]
je 0x407ddd
mov esi, dword [ecx + 8]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x407ddd
push edi
call fcn.004058f0
cmp dword [eax + 0x34], 0x10
jb 0x407dad
mov eax, dword [eax + 0x20]
jmp 0x407db0
add eax, 0x20
mov edx, dword [ebx + 0x124]
push eax
push str.RCPT_TO:__s__r_n
push edx
call fcn.00411b16
mov esi, dword [ebp + 0x60]
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00402d90
push esi
mov ecx, ebx
call fcn.00405610
add edi, 1
jmp 0x407d70
xor edi, edi
nop
mov eax, dword [ebx + 0x158]
test eax, eax
lea ecx, [ebx + 0x154]
je 0x407e4d
mov esi, dword [ecx + 8]
sub esi, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x407e4d
push edi
call fcn.004058f0
cmp dword [eax + 0x34], 0x10
jb 0x407e1d
mov eax, dword [eax + 0x20]
jmp 0x407e20
add eax, 0x20
push eax
mov eax, dword [ebx + 0x124]
push str.RCPT_TO:__s__r_n
push eax
call fcn.00411b16
mov esi, dword [ebp + 0x60]
add esp, 0xc
push esi
mov ecx, ebx
call fcn.00402d90
push esi
mov ecx, ebx
call fcn.00405610
add edi, 1
jmp 0x407de0
push 0xb
call fcn.00402190
mov ecx, dword [str.DATA_r_n]
mov esi, eax
mov eax, dword [ebx + 0x124]
mov dword [eax], ecx
mov dx, word [0x487e7c]
mov word [eax + 4], dx
mov cl, byte [0x487e7e]
add esp, 4
mov byte [eax + 6], cl
push esi
mov ecx, ebx
call fcn.00402d90
push esi
mov ecx, ebx
call fcn.00405610
push 0xc
call fcn.00402190
mov edx, dword [ebx + 0x124]
add esp, 4
mov edi, eax
push edx
mov ecx, ebx
mov dword [ebp + 0x60], edi
call fcn.00403e00
push edi
mov ecx, ebx
call fcn.00402d90
mov ecx, ebx
call fcn.00403040
test eax, eax
je 0x407ef5
xor esi, esi
lea ecx, [ecx]
mov ecx, ebx
call fcn.00403040
cmp esi, eax
jae 0x407f16
push esi
mov ecx, ebx
call fcn.00405d60
push eax
mov eax, dword [ebx + 0x124]
push str._s_r_n
push eax
call fcn.00411b16
add esp, 0xc
push edi
mov ecx, ebx
call fcn.00402d90
add esi, 1
jmp 0x407ec0
mov ecx, dword [ebx + 0x124]
push 0x487384
push str._s_r_n
push ecx
call fcn.00411b16
add esp, 0xc
push edi
mov ecx, ebx
call fcn.00402d90
push 0x37
call fcn.0040f369
add esp, 4
test eax, eax
mov dword [ebp + 0x4c], eax
jne 0x407f3c
push 0x4add68
lea edx, [ebp + 0x30]
push edx
mov dword [ebp + 0x30], 0x198
call fcn.0041125d
push 0xff
call fcn.0040f369
add esp, 4
test eax, eax
mov dword [ebp + 0x58], eax
jne 0x407f65
push 0x4add68
lea eax, [ebp + 0x20]
push eax
mov dword [ebp + 0x20], 0x198
call fcn.0041125d
xor esi, esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x54], esi
lea ecx, [ecx]
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x4084a3
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x4084a3
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x407fca
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x407fcf
call fcn.004113d1
mov edx, dword [ebx + 0x168]
lea ecx, [esi*8]
sub ecx, esi
cmp dword [edx + ecx*4 + 0x18], 0x10
lea eax, [edx + ecx*4]
jb 0x407fed
mov ecx, dword [eax + 4]
jmp 0x407ff0
lea ecx, [eax + 4]
mov edi, dword [ebp + 0x58]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x407ff5
mov eax, dword [ebx + 0x124]
push str.__________Qmailer
push str.___s_r_n
push eax
call fcn.00411b16
mov eax, dword [ebx + 0x168]
add esp, 0xc
test eax, eax
je 0x408045
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40804a
call fcn.004113d1
mov ecx, dword [ebx + 0x168]
lea eax, [esi*8]
sub eax, esi
push 1
add eax, eax
add eax, eax
push 0xffffffffffffffff
add ecx, eax
push 0x487e6c
mov dword [ebp + 0x5c], eax
call fcn.00403070
lea ecx, [eax + edi + 1]
push 0x487e68
push ecx
call fcn.004118f0
mov edi, dword [ebx + 0x124]
add esp, 8
add edi, 0xffffffff
test eax, eax
je 0x4080a8
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408090
mov ecx, 8
mov esi, str.Content_Type:_text_html__name_
rep movsd dword es:[edi], dword [esi]
jmp 0x4080bf
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4080a8
mov ecx, 8
mov esi, str.Content_Type:_image_jpeg__name_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x4080e9
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x54], eax
jb 0x4080ee
call fcn.004113d1
mov ecx, dword [ebx + 0x168]
add ecx, dword [ebp + 0x5c]
push 1
push 0xffffffffffffffff
push 0x487e6c
call fcn.00403070
mov edx, dword [ebp + 0x58]
lea eax, [eax + edx + 1]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408110
mov edi, dword [ebx + 0x124]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408124
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x124]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408145
mov eax, dword [0x487464]
mov dword [edi], eax
mov edi, dword [ebx + 0x124]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408160
mov ecx, 9
mov esi, str.Content_Transfer_Encoding:_base64_r_n
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebx + 0x124]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408180
mov ecx, 0xb
mov esi, str.Content_Disposition:_attachment__filename_
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x168]
test eax, eax
je 0x4081c0
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x54], eax
jb 0x4081c5
call fcn.004113d1
mov ecx, dword [ebx + 0x168]
add ecx, dword [ebp + 0x5c]
push 1
push 0xffffffffffffffff
push 0x487e6c
call fcn.00403070
mov ecx, dword [ebp + 0x58]
lea eax, [eax + ecx + 1]
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4081e5
mov edi, dword [ebx + 0x124]
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408200
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x124]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x408221
mov edx, dword [0x487464]
mov dword [edi], edx
mov eax, dword [ebx + 0x124]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x408240
mov cx, word [0x48737c]
mov word [eax], cx
mov dl, byte [0x48737e]
mov byte [eax + 2], dl
mov eax, dword [ebp + 0x60]
push eax
mov ecx, ebx
call fcn.00402d90
mov ecx, dword [ebp + 0x58]
push 0x487dd0
push ecx
call fcn.00412aff
mov esi, eax
add esp, 8
test esi, esi
mov dword [ebp + 0x48], esi
jne 0x408297
push 0x4add68
lea edx, [ebp + 0x28]
push edx
mov dword [ebp + 0x28], 0x194
call fcn.0041125d
xor edi, edi
push esi
mov dword [ebp + 0x44], edi
call fcn.004129dd
add esp, 4
test eax, eax
jne 0x4082be
mov eax, dword [ebp + 0x4c]
push esi
push 0x36
push 1
push eax
call fcn.004129c2
add esp, 0x10
add edi, eax
jmp 0x408299
mov eax, dword [ebp + 0x40]
add eax, edi
mov dword [ebp + 0x40], eax
and eax, 0xfffffc00
cmp eax, 0x500000
jbe 0x4082e7
push 0x4add68
lea ecx, [ebp + 0x38]
push ecx
mov dword [ebp + 0x38], 0x195
call fcn.0041125d
push 0
push 0
push esi
call fcn.004126e0
add esp, 0xc
xor eax, eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x5c], eax
lea esp, [esp]
mov eax, 0x2f684bdb
mul edi
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 5
add edi, 1
cmp dword [ebp + 0x5c], edi
jae 0x40847a
push esi
mov esi, dword [ebp + 0x4c]
push 0x36
push 1
push esi
call fcn.004129c2
add esp, 0x10
cmp dword [ebp + 0x50], 0
push eax
mov dword [ebp + 0x34], eax
push esi
je 0x40838a
lea edx, [ebp - 0x2c]
push edx
call fcn.00401880
add esp, 0xc
or dword [ebp + 0x64], 1
cmp dword [eax + 0x18], 0x10
jb 0x408353
mov eax, dword [eax + 4]
jmp 0x408356
add eax, 4
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408358
mov edi, dword [ebx + 0x124]
sub eax, esi
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x408370
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4083bc
lea eax, [ebp]
push eax
call fcn.00401880
or dword [ebp + 0x64], 2
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x4083a5
mov ecx, dword [eax + 4]
jmp 0x4083a8
lea ecx, [eax + 4]
mov edx, dword [ebx + 0x124]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x4083ae
test byte [ebp + 0x64], 2
je 0x4083ea
and dword [ebp + 0x64], 0xfffffffd
cmp dword [ebp + 0x18], 0x10
jb 0x4083d8
mov ecx, dword [ebp + 4]
push ecx
call fcn.00410c64
add esp, 4
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], 0
mov byte [ebp + 4], 0
test byte [ebp + 0x64], 1
mov dword [ebp - 4], 0
je 0x40841f
and dword [ebp + 0x64], 0xfffffffe
cmp dword [ebp - 0x14], 0x10
jb 0x40840d
mov edx, dword [ebp - 0x28]
push edx
call fcn.00410c64
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov eax, dword [ebx + 0x124]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x408428
mov cx, word [0x48737c]
mov word [eax], cx
mov dl, byte [0x48737e]
mov ecx, dword [ebp + 0x34]
mov byte [eax + 2], dl
mov eax, dword [ebp + 0x50]
lea eax, [eax + ecx + 2]
cmp eax, 0x1400
mov dword [ebp + 0x50], eax
jb 0x40846b
mov edx, dword [ebp + 0x60]
push edx
mov ecx, ebx
mov dword [ebp + 0x50], 0
call fcn.00402d90
add dword [ebp + 0x5c], 1
mov esi, dword [ebp + 0x48]
mov edi, dword [ebp + 0x44]
jmp 0x408300
cmp dword [ebp + 0x50], 0
je 0x40848b
mov eax, dword [ebp + 0x60]
push eax
mov ecx, ebx
call fcn.00402d90
push esi
call fcn.004125dd
mov edi, dword [ebp + 0x60]
add esp, 4
add dword [ebp + 0x54], 1
mov esi, dword [ebp + 0x54]
jmp 0x407f70
mov ecx, dword [ebp + 0x4c]
push ecx
call fcn.00412565
mov edx, dword [ebp + 0x58]
push edx
call fcn.00412565
mov eax, dword [ebx + 0x168]
add esp, 8
test eax, eax
je 0x408500
mov ecx, dword [ebx + 0x16c]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x408500
mov ecx, dword [ebx + 0x124]
push str.__________Qmailer
push str._r_n___s___r_n
push ecx
call fcn.00411b16
add esp, 0xc
push edi
mov ecx, ebx
call fcn.00402d90
push 0xd
call fcn.00402190
mov edx, dword [str._r_n._r_n]
mov esi, eax
mov eax, dword [ebx + 0x124]
mov dword [eax], edx
mov cx, word [0x487dc0]
add esp, 4
mov word [eax + 4], cx
push esi
mov ecx, ebx
call fcn.00402d90
push esi
mov ecx, ebx
call fcn.00405610
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x68
mov esp, ebp
pop ebp
ret